<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][16173] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=16173">16173</a></dd>
<dt>Author</dt> <dd>gmaruzz</dd>
<dt>Date</dt> <dd>2010-01-06 08:07:02 -0600 (Wed, 06 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>gsmopen: added gsmlib directory, with original ancient sources, ubuntu patch for modern compilers, and patched sources ready to configure, make, make install</pre>

<h3>Added Paths</h3>
<ul>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/</li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1ABOUTNLS">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ABOUT-NLS</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1AUTHORS">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/AUTHORS</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1COPYING">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/COPYING</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1ChangeLog">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ChangeLog</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1INSTALL">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/INSTALL</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1Makefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1Makefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1NEWS">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/NEWS</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1README">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/README</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1TODO">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/TODO</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1acconfigh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acconfig.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1acincludem4">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acinclude.m4</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1aclocalm4">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/aclocal.m4</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmctlcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmctl.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmpbcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmpb.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsendsmscc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsendsms.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsmsdcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsd.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsmsstorecc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsstore.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1configure">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1configurein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure.in</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilscrond">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.cron.d</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilsdefault">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.default</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilsinit">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.init</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmsmsrequeue">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsrequeue</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmsmsspool">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsspool</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianchangelog">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/changelog</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancompat">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/compat</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancontrol">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/control</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancopyright">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/copyright</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilscrond">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.cron.d</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdefault">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.default</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdirs">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.dirs</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdocs">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.docs</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsinit">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.init</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilspostinst">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postinst</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilspostrm">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postrm</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsundocumented">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.undocumented</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmsiexfer1">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsmsiexfer.1</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianlibgsmmedevdocs">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/libgsmme-dev.docs</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianrules">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/rules</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianwatch">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/watch</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docFAQ">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/FAQ</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docREADMENLS">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.NLS</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docREADMEdevelopers">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.developers</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmctlman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmctl.man</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsminfoman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsminfo.man</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmliblsm">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmlib.lsm</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmpbman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmpb.man</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsendsmsman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsendsms.man</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsmsdman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsd.man</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsmsstoreman">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsstore.man</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extREADMEsieme">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/README.sieme</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsm_sie_mecc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsm_sie_meh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsmsiectlcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiectl.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsmsiexfercc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiexfer.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1g41patch">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/g41.patch</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsm_confighin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsm_config.h.in</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_atcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_ath">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_cbcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_cbh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_errorcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_errorh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_eventcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_eventh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_map_keyh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_map_key.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_me_tacc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_me_tah">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_nlscc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_nlsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_parsercc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_parserh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_phonebookcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_phonebookh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_porth">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_port.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_smscc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_smsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_codeccc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_codech">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_storecc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_storeh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebookcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebookh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebook_basecc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebook_baseh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_sms_storecc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_sms_storeh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sysdeph">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sysdep.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_unix_serialcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_unix_serialh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_utilcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_utilh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_win32_serialcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_win32_serialh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.h</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/</li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsdirs">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.dirs</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilspostinst">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.postinst</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsprerm">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.prerm</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsundocumented">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.undocumented</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibspec">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib.spec</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlChangeLog">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/ChangeLog</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlMakefile">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlVERSION">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/VERSION</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlbindtextdomc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/bindtextdom.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlcatcompatc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/cat-compat.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intldcgettextc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dcgettext.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intldgettextc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dgettext.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlexplodenamec">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/explodename.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlfinddomainc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/finddomain.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettextc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettexth">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettextPh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettextP.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlhashstringh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/hash-string.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlintlcompatc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/intl-compat.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intll10nflistc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/l10nflist.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllibgettexth">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/libgettext.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllinuxmsgsed">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/linux-msg.sed</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlloadinfoh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadinfo.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlloadmsgcatc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadmsgcat.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllocalealiasc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/localealias.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlpo2tblsedin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/po2tbl.sed.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intltextdomainc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/textdomain.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlxopenmsgsed">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/xopen-msg.sed</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1poMakefileinin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/Makefile.in.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1poPOTFILESin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/POTFILES.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1pocatidtblc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/cat-id-tbl.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1podegmo">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.gmo</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1podepo">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.po</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1pogsmlibpot">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/gsmlib.pot</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1postampcatid">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/stamp-cat-id</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigguess">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.guess</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigrpath">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.rpath</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigsub">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.sub</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsdebugconfigsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/debugconfig.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsdepcomp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/depcomp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsinstallsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/install-sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsltconfig">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltconfig</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsltmainsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltmain.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsmissing">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/missing</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsmkinstalldirs">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/mkinstalldirs</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1stamphin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/stamp-h.in</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsMakefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsMakefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunparsersh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runparser.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunsmssh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runsms.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspbsh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspb2sh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb2.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspbish">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspbi.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunssmssh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runssms.sh</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbpb">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb.pb</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspb2pb">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb2.pb</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbi1pb">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi1.pb</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbi2origpb">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi2-orig.pb</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestcbcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testcb.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestgsmlibcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testgsmlib.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestparseroutputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestparsercc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestpbcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestpb2cc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb2.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsmsoutputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsmscc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsms2cc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms2.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspboutputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspbcc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb.cc</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspb2outputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb2-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspbioutputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspbi-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestssmsoutputtxt">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms-output.txt</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestssmscc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms.cc</a></li>
<li>freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/</li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32COPYING">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/COPYING</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32Makefileam">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.am</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32Makefilein">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.in</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32READMEwin">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/README.win</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32getoptc">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.c</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32getopth">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsm_configh">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsm_config.h</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmctldsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmctl.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmlibdsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmlibdsw">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsw</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmpbdsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmpb.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsendsmsdsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsendsms.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsmsddsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsd.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsmsstoredsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsstore.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testgsmlibdsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testgsmlib.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testsmsdsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testsms2dsp">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms2.dsp</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110targz">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10.tar.gz</a></li>
<li><a href="#freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib_11012ubuntu1diff">freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib_1.10-12ubuntu1.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1ABOUTNLS"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ABOUT-NLS (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ABOUT-NLS                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ABOUT-NLS        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,226 @@
</span><ins>+Notes on the Free Translation Project
+*************************************
+
+   Free software is going international!  The Free Translation Project
+is a way to get maintainers of free software, translators, and users all
+together, so that will gradually become able to speak many languages.
+A few packages already provide translations for their messages.
+
+   If you found this `ABOUT-NLS' file inside a distribution, you may
+assume that the distributed package does use GNU `gettext' internally,
+itself available at your nearest GNU archive site.  But you do *not*
+need to install GNU `gettext' prior to configuring, installing or using
+this package with messages translated.
+
+   Installers will find here some useful hints.  These notes also
+explain how users should proceed for getting the programs to use the
+available translations.  They tell how people wanting to contribute and
+work at translations should contact the appropriate team.
+
+   When reporting bugs in the `intl/' directory or bugs which may be
+related to internationalization, you should tell about the version of
+`gettext' which is used.  The information can be found in the
+`intl/VERSION' file, in internationalized packages.
+
+One advise in advance
+=====================
+
+   If you want to exploit the full power of internationalization, you
+should configure it using
+
+     ./configure --with-included-gettext
+
+to force usage of internationalizing routines provided within this
+package, despite the existence of internationalizing capabilities in the
+operating system where this package is being installed.  So far, only
+the `gettext' implementation in the GNU C library version 2 provides as
+many features (such as locale alias or message inheritance) as the
+implementation here.  It is also not possible to offer this additional
+functionality on top of a `catgets' implementation.  Future versions of
+GNU `gettext' will very likely convey even more functionality.  So it
+might be a good idea to change to GNU `gettext' as soon as possible.
+
+   So you need not provide this option if you are using GNU libc 2 or
+you have installed a recent copy of the GNU gettext package with the
+included `libintl'.
+
+INSTALL Matters
+===============
+
+   Some packages are &quot;localizable&quot; when properly installed; the
+programs they contain can be made to speak your own native language.
+Most such packages use GNU `gettext'.  Other packages have their own
+ways to internationalization, predating GNU `gettext'.
+
+   By default, this package will be installed to allow translation of
+messages.  It will automatically detect whether the system provides
+usable `catgets' (if using this is selected by the installer) or
+`gettext' functions.  If neither is available, the GNU `gettext' own
+library will be used.  This library is wholly contained within this
+package, usually in the `intl/' subdirectory, so prior installation of
+the GNU `gettext' package is *not* required.  Installers may use
+special options at configuration time for changing the default
+behaviour.  The commands:
+
+     ./configure --with-included-gettext
+     ./configure --with-catgets
+     ./configure --disable-nls
+
+will respectively bypass any pre-existing `catgets' or `gettext' to use
+the internationalizing routines provided within this package, enable
+the use of the `catgets' functions (if found on the locale system), or
+else, *totally* disable translation of messages.
+
+   When you already have GNU `gettext' installed on your system and run
+configure without an option for your new package, `configure' will
+probably detect the previously built and installed `libintl.a' file and
+will decide to use this.  This might be not what is desirable.  You
+should use the more recent version of the GNU `gettext' library.  I.e.
+if the file `intl/VERSION' shows that the library which comes with this
+package is more recent, you should use
+
+     ./configure --with-included-gettext
+
+to prevent auto-detection.
+
+   By default the configuration process will not test for the `catgets'
+function and therefore they will not be used.  The reasons are already
+given above: the emulation on top of `catgets' cannot provide all the
+extensions provided by the GNU `gettext' library.  If you nevertheless
+want to use the `catgets' functions use
+
+     ./configure --with-catgets
+
+to enable the test for `catgets' (this causes no harm if `catgets' is
+not available on your system).  If you really select this option we
+would like to hear about the reasons because we cannot think of any
+good one ourself.
+
+   Internationalized packages have usually many `po/LL.po' files, where
+LL gives an ISO 639 two-letter code identifying the language.  Unless
+translations have been forbidden at `configure' time by using the
+`--disable-nls' switch, all available translations are installed
+together with the package.  However, the environment variable `LINGUAS'
+may be set, prior to configuration, to limit the installed set.
+`LINGUAS' should then contain a space separated list of two-letter
+codes, stating which languages are allowed.
+
+Using This Package
+==================
+
+   As a user, if your language has been installed for this package, you
+only have to set the `LANG' environment variable to the appropriate
+ISO 639 `LL' two-letter code prior to using the programs in the
+package.  For example, let's suppose that you speak German.  At the
+shell prompt, merely execute `setenv LANG de' (in `csh'),
+`export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash').  This
+can be done from your `.login' or `.profile' file, once and for all.
+
+   An operating system might already offer message localization for
+many of its programs, while other programs have been installed locally
+with the full capabilities of GNU `gettext'.  Just using `gettext'
+extended syntax for `LANG' would break proper localization of already
+available operating system programs.  In this case, users should set
+both `LANGUAGE' and `LANG' variables in their environment, as programs
+using GNU `gettext' give preference to `LANGUAGE'.  For example, some
+Swedish users would rather read translations in German than English for
+when Swedish is not available.  This is easily accomplished by setting
+`LANGUAGE' to `sv:de' while leaving `LANG' to `sv'.
+
+Translating Teams
+=================
+
+   For the Free Translation Project to be a success, we need interested
+people who like their own language and write it well, and who are also
+able to synergize with other translators speaking the same language.
+Each translation team has its own mailing list, courtesy of Linux
+International.  You may reach your translation team at the address
+`LL@li.org', replacing LL by the two-letter ISO 639 code for your
+language.  Language codes are *not* the same as the country codes given
+in ISO 3166.  The following translation teams exist, as of December
+1997:
+
+     Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en',
+     Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian
+     `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja',
+     Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish
+     `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es',
+     Swedish `sv', and Turkish `tr'.
+
+For example, you may reach the Chinese translation team by writing to
+`zh@li.org'.
+
+   If you'd like to volunteer to *work* at translating messages, you
+should become a member of the translating team for your own language.
+The subscribing address is *not* the same as the list itself, it has
+`-request' appended.  For example, speakers of Swedish can send a
+message to `sv-request@li.org', having this message body:
+
+     subscribe
+
+   Keep in mind that team members are expected to participate
+*actively* in translations, or at solving translational difficulties,
+rather than merely lurking around.  If your team does not exist yet and
+you want to start one, or if you are unsure about what to do or how to
+get started, please write to `translation@iro.umontreal.ca' to reach the
+coordinator for all translator teams.
+
+   The English team is special.  It works at improving and uniformizing
+the terminology in use.  Proven linguistic skill are praised more than
+programming skill, here.
+
+Available Packages
+==================
+
+   Languages are not equally supported in all packages.  The following
+matrix shows the current state of internationalization, as of December
+1997.  The matrix shows, in regard of each package, for which languages
+PO files have been submitted to translation coordination.
+
+     Ready PO files    cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+                     .----------------------------------------------------.
+     bash            |       []          []          []                   |  3
+     bison           |       []          []          []                   |  3
+     clisp           |       [] [] []    []                               |  4
+     cpio            |       []    []    []       [] []    []             |  6
+     diffutils       |       []    []    []                []          [] |  5
+     enscript        |       []    [] [] []          []             []    |  6
+     fileutils       | []    []    []    []       [] []    [] []    [] [] | 10
+     findutils       |       []    []    [] []    [] []    []    []    [] |  9
+     flex            |             []    []       []                   [] |  4
+     gcal            |       []          []          []    []          [] |  5
+     gettext         |    [] []    []    []       [] [] [] [] []    [] [] | 12
+     grep            |       []    []    []       [] [] [] []    [] [] [] | 10
+     hello           |    [] []    []    []       [] [] [] [] []    [] [] | 11
+     id-utils        |       []          []                []             |  3
+     indent          |    [] []                   []       []    []       |  5
+     libc            |       []    []    []       [] []    []          [] |  7
+     m4              |       []          []    []    []          []    [] |  6
+     make            |       []    []    []       [] []    []             |  6
+     music           |                   []                []             |  2
+     ptx             |       []    []    []          [] [] [] []       [] |  8
+     recode          |    [] []    []    []          []    [] []    [] [] |  9
+     sh-utils        |       []    []    []          [] [] [] []       [] |  8
+     sharutils       | []    []    []    []          []                [] |  6
+     tar             | []    []          [] []    [] [] [] [] []    [] [] | 11
+     texinfo         | []    []          []                               |  3
+     textutils       | []    []    []    []       [] [] [] []          [] |  9
+     wdiff           | []    []    []    []          [] [] []          [] |  8
+                     `----------------------------------------------------'
+       17 languages    cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+       27 packages      6  4 25  1 18  1 26  2  1 12 20  9 19  7  4  7 17  179
+
+   Some counters in the preceding matrix are higher than the number of
+visible blocks let us expect.  This is because a few extra PO files are
+used for implementing regional variants of languages, or language
+dialects.
+
+   For a PO file in the matrix above to be effective, the package to
+which it applies should also have been internationalized and
+distributed as such by its maintainer.  There might be an observable
+lag between the mere existence a PO file and its wide availability in a
+distribution.
+
+   If December 1997 seems to be old, you may fetch a more recent copy
+of this `ABOUT-NLS' file on most GNU archive sites.
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1AUTHORS"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/AUTHORS ( => )</h4>
<pre class="diff"><span>
<span class="info">
Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/COPYING
</span><span class="cx">===================================================================
</span><del>--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/COPYING                                (rev 0)
</del><ins>+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/COPYING        2010-01-06 14:07:02 UTC (rev 16173)
</ins><span class="lines">@@ -0,0 +1,482 @@
</span><ins>+                  GNU LIBRARY GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+                        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL.  It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it.  You can use it for
+your libraries, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library.  If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software.  To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+  Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs.  This
+license, the GNU Library General Public License, applies to certain
+designated libraries.  This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+  The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it.  Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program.  However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+  Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries.  We
+concluded that weaker conditions might promote sharing better.
+
+  However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves.  This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them.  (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.)  The hope is that this
+will lead to faster development of free libraries.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+&quot;work based on the library&quot; and a &quot;work that uses the library&quot;.  The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+  Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+                  GNU LIBRARY GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called &quot;this License&quot;).  Each licensee is
+addressed as &quot;you&quot;.
+
+  A &quot;library&quot; means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The &quot;Library&quot;, below, refers to any such software library or work
+which has been distributed under these terms.  A &quot;work based on the
+Library&quot; means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term &quot;modification&quot;.)
+
+  &quot;Source code&quot; for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library.  To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License.  (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.)  Do not make any other change in
+these notices.
+
+  Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+  This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+  4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+  If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a &quot;work that uses the Library&quot;.  Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+  However, linking a &quot;work that uses the Library&quot; with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a &quot;work that uses the
+library&quot;.  The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+  When a &quot;work that uses the Library&quot; uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library.  The
+threshold for this to be true is not precisely defined by law.
+
+  If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work.  (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+  Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+  6. As an exception to the Sections above, you may also compile or
+link a &quot;work that uses the Library&quot; with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+  You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License.  You must supply a copy of this License.  If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License.  Also, you must do one
+of these things:
+
+    a) Accompany the work with the complete corresponding
+    machine-readable source code for the Library including whatever
+    changes were used in the work (which must be distributed under
+    Sections 1 and 2 above); and, if the work is an executable linked
+    with the Library, with the complete machine-readable &quot;work that
+    uses the Library&quot;, as object code and/or source code, so that the
+    user can modify the Library and then relink to produce a modified
+    executable containing the modified Library.  (It is understood
+    that the user who changes the contents of definitions files in the
+    Library will not necessarily be able to recompile the application
+    to use the modified definitions.)
+
+    b) Accompany the work with a written offer, valid for at
+    least three years, to give the same user the materials
+    specified in Subsection 6a, above, for a charge no more
+    than the cost of performing this distribution.
+
+    c) If distribution of the work is made by offering access to copy
+    from a designated place, offer equivalent access to copy the above
+    specified materials from the same place.
+
+    d) Verify that the user has already received a copy of these
+    materials or that you have already sent this user a copy.
+
+  For an executable, the required form of the &quot;work that uses the
+Library&quot; must include any data and utility programs needed for
+reproducing the executable from it.  However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+  It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system.  Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+  7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+    a) Accompany the combined library with a copy of the same work
+    based on the Library, uncombined with any other library
+    facilities.  This must be distributed under the terms of the
+    Sections above.
+
+    b) Give prominent notice with the combined library of the fact
+    that part of it is a work based on the Library, and explaining
+    where to find the accompanying uncombined form of the same work.
+
+  8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.  Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License.  However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+  9. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Library or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+  10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded.  In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+  13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Library
+specifies a version number of this License which applies to it and
+&quot;any later version&quot;, you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation.  If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+  14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission.  For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this.  Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+                            NO WARRANTY
+
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY &quot;AS IS&quot; WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+&quot;copyright&quot; line and a pointer to where the full notice is found.
+
+    &lt;one line to give the library's name and a brief idea of what it does.&gt;
+    Copyright (C) &lt;year&gt;  &lt;name of author&gt;
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public
+    License along with this library; if not, write to the 
+    Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
+    Boston, MA  02111-1307  USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a &quot;copyright disclaimer&quot; for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  &lt;signature of Ty Coon&gt;, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1ChangeLog"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ChangeLog (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ChangeLog                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ChangeLog        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,386 @@
</span><ins>+gsmlib-1.10
+     - reactivated code in gsm_at to retry sending PDU after
+       unsolicited result code 
+
+     - added description of unicode handling to FAQ
+
+     - compilation fixes for gcc-3.0.4
+
+     - added quick exit for ATZ in UnixSerialPort constructor
+       if phone gives ERROR
+
+     - added fix for phones that return +CLIP: &quot;Number not available.&quot;
+       instead of giving caller ID
+
+     - added get/setCLIRPresentation() functions to MeTa (contribution by
+       ivan)
+
+     - added &quot;NO CARRIER&quot; event to the event mechanism (contribution by
+       clock)
+
+     - added Win32 port of gsmsmsd (thanks to Konstantin Forostyan)
+
+     - further extented Win32 port of gsmsmsd to handle outgoing messages
+
+     - fixed problem with Ericsson T39m SMS sending (zero bytes in handshake)
+
+     - added capability to send concatenated SMSs in gsmsmsd and gsmsendsms
+
+     - fixed unsigned/signed char problems in Unix/Win32 serial port
+       implementations
+
+     - added capability to send multiple SMSs to gsmsendsms/gsmsmsd
+
+gsmlib-1.9
+     - fixed decoding of alphanumeric addresses in gsm_sms_codec.
+
+     - fixed bug in gsm_event when checking whether to send an
+       acknowledgment for a received SMS
+
+     - More Siemens-specific patches, some extensions to the AT
+       command parser
+
+     - New code to print PIN status and set the PIN in gsmctl, setPIN
+       function in MeTa class (Andreas Roedl &lt;flood@flood-net.de&gt;)
+
+     - Missing virtual destructor in Port class caused destructors of
+       UnixSerialPort and Win32SerialPort not to be called - fixed
+
+     - Added new code to set functionality level on or off (thanks to
+       David Woodhouse)
+
+     - found bug in SMS store implementation that caused the now
+       obsolete _capacity member to be set to a too low value
+
+     - Added changes contributed by Frediano Ziglio to enable compilation
+       on Windows
+
+     - Added call waiting functions contributed by Ivan
+
+gsmlib-1.8
+     - added workaround for Nokia Cellular Card Phone RPE-1 GSM900
+       that reports a CDS event that actually is an CDSI and sends a spurious
+       CR when waiting for a PDU
+
+     - SMS are stored without index in files now
+
+     - tested compilation with gcc-3.0.2
+
+     - added workaround for gsmlib getting confused when receiving SMS
+       and echo cannot be switched off - echos of the AT command are
+       filtered out in chat() now
+
+     - extended gsm_phonebook preload mechanism to batch-load phonebooks
+       where the index does not start with 1
+     
+     - Added workaround for Motorola Timeport 260 to write back
+       deliver messages to the ME
+
+     - added workaround for compilation with libstdc++-v2
+
+     - private members of MeTa made protected
+
+     - new ext directory for phone-specific extensions
+
+gsmlib-1.7
+     - fixed bug with calculation of userData length if userDataHeader
+       is present (octet count was subtracted, not septet count)
+
+     - fixed problem with string erase() at end of PDU for Falcom A2-1
+
+     - -t/--charset option of gsmpb did not work due to missing parameter
+       of getopt_long, fixed
+
+     - The SMS decoder/encoder can now handle alphanumeric addresses
+       in the GSM default alphabet
+
+     - set only those SMS stores that are actually needed to perform
+       SMS store operation
+
+     - Fixed signalling error 321 (Invalid memory index) when trying to
+       read from empty SMS store entry
+
+     - Fixed parsing error when reading current network operator if no
+       network connection
+
+     - Added capability to parse cell broadcast messages to gsmlib and
+       the gsmsmsd program
+
+     - Added workaround for Motorola Timeport 260 bug that doesn't correctly
+       report the message status when retrieving SMS messages from the
+       store
+
+     - Added workaround for Motorola Timeport 260 that allocates index
+       numbers to SMS messages linearly so that index number can be
+       be larger than capacity reported by AT command
+
+gsmlib-1.6
+     - more fixes for the COPS=? return format
+
+     - fixed putBack() behaviour in gsm_parser (don't put back if end-of-
+       stream is reached)
+
+     - added toString() function to gsm_sms_codec's Address class
+
+     - SMS dates and times are now output in a locale-specific manner
+
+     - fixed bug in Parser::getEol() (_eos was accidentally set to true)
+
+     - added gsm_win32_serial module, Win32 project (VC++),  and
+       Option FirstFone changes contributed by Frediano Ziglio
+       &lt;freddy77@angelfire.com&gt;
+
+     - fix in COM port recognition for Win32 (gsm_util)
+
+     - renamed library files libgsm.* to libgsmme.* (now starting with
+       version 1.0) because of conflict with another Debian package
+
+     - in gsm_phonebook and gsm_store the caching of entries can now
+       be disabled
+
+     - added facilities to use other character sets for phonebooks
+
+     - fixed workaround for Ericcson SH888 (missing service centre address)
+
+     - fixed bug in gsm_phonebook that prevented texts with the
+       character '@' to be written to to the phonebook
+
+     - fixed nasty memory allocation bug in gsmpb/gsmsmsstore
+       (automatic MeTa variable went out of scope even though used
+       later)
+
+     - fixed Y2K problem in timestamp printing
+
+     - fixed &quot;make dist&quot; to include win32 files
+
+     - added workarounds for Falcom A2-1 (autodetection and enabling by
+       &quot;export GSMLIB_FALCOM_A2_1_FIX=1&quot;, zero after PDU)
+
+     - fixed bug that caused gsmlib to abort with an assert if a malformed
+       PDU was read
+
+gsmlib-1.5
+     - adapted MeTa::getCurrentOPInfo() and MeTa::getAvailableOPInfo()
+       to handle Nokia 8290 quirks
+
+     - code to set line speed in gsm_unix_serial reinserted (it was
+       accidentally removed in previous version)
+
+     - minor changes to initialization sequence in gsm_unix_serial
+
+     - bugfix in gsm_unix_serial.cc: readByte() == 0 does not mean no
+       more bytes, but is legal value
+
+     - additionally allowed characters &quot;*#pwPW&quot; and '+' at any
+       position in telephone numbers
+
+     - added environment variable GSMLIB_SH888_FIX that (if set)
+       enables the gsmlib workaround for Ericsson SH888's broken SMS TPDUs
+
+     - fixed command line parameter handling bug in gsmsmsstore
+
+     - fixed %files section .spec file to correctly include manual pages
+
+     - fixed some bugs in terminal line setup (gsm_unix_serial) regarding
+       software/hardware handshake 
+
+     - added new &quot;--sca&quot; option to SMS-related apps to set the SMS
+       service centre address on the command line (useful if default is not
+       set correctly in the phone)
+
+     - removed tcflush() call in UnixSerialPort::putLine that broke
+       the event system needed for gsmsmsd
+
+gsmlib-1.4
+     - more attempts to fix UNIX serial port access
+
+     - allow custom backends for sorted phonebooks to be integrated
+       into gsmlib (eg. for RDBMS or LDAP storage). Introduced a new
+       module gsm_sorted_phonebook_base that contains the infrastructure for
+       this.
+
+     - Now gsmlib needs at least gcc-2.95.2 to compile correctly.
+
+     - Implemented option to open device with software handshaking (XON/XOFF).
+       The applications now have an -X option to turn this on.
+
+     - gsmlib now contains a facility to interrupt ongoing activity in a
+       controlled way. gsm_unix_serial now blocks for one second
+       maximum until it checks whether it was interrupted.
+
+     - various small bugfixes
+
+     - added workaround for phones that omit ':' in AT command responses
+
+     - all debugging output is now printed to stderr
+
+     - gsm_unix_serial: new attempt to initialize modem in a more
+       robust way (contributed)
+
+     - gsm_sms: fixed handling of user data header (contributed)
+
+gsmlib-1.3
+     - fixed bug that caused gsmlib to hang if TAs don't respond
+       to AT inquiries for serial number etc.
+
+     - fixed bug with handling of CB mode AT command construction in
+       gsm_me_ta.cc, setSMSRoutingToTA()
+
+     - allow '+' as the first character of phonenumbers
+
+     - implemented reading and writing from/to stdin/stdout in
+       gsm_sorted_[sms_store|phonebook] and gsmpb/gsmsmsstore
+
+     - fixed (hopefully) the intermittent hangup problem in
+       gsm_unix_serial_port
+
+     - Some mobile phones cannot report the status of some facility
+       locks. The gsmctl program now prints out &quot;unknown&quot; in the
+       corresponding result line from the FLSTAT
+       operation if this problem occurs (instead of terminating).
+
+     - switched off non-blocking access to serial device
+
+gsmlib-1.2
+     - gsmlib now also works with TAs that can not switch off echo
+
+     - fixed bug that prevented gsmlib from copying SMS_DELIVER and 
+       SMS_STATUS_REPORT back to the ME
+
+     - introduced -I (--init) parameter to all command line apps to
+       allow for device-specific initialization
+
+     - made SMS decoding routines more robust against bad SMS (especially
+       premature end of PDU)
+
+     - New debugging feature: If compiled without NDEBUG, the
+       environment variable GSMLIB_DEBUG determines the verbosity of
+       debugging messages (0 = none, 1 = many, 2 = extreme)
+
+gsmlib-1.1
+
+     - Parse multiple COPS (operator info) lines returned by some phones
+
+     - accept string as numeric value when interpreting COPS=? response
+       (Ericsson phone + GSM12 GSM module)
+
+     - accept string as numeric value when interpreting COPS? response
+       (Ericsson phone + GSM12 GSM module)
+
+     - retry when initializing TA (ATZ/ATE0 sequences)
+
+     - Set SMS routing:
+       allow mode 3 (special in-band technique) when setting routing
+       to TA (gsmlib should not be active when phone is switched to data mode
+       anyway) 
+
+    -  Set SMS routing:
+       handle buffer mode but only if it was reported by the +CNMI=? command
+       (the Ericsson GM12 GSM modem does not like it otherwise)
+
+     - Determine CPMS number of parameters for CPMS command (better
+       compability with some mobile phones / GSM modems)
+
+     - handle missing service centre address in incoming SMS for Ericsson
+       model 6050102
+
+     - add new RING event to gsm_event.h/.cc, gsmsmsd now handles RING
+       indications properly
+
+     - defined default event handler mostly to handle unexpected RING
+       indications that might otherwise confuse gsmlib
+
+     - gsmsmsd: can now be cleanly terminated using the SIGINT or SIGTERM
+       signals
+
+     - gsmsmsd: now handles multiple incoming SMS messages cleanly, before
+       there was a chance that some SMS messages coming in rapid succession
+       might have been lost
+
+     - gsmsmsd: flush option implemented that dispatches and erases
+       existing messages in SMS store
+
+     - gsmsmsd: added sending of SMS messages. gsmsmsd now accepts a
+       spool directory options where it expects to find SMS message file in a 
+       simple format, these are dispatched every 5 seconds
+
+gsmlib-1.0
+
+     - RPM support (spec file)
+
+     - the &quot;+&quot; is at least for the Siemens S10 and S25 a valid char in 
+       telephone numbers (inserts a pause of 3 seconds), therefore it is now
+       allowed as part of telephone numbers
+
+     - fixed incorrect analysis of facility class parameters in gsmctl.cc
+
+     - restricted call forward time to 0..30 seconds in gsm_me_ta.cc
+
+gsmlib-0.3
+
+     - implemented timeout for accessing the mobile phone in order
+       to avoid hangs
+
+     - upgraded to BETA status
+
+     - written glossary for abbreviations (gsminfo(7))
+
+     - implemented NLS support, added German translations
+
+     - implemented preserving the index position of phonebook entries in 
+       gsmpb.cc and gsm_sorted_phonebook
+
+     - cleaned up manual pages (alphabetic ordering of options etc.)
+
+     - gsmsmstore program and gsm_sorted_sms_store./.cc completed and
+       tested
+
+     - gsmpb and gsmsmsstore now have --verbose (-V) options for detailed
+       progress reporting
+
+     - now check for getopt_long in configure (can be compiled on non-GNU
+       systems)
+
+     - removed asserts regarding lengths of numeric data types, put them
+       into configure script
+
+     - sorted options in apps/*.cc alphabetically (--help option)
+
+     - in gsm_sorted_sms_store compare telephone numbers more sensibly
+
+     - introduced -v option to gsmpb and gsmsmsstore to report execution
+       statistics 
+
+     - tested new synchronization function in gsmpb program
+
+     - implemented operations in the gsmctl program
+
+     - rewrote test cases (compare output)
+
+     - completed gsmsmsstore program
+
+     - first changes for compilation with VC++ 6.0 on WIN32
+
+gsmlib-0.2
+
+     - gsmsmstore program and gsm_sorted_sms_store./.cc mostly
+       completed but not yet much tested
+
+     - Fixed problem with some mobiles/TAs not giving prefixes after
+       certain AT sequences (reported for SIEMENS S25/IrDA, Nokia
+       8810/IrDA)
+
+     - Fixed problem with Xircom REM56G.100/Nokia 6150 that give
+       &quot;CABLE: GSM&quot; instead of &quot;OK&quot; after ATZ
+
+     - Mobiles that return nothing when empty phonebook entries are
+       requested are now handled correctly (reported for SIEMENS S25/IrDA)
+
+     - optimizations in gsm_*_phonebook modules (less AT commands necessary)
+
+     - new synchronization function in gsmpb program that is (hopefully)
+       more sensible (see man page for details)
+
+gsmlib-0.1
+
+     - Initial release
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1INSTALL"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/INSTALL (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/INSTALL                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/INSTALL        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,198 @@
</span><ins>+GSMLIB Installation
+===================
+
+     This distribution uses autoconf/automake/libtool. See below
+     for generic installation instructions. The default commands would be:
+
+       ./configure
+       make
+       make install
+
+     See also the section INSTALLATION in the README file in this
+     directory. For questions regarding the internationalization of this
+     package refer to doc/README.NLS and ./ABOUT-NLS.
+
+     Developers: See also the file doc/README.developers.
+
+Basic Installation
+==================
+
+   These are generic installation instructions.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, a file
+`config.cache' that saves the results of its tests to speed up
+reconfiguring, and a file `config.log' containing compiler output
+(useful mainly for debugging `configure').
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If at some point `config.cache'
+contains results you don't want to keep, you may remove or edit it.
+
+   The file `configure.in' is used to create `configure' by a program
+called `autoconf'.  You only need `configure.in' if you want to change
+it or regenerate `configure' using a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.  If you're
+     using `csh' on an old version of System V, you might need to type
+     `sh ./configure' instead to prevent `csh' from trying to execute
+     `configure' itself.
+
+     Running `configure' takes awhile.  While running, it prints some
+     messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Optionally, type `make check' to run any self-tests that come with
+     the package.
+
+  4. Type `make install' to install the programs and any data files and
+     documentation.
+
+  5. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  To also remove the
+     files that `configure' created (so you can compile the package for
+     a different kind of computer), type `make distclean'.  There is
+     also a `make maintainer-clean' target, but that is intended mainly
+     for the package's developers.  If you use it, you may have to get
+     all sorts of other programs in order to regenerate files that came
+     with the distribution.
+
+Compilers and Options
+=====================
+
+   Some systems require unusual options for compilation or linking that
+the `configure' script does not know about.  You can give `configure'
+initial values for variables by setting them in the environment.  Using
+a Bourne-compatible shell, you can do that on the command line like
+this:
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
+
+Or on systems that have the `env' program, you can do it like this:
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+
+Compiling For Multiple Architectures
+====================================
+
+   You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+   If you have to use a `make' that does not supports the `VPATH'
+variable, you have to compile the package for one architecture at a time
+in the source code directory.  After you have installed the package for
+one architecture, use `make distclean' before reconfiguring for another
+architecture.
+
+Installation Names
+==================
+
+   By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+   In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files.  Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+   Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+   There may be some features `configure' can not figure out
+automatically, but needs to determine by the type of host the package
+will run on.  Usually `configure' can figure that out, but if it prints
+a message saying it can not guess the host type, give it the
+`--host=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name with three fields:
+     CPU-COMPANY-SYSTEM
+
+See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the host type.
+
+   If you are building compiler tools for cross-compiling, you can also
+use the `--target=TYPE' option to select the type of system they will
+produce code for and the `--build=TYPE' option to select the type of
+system on which you are compiling the package.
+
+Sharing Defaults
+================
+
+   If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Operation Controls
+==================
+
+   `configure' recognizes the following options to control how it
+operates.
+
+`--cache-file=FILE'
+     Use and save the results of the tests in FILE instead of
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
+     debugging `configure'.
+
+`--help'
+     Print a summary of the options to `configure', and exit.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.  To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown).
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`--version'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`configure' also accepts some other, not widely useful, options.
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1Makefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: Toplevel Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 21.5.1999
+# *************************************************************************
+
+SUBDIRS_ =        po gsmlib apps tests doc scripts win32 ext
+
+EXTRA_DIST =        gsmlib.spec
+
+if COMPILE_INTL
+SUBDIRS =        intl $(SUBDIRS_) # po - make automake happy
+else
+SUBDIRS =        $(SUBDIRS_) # po intl - make automake happy
+endif
+
+all:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1Makefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,423 @@
</span><ins>+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
+
+# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: Toplevel Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 21.5.1999
+# *************************************************************************
+
+
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+
+DESTDIR =
+
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+
+top_builddir = .
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+transform = @program_transform_name@
+
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+AR = @AR@
+AS = @AS@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+DATADIRNAME = @DATADIRNAME@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+GCJ = @GCJ@
+GCJFLAGS = @GCJFLAGS@
+GENCAT = @GENCAT@
+GLIBC2 = @GLIBC2@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_ASPRINTF = @HAVE_ASPRINTF@
+HAVE_LIB = @HAVE_LIB@
+HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
+HAVE_SNPRINTF = @HAVE_SNPRINTF@
+HAVE_WPRINTF = @HAVE_WPRINTF@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+RC = @RC@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+
+SUBDIRS_ = po gsmlib apps tests doc scripts win32 ext
+
+EXTRA_DIST = gsmlib.spec
+@COMPILE_INTL_TRUE@SUBDIRS = intl $(SUBDIRS_) # po - make automake happy
+@COMPILE_INTL_FALSE@SUBDIRS = $(SUBDIRS_) # po intl - make automake happy
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = gsm_config.h
+CONFIG_CLEAN_FILES = 
+DIST_COMMON =  README ./stamp-h.in ABOUT-NLS AUTHORS COPYING ChangeLog \
+INSTALL Makefile.am Makefile.in NEWS TODO acconfig.h acinclude.m4 \
+aclocal.m4 configure configure.in gsm_config.h.in
+
+
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
+
+TAR = tar
+GZIP_ENV = --best
+DIST_SUBDIRS =  intl po gsmlib apps tests doc scripts win32 ext po \
+gsmlib apps tests doc scripts win32 ext
+all: all-redirect
+.SUFFIXES:
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
+        cd $(top_srcdir) &amp;&amp; $(AUTOMAKE) --gnu Makefile
+
+Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
+        cd $(top_builddir) \
+          &amp;&amp; CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+$(ACLOCAL_M4):  configure.in  acinclude.m4
+        cd $(srcdir) &amp;&amp; $(ACLOCAL)
+
+config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+        $(SHELL) ./config.status --recheck
+$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+        cd $(srcdir) &amp;&amp; $(AUTOCONF)
+
+gsm_config.h: stamp-h
+        @if test ! -f $@; then \
+                rm -f stamp-h; \
+                $(MAKE) stamp-h; \
+        else :; fi
+stamp-h: $(srcdir)/gsm_config.h.in $(top_builddir)/config.status
+        cd $(top_builddir) \
+          &amp;&amp; CONFIG_FILES= CONFIG_HEADERS=gsm_config.h \
+             $(SHELL) ./config.status
+        @echo timestamp &gt; stamp-h 2&gt; /dev/null
+$(srcdir)/gsm_config.h.in: $(srcdir)/stamp-h.in
+        @if test ! -f $@; then \
+                rm -f $(srcdir)/stamp-h.in; \
+                $(MAKE) $(srcdir)/stamp-h.in; \
+        else :; fi
+$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
+        cd $(top_srcdir) &amp;&amp; $(AUTOHEADER)
+        @echo timestamp &gt; $(srcdir)/stamp-h.in 2&gt; /dev/null
+
+mostlyclean-hdr:
+
+clean-hdr:
+
+distclean-hdr:
+        -rm -f gsm_config.h
+
+maintainer-clean-hdr:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+
+@SET_MAKE@
+
+all-recursive install-data-recursive install-exec-recursive \
+installdirs-recursive install-recursive uninstall-recursive  \
+check-recursive installcheck-recursive info-recursive dvi-recursive:
+        @set fnord $(MAKEFLAGS); amf=$$2; \
+        dot_seen=no; \
+        target=`echo $@ | sed s/-recursive//`; \
+        list='$(SUBDIRS)'; for subdir in $$list; do \
+          echo &quot;Making $$target in $$subdir&quot;; \
+          if test &quot;$$subdir&quot; = &quot;.&quot;; then \
+            dot_seen=yes; \
+            local_target=&quot;$$target-am&quot;; \
+          else \
+            local_target=&quot;$$target&quot;; \
+          fi; \
+          (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+           || case &quot;$$amf&quot; in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+        done; \
+        if test &quot;$$dot_seen&quot; = &quot;no&quot;; then \
+          $(MAKE) $(AM_MAKEFLAGS) &quot;$$target-am&quot; || exit 1; \
+        fi; test -z &quot;$$fail&quot;
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+        @set fnord $(MAKEFLAGS); amf=$$2; \
+        dot_seen=no; \
+        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
+          rev=&quot;$$subdir $$rev&quot;; \
+          test &quot;$$subdir&quot; != &quot;.&quot; || dot_seen=yes; \
+        done; \
+        test &quot;$$dot_seen&quot; = &quot;no&quot; &amp;&amp; rev=&quot;. $$rev&quot;; \
+        target=`echo $@ | sed s/-recursive//`; \
+        for subdir in $$rev; do \
+          echo &quot;Making $$target in $$subdir&quot;; \
+          if test &quot;$$subdir&quot; = &quot;.&quot;; then \
+            local_target=&quot;$$target-am&quot;; \
+          else \
+            local_target=&quot;$$target&quot;; \
+          fi; \
+          (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+           || case &quot;$$amf&quot; in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+        done &amp;&amp; test -z &quot;$$fail&quot;
+tags-recursive:
+        list='$(SUBDIRS)'; for subdir in $$list; do \
+          test &quot;$$subdir&quot; = . || (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) tags); \
+        done
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP)
+        list='$(SOURCES) $(HEADERS)'; \
+        unique=`for i in $$list; do echo $$i; done | \
+          awk '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        here=`pwd` &amp;&amp; cd $(srcdir) \
+          &amp;&amp; mkid -f$$here/ID $$unique $(LISP)
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) gsm_config.h.in $(TAGS_DEPENDENCIES) $(LISP)
+        tags=; \
+        here=`pwd`; \
+        list='$(SUBDIRS)'; for subdir in $$list; do \
+   if test &quot;$$subdir&quot; = .; then :; else \
+            test -f $$subdir/TAGS &amp;&amp; tags=&quot;$$tags -i $$here/$$subdir/TAGS&quot;; \
+   fi; \
+        done; \
+        list='$(SOURCES) $(HEADERS)'; \
+        unique=`for i in $$list; do echo $$i; done | \
+          awk '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        test -z &quot;$(ETAGS_ARGS)gsm_config.h.in$$unique$(LISP)$$tags&quot; \
+          || (cd $(srcdir) &amp;&amp; etags -o $$here/TAGS $(ETAGS_ARGS) $$tags gsm_config.h.in $$unique $(LISP))
+
+mostlyclean-tags:
+
+clean-tags:
+
+distclean-tags:
+        -rm -f TAGS ID
+
+maintainer-clean-tags:
+
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+
+# This target untars the dist file and tries a VPATH configuration.  Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+        -rm -rf $(distdir)
+        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
+        mkdir $(distdir)/=build
+        mkdir $(distdir)/=inst
+        dc_install_base=`cd $(distdir)/=inst &amp;&amp; pwd`; \
+        cd $(distdir)/=build \
+          &amp;&amp; ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dvi \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) check \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) install \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) installcheck \
+          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dist
+        -rm -rf $(distdir)
+        @banner=&quot;$(distdir).tar.gz is ready for distribution&quot;; \
+        dashes=`echo &quot;$$banner&quot; | sed s/./=/g`; \
+        echo &quot;$$dashes&quot;; \
+        echo &quot;$$banner&quot;; \
+        echo &quot;$$dashes&quot;
+dist: distdir
+        -chmod -R a+r $(distdir)
+        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+        -rm -rf $(distdir)
+dist-all: distdir
+        -chmod -R a+r $(distdir)
+        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
+        -rm -rf $(distdir)
+distdir: $(DISTFILES)
+        -rm -rf $(distdir)
+        mkdir $(distdir)
+        -chmod 777 $(distdir)
+        here=`cd $(top_builddir) &amp;&amp; pwd`; \
+        top_distdir=`cd $(distdir) &amp;&amp; pwd`; \
+        distdir=`cd $(distdir) &amp;&amp; pwd`; \
+        cd $(top_srcdir) \
+          &amp;&amp; $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
+        @for file in $(DISTFILES); do \
+          d=$(srcdir); \
+          if test -d $$d/$$file; then \
+            cp -pr $$d/$$file $(distdir)/$$file; \
+          else \
+            test -f $(distdir)/$$file \
+            || ln $$d/$$file $(distdir)/$$file 2&gt; /dev/null \
+            || cp -p $$d/$$file $(distdir)/$$file || :; \
+          fi; \
+        done
+        for subdir in $(DIST_SUBDIRS); do \
+          if test &quot;$$subdir&quot; = .; then :; else \
+            test -d $(distdir)/$$subdir \
+            || mkdir $(distdir)/$$subdir \
+            || exit 1; \
+            chmod 777 $(distdir)/$$subdir; \
+            (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
+              || exit 1; \
+          fi; \
+        done
+info-am:
+info: info-recursive
+dvi-am:
+dvi: dvi-recursive
+check-am: all-am
+check: check-recursive
+installcheck-am:
+installcheck: installcheck-recursive
+all-recursive-am: gsm_config.h
+        $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+install-exec-am:
+install-exec: install-exec-recursive
+
+install-data-am:
+install-data: install-data-recursive
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+install: install-recursive
+uninstall-am:
+uninstall: uninstall-recursive
+all-am: Makefile gsm_config.h
+all-redirect: all-recursive-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+installdirs: installdirs-recursive
+installdirs-am:
+
+
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+mostlyclean-am:  mostlyclean-hdr mostlyclean-tags mostlyclean-generic
+
+mostlyclean: mostlyclean-recursive
+
+clean-am:  clean-hdr clean-tags clean-generic mostlyclean-am
+
+clean: clean-recursive
+
+distclean-am:  distclean-hdr distclean-tags distclean-generic clean-am
+        -rm -f libtool
+
+distclean: distclean-recursive
+        -rm -f config.status
+
+maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-tags \
+                maintainer-clean-generic distclean-am
+        @echo &quot;This command is intended for maintainers to use;&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+
+maintainer-clean: maintainer-clean-recursive
+        -rm -f config.status
+
+.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
+install-data-recursive uninstall-data-recursive install-exec-recursive \
+uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
+all-recursive check-recursive installcheck-recursive info-recursive \
+dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
+maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
+distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
+dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
+install-exec-am install-exec install-data-am install-data install-am \
+install uninstall-am uninstall all-redirect all-am all installdirs-am \
+installdirs mostlyclean-generic distclean-generic clean-generic \
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
+
+
+all:
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1NEWS"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/NEWS (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/NEWS                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/NEWS        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+NEWS - 9.1.2000
+
+     Version 1.0 - first release with RPM support and binary packages
+
+NEWS - 15.11.1999
+
+     BETA version (details see ChangeLog)
+
+NEWS - 16.7.1999
+
+     initial release
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1README"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/README (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/README                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/README        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,166 @@
</span><ins>+INTRODUCTION
+
+     This distribution contains a library to access GSM mobile phones
+     through GSM modems or IrDA devices. Features include:
+
+     * modification of phonebooks stored in the mobile phone or on the 
+       SIM card
+
+     * reading and writing of SMS messages stored in the mobile phone
+
+     * sending and reception of SMS messages
+
+     Additionally, some simple command line programs are provided to
+     use these functionalities.
+
+
+REQUIREMENTS
+
+     You need a mobile phone that conforms to the GSM
+     standards ETSI GSM 07.07, ETSI GSM 07.05, and others.
+     Non-GSM mobile phones will not work! Additionally,
+     to access the mobile phone from the computer you will probably need an 
+     GSM modem (that would be a PC-CARD, usually). There might be some
+     mobile phones, however, that incorporate directly terminal
+     adapter (TA) functionality. Access via IrDA interfaces is also
+     reported to work.
+
+     If you want to compile the library yourself please also read
+     doc/README.developers.
+
+
+INSTALLATION
+
+     This distribution uses autoconf/automake/libtool. See the file
+     INSTALL for generic installation instructions. The default
+     commands for installation under /usr/local would be:
+
+       ./configure
+       make
+       make install
+
+     If there are any problems you can generate a debug version. See
+     doc/README.developers for details.
+
+
+AVAILABLE DOCUMENTATION
+
+     For the command line tools UNIX manual pages are available in the 
+     doc subdirectory of this distribution. These are installed by
+     default in the directories /usr/local/man1, man7, and man8.
+
+     See also the files doc/README.developers, doc/README.NLS and doc/FAQ.
+
+
+HARDWARE
+     
+     The following mobile phone/GSM modem combinations are reported to
+     be compatible in varying degrees with the current release:
+  
+     - Nokia 6150/Xircom REM56G.100
+     - Nokia 6150/Options &quot;GSM-Ready(R) Cellular-Only&quot; modem
+       from Option International
+     - Nokia 6210/- (Linux IrDA serial device)
+     - Nokia 8810/- (Linux IrDA serial device)
+     - Siemens S10D/Dr Neuhaus Gipsy Card GSM
+     - Siemens S25/- (Linux IrDA serial device)
+     - Siemens S35i/- (Linux IrDA serial device)
+     - Siemens S45
+     - Ericcson SH888/- (Linux IrDA serial device)
+     - Ericsson 6050102/GM 12 GSM module
+     - Ericsson T28s (firmware 000809 1106)
+     - Ericsson T20e (firmware R3A007)
+     - -/Siemens M20T (stand-alone GSM module)
+     - -/Wavecom WM02 GSM (stand-alone GSM module)
+     - Nokia 7110 (firware rev 4.80)/- (Linux IrDA serial device)
+     - Nokia 8290 (USA GSM 1900MHz)/- (Linux IrDA serial device)
+     - Falcom A2-1/- (stand-alone GSM module)
+     - Ericsson R320s/- (Linux IrDA serial device)
+     - Motorola Timeport 260/- (Serial cable and Linux IrDA serial device)
+     - Motorola Timeport 250/- (Linux IrDA serial device)
+     - Motorola Timeport P7389/- (Linux IrDA serial device)
+     - Nokia Cellular Card Phone RPE-1 GSM900 and
+     - Nokia Card Phone RPM-1 GSM900/1800
+     - Nokia Cardphone/Compaq iPAQ
+     - Omnipoint technologies Redhawk 2000 GSM modem
+     - Ericsson T28 (but one firmware revision is reported to have problems)
+     - Ericcson T65
+     - Ericcson T39m/Bluetooth
+     - Option International GlobeTrotter PCMCIA
+
+     Note 1: Some of the mobile phones have an integrated GSM modem
+     that can be accessed via the Linux IrDA drivers.
+
+     Note 2: Some of the abovementioned phones have still some glitches
+     with gsmlib (and I haven't tested them myself).
+
+     For the following phones I receive a lot of errors reports:
+
+     - Ericcson SH888: SMS function don't work with many firmware releases
+
+     This list is not exhaustive, there are probably many other types of
+     phone or GSM modem that work with gsmlib. Just try it and report back
+     to me!
+
+
+DISCLAIMER
+
+     Even though care has been taken in the design and implementation
+     of this software it can not be excluded that this software could
+     destroy data in your mobile phone or may even render your mobile
+     phone useless (by erroneous PIN settings, for example). The
+     author will not be held responsible legally, financially, or in any
+     other form for any kind of damage that might occur from using
+     this software.
+
+     This software is provided &quot;as is&quot; and without any expressed or implied
+     warranties, including, without limitation, the implied warranties of
+     merchantibility and fitness for any particular purpose.
+
+     If you are not ready to accept these conditions please don't use
+     this software.

+
+COPYING
+
+     This software is available on the LGPL (GNU LIBRARY GENERAL
+     PUBLIC LICENSE), ie. it is allowed to link 
+     the library to commercial programs.
+
+     See the file COPYING for details on the license.
+
+
+BUGS
+
+     There still seem to be some problems with IrDA devices under
+     Linux. There have been reports of gsmlib-based applications
+     (eg. gsmctl) hanging upon startup after initializing the serial port
+     /dev/ircomm. I would be thankful for any input on this problem.
+
+     If something does not work with your OS platform or the mobile/TA
+     combination please send a complete trace of the compilation or the
+     program execution that did fail. Make sure to compile with debugging 
+     information enabled. Otherwise it will not be possible for me to do
+     much about the problem. Send bug reports to the mailing list or
+     to software@pxh.de. I promise not to publish telephone numbers or other 
+     private information that might be contained in the execution traces
+     that you send me.
+
+
+MAILING LISTS
+
+     There are now two mailings lists available for announcements and
+     discussion of gsmlib-related issues (hosted on lists.over.net).
+     Refer to these pages for information on subscription procedures
+     and an archive of previous postings:
+
+       http://lists.over.net/mailman/listinfo/gsmlib-announce/
+         for announcements regarding GSMLIB
+
+       http://lists.over.net/mailman/listinfo/gsmlib-devel/
+         the GSMLIB development list
+
+
+AUTHOR
+
+     Peter Hofmann &lt;software@pxh.de&gt;.
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1TODO"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/TODO (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/TODO                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/TODO        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,289 @@
</span><ins>+This is my list of TODOs for development of this software (not
+necessarily in order of importance):
+
+(&quot;+&quot; = DONE)
+
++ handle:
+  &gt; --&gt; AT+COPS=?
+  &gt; &lt;-- 
+  &gt; &lt;-- +COPS: (1,&quot;AMENA&quot;,,&quot;21403&quot;),(3,&quot;MOVISTAR&quot;,,&quot;21407&quot;),
+  &gt; &lt;-- (3,&quot;E VODAFONE&quot;,,&quot;21401&quot;),,(0,1),(2)
+  &gt; &lt;-- 
+  &gt; &lt;-- OK
+  &gt; gsmctl[ERROR]: expected comma (at position 45 of string '(1,&quot;AMENA&quot;,,&quot;21403&quot;),(3,&quot;MOVISTAR&quot;,,&quot;21407&quot;),')
+
++ extend README and web site with names of working phones (Siemens S45,...)
+
++ add workaround:
+  &gt; &lt;ME0&gt;  Manufacturer: Nokia Mobile Phones
+  &gt; &lt;ME1&gt;  Model: 8290
+  &gt; &lt;ME2&gt;  Revision: SW5.22
+  &gt; &lt;ME3&gt;  Serial Number: 010070303406434
+  &gt; &lt;FUN&gt;  Functionality Level: 1
+  &gt; gsmctl[ERROR]: expected number, got '(2)'
+
+- add fork to gsmsmsd
+
++ document &quot;on&quot; and &quot;off&quot; operations of gsmctl
+
+- Just assume full functionality and issue AT+CGMF=0 if we haven't already 
+  done so for this MeTa.
+
++ make update po
+
++ add find function
+
++ specify exact location of manual files in /usr/man/man* in spec
+  file, so that erase does not try to delete these directories
+
++ update PO
+
++ add option to gsmsendsms/gsmsmsd to request delivery reports
+
++ Fix CBM reception in gsmsmsd, see testcb.cc program
+
++ fix gsmsmsd:
+  --&gt; AT+CNMI=?
+  &lt;-- 
+  &lt;-- +CNMI: (1),(1),(0),(0),(0)
+  &lt;-- 
+  &lt;-- OK
+  --&gt; AT+CNMI=1,0,0,0,0
+  &lt;-- 
+  &lt;-- +CME ERROR: 003
+  ./gsmsmsd[ERROR]: ME/TA error 'operation not allowed' (code 003)
+
++ Wenn ich den SMS-Speicher auslesen m\xF6chte, bricht gsmlib ab, weil der
+  Speicherplatz 1 auf der SIM-Karte nicht belegt ist. Das kann z.B.
+  passieren, wenn man Nachrichten im Handy l\xF6scht. Es kommt der Fehlercode
+  321 (Invalid memory index). Wie w\xE4re es, in der Leseroutine alle
+  ung\xFCltigen Pl\xE4tze zu ignorieren und solange zu lesen, bis die Anzahl der
+   vorhandenen Nachrichten im Speicher eingelesen ist?
+
++ document --charset option of gsmpb
+
++ Problems with PDUs with alphanumeric SCA, e.g.:
+  07911497941902F00414D0E474989D769F5DE4320839001040122151820000
+
++ &gt; 2. Ich kann mit meinem Nokia 6210 nicht den Telefon-SMS-Speicher
+    auslesen. Dies liegt an der Speicherwahl, die vor dem Auslesen
+    an das Telefon \xFCbermittelt wird. Von der gsmlib wird anscheinend
+    immer die Anzahl der Speicher aus dem &quot;CPMS=?&quot;-Befehl genommen 
+    (z.B. &quot;SM&quot;,&quot;SM&quot;,&quot;SM&quot;). Notwendig ist es aber nur, die erste
+    Position (zum Lesen und L\xF6schen) bzw. die ersten beiden 
+    Positionen (zum Schreiben) zu benutzen. 
+    Das Nokia 6210 unterst\xFCtzt aber an der ritten Stelle nur &quot;SM&quot;,
+    nicht &quot;ME&quot;. So kann ich die SMS im Telefon leider nicht
+    auslesen :-(
+
+- add option to gsmpb/gsmssmstore deletion to delete ALL entries
+
+- recheck Solaris port
+
++ cache character set settings in MeTa
+
++ add documentation for new gsmctl and gsmpb charset parameters
+
++ support characters sets other than GSM default alphabet for phone books
+
++ create non-existent files (gsmpb and gsmsmsstore)
+
++ rename libgsm to libgsmme, new major version 1
+
++ document sca/setsca operations/parameters in gsmctl
+
++ document option to set SCA in SMS-related apps
+
++ implement option to set SCA in SMS-related apps
+
++ convert NDEBUG test output from cout to cerr
+
++ test new gsm_unix_serial behaviour
+
++ apply checks for telephone number in gsm_sorted_phonebook
+
++ add interrupted() checks
+
++ check for gcc-2.95.2 in configure
+
+- document custom backend options of gsmpb (and gsmsmsstore)
+
+- /var/lock/LCK..modem
+
++ make gsmctl all continue even if there are some failures
+
++ CPIN thing
+
++ bring German translations up-to-date
+
++ document -I parameter
+
++ make chat routines robust against TAs that insist on echoing AT commands
+
++ ericsson sh 888:
+  &lt;-- AT+CLCK=&quot;P2&quot;,2,,1
+  &lt;-- 
+  +CME ERROR: 4
+  gsmctl[ERROR]: ME/TA error 'operation not supported' (code 4)
+
++ put README etc. into gsmlib package (not only devel)
+
++ make SMS decoding routines more robust against bad SMS (especially
+  premature end of PDU)
+
++ stop gsm_sorted_sms_store.cc from copying back SMS that came from
+  the SC (SMS_DELIVER, SMS_STATUS_REPORT, SMS_SUBMIT_REPORT). Their
+  message type is ambiguous and the ME may misinterpret them.
+
++ gsmsmsd: reinitialize modem every hour or so (signal termination implemented)
+
++ implement store, flush and spool options of gsmsmsd,
+  document them in man pages
+
++ test case for COPS answer numeric operator name in quotation marks
+  (testparser.cc)
+
++ retry when initializing TA (ATZ/ATE0 sequences)
+
++ correctly parse malformed SMS PDUs without SCA with Ericsson phone,
+  introduce Capability object for that. Ericsson ID:
+  &lt;ME0&gt;  Manufacturer: ERICSSON
+  &lt;ME1&gt;  Model: 6050102
+  &lt;ME2&gt;  Revision: 990225 1852 CXC112143
+  &lt;ME3&gt;  Serial Number: 520001690279310
+
++ Determine CPMS number of parameters for CPMS command (Ericsson
+  phone/GM12 GSM modem):
+  AT+CPMS?                                                                     
+  +CPMS: &quot;ME&quot;,0,10,&quot;ME&quot;,0,10         
+  AT+CPMS=?                               
+  +CPMS: (&quot;ME&quot;,&quot;SM&quot;),(&quot;ME&quot;,&quot;SM&quot;)          
+
++ accept string as numeric value when interpreting COPS=? response
+  (Ericsson phone + GSM12 GSM module)
+
++ accept string as numeric value when interpreting COPS? response
+  (Ericsson phone + GSM12 GSM module)
+
++ It would be nice if it was possible to send sms:es
+  via gsmsmsd as well, via a spool directory or a socket (or stdin, in which
+  case one can put another program in front of this program and then
+  feed it with outgoing messages any way one wants). That way the program
+  could be the gateway between programs and the sms network.  Now one has
+  to stop gsmsmsd to send an sms and that's not so elegant or write
+  ones own program.
+
++ gsmsmsd geht davon aus, das ein platz frei ist und benutzt nur diesen....
+  Wenn also eine SMS kommt, dann zieht es Sie raus, und l\xF6scht den
+  Speicherplatz.
+  Wenn aber die Karte voll ist, passiert gar nichts. F\xFCr eine automatisierte
+  umgebung ist das schlecht. besser w\xE4re es, bei startup von gsmsmsd alle
+  Speicherpl\xE4tze abzufr\xFChst\xFCcken, und die Action aufzurufen.
+
++ Ein RING bringt den gsmsmsd ziemlich heftig aus dem Tritt. Hab jetzt \xB4ne
+  Rufumleitung eingebaut.
+
++ Links section in homepage
+
++ AT+CNMI=? liefert bei mir folgendes zur\xFCck:
+  +CNMI: (0-3),(0-3),(0-2),0,(0-1)
+  Parameter 4 (&lt;ds&gt;) liefert also keine Liste sondern nur ein Int zur\xFCck, du
+  versuchts aber ein ( zu parsen.
+  Was sagt die ETSI-spec. dazu ?? Ist das konform ??
+
++ give name of command at beginning of synopsis in man pages
+
++ list combinations of mobiles phones/GSM modems in the README
+
++ test ALARM in case of timeout when writing or reading to TA
+
++ install headers in gsmlib subdirectory
+
++ RPM spec file
+
++ test index changes for sorted phonebook -&gt; write second test case
+
++ sort phone numbers the same way in gsm_sorted_sms_store and
+  gsm_sorted_phonebook
+
++ write glossary for all these nice abbreviations (TA, ME, SC, SME, TE)
+
++ HAVE_VSNPRINTF instead of HAVE_VPRINTF
+
++ internationalization of messages with GNU gettext. Files:
+  +gsm_at.cc               +gsm_parser.cc           +gsm_sorted_phonebook.cc
+  +gsm_error.cc            +gsm_phonebook.cc        +gsm_sorted_sms_store.cc
+  +gsm_event.cc            +gsm_sms.cc              +gsm_unix_serial.cc
+  +gsm_me_ta.cc            +gsm_sms_codec.cc        +gsm_util.cc
+  +gsm_nls.cc              +gsm_sms_store.cc
+  +gsmctl.cc               +gsmpb.cc                +gsmsendsms.cc
+  +gsmsmsd.cc              +gsmsmsstore.cc
+
++ implement indexed phonebook ops in gsmpb.cc
+
++ describe phonebook file format in gsmpb.man
+
++ update list of compatible hardware in README
+
++ all #include &lt;gsm_config.h&gt; must be enclosed in #ifdef's
+
++ check for getopt_long in configure
+
++ remove asserts regarding lengths of numeric data types, put them
+into configure script
+(string)
+
++ sort options in apps/*.cc alphabetically
+
++ in gsm_sorted_sms_store compare telephone numbers numerically
+
++ introduce -v option to gsmpb and gsmsmsstore to report execution
+statistics (gives a nicer feeling to users)
+
++ test new synchronization function in gsmpb program
+
++ implement equality operator for SMSSToreEntry
+
++ test 'make install'
+
++ implement operations in the gsmctl program
+
++ test operations in the gsmctl program
+
++ document operations in the gsmctl program
+
++ rewrite test cases (compare output)
+
++ write gsm_sorted_sms_store module (along the lines of gsm_sorted_phonebook)
+
++ complete gsmsmsstore program (using abovementioned modules)
+
+TODO low priority:
+
+- implement SMS text mode
+
+- The action command of gsmsmsd would be easier to make, if the program
+  sent the values in environment variables instead (except the user data
+  which could be sent on stdin).
+
++ Upgrade to latest autoheader, autoconf, libtool
+
+- provide German translations for manual pages
+
+- organize doc subdirectory for translated READMEs, manual pages
+
++ Win32 port
+
+- test: optimization when accessing phonebooks: use size information
+available via AT command to stop reading entries known to be empty (I
+cannot test this with my hardware since CPBS? is not fully supported)
+
+- make apps accept stdin or stdout
+
++ maybe strip leading and trailing whitespace from phonebook entries
+when reading them from ME/TA or file? (not done, perhaps users want to 
+achieve special effects with white space)
+
+- support international character sets (8-bit, 16-bit) in phonebook
+operations (I'd like to have input from users who need this)
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1acconfigh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acconfig.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acconfig.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acconfig.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+/* used by libtool*/
+#define PACKAGE 0
+
+/* used by libtool*/
+#define VERSION 0
+
+/* Define if getopt_long() available */
+#undef HAVE_GETOPT_LONG
+
+/* Define if alarm() available */
+#undef HAVE_ALARM
+
+/* Define if netinet/in.h header available */
+#undef HAVE_NETINET_IN_H
+
+/* Define if string.h header available */
+#undef HAVE_STRING_H
+
+/* Define for NLS */
+#undef ENABLE_NLS
+#undef HAVE_CATGETS
+#undef HAVE_GETTEXT
+#undef HAVE_LC_MESSAGES
+#undef HAVE_STPCPY
+
+/* Define LOCALEDIR */
+#define LOCALEDIR &quot;/usr/share/locale&quot;
+
+/* Define if libintl.h header available */
+#undef HAVE_LIBINTL_H
+
+/* Define if vsnprintf() function available */
+#undef HAVE_VSNPRINTF
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1acincludem4"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/acinclude.m4 ( => )</h4>
<pre class="diff"><span>
<span class="info">
Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/aclocal.m4
</span><span class="cx">===================================================================
</span><del>--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/aclocal.m4                                (rev 0)
</del><ins>+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/aclocal.m4        2010-01-06 14:07:02 UTC (rev 16173)
</ins><span class="lines">@@ -0,0 +1,9704 @@
</span><ins>+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005  Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+# codeset.m4 serial AM1 (gettext-0.10.40)
+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_LANGINFO_CODESET],
+[
+  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
+    [AC_TRY_LINK([#include &lt;langinfo.h&gt;],
+      [char* cs = nl_langinfo(CODESET);],
+      am_cv_langinfo_codeset=yes,
+      am_cv_langinfo_codeset=no)
+    ])
+  if test $am_cv_langinfo_codeset = yes; then
+    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
+      [Define if you have &lt;langinfo.h&gt; and nl_langinfo(CODESET).])
+  fi
+])
+
+# gettext.m4 serial 37 (gettext-0.14.4)
+dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
+dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.
+
+dnl Macro to add for using GNU gettext.
+
+dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
+dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
+dnl    default (if it is not specified or empty) is 'no-libtool'.
+dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
+dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
+dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
+dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
+dnl    depending on --{enable,disable}-{shared,static} and on the presence of
+dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
+dnl    $(top_builddir)/intl/libintl.a will be created.
+dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
+dnl    implementations (in libc or libintl) without the ngettext() function
+dnl    will be ignored.  If NEEDSYMBOL is specified and is
+dnl    'need-formatstring-macros', then GNU gettext implementations that don't
+dnl    support the ISO C 99 &lt;inttypes.h&gt; formatstring macros will be ignored.
+dnl INTLDIR is used to find the intl libraries.  If empty,
+dnl    the value `$(top_builddir)/intl/' is used.
+dnl
+dnl The result of the configuration is one of three cases:
+dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
+dnl    and used.
+dnl    Catalog format: GNU --&gt; install in $(datadir)
+dnl    Catalog extension: .mo after installation, .gmo in source tree
+dnl 2) GNU gettext has been found in the system's C library.
+dnl    Catalog format: GNU --&gt; install in $(datadir)
+dnl    Catalog extension: .mo after installation, .gmo in source tree
+dnl 3) No internationalization, always use English msgid.
+dnl    Catalog format: none
+dnl    Catalog extension: none
+dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
+dnl The use of .gmo is historical (it was needed to avoid overwriting the
+dnl GNU format catalogs when building on a platform with an X/Open gettext),
+dnl but we keep it in order not to force irrelevant filename changes on the
+dnl maintainers.
+dnl
+AC_DEFUN([AM_GNU_GETTEXT],
+[
+  dnl Argument checking.
+  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
+    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
+])])])])])
+  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
+    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
+])])])])
+  define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
+  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
+
+  AC_REQUIRE([AM_PO_SUBDIRS])dnl
+  ifelse(gt_included_intl, yes, [
+    AC_REQUIRE([AM_INTL_SUBDIR])dnl
+  ])
+
+  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+  AC_REQUIRE([AC_LIB_RPATH])
+
+  dnl Sometimes libintl requires libiconv, so first search for libiconv.
+  dnl Ideally we would do this search only after the
+  dnl      if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+  dnl        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
+  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
+  dnl the configure script would need to contain the same shell code
+  dnl again, outside any 'if'. There are two solutions:
+  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
+  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
+  dnl Since AC_PROVIDE_IFELSE is only in autoconf &gt;= 2.52 and not
+  dnl documented, we avoid it.
+  ifelse(gt_included_intl, yes, , [
+    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+  ])
+
+  dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
+  gt_INTL_MACOSX
+
+  dnl Set USE_NLS.
+  AM_NLS
+
+  ifelse(gt_included_intl, yes, [
+    BUILD_INCLUDED_LIBINTL=no
+    USE_INCLUDED_LIBINTL=no
+  ])
+  LIBINTL=
+  LTLIBINTL=
+  POSUB=
+
+  dnl If we use NLS figure out what method
+  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+    gt_use_preinstalled_gnugettext=no
+    ifelse(gt_included_intl, yes, [
+      AC_MSG_CHECKING([whether included gettext is requested])
+      AC_ARG_WITH(included-gettext,
+        [  --with-included-gettext use the GNU gettext library included here],
+        nls_cv_force_use_gnu_gettext=$withval,
+        nls_cv_force_use_gnu_gettext=no)
+      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
+
+      nls_cv_use_gnu_gettext=&quot;$nls_cv_force_use_gnu_gettext&quot;
+      if test &quot;$nls_cv_force_use_gnu_gettext&quot; != &quot;yes&quot;; then
+    ])
+        dnl User does not insist on using GNU NLS library.  Figure out what
+        dnl to use.  If GNU gettext is available we use this.  Else we have
+        dnl to fall back to GNU NLS library.
+
+        dnl Add a version number to the cache macros.
+        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
+        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
+        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
+
+        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
+         [AC_TRY_LINK([#include &lt;libintl.h&gt;
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern int *_nl_domain_bindings;],
+            [bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
+            gt_cv_func_gnugettext_libc=yes,
+            gt_cv_func_gnugettext_libc=no)])
+
+        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
+          dnl Sometimes libintl requires libiconv, so first search for libiconv.
+          ifelse(gt_included_intl, yes, , [
+            AM_ICONV_LINK
+          ])
+          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
+          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
+          dnl because that would add &quot;-liconv&quot; to LIBINTL and LTLIBINTL
+          dnl even if libiconv doesn't exist.
+          AC_LIB_LINKFLAGS_BODY([intl])
+          AC_CACHE_CHECK([for GNU gettext in libintl],
+            gt_cv_func_gnugettext_libintl,
+           [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+            CPPFLAGS=&quot;$CPPFLAGS $INCINTL&quot;
+            gt_save_LIBS=&quot;$LIBS&quot;
+            LIBS=&quot;$LIBS $LIBINTL&quot;
+            dnl Now see whether libintl exists and does not depend on libiconv.
+            AC_TRY_LINK([#include &lt;libintl.h&gt;
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+const char *_nl_expand_alias (const char *);],
+              [bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)],
+              gt_cv_func_gnugettext_libintl=yes,
+              gt_cv_func_gnugettext_libintl=no)
+            dnl Now see whether libintl exists and depends on libiconv.
+            if test &quot;$gt_cv_func_gnugettext_libintl&quot; != yes &amp;&amp; test -n &quot;$LIBICONV&quot;; then
+              LIBS=&quot;$LIBS $LIBICONV&quot;
+              AC_TRY_LINK([#include &lt;libintl.h&gt;
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+const char *_nl_expand_alias (const char *);],
+                [bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)],
+               [LIBINTL=&quot;$LIBINTL $LIBICONV&quot;
+                LTLIBINTL=&quot;$LTLIBINTL $LTLIBICONV&quot;
+                gt_cv_func_gnugettext_libintl=yes
+               ])
+            fi
+            CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+            LIBS=&quot;$gt_save_LIBS&quot;])
+        fi
+
+        dnl If an already present or preinstalled GNU gettext() is found,
+        dnl use it.  But if this macro is used in GNU gettext, and GNU
+        dnl gettext is already preinstalled in libintl, we update this
+        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
+        if test &quot;$gt_cv_func_gnugettext_libc&quot; = &quot;yes&quot; \
+           || { test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot; \
+                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-runtime \
+                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-tools; }; then
+          gt_use_preinstalled_gnugettext=yes
+        else
+          dnl Reset the values set by searching for libintl.
+          LIBINTL=
+          LTLIBINTL=
+          INCINTL=
+        fi
+
+    ifelse(gt_included_intl, yes, [
+        if test &quot;$gt_use_preinstalled_gnugettext&quot; != &quot;yes&quot;; then
+          dnl GNU gettext is not found in the C library.
+          dnl Fall back on included GNU gettext library.
+          nls_cv_use_gnu_gettext=yes
+        fi
+      fi
+
+      if test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+        dnl Mark actions used to generate GNU NLS library.
+        BUILD_INCLUDED_LIBINTL=yes
+        USE_INCLUDED_LIBINTL=yes
+        LIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV&quot;
+        LTLIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV&quot;
+        LIBS=`echo &quot; $LIBS &quot; | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+      fi
+
+      CATOBJEXT=
+      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+        dnl Mark actions to use GNU gettext tools.
+        CATOBJEXT=.gmo
+      fi
+    ])
+
+    if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
+      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+        dnl Some extra flags are needed during linking.
+        LIBINTL=&quot;$LIBINTL $INTL_MACOSX_LIBS&quot;
+        LTLIBINTL=&quot;$LTLIBINTL $INTL_MACOSX_LIBS&quot;
+      fi
+    fi
+
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+       || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+      AC_DEFINE(ENABLE_NLS, 1,
+        [Define to 1 if translation of program messages to the user's native language
+   is requested.])
+    else
+      USE_NLS=no
+    fi
+  fi
+
+  AC_MSG_CHECKING([whether to use NLS])
+  AC_MSG_RESULT([$USE_NLS])
+  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+    AC_MSG_CHECKING([where the gettext function comes from])
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+      if test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot;; then
+        gt_source=&quot;external libintl&quot;
+      else
+        gt_source=&quot;libc&quot;
+      fi
+    else
+      gt_source=&quot;included intl directory&quot;
+    fi
+    AC_MSG_RESULT([$gt_source])
+  fi
+
+  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+      if test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot;; then
+        AC_MSG_CHECKING([how to link with libintl])
+        AC_MSG_RESULT([$LIBINTL])
+        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
+      fi
+
+      dnl For backward compatibility. Some packages may be using this.
+      AC_DEFINE(HAVE_GETTEXT, 1,
+       [Define if the GNU gettext() function is already present or preinstalled.])
+      AC_DEFINE(HAVE_DCGETTEXT, 1,
+       [Define if the GNU dcgettext() function is already present or preinstalled.])
+    fi
+
+    dnl We need to process the po/ directory.
+    POSUB=po
+  fi
+
+  ifelse(gt_included_intl, yes, [
+    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
+    dnl to 'yes' because some of the testsuite requires it.
+    if test &quot;$PACKAGE&quot; = gettext-runtime || test &quot;$PACKAGE&quot; = gettext-tools; then
+      BUILD_INCLUDED_LIBINTL=yes
+    fi
+
+    dnl Make all variables we use known to autoconf.
+    AC_SUBST(BUILD_INCLUDED_LIBINTL)
+    AC_SUBST(USE_INCLUDED_LIBINTL)
+    AC_SUBST(CATOBJEXT)
+
+    dnl For backward compatibility. Some configure.ins may be using this.
+    nls_cv_header_intl=
+    nls_cv_header_libgt=
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    DATADIRNAME=share
+    AC_SUBST(DATADIRNAME)
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    INSTOBJEXT=.mo
+    AC_SUBST(INSTOBJEXT)
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    GENCAT=gencat
+    AC_SUBST(GENCAT)
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    INTLOBJS=
+    if test &quot;$USE_INCLUDED_LIBINTL&quot; = yes; then
+      INTLOBJS=&quot;\$(GETTOBJS)&quot;
+    fi
+    AC_SUBST(INTLOBJS)
+
+    dnl Enable libtool support if the surrounding package wishes it.
+    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
+    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
+  ])
+
+  dnl For backward compatibility. Some Makefiles may be using this.
+  INTLLIBS=&quot;$LIBINTL&quot;
+  AC_SUBST(INTLLIBS)
+
+  dnl Make all documented variables known to autoconf.
+  AC_SUBST(LIBINTL)
+  AC_SUBST(LTLIBINTL)
+  AC_SUBST(POSUB)
+])
+
+
+dnl Checks for all prerequisites of the intl subdirectory,
+dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
+dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
+AC_DEFUN([AM_INTL_SUBDIR],
+[
+  AC_REQUIRE([AC_PROG_INSTALL])dnl
+  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+  AC_REQUIRE([AC_PROG_CC])dnl
+  AC_REQUIRE([AC_CANONICAL_HOST])dnl
+  AC_REQUIRE([gt_GLIBC2])dnl
+  AC_REQUIRE([AC_PROG_RANLIB])dnl
+  AC_REQUIRE([AC_ISC_POSIX])dnl
+  AC_REQUIRE([AC_HEADER_STDC])dnl
+  AC_REQUIRE([AC_C_CONST])dnl
+  AC_REQUIRE([bh_C_SIGNED])dnl
+  AC_REQUIRE([AC_C_INLINE])dnl
+  AC_REQUIRE([AC_TYPE_OFF_T])dnl
+  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
+  AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
+  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
+  AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
+  AC_REQUIRE([gt_TYPE_WINT_T])dnl
+  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
+  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
+  AC_REQUIRE([gt_TYPE_INTMAX_T])
+  AC_REQUIRE([gt_PRINTF_POSIX])
+  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
+  AC_REQUIRE([AC_FUNC_MMAP])dnl
+  AC_REQUIRE([gl_GLIBC21])dnl
+  AC_REQUIRE([gt_INTDIV0])dnl
+  AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
+  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
+  AC_REQUIRE([gt_INTTYPES_PRI])dnl
+  AC_REQUIRE([gl_XSIZE])dnl
+  AC_REQUIRE([gt_INTL_MACOSX])dnl
+
+  AC_CHECK_TYPE([ptrdiff_t], ,
+    [AC_DEFINE([ptrdiff_t], [long],
+       [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
+    ])
+  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
+stdlib.h string.h unistd.h sys/param.h])
+  AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
+mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
+strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
+__fsetlocking])
+
+  dnl Use the _snprintf function only if it is declared (because on NetBSD it
+  dnl is defined as a weak alias of snprintf; we prefer to use the latter).
+  gt_CHECK_DECL(_snprintf, [#include &lt;stdio.h&gt;])
+  gt_CHECK_DECL(_snwprintf, [#include &lt;stdio.h&gt;])
+
+  dnl Use the *_unlocked functions only if they are declared.
+  dnl (because some of them were defined without being declared in Solaris
+  dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
+  dnl on Solaris 2.5.1 to run on Solaris 2.6).
+  dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
+  gt_CHECK_DECL(feof_unlocked, [#include &lt;stdio.h&gt;])
+  gt_CHECK_DECL(fgets_unlocked, [#include &lt;stdio.h&gt;])
+  gt_CHECK_DECL(getc_unlocked, [#include &lt;stdio.h&gt;])
+
+  case $gt_cv_func_printf_posix in
+    *yes) HAVE_POSIX_PRINTF=1 ;;
+    *) HAVE_POSIX_PRINTF=0 ;;
+  esac
+  AC_SUBST([HAVE_POSIX_PRINTF])
+  if test &quot;$ac_cv_func_asprintf&quot; = yes; then
+    HAVE_ASPRINTF=1
+  else
+    HAVE_ASPRINTF=0
+  fi
+  AC_SUBST([HAVE_ASPRINTF])
+  if test &quot;$ac_cv_func_snprintf&quot; = yes; then
+    HAVE_SNPRINTF=1
+  else
+    HAVE_SNPRINTF=0
+  fi
+  AC_SUBST([HAVE_SNPRINTF])
+  if test &quot;$ac_cv_func_wprintf&quot; = yes; then
+    HAVE_WPRINTF=1
+  else
+    HAVE_WPRINTF=0
+  fi
+  AC_SUBST([HAVE_WPRINTF])
+
+  AM_ICONV
+  AM_LANGINFO_CODESET
+  if test $ac_cv_header_locale_h = yes; then
+    gt_LC_MESSAGES
+  fi
+
+  if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
+    CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+  fi
+
+  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
+  dnl because plural.y uses bison specific features. It requires at least
+  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
+  dnl compile.
+  dnl bison is only needed for the maintainer (who touches plural.y). But in
+  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
+  dnl the rule in general Makefile. Now, some people carelessly touch the
+  dnl files or have a broken &quot;make&quot; program, hence the plural.c rule will
+  dnl sometimes fire. To avoid an error, defines BISON to &quot;:&quot; if it is not
+  dnl present or too old.
+  AC_CHECK_PROGS([INTLBISON], [bison])
+  if test -z &quot;$INTLBISON&quot;; then
+    ac_verc_fail=yes
+  else
+    dnl Found it, now check the version.
+    AC_MSG_CHECKING([version of bison])
+changequote(&lt;&lt;,&gt;&gt;)dnl
+    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+    case $ac_prog_version in
+      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
+      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+changequote([,])dnl
+         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
+      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
+    esac
+    AC_MSG_RESULT([$ac_prog_version])
+  fi
+  if test $ac_verc_fail = yes; then
+    INTLBISON=:
+  fi
+])
+
+
+dnl Checks for special options needed on MacOS X.
+dnl Defines INTL_MACOSX_LIBS.
+AC_DEFUN([gt_INTL_MACOSX],
+[
+  dnl Check for API introduced in MacOS X 10.2.
+  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
+    gt_cv_func_CFPreferencesCopyAppValue,
+    [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     AC_TRY_LINK([#include &lt;CFPreferences.h&gt;],
+       [CFPreferencesCopyAppValue(NULL, NULL)],
+       [gt_cv_func_CFPreferencesCopyAppValue=yes],
+       [gt_cv_func_CFPreferencesCopyAppValue=no])
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;])
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
+    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
+      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
+  fi
+  dnl Check for API introduced in MacOS X 10.3.
+  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
+    [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     AC_TRY_LINK([#include &lt;CFLocale.h&gt;], [CFLocaleCopyCurrent();],
+       [gt_cv_func_CFLocaleCopyCurrent=yes],
+       [gt_cv_func_CFLocaleCopyCurrent=no])
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;])
+  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
+      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
+  fi
+  INTL_MACOSX_LIBS=
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
+  fi
+  AC_SUBST([INTL_MACOSX_LIBS])
+])
+
+
+dnl gt_CHECK_DECL(FUNC, INCLUDES)
+dnl Check whether a function is declared.
+AC_DEFUN([gt_CHECK_DECL],
+[
+  AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
+    [AC_TRY_COMPILE([$2], [
+#ifndef $1
+  char *p = (char *) $1;
+#endif
+], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
+  if test $ac_cv_have_decl_$1 = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+  AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
+    [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
+])
+
+
+dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
+AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
+
+# glibc2.m4 serial 1
+dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Test for the GNU C Library, version 2.0 or newer.
+# From Bruno Haible.
+
+AC_DEFUN([gt_GLIBC2],
+  [
+    AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
+      ac_cv_gnu_library_2,
+      [AC_EGREP_CPP([Lucky GNU user],
+        [
+#include &lt;features.h&gt;
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ &gt;= 2)
+  Lucky GNU user
+ #endif
+#endif
+        ],
+        ac_cv_gnu_library_2=yes,
+        ac_cv_gnu_library_2=no)
+      ]
+    )
+    AC_SUBST(GLIBC2)
+    GLIBC2=&quot;$ac_cv_gnu_library_2&quot;
+  ]
+)
+
+# glibc21.m4 serial 3
+dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Test for the GNU C Library, version 2.1 or newer.
+# From Bruno Haible.
+
+AC_DEFUN([gl_GLIBC21],
+  [
+    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
+      ac_cv_gnu_library_2_1,
+      [AC_EGREP_CPP([Lucky GNU user],
+        [
+#include &lt;features.h&gt;
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
+  Lucky GNU user
+ #endif
+#endif
+        ],
+        ac_cv_gnu_library_2_1=yes,
+        ac_cv_gnu_library_2_1=no)
+      ]
+    )
+    AC_SUBST(GLIBC21)
+    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
+  ]
+)
+
+# iconv.m4 serial AM4 (gettext-0.11.3)
+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
+[
+  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+  AC_REQUIRE([AC_LIB_RPATH])
+
+  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+  dnl accordingly.
+  AC_LIB_LINKFLAGS_BODY([iconv])
+])
+
+AC_DEFUN([AM_ICONV_LINK],
+[
+  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
+  dnl those with the standalone portable GNU libiconv installed).
+
+  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+  dnl accordingly.
+  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+
+  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
+  dnl because if the user has installed libiconv and not disabled its use
+  dnl via --without-libiconv-prefix, he wants to use it. The first
+  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
+  am_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
+
+  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
+    am_cv_func_iconv=&quot;no, consider installing GNU libiconv&quot;
+    am_cv_lib_iconv=no
+    AC_TRY_LINK([#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;],
+      [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+       iconv(cd,NULL,NULL,NULL,NULL);
+       iconv_close(cd);],
+      am_cv_func_iconv=yes)
+    if test &quot;$am_cv_func_iconv&quot; != yes; then
+      am_save_LIBS=&quot;$LIBS&quot;
+      LIBS=&quot;$LIBS $LIBICONV&quot;
+      AC_TRY_LINK([#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;],
+        [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+         iconv(cd,NULL,NULL,NULL,NULL);
+         iconv_close(cd);],
+        am_cv_lib_iconv=yes
+        am_cv_func_iconv=yes)
+      LIBS=&quot;$am_save_LIBS&quot;
+    fi
+  ])
+  if test &quot;$am_cv_func_iconv&quot; = yes; then
+    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
+  fi
+  if test &quot;$am_cv_lib_iconv&quot; = yes; then
+    AC_MSG_CHECKING([how to link with libiconv])
+    AC_MSG_RESULT([$LIBICONV])
+  else
+    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
+    dnl either.
+    CPPFLAGS=&quot;$am_save_CPPFLAGS&quot;
+    LIBICONV=
+    LTLIBICONV=
+  fi
+  AC_SUBST(LIBICONV)
+  AC_SUBST(LTLIBICONV)
+])
+
+AC_DEFUN([AM_ICONV],
+[
+  AM_ICONV_LINK
+  if test &quot;$am_cv_func_iconv&quot; = yes; then
+    AC_MSG_CHECKING([for iconv declaration])
+    AC_CACHE_VAL(am_cv_proto_iconv, [
+      AC_TRY_COMPILE([
+#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+#if defined(__STDC__) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+], [], am_cv_proto_iconv_arg1=&quot;&quot;, am_cv_proto_iconv_arg1=&quot;const&quot;)
+      am_cv_proto_iconv=&quot;extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);&quot;])
+    am_cv_proto_iconv=`echo &quot;[$]am_cv_proto_iconv&quot; | tr -s ' ' | sed -e 's/( /(/'`
+    AC_MSG_RESULT([$]{ac_t:-
+         }[$]am_cv_proto_iconv)
+    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
+      [Define as const if the declaration of iconv() needs const.])
+  fi
+])
+
+# intdiv0.m4 serial 1 (gettext-0.11.3)
+dnl Copyright (C) 2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([gt_INTDIV0],
+[
+  AC_REQUIRE([AC_PROG_CC])dnl
+  AC_REQUIRE([AC_CANONICAL_HOST])dnl
+
+  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
+    gt_cv_int_divbyzero_sigfpe,
+    [
+      AC_TRY_RUN([
+#include &lt;stdlib.h&gt;
+#include &lt;signal.h&gt;
+
+static void
+#ifdef __cplusplus
+sigfpe_handler (int sig)
+#else
+sigfpe_handler (sig) int sig;
+#endif
+{
+  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
+  exit (sig != SIGFPE);
+}
+
+int x = 1;
+int y = 0;
+int z;
+int nan;
+
+int main ()
+{
+  signal (SIGFPE, sigfpe_handler);
+/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
+#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
+  signal (SIGTRAP, sigfpe_handler);
+#endif
+/* Linux/SPARC yields signal SIGILL.  */
+#if defined (__sparc__) &amp;&amp; defined (__linux__)
+  signal (SIGILL, sigfpe_handler);
+#endif
+
+  z = x / y;
+  nan = y / y;
+  exit (1);
+}
+], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
+        [
+          # Guess based on the CPU.
+          case &quot;$host_cpu&quot; in
+            alpha* | i[34567]86 | m68k | s390*)
+              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
+            *)
+              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
+          esac
+        ])
+    ])
+  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
+    *yes) value=1;;
+    *) value=0;;
+  esac
+  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
+    [Define if integer division by zero raises signal SIGFPE.])
+])
+
+# intmax.m4 serial 2 (gettext-0.14.2)
+dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+dnl Test whether the system has the 'intmax_t' type, but don't attempt to
+dnl find a replacement if it is lacking.
+
+AC_DEFUN([gt_TYPE_INTMAX_T],
+[
+  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
+  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
+  AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
+    [AC_TRY_COMPILE([
+#include &lt;stddef.h&gt;
+#include &lt;stdlib.h&gt;
+#if HAVE_STDINT_H_WITH_UINTMAX
+#include &lt;stdint.h&gt;
+#endif
+#if HAVE_INTTYPES_H_WITH_UINTMAX
+#include &lt;inttypes.h&gt;
+#endif
+], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
+  if test $gt_cv_c_intmax_t = yes; then
+    AC_DEFINE(HAVE_INTMAX_T, 1,
+      [Define if you have the 'intmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.])
+  fi
+])
+
+# inttypes-pri.m4 serial 1 (gettext-0.11.4)
+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+# Define PRI_MACROS_BROKEN if &lt;inttypes.h&gt; exists and defines the PRI*
+# macros to non-string values.  This is the case on AIX 4.3.3.
+
+AC_DEFUN([gt_INTTYPES_PRI],
+[
+  AC_REQUIRE([gt_HEADER_INTTYPES_H])
+  if test $gt_cv_header_inttypes_h = yes; then
+    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
+      gt_cv_inttypes_pri_broken,
+      [
+        AC_TRY_COMPILE([#include &lt;inttypes.h&gt;
+#ifdef PRId32
+char *p = PRId32;
+#endif
+], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
+      ])
+  fi
+  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
+    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
+      [Define if &lt;inttypes.h&gt; exists and defines unusable PRI* macros.])
+  fi
+])
+
+# inttypes.m4 serial 1 (gettext-0.11.4)
+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_INTTYPES_H if &lt;inttypes.h&gt; exists and doesn't clash with
+# &lt;sys/types.h&gt;.
+
+AC_DEFUN([gt_HEADER_INTTYPES_H],
+[
+  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
+  [
+    AC_TRY_COMPILE(
+      [#include &lt;sys/types.h&gt;
+#include &lt;inttypes.h&gt;],
+      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
+  ])
+  if test $gt_cv_header_inttypes_h = yes; then
+    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
+      [Define if &lt;inttypes.h&gt; exists and doesn't clash with &lt;sys/types.h&gt;.])
+  fi
+])
+
+# inttypes_h.m4 serial 6
+dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_INTTYPES_H_WITH_UINTMAX if &lt;inttypes.h&gt; exists,
+# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.
+
+AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
+[
+  AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
+  [AC_TRY_COMPILE(
+    [#include &lt;sys/types.h&gt;
+#include &lt;inttypes.h&gt;],
+    [uintmax_t i = (uintmax_t) -1;],
+    gl_cv_header_inttypes_h=yes,
+    gl_cv_header_inttypes_h=no)])
+  if test $gl_cv_header_inttypes_h = yes; then
+    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
+      [Define if &lt;inttypes.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
+       and declares uintmax_t. ])
+  fi
+])
+
+# lcmessage.m4 serial 4 (gettext-0.14.2)
+dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995.
+
+# Check whether LC_MESSAGES is available in &lt;locale.h&gt;.
+
+AC_DEFUN([gt_LC_MESSAGES],
+[
+  AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
+    [AC_TRY_LINK([#include &lt;locale.h&gt;], [return LC_MESSAGES],
+       gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
+  if test $gt_cv_val_LC_MESSAGES = yes; then
+    AC_DEFINE(HAVE_LC_MESSAGES, 1,
+      [Define if your &lt;locale.h&gt; file defines LC_MESSAGES.])
+  fi
+])
+
+# lib-ld.m4 serial 3 (gettext-0.13)
+dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Subroutines of libtool.m4,
+dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
+dnl with libtool.m4.
+
+dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
+AC_DEFUN([AC_LIB_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
+*GNU* | *'with BFD'*)
+  acl_cv_prog_gnu_ld=yes ;;
+*)
+  acl_cv_prog_gnu_ld=no ;;
+esac])
+with_gnu_ld=$acl_cv_prog_gnu_ld
+])
+
+dnl From libtool-1.4. Sets the variable LD.
+AC_DEFUN([AC_LIB_PROG_LD],
+[AC_ARG_WITH(gnu-ld,
+[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
+test &quot;$withval&quot; = no || with_gnu_ld=yes, with_gnu_ld=no)
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+ac_prog=ld
+if test &quot;$GCC&quot; = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  AC_MSG_CHECKING([for ld used by GCC])
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [[\\/]* | [A-Za-z]:[\\/]*)]
+      [re_direlt='/[^/][^/]*/\.\./']
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+  &quot;&quot;)
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test &quot;$with_gnu_ld&quot; = yes; then
+  AC_MSG_CHECKING([for GNU ld])
+else
+  AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(acl_cv_path_LD,
+[if test -z &quot;$LD&quot;; then
+  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR-:}&quot;
+  for ac_dir in $PATH; do
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+      acl_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some GNU ld's only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `&quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null` in
+      *GNU* | *'with BFD'*)
+        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break ;;
+      *)
+        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break ;;
+      esac
+    fi
+  done
+  IFS=&quot;$ac_save_ifs&quot;
+else
+  acl_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+fi])
+LD=&quot;$acl_cv_path_LD&quot;
+if test -n &quot;$LD&quot;; then
+  AC_MSG_RESULT($LD)
+else
+  AC_MSG_RESULT(no)
+fi
+test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_LIB_PROG_LD_GNU
+])
+
+# lib-link.m4 serial 6 (gettext-0.14.3)
+dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_PREREQ(2.50)
+
+dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
+dnl augments the CPPFLAGS variable.
+AC_DEFUN([AC_LIB_LINKFLAGS],
+[
+  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+  AC_REQUIRE([AC_LIB_RPATH])
+  define([Name],[translit([$1],[./-], [___])])
+  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
+    AC_LIB_LINKFLAGS_BODY([$1], [$2])
+    ac_cv_lib[]Name[]_libs=&quot;$LIB[]NAME&quot;
+    ac_cv_lib[]Name[]_ltlibs=&quot;$LTLIB[]NAME&quot;
+    ac_cv_lib[]Name[]_cppflags=&quot;$INC[]NAME&quot;
+  ])
+  LIB[]NAME=&quot;$ac_cv_lib[]Name[]_libs&quot;
+  LTLIB[]NAME=&quot;$ac_cv_lib[]Name[]_ltlibs&quot;
+  INC[]NAME=&quot;$ac_cv_lib[]Name[]_cppflags&quot;
+  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+  AC_SUBST([LIB]NAME)
+  AC_SUBST([LTLIB]NAME)
+  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
+  dnl results of this search when this library appears as a dependency.
+  HAVE_LIB[]NAME=yes
+  undefine([Name])
+  undefine([NAME])
+])
+
+dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
+dnl searches for libname and the libraries corresponding to explicit and
+dnl implicit dependencies, together with the specified include files and
+dnl the ability to compile and link the specified testcode. If found, it
+dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
+dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
+dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
+dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
+AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
+[
+  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+  AC_REQUIRE([AC_LIB_RPATH])
+  define([Name],[translit([$1],[./-], [___])])
+  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+
+  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
+  dnl accordingly.
+  AC_LIB_LINKFLAGS_BODY([$1], [$2])
+
+  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
+  dnl because if the user has installed lib[]Name and not disabled its use
+  dnl via --without-lib[]Name-prefix, he wants to use it.
+  ac_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+
+  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
+    ac_save_LIBS=&quot;$LIBS&quot;
+    LIBS=&quot;$LIBS $LIB[]NAME&quot;
+    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
+    LIBS=&quot;$ac_save_LIBS&quot;
+  ])
+  if test &quot;$ac_cv_lib[]Name&quot; = yes; then
+    HAVE_LIB[]NAME=yes
+    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
+    AC_MSG_CHECKING([how to link with lib[]$1])
+    AC_MSG_RESULT([$LIB[]NAME])
+  else
+    HAVE_LIB[]NAME=no
+    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
+    dnl $INC[]NAME either.
+    CPPFLAGS=&quot;$ac_save_CPPFLAGS&quot;
+    LIB[]NAME=
+    LTLIB[]NAME=
+  fi
+  AC_SUBST([HAVE_LIB]NAME)
+  AC_SUBST([LIB]NAME)
+  AC_SUBST([LTLIB]NAME)
+  undefine([Name])
+  undefine([NAME])
+])
+
+dnl Determine the platform dependent parameters needed to use rpath:
+dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
+dnl hardcode_direct, hardcode_minus_L.
+AC_DEFUN([AC_LIB_RPATH],
+[
+  dnl Tell automake &gt;= 1.10 to complain if config.rpath is missing.
+  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
+  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
+  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
+  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
+  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
+  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
+    CC=&quot;$CC&quot; GCC=&quot;$GCC&quot; LDFLAGS=&quot;$LDFLAGS&quot; LD=&quot;$LD&quot; with_gnu_ld=&quot;$with_gnu_ld&quot; \
+    ${CONFIG_SHELL-/bin/sh} &quot;$ac_aux_dir/config.rpath&quot; &quot;$host&quot; &gt; conftest.sh
+    . ./conftest.sh
+    rm -f ./conftest.sh
+    acl_cv_rpath=done
+  ])
+  wl=&quot;$acl_cv_wl&quot;
+  libext=&quot;$acl_cv_libext&quot;
+  shlibext=&quot;$acl_cv_shlibext&quot;
+  hardcode_libdir_flag_spec=&quot;$acl_cv_hardcode_libdir_flag_spec&quot;
+  hardcode_libdir_separator=&quot;$acl_cv_hardcode_libdir_separator&quot;
+  hardcode_direct=&quot;$acl_cv_hardcode_direct&quot;
+  hardcode_minus_L=&quot;$acl_cv_hardcode_minus_L&quot;
+  dnl Determine whether the user wants rpath handling at all.
+  AC_ARG_ENABLE(rpath,
+    [  --disable-rpath         do not hardcode runtime library paths],
+    :, enable_rpath=yes)
+])
+
+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+[
+  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+  dnl By default, look in $includedir and $libdir.
+  use_additional=yes
+  AC_LIB_WITH_FINAL_PREFIX([
+    eval additional_includedir=\&quot;$includedir\&quot;
+    eval additional_libdir=\&quot;$libdir\&quot;
+  ])
+  AC_LIB_ARG_WITH([lib$1-prefix],
+[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
+  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
+[
+    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+      use_additional=no
+    else
+      if test &quot;X$withval&quot; = &quot;X&quot;; then
+        AC_LIB_WITH_FINAL_PREFIX([
+          eval additional_includedir=\&quot;$includedir\&quot;
+          eval additional_libdir=\&quot;$libdir\&quot;
+        ])
+      else
+        additional_includedir=&quot;$withval/include&quot;
+        additional_libdir=&quot;$withval/lib&quot;
+      fi
+    fi
+])
+  dnl Search the library and its dependencies in $additional_libdir and
+  dnl $LDFLAGS. Using breadth-first-seach.
+  LIB[]NAME=
+  LTLIB[]NAME=
+  INC[]NAME=
+  rpathdirs=
+  ltrpathdirs=
+  names_already_handled=
+  names_next_round='$1 $2'
+  while test -n &quot;$names_next_round&quot;; do
+    names_this_round=&quot;$names_next_round&quot;
+    names_next_round=
+    for name in $names_this_round; do
+      already_handled=
+      for n in $names_already_handled; do
+        if test &quot;$n&quot; = &quot;$name&quot;; then
+          already_handled=yes
+          break
+        fi
+      done
+      if test -z &quot;$already_handled&quot;; then
+        names_already_handled=&quot;$names_already_handled $name&quot;
+        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
+        dnl or AC_LIB_HAVE_LINKFLAGS call.
+        uppername=`echo &quot;$name&quot; | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+        eval value=\&quot;\$HAVE_LIB$uppername\&quot;
+        if test -n &quot;$value&quot;; then
+          if test &quot;$value&quot; = yes; then
+            eval value=\&quot;\$LIB$uppername\&quot;
+            test -z &quot;$value&quot; || LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$value&quot;
+            eval value=\&quot;\$LTLIB$uppername\&quot;
+            test -z &quot;$value&quot; || LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }$value&quot;
+          else
+            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
+            dnl that this library doesn't exist. So just drop it.
+            :
+          fi
+        else
+          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
+          dnl and the already constructed $LIBNAME/$LTLIBNAME.
+          found_dir=
+          found_la=
+          found_so=
+          found_a=
+          if test $use_additional = yes; then
+            if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$additional_libdir/lib$name.$shlibext&quot;; then
+              found_dir=&quot;$additional_libdir&quot;
+              found_so=&quot;$additional_libdir/lib$name.$shlibext&quot;
+              if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                found_la=&quot;$additional_libdir/lib$name.la&quot;
+              fi
+            else
+              if test -f &quot;$additional_libdir/lib$name.$libext&quot;; then
+                found_dir=&quot;$additional_libdir&quot;
+                found_a=&quot;$additional_libdir/lib$name.$libext&quot;
+                if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                  found_la=&quot;$additional_libdir/lib$name.la&quot;
+                fi
+              fi
+            fi
+          fi
+          if test &quot;X$found_dir&quot; = &quot;X&quot;; then
+            for x in $LDFLAGS $LTLIB[]NAME; do
+              AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+              case &quot;$x&quot; in
+                -L*)
+                  dir=`echo &quot;X$x&quot; | sed -e 's/^X-L//'`
+                  if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$dir/lib$name.$shlibext&quot;; then
+                    found_dir=&quot;$dir&quot;
+                    found_so=&quot;$dir/lib$name.$shlibext&quot;
+                    if test -f &quot;$dir/lib$name.la&quot;; then
+                      found_la=&quot;$dir/lib$name.la&quot;
+                    fi
+                  else
+                    if test -f &quot;$dir/lib$name.$libext&quot;; then
+                      found_dir=&quot;$dir&quot;
+                      found_a=&quot;$dir/lib$name.$libext&quot;
+                      if test -f &quot;$dir/lib$name.la&quot;; then
+                        found_la=&quot;$dir/lib$name.la&quot;
+                      fi
+                    fi
+                  fi
+                  ;;
+              esac
+              if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+                break
+              fi
+            done
+          fi
+          if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+            dnl Found the library.
+            LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name&quot;
+            if test &quot;X$found_so&quot; != &quot;X&quot;; then
+              dnl Linking with a shared library. We attempt to hardcode its
+              dnl directory into the executable's runpath, unless it's the
+              dnl standard /usr/lib.
+              if test &quot;$enable_rpath&quot; = no || test &quot;X$found_dir&quot; = &quot;X/usr/lib&quot;; then
+                dnl No hardcoding is needed.
+                LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$found_so&quot;
+              else
+                dnl Use an explicit option to hardcode DIR into the resulting
+                dnl binary.
+                dnl Potentially add DIR to ltrpathdirs.
+                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+                haveit=
+                for x in $ltrpathdirs; do
+                  if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                    haveit=yes
+                    break
+                  fi
+                done
+                if test -z &quot;$haveit&quot;; then
+                  ltrpathdirs=&quot;$ltrpathdirs $found_dir&quot;
+                fi
+                dnl The hardcoding into $LIBNAME is system dependent.
+                if test &quot;$hardcode_direct&quot; = yes; then
+                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
+                  dnl resulting binary.
+                  LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$found_so&quot;
+                else
+                  if test -n &quot;$hardcode_libdir_flag_spec&quot; &amp;&amp; test &quot;$hardcode_minus_L&quot; = no; then
+                    dnl Use an explicit option to hardcode DIR into the resulting
+                    dnl binary.
+                    LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$found_so&quot;
+                    dnl Potentially add DIR to rpathdirs.
+                    dnl The rpathdirs will be appended to $LIBNAME at the end.
+                    haveit=
+                    for x in $rpathdirs; do
+                      if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      rpathdirs=&quot;$rpathdirs $found_dir&quot;
+                    fi
+                  else
+                    dnl Rely on &quot;-L$found_dir&quot;.
+                    dnl But don't add it if it's already contained in the LDFLAGS
+                    dnl or the already constructed $LIBNAME
+                    haveit=
+                    for x in $LDFLAGS $LIB[]NAME; do
+                      AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+                      if test &quot;X$x&quot; = &quot;X-L$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir&quot;
+                    fi
+                    if test &quot;$hardcode_minus_L&quot; != no; then
+                      dnl FIXME: Not sure whether we should use
+                      dnl &quot;-L$found_dir -l$name&quot; or &quot;-L$found_dir $found_so&quot;
+                      dnl here.
+                      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$found_so&quot;
+                    else
+                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
+                      dnl here, because this doesn't fit in flags passed to the
+                      dnl compiler. So give up. No hardcoding. This affects only
+                      dnl very old systems.
+                      dnl FIXME: Not sure whether we should use
+                      dnl &quot;-L$found_dir -l$name&quot; or &quot;-L$found_dir $found_so&quot;
+                      dnl here.
+                      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-l$name&quot;
+                    fi
+                  fi
+                fi
+              fi
+            else
+              if test &quot;X$found_a&quot; != &quot;X&quot;; then
+                dnl Linking with a static library.
+                LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$found_a&quot;
+              else
+                dnl We shouldn't come here, but anyway it's good to have a
+                dnl fallback.
+                LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name&quot;
+              fi
+            fi
+            dnl Assume the include files are nearby.
+            additional_includedir=
+            case &quot;$found_dir&quot; in
+              */lib | */lib/)
+                basedir=`echo &quot;X$found_dir&quot; | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+                additional_includedir=&quot;$basedir/include&quot;
+                ;;
+            esac
+            if test &quot;X$additional_includedir&quot; != &quot;X&quot;; then
+              dnl Potentially add $additional_includedir to $INCNAME.
+              dnl But don't add it
+              dnl   1. if it's the standard /usr/include,
+              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
+              dnl   3. if it's already present in $CPPFLAGS or the already
+              dnl      constructed $INCNAME,
+              dnl   4. if it doesn't exist as a directory.
+              if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
+                haveit=
+                if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                  if test -n &quot;$GCC&quot;; then
+                    case $host_os in
+                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                    esac
+                  fi
+                fi
+                if test -z &quot;$haveit&quot;; then
+                  for x in $CPPFLAGS $INC[]NAME; do
+                    AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+                    if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
+                      haveit=yes
+                      break
+                    fi
+                  done
+                  if test -z &quot;$haveit&quot;; then
+                    if test -d &quot;$additional_includedir&quot;; then
+                      dnl Really add $additional_includedir to $INCNAME.
+                      INC[]NAME=&quot;${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir&quot;
+                    fi
+                  fi
+                fi
+              fi
+            fi
+            dnl Look for dependencies.
+            if test -n &quot;$found_la&quot;; then
+              dnl Read the .la file. It defines the variables
+              dnl dlname, library_names, old_library, dependency_libs, current,
+              dnl age, revision, installed, dlopen, dlpreopen, libdir.
+              save_libdir=&quot;$libdir&quot;
+              case &quot;$found_la&quot; in
+                */* | *\\*) . &quot;$found_la&quot; ;;
+                *) . &quot;./$found_la&quot; ;;
+              esac
+              libdir=&quot;$save_libdir&quot;
+              dnl We use only dependency_libs.
+              for dep in $dependency_libs; do
+                case &quot;$dep&quot; in
+                  -L*)
+                    additional_libdir=`echo &quot;X$dep&quot; | sed -e 's/^X-L//'`
+                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
+                    dnl But don't add it
+                    dnl   1. if it's the standard /usr/lib,
+                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
+                    dnl   3. if it's already present in $LDFLAGS or the already
+                    dnl      constructed $LIBNAME,
+                    dnl   4. if it doesn't exist as a directory.
+                    if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
+                      haveit=
+                      if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                        if test -n &quot;$GCC&quot;; then
+                          case $host_os in
+                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                          esac
+                        fi
+                      fi
+                      if test -z &quot;$haveit&quot;; then
+                        haveit=
+                        for x in $LDFLAGS $LIB[]NAME; do
+                          AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                            dnl Really add $additional_libdir to $LIBNAME.
+                            LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                        haveit=
+                        for x in $LDFLAGS $LTLIB[]NAME; do
+                          AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                            dnl Really add $additional_libdir to $LTLIBNAME.
+                            LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                      fi
+                    fi
+                    ;;
+                  -R*)
+                    dir=`echo &quot;X$dep&quot; | sed -e 's/^X-R//'`
+                    if test &quot;$enable_rpath&quot; != no; then
+                      dnl Potentially add DIR to rpathdirs.
+                      dnl The rpathdirs will be appended to $LIBNAME at the end.
+                      haveit=
+                      for x in $rpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        rpathdirs=&quot;$rpathdirs $dir&quot;
+                      fi
+                      dnl Potentially add DIR to ltrpathdirs.
+                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+                      haveit=
+                      for x in $ltrpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        ltrpathdirs=&quot;$ltrpathdirs $dir&quot;
+                      fi
+                    fi
+                    ;;
+                  -l*)
+                    dnl Handle this in the next round.
+                    names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's/^X-l//'`
+                    ;;
+                  *.la)
+                    dnl Handle this in the next round. Throw away the .la's
+                    dnl directory; it is already contained in a preceding -L
+                    dnl option.
+                    names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+                    ;;
+                  *)
+                    dnl Most likely an immediate library name.
+                    LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$dep&quot;
+                    LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep&quot;
+                    ;;
+                esac
+              done
+            fi
+          else
+            dnl Didn't find the library; assume it is in the system directories
+            dnl known to the linker and runtime loader. (All the system
+            dnl directories known to the linker should also be known to the
+            dnl runtime loader, otherwise the system is severely misconfigured.)
+            LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-l$name&quot;
+            LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name&quot;
+          fi
+        fi
+      fi
+    done
+  done
+  if test &quot;X$rpathdirs&quot; != &quot;X&quot;; then
+    if test -n &quot;$hardcode_libdir_separator&quot;; then
+      dnl Weird platform: only the last -rpath option counts, the user must
+      dnl pass all path elements in one option. We can arrange that for a
+      dnl single library, but not when more than one $LIBNAMEs are used.
+      alldirs=
+      for found_dir in $rpathdirs; do
+        alldirs=&quot;${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir&quot;
+      done
+      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
+      acl_save_libdir=&quot;$libdir&quot;
+      libdir=&quot;$alldirs&quot;
+      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+      libdir=&quot;$acl_save_libdir&quot;
+      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
+    else
+      dnl The -rpath options are cumulative.
+      for found_dir in $rpathdirs; do
+        acl_save_libdir=&quot;$libdir&quot;
+        libdir=&quot;$found_dir&quot;
+        eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+        libdir=&quot;$acl_save_libdir&quot;
+        LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
+      done
+    fi
+  fi
+  if test &quot;X$ltrpathdirs&quot; != &quot;X&quot;; then
+    dnl When using libtool, the option that works for both libraries and
+    dnl executables is -R. The -R options are cumulative.
+    for found_dir in $ltrpathdirs; do
+      LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir&quot;
+    done
+  fi
+])
+
+dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
+dnl unless already present in VAR.
+dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
+dnl contains two or three consecutive elements that belong together.
+AC_DEFUN([AC_LIB_APPENDTOVAR],
+[
+  for element in [$2]; do
+    haveit=
+    for x in $[$1]; do
+      AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+      if test &quot;X$x&quot; = &quot;X$element&quot;; then
+        haveit=yes
+        break
+      fi
+    done
+    if test -z &quot;$haveit&quot;; then
+      [$1]=&quot;${[$1]}${[$1]:+ }$element&quot;
+    fi
+  done
+])
+
+# lib-prefix.m4 serial 4 (gettext-0.14.2)
+dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
+dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
+dnl require excessive bracketing.
+ifdef([AC_HELP_STRING],
+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
+[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
+
+dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
+dnl to access previously installed libraries. The basic assumption is that
+dnl a user will want packages to use other packages he previously installed
+dnl with the same --prefix option.
+dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
+dnl libraries, but is otherwise very convenient.
+AC_DEFUN([AC_LIB_PREFIX],
+[
+  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
+  AC_REQUIRE([AC_PROG_CC])
+  AC_REQUIRE([AC_CANONICAL_HOST])
+  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+  dnl By default, look in $includedir and $libdir.
+  use_additional=yes
+  AC_LIB_WITH_FINAL_PREFIX([
+    eval additional_includedir=\&quot;$includedir\&quot;
+    eval additional_libdir=\&quot;$libdir\&quot;
+  ])
+  AC_LIB_ARG_WITH([lib-prefix],
+[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
+  --without-lib-prefix    don't search for libraries in includedir and libdir],
+[
+    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+      use_additional=no
+    else
+      if test &quot;X$withval&quot; = &quot;X&quot;; then
+        AC_LIB_WITH_FINAL_PREFIX([
+          eval additional_includedir=\&quot;$includedir\&quot;
+          eval additional_libdir=\&quot;$libdir\&quot;
+        ])
+      else
+        additional_includedir=&quot;$withval/include&quot;
+        additional_libdir=&quot;$withval/lib&quot;
+      fi
+    fi
+])
+  if test $use_additional = yes; then
+    dnl Potentially add $additional_includedir to $CPPFLAGS.
+    dnl But don't add it
+    dnl   1. if it's the standard /usr/include,
+    dnl   2. if it's already present in $CPPFLAGS,
+    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
+    dnl   4. if it doesn't exist as a directory.
+    if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
+      haveit=
+      for x in $CPPFLAGS; do
+        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+        if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
+          haveit=yes
+          break
+        fi
+      done
+      if test -z &quot;$haveit&quot;; then
+        if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+          if test -n &quot;$GCC&quot;; then
+            case $host_os in
+              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+            esac
+          fi
+        fi
+        if test -z &quot;$haveit&quot;; then
+          if test -d &quot;$additional_includedir&quot;; then
+            dnl Really add $additional_includedir to $CPPFLAGS.
+            CPPFLAGS=&quot;${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir&quot;
+          fi
+        fi
+      fi
+    fi
+    dnl Potentially add $additional_libdir to $LDFLAGS.
+    dnl But don't add it
+    dnl   1. if it's the standard /usr/lib,
+    dnl   2. if it's already present in $LDFLAGS,
+    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
+    dnl   4. if it doesn't exist as a directory.
+    if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
+      haveit=
+      for x in $LDFLAGS; do
+        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+        if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+          haveit=yes
+          break
+        fi
+      done
+      if test -z &quot;$haveit&quot;; then
+        if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+          if test -n &quot;$GCC&quot;; then
+            case $host_os in
+              linux*) haveit=yes;;
+            esac
+          fi
+        fi
+        if test -z &quot;$haveit&quot;; then
+          if test -d &quot;$additional_libdir&quot;; then
+            dnl Really add $additional_libdir to $LDFLAGS.
+            LDFLAGS=&quot;${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir&quot;
+          fi
+        fi
+      fi
+    fi
+  fi
+])
+
+dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
+dnl acl_final_exec_prefix, containing the values to which $prefix and
+dnl $exec_prefix will expand at the end of the configure script.
+AC_DEFUN([AC_LIB_PREPARE_PREFIX],
+[
+  dnl Unfortunately, prefix and exec_prefix get only finally determined
+  dnl at the end of configure.
+  if test &quot;X$prefix&quot; = &quot;XNONE&quot;; then
+    acl_final_prefix=&quot;$ac_default_prefix&quot;
+  else
+    acl_final_prefix=&quot;$prefix&quot;
+  fi
+  if test &quot;X$exec_prefix&quot; = &quot;XNONE&quot;; then
+    acl_final_exec_prefix='${prefix}'
+  else
+    acl_final_exec_prefix=&quot;$exec_prefix&quot;
+  fi
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  eval acl_final_exec_prefix=\&quot;$acl_final_exec_prefix\&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+])
+
+dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
+dnl variables prefix and exec_prefix bound to the values they will have
+dnl at the end of the configure script.
+AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
+[
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  $1
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+])
+
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+
+# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
+
+
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
+# -----------------------------------------------------------
+# If this macro is not defined by Autoconf, define it here.
+m4_ifdef([AC_PROVIDE_IFELSE],
+         [],
+         [m4_define([AC_PROVIDE_IFELSE],
+                 [m4_ifdef([AC_PROVIDE_$1],
+                           [$2], [$3])])])
+
+
+# AC_PROG_LIBTOOL
+# ---------------
+AC_DEFUN([AC_PROG_LIBTOOL],
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
+  AC_PROVIDE_IFELSE([AC_PROG_CXX],
+    [AC_LIBTOOL_CXX],
+    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
+  ])])
+dnl And a similar setup for Fortran 77 support
+  AC_PROVIDE_IFELSE([AC_PROG_F77],
+    [AC_LIBTOOL_F77],
+    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
+])])
+
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
+  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+    [AC_LIBTOOL_GCJ],
+    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+      [AC_LIBTOOL_GCJ],
+      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
+        [AC_LIBTOOL_GCJ],
+      [ifdef([AC_PROG_GCJ],
+             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+       ifdef([A][M_PROG_GCJ],
+             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+       ifdef([LT_AC_PROG_GCJ],
+             [define([LT_AC_PROG_GCJ],
+                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
+])])# AC_PROG_LIBTOOL
+
+
+# _AC_PROG_LIBTOOL
+# ----------------
+AC_DEFUN([_AC_PROG_LIBTOOL],
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+# Prevent multiple expansion
+define([AC_PROG_LIBTOOL], [])
+])# _AC_PROG_LIBTOOL
+
+
+# AC_LIBTOOL_SETUP
+# ----------------
+AC_DEFUN([AC_LIBTOOL_SETUP],
+[AC_PREREQ(2.50)dnl
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_LD])dnl
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
+AC_REQUIRE([AC_PROG_NM])dnl
+
+AC_REQUIRE([AC_PROG_LN_S])dnl
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+AC_REQUIRE([AC_OBJEXT])dnl
+AC_REQUIRE([AC_EXEEXT])dnl
+dnl
+
+AC_LIBTOOL_SYS_MAX_CMD_LEN
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+AC_LIBTOOL_OBJDIR
+
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+_LT_AC_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e 1s/^X//'
+[sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g']
+
+# Same as above, but do not quote variable references.
+[double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g']
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm=&quot;rm -f&quot;
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
+ofile=&quot;$default_ofile&quot;
+with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
+
+AC_CHECK_TOOL(AR, ar, false)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+
+old_CC=&quot;$CC&quot;
+old_CFLAGS=&quot;$CFLAGS&quot;
+
+# Set sane defaults for various variables
+test -z &quot;$AR&quot; &amp;&amp; AR=ar
+test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
+test -z &quot;$AS&quot; &amp;&amp; AS=as
+test -z &quot;$CC&quot; &amp;&amp; CC=cc
+test -z &quot;$LTCC&quot; &amp;&amp; LTCC=$CC
+test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
+test -z &quot;$LD&quot; &amp;&amp; LD=ld
+test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
+test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
+test -z &quot;$NM&quot; &amp;&amp; NM=nm
+test -z &quot;$SED&quot; &amp;&amp; SED=sed
+test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
+test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
+test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n &quot;$RANLIB&quot;; then
+  case $host_os in
+  openbsd*)
+    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
+    ;;
+  *)
+    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+    ;;
+  esac
+  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
+fi
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
+    AC_PATH_MAGIC
+  fi
+  ;;
+esac
+
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
+enable_win32_dll=yes, enable_win32_dll=no)
+
+AC_ARG_ENABLE([libtool-lock],
+    [AC_HELP_STRING([--disable-libtool-lock],
+        [avoid locking (might break parallel builds)])])
+test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+
+AC_ARG_WITH([pic],
+    [AC_HELP_STRING([--with-pic],
+        [try to use only PIC/non-PIC objects @&lt;:@default=use both@:&gt;@])],
+    [pic_mode=&quot;$withval&quot;],
+    [pic_mode=default])
+test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+AC_LIBTOOL_LANG_C_CONFIG
+_LT_AC_TAGCONFIG
+])# AC_LIBTOOL_SETUP
+
+
+# _LT_AC_SYS_COMPILER
+# -------------------
+AC_DEFUN([_LT_AC_SYS_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_AC_SYS_COMPILER
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
+AC_DEFUN([_LT_CC_BASENAME],
+[for cc_temp in $1&quot;&quot;; do
+  case $cc_temp in
+    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+])
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+AC_DEFUN([_LT_COMPILER_BOILERPLATE],
+[ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+AC_DEFUN([_LT_LINKER_BOILERPLATE],
+[ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+])# _LT_LINKER_BOILERPLATE
+
+
+# _LT_AC_SYS_LIBPATH_AIX
+# ----------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi],[])
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+])# _LT_AC_SYS_LIBPATH_AIX
+
+
+# _LT_AC_SHELL_INIT(ARG)
+# ----------------------
+AC_DEFUN([_LT_AC_SHELL_INIT],
+[ifdef([AC_DIVERSION_NOTICE],
+             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+         [AC_DIVERT_PUSH(NOTICE)])
+$1
+AC_DIVERT_POP
+])# _LT_AC_SHELL_INIT
+
+
+# _LT_AC_PROG_ECHO_BACKSLASH
+# --------------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
+[_LT_AC_SHELL_INIT([
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+  # Remove one level of quotation (which was required for Make).
+  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+  ;;
+esac
+
+echo=${ECHO-echo}
+if test &quot;X[$]1&quot; = X--no-reexec; then
+  # Discard the --no-reexec flag, and continue.
+  shift
+elif test &quot;X[$]1&quot; = X--fallback-echo; then
+  # Avoid inline document here, it may be left over
+  :
+elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' ; then
+  # Yippee, $echo works!
+  :
+else
+  # Restart under the correct shell.
+  exec $SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
+fi
+
+if test &quot;X[$]1&quot; = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat &lt;&lt;EOF
+[$]*
+EOF
+  exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
+
+if test -z &quot;$ECHO&quot;; then
+if test &quot;X${echo_test_string+set}&quot; != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+  for cmd in 'sed 50q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 2q &quot;[$]0&quot;' 'echo test'; do
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+    if (echo_test_string=`eval $cmd`) 2&gt;/dev/null &amp;&amp;
+       echo_test_string=`eval $cmd` &amp;&amp;
+       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
+    then
+      break
+    fi
+  done
+fi
+
+if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+  :
+else
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
+  # backslashes.  This makes it impossible to quote backslashes using
+  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
+  #
+  # So, first we look for a working echo in the user's PATH.
+
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for dir in $PATH /usr/ucb; do
+    IFS=&quot;$lt_save_ifs&quot;
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+      echo=&quot;$dir/echo&quot;
+      break
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+
+  if test &quot;X$echo&quot; = Xecho; then
+    # We didn't find a better echo, so look for alternatives.
+    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+      # This shell has a builtin print -r that does the trick.
+      echo='print -r'
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
+         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+      # If we have ksh, try running configure again with it.
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+      export ORIGINAL_CONFIG_SHELL
+      CONFIG_SHELL=/bin/ksh
+      export CONFIG_SHELL
+      exec $CONFIG_SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
+    else
+      # Try using printf.
+      echo='printf %s\n'
+      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        # Cool, printf works
+        :
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+        export CONFIG_SHELL
+        SHELL=&quot;$CONFIG_SHELL&quot;
+        export SHELL
+        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
+      elif echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+           echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
+      else
+        # maybe with a smaller string...
+        prev=:
+
+        for cmd in 'echo test' 'sed 2q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 50q &quot;[$]0&quot;'; do
+          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
+          then
+            break
+          fi
+          prev=&quot;$cmd&quot;
+        done
+
+        if test &quot;$prev&quot; != 'sed 50q &quot;[$]0&quot;'; then
+          echo_test_string=`eval $prev`
+          export echo_test_string
+          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;[$]0&quot; ${1+&quot;[$]@&quot;}
+        else
+          # Oops.  We lost completely, so just stick with echo.
+          echo=echo
+        fi
+      fi
+    fi
+  fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL [$]0 --fallback-echo&quot;; then
+   ECHO=&quot;$CONFIG_SHELL \\\$\[$]0 --fallback-echo&quot;
+fi
+
+AC_SUBST(ECHO)
+])])# _LT_AC_PROG_ECHO_BACKSLASH
+
+
+# _LT_AC_LOCK
+# -----------
+AC_DEFUN([_LT_AC_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+    [AC_HELP_STRING([--disable-libtool-lock],
+        [avoid locking (might break parallel builds)])])
+test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+  # Find out which ABI we are using.
+  echo 'int i;' &gt; conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *ELF-32*)
+      HPUX_IA64_MODE=&quot;32&quot;
+      ;;
+    *ELF-64*)
+      HPUX_IA64_MODE=&quot;64&quot;
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+*-*-irix6*)
+  # Find out which ABI we are using.
+  echo '[#]line __oline__ &quot;configure&quot;' &gt; conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+   if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD=&quot;${LD-ld} -melf32bsmip&quot;
+      ;;
+    *N32*)
+      LD=&quot;${LD-ld} -melf32bmipn32&quot;
+      ;;
+    *64-bit*)
+      LD=&quot;${LD-ld} -melf64bmip&quot;
+      ;;
+    esac
+   else
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD=&quot;${LD-ld} -32&quot;
+      ;;
+    *N32*)
+      LD=&quot;${LD-ld} -n32&quot;
+      ;;
+    *64-bit*)
+      LD=&quot;${LD-ld} -64&quot;
+      ;;
+    esac
+   fi
+  fi
+  rm -rf conftest*
+  ;;
+
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
+  # Find out which ABI we are using.
+  echo 'int i;' &gt; conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.o` in
+    *32-bit*)
+      case $host in
+        x86_64-*linux*)
+          LD=&quot;${LD-ld} -m elf_i386&quot;
+          ;;
+        ppc64-*linux*|powerpc64-*linux*)
+          LD=&quot;${LD-ld} -m elf32ppclinux&quot;
+          ;;
+        s390x-*linux*)
+          LD=&quot;${LD-ld} -m elf_s390&quot;
+          ;;
+        sparc64-*linux*)
+          LD=&quot;${LD-ld} -m elf32_sparc&quot;
+          ;;
+      esac
+      ;;
+    *64-bit*)
+      case $host in
+        x86_64-*linux*)
+          LD=&quot;${LD-ld} -m elf_x86_64&quot;
+          ;;
+        ppc*-*linux*|powerpc*-*linux*)
+          LD=&quot;${LD-ld} -m elf64ppc&quot;
+          ;;
+        s390*-*linux*)
+          LD=&quot;${LD-ld} -m elf64_s390&quot;
+          ;;
+        sparc*-*linux*)
+          LD=&quot;${LD-ld} -m elf64_sparc&quot;
+          ;;
+      esac
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS=&quot;$CFLAGS&quot;
+  CFLAGS=&quot;$CFLAGS -belf&quot;
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+    [AC_LANG_PUSH(C)
+     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+     AC_LANG_POP])
+  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS=&quot;$SAVE_CFLAGS&quot;
+  fi
+  ;;
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+  AC_CHECK_TOOL(AS, as, false)
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
+  ;;
+  ])
+esac
+
+need_locks=&quot;$enable_libtool_lock&quot;
+
+])# _LT_AC_LOCK
+
+
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+#                [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
+[AC_REQUIRE([LT_AC_PROG_SED])
+AC_CACHE_CHECK([$1], [$2],
+  [$2=no
+  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;$3&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:__oline__: $lt_compile\&quot;&quot; &gt;&amp;AS_MESSAGE_LOG_FD)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;AS_MESSAGE_LOG_FD
+   echo &quot;$as_me:__oline__: \$? = $ac_status&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       $2=yes
+     fi
+   fi
+   $rm conftest*
+])
+
+if test x&quot;[$]$2&quot; = xyes; then
+    ifelse([$5], , :, [$5])
+else
+    ifelse([$6], , :, [$6])
+fi
+])# AC_LIBTOOL_COMPILER_OPTION
+
+
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+#                          [ACTION-SUCCESS], [ACTION-FAILURE])
+# ------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
+[AC_CACHE_CHECK([$1], [$2],
+  [$2=no
+   save_LDFLAGS=&quot;$LDFLAGS&quot;
+   LDFLAGS=&quot;$LDFLAGS $3&quot;
+   printf &quot;$lt_simple_link_test_code&quot; &gt; conftest.$ac_ext
+   if (eval $ac_link 2&gt;conftest.err) &amp;&amp; test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1&gt;&amp;AS_MESSAGE_LOG_FD
+       $echo &quot;X$_lt_linker_boilerplate&quot; | $Xsed &gt; conftest.exp
+       $SED '/^$/d' conftest.err &gt;conftest.er2
+       if diff conftest.exp conftest.er2 &gt;/dev/null; then
+         $2=yes
+       fi
+     else
+       $2=yes
+     fi
+   fi
+   $rm conftest*
+   LDFLAGS=&quot;$save_LDFLAGS&quot;
+])
+
+if test x&quot;[$]$2&quot; = xyes; then
+    ifelse([$4], , :, [$4])
+else
+    ifelse([$5], , :, [$5])
+fi
+])# AC_LIBTOOL_LINKER_OPTION
+
+
+# AC_LIBTOOL_SYS_MAX_CMD_LEN
+# --------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
+[# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+  i=0
+  teststring=&quot;ABCD&quot;
+
+  case $build_os in
+  msdosdjgpp*)
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
+    # during glob expansion).  Even if it were fixed, the result of this
+    # check would be larger than it should be.
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
+    ;;
+
+  gnu*)
+    # Under GNU Hurd, this test is not required because there is
+    # no limit to the length of command line arguments.
+    # Libtool will interpret -1 as no limit whatsoever
+    lt_cv_sys_max_cmd_len=-1;
+    ;;
+
+  cygwin* | mingw*)
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
+    # about 5 minutes as the teststring grows exponentially.
+    # Worse, since 9x/ME are not pre-emptively multitasking,
+    # you end up with a &quot;frozen&quot; computer, even though with patience
+    # the test eventually succeeds (with a max line length of 256k).
+    # Instead, let's just punt: use the minimum linelength reported by
+    # all of the supported platforms: 8192 (on NT/2K/XP).
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  amigaos*)
+    # On AmigaOS with pdksh, this test takes hours, literally.
+    # So we just punt and use a minimum line length of 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+    # This has been around since 386BSD, at least.  Likely further.
+    if test -x /sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+    elif test -x /usr/sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+    else
+      lt_cv_sys_max_cmd_len=65536        # usable default for all BSDs
+    fi
+    # And add a safety zone
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    ;;
+  osf*)
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+    # nice to cause kernel panics so lets avoid the loop below.
+    # First set a reasonable default.
+    lt_cv_sys_max_cmd_len=16384
+    #
+    if test -x /sbin/sysconfig; then
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
+      esac
+    fi
+    ;;
+  *)
+    # If test is not a shell built-in, we'll probably end up computing a
+    # maximum length that is only half of the actual maximum length, but
+    # we can't tell.
+    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+    while (test &quot;X&quot;`$SHELL [$]0 --fallback-echo &quot;X$teststring&quot; 2&gt;/dev/null` \
+               = &quot;XX$teststring&quot;) &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+            new_result=`expr &quot;X$teststring&quot; : &quot;.*&quot; 2&gt;&amp;1` &amp;&amp;
+            lt_cv_sys_max_cmd_len=$new_result &amp;&amp;
+            test $i != 17 # 1/2 MB should be enough
+    do
+      i=`expr $i + 1`
+      teststring=$teststring$teststring
+    done
+    teststring=
+    # Add a significant safety factor because C++ compilers can tack on massive
+    # amounts of additional arguments before passing them to the linker.
+    # It appears as though 1/2 is a usable value.
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+    ;;
+  esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+  AC_MSG_RESULT(none)
+fi
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
+
+
+# _LT_AC_CHECK_DLFCN
+# --------------------
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
+[AC_CHECK_HEADERS(dlfcn.h)dnl
+])# _LT_AC_CHECK_DLFCN
+
+
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ------------------------------------------------------------------
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+if test &quot;$cross_compiling&quot; = yes; then :
+  [$4]
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+[#line __oline__ &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}]
+EOF
+  if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;AS_MESSAGE_LOG_FD 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) $1 ;;
+      x$lt_dlneed_uscore) $2 ;;
+      x$lt_unknown|x*) $3 ;;
+    esac
+  else :
+    # compilation failed
+    $3
+  fi
+fi
+rm -fr conftest*
+])# _LT_AC_TRY_DLOPEN_SELF
+
+
+# AC_LIBTOOL_DLOPEN_SELF
+# -------------------
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+if test &quot;x$enable_dlopen&quot; != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=&quot;load_add_on&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32*)
+    lt_cv_dlopen=&quot;LoadLibrary&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  cygwin*)
+    lt_cv_dlopen=&quot;dlopen&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  darwin*)
+  # if libdl is installed we need to link against it
+    AC_CHECK_LIB([dl], [dlopen],
+                [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;],[
+    lt_cv_dlopen=&quot;dyld&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ])
+   ;;
+
+  *)
+    AC_CHECK_FUNC([shl_load],
+          [lt_cv_dlopen=&quot;shl_load&quot;],
+      [AC_CHECK_LIB([dld], [shl_load],
+            [lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;],
+        [AC_CHECK_FUNC([dlopen],
+              [lt_cv_dlopen=&quot;dlopen&quot;],
+          [AC_CHECK_LIB([dl], [dlopen],
+                [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;],
+            [AC_CHECK_LIB([svld], [dlopen],
+                  [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;],
+              [AC_CHECK_LIB([dld], [dld_link],
+                    [lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;])
+              ])
+            ])
+          ])
+        ])
+      ])
+    ;;
+  esac
+
+  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+
+    save_LDFLAGS=&quot;$LDFLAGS&quot;
+    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+
+    save_LIBS=&quot;$LIBS&quot;
+    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+
+    AC_CACHE_CHECK([whether a program can dlopen itself],
+          lt_cv_dlopen_self, [dnl
+          _LT_AC_TRY_DLOPEN_SELF(
+            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+    ])
+
+    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+              lt_cv_dlopen_self_static, [dnl
+          _LT_AC_TRY_DLOPEN_SELF(
+            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
+      ])
+    fi
+
+    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+    LDFLAGS=&quot;$save_LDFLAGS&quot;
+    LIBS=&quot;$save_LIBS&quot;
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+])# AC_LIBTOOL_DLOPEN_SELF
+
+
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
+# ---------------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+   $rm -r conftest 2&gt;/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:__oline__: $lt_compile\&quot;&quot; &gt;&amp;AS_MESSAGE_LOG_FD)
+   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err &gt;&amp;AS_MESSAGE_LOG_FD
+   echo &quot;$as_me:__oline__: \$? = $ac_status&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
+     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
+     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
+       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+     fi
+   fi
+   chmod u+w . 2&gt;&amp;AS_MESSAGE_LOG_FD
+   $rm conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
+   $rm out/* &amp;&amp; rmdir out
+   cd ..
+   rmdir conftest
+   $rm conftest*
+])
+])# AC_LIBTOOL_PROG_CC_C_O
+
+
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
+# -----------------------------------------
+# Check to see if we can do hard links to lock some files if needed
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
+[AC_REQUIRE([_LT_AC_LOCK])dnl
+
+hard_links=&quot;nottested&quot;
+if test &quot;$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  AC_MSG_CHECKING([if we can lock with hard links])
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  AC_MSG_RESULT([$hard_links])
+  if test &quot;$hard_links&quot; = no; then
+    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
+
+
+# AC_LIBTOOL_OBJDIR
+# -----------------
+AC_DEFUN([AC_LIBTOOL_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2&gt;/dev/null
+mkdir .libs 2&gt;/dev/null
+if test -d .libs; then
+  lt_cv_objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  lt_cv_objdir=_libs
+fi
+rmdir .libs 2&gt;/dev/null])
+objdir=$lt_cv_objdir
+])# AC_LIBTOOL_OBJDIR
+
+
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
+# ----------------------------------------------
+# Check hardcoding attributes.
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_AC_TAGVAR(hardcode_action, $1)=
+if test -n &quot;$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)&quot; || \
+   test -n &quot;$_LT_AC_TAGVAR(runpath_var, $1)&quot; || \
+   test &quot;X$_LT_AC_TAGVAR(hardcode_automatic, $1)&quot; = &quot;Xyes&quot; ; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$_LT_AC_TAGVAR(hardcode_direct, $1)&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)&quot; != no &amp;&amp;
+     test &quot;$_LT_AC_TAGVAR(hardcode_minus_L, $1)&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    _LT_AC_TAGVAR(hardcode_action, $1)=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
+
+if test &quot;$_LT_AC_TAGVAR(hardcode_action, $1)&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
+
+
+# AC_LIBTOOL_SYS_LIB_STRIP
+# ------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
+[striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+  AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+   darwin*)
+       if test -n &quot;$STRIP&quot; ; then
+         striplib=&quot;$STRIP -x&quot;
+         AC_MSG_RESULT([yes])
+       else
+  AC_MSG_RESULT([no])
+fi
+       ;;
+   *)
+  AC_MSG_RESULT([no])
+    ;;
+  esac
+fi
+])# AC_LIBTOOL_SYS_LIB_STRIP
+
+
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
+[AC_MSG_CHECKING([dynamic linker characteristics])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=&quot;.so&quot;
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+if test &quot;$GCC&quot; = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
+    # if the path contains &quot;;&quot; then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
+    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
+    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+  else
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+  fi
+else
+  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}${shared_ext}$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test &quot;$host_cpu&quot; = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[[01]] | aix4.[[01]].*)
+      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+           echo ' yes '
+           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+        :
+      else
+        can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+      # instead of lib&lt;name&gt;.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}${shared_ext}$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}${shared_ext}'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[[45]]*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  shrext_cmds=&quot;.dll&quot;
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$host_os in
+  yes,cygwin* | yes,mingw* | yes,pw32*)
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
+      ;;
+    mingw*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+      if echo &quot;$sys_lib_search_path_spec&quot; | [grep ';[c-zC-Z]:/' &gt;/dev/null]; then
+        # It is most probably a Windows format PATH printed by
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
+        # path with ; separators, and with drive letters. We can handle the
+        # drive letters (cygwin fileutils understands them), so leave them,
+        # especially as we might pass files found there to a mingw objdump,
+        # which wouldn't understand a cygwinified path. Ahh.
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+      fi
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+      ;;
+    esac
+    ;;
+
+  *)
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker=&quot;$host_os dyld&quot;
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  soname_spec='${libname}${release}${major}$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+  if test &quot;$GCC&quot; = yes; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
+  else
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+  fi
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[[123]]*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker=&quot;$host_os dld.so&quot;
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
+    else
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+   hppa*64*)
+     shrext_cmds='.sl'
+     hardcode_into_libs=yes
+     dynamic_linker=&quot;$host_os dld.sl&quot;
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+     soname_spec='${libname}${release}${shared_ext}$major'
+     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+     ;;
+   *)
+    shrext_cmds='.sl'
+    dynamic_linker=&quot;$host_os dld.sl&quot;
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+                version_type=linux
+        else
+                version_type=irix
+        fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsdelf*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='NetBSD ld.elf_so'
+  ;;
+
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+nto-qnx*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+  case $host_os in
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+    *)                         need_version=no  ;;
+  esac
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    case $host_os in
+      openbsd2.[[89]] | openbsd2.[[89]].*)
+        shlibpath_overrides_runpath=no
+        ;
+      *)
+        shlibpath_overrides_runpath=yes
+        ;
+      esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=&quot;.dll&quot;
+  need_lib_prefix=no
+  library_names_spec='$libname${shared_ext} $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+    soname_spec='$libname${shared_ext}.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
+
+
+# _LT_AC_TAGCONFIG
+# ----------------
+AC_DEFUN([_LT_AC_TAGCONFIG],
+[AC_ARG_WITH([tags],
+    [AC_HELP_STRING([--with-tags@&lt;:@=TAGS@:&gt;@],
+        [include additional configurations @&lt;:@automatic@:&gt;@])],
+    [tagnames=&quot;$withval&quot;])
+
+if test -f &quot;$ltmain&quot; &amp;&amp; test -n &quot;$tagnames&quot;; then
+  if test ! -f &quot;${ofile}&quot;; then
+    AC_MSG_WARN([output file `$ofile' does not exist])
+  fi
+
+  if test -z &quot;$LTCC&quot;; then
+    eval &quot;`$SHELL ${ofile} --config | grep '^LTCC='`&quot;
+    if test -z &quot;$LTCC&quot;; then
+      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
+    else
+      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
+    fi
+  fi
+
+  # Extract list of available tagged configurations in $ofile.
+  # Note that this assumes the entire list is on one line.
+  available_tags=`grep &quot;^available_tags=&quot; &quot;${ofile}&quot; | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\&quot;//g'`
+
+  lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+  for tagname in $tagnames; do
+    IFS=&quot;$lt_save_ifs&quot;
+    # Check whether tagname contains only valid characters
+    case `$echo &quot;X$tagname&quot; | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
+    &quot;&quot;) ;;
+    *)  AC_MSG_ERROR([invalid tag name: $tagname])
+        ;
+    esac
+
+    if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;${ofile}&quot; &gt; /dev/null
+    then
+      AC_MSG_ERROR([tag name \&quot;$tagname\&quot; already exists])
+    fi
+
+    # Update the list of available tags.
+    if test -n &quot;$tagname&quot;; then
+      echo appending configuration tag \&quot;$tagname\&quot; to $ofile
+
+      case $tagname in
+      CXX)
+        if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
+            ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
+            (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
+          AC_LIBTOOL_LANG_CXX_CONFIG
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      F77)
+        if test -n &quot;$F77&quot; &amp;&amp; test &quot;X$F77&quot; != &quot;Xno&quot;; then
+          AC_LIBTOOL_LANG_F77_CONFIG
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      GCJ)
+        if test -n &quot;$GCJ&quot; &amp;&amp; test &quot;X$GCJ&quot; != &quot;Xno&quot;; then
+          AC_LIBTOOL_LANG_GCJ_CONFIG
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      RC)
+        AC_LIBTOOL_LANG_RC_CONFIG
+        ;
+
+      *)
+        AC_MSG_ERROR([Unsupported tag name: $tagname])
+        ;
+      esac
+
+      # Append the new tag name to the list of available tags.
+      if test -n &quot;$tagname&quot; ; then
+      available_tags=&quot;$available_tags $tagname&quot;
+    fi
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+
+  # Now substitute the updated list of available tags.
+  if eval &quot;sed -e 's/^available_tags=.*\$/available_tags=\&quot;$available_tags\&quot;/' \&quot;$ofile\&quot; &gt; \&quot;${ofile}T\&quot;&quot;; then
+    mv &quot;${ofile}T&quot; &quot;$ofile&quot;
+    chmod +x &quot;$ofile&quot;
+  else
+    rm -f &quot;${ofile}T&quot;
+    AC_MSG_ERROR([unable to update list of available tagged configurations.])
+  fi
+fi
+])# _LT_AC_TAGCONFIG
+
+
+# AC_LIBTOOL_DLOPEN
+# -----------------
+# enable checks for dlopen support
+AC_DEFUN([AC_LIBTOOL_DLOPEN],
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
+])# AC_LIBTOOL_DLOPEN
+
+
+# AC_LIBTOOL_WIN32_DLL
+# --------------------
+# declare package support for building win32 DLLs
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
+])# AC_LIBTOOL_WIN32_DLL
+
+
+# AC_ENABLE_SHARED([DEFAULT])
+# ---------------------------
+# implement the --enable-shared flag
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_SHARED],
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([shared],
+    [AC_HELP_STRING([--enable-shared@&lt;:@=PKGS@:&gt;@],
+        [build shared libraries @&lt;:@default=]AC_ENABLE_SHARED_DEFAULT[@:&gt;@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_shared=yes ;;
+    no) enable_shared=no ;;
+    *)
+      enable_shared=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_shared=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac],
+    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
+])# AC_ENABLE_SHARED
+
+
+# AC_DISABLE_SHARED
+# -----------------
+#- set the default shared flag to --disable-shared
+AC_DEFUN([AC_DISABLE_SHARED],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_SHARED(no)
+])# AC_DISABLE_SHARED
+
+
+# AC_ENABLE_STATIC([DEFAULT])
+# ---------------------------
+# implement the --enable-static flag
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_STATIC],
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([static],
+    [AC_HELP_STRING([--enable-static@&lt;:@=PKGS@:&gt;@],
+        [build static libraries @&lt;:@default=]AC_ENABLE_STATIC_DEFAULT[@:&gt;@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_static=yes ;;
+    no) enable_static=no ;;
+    *)
+     enable_static=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_static=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac],
+    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
+])# AC_ENABLE_STATIC
+
+
+# AC_DISABLE_STATIC
+# -----------------
+# set the default static flag to --disable-static
+AC_DEFUN([AC_DISABLE_STATIC],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_STATIC(no)
+])# AC_DISABLE_STATIC
+
+
+# AC_ENABLE_FAST_INSTALL([DEFAULT])
+# ---------------------------------
+# implement the --enable-fast-install flag
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([fast-install],
+    [AC_HELP_STRING([--enable-fast-install@&lt;:@=PKGS@:&gt;@],
+    [optimize for fast installation @&lt;:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:&gt;@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_fast_install=yes ;;
+    no) enable_fast_install=no ;;
+    *)
+      enable_fast_install=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_fast_install=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac],
+    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
+])# AC_ENABLE_FAST_INSTALL
+
+
+# AC_DISABLE_FAST_INSTALL
+# -----------------------
+# set the default to --disable-fast-install
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_FAST_INSTALL(no)
+])# AC_DISABLE_FAST_INSTALL
+
+
+# AC_LIBTOOL_PICMODE([MODE])
+# --------------------------
+# implement the --with-pic flag
+# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
+AC_DEFUN([AC_LIBTOOL_PICMODE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+pic_mode=ifelse($#,1,$1,default)
+])# AC_LIBTOOL_PICMODE
+
+
+# AC_PROG_EGREP
+# -------------
+# This is predefined starting with Autoconf 2.54, so this conditional
+# definition can be removed once we require Autoconf 2.54 or later.
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
+   [if echo a | (grep -E '(a|b)') &gt;/dev/null 2&gt;&amp;1
+    then ac_cv_prog_egrep='grep -E'
+    else ac_cv_prog_egrep='egrep'
+    fi])
+ EGREP=$ac_cv_prog_egrep
+ AC_SUBST([EGREP])
+])])
+
+
+# AC_PATH_TOOL_PREFIX
+# -------------------
+# find a file program which can recognise shared library
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] |  ?:[\\/]*])
+  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word.  This closes a longstanding sh security hole.
+  ac_dummy=&quot;ifelse([$2], , $PATH, [$2])&quot;
+  for ac_dir in $ac_dummy; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f $ac_dir/$1; then
+      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/$1&quot;
+      if test -n &quot;$file_magic_test_file&quot;; then
+        case $deplibs_check_method in
+        &quot;file_magic &quot;*)
+          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
+          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
+            :
+          else
+            cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+          fi ;;
+        esac
+      fi
+      break
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
+  ;;
+esac])
+MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+if test -n &quot;$MAGIC_CMD&quot;; then
+  AC_MSG_RESULT($MAGIC_CMD)
+else
+  AC_MSG_RESULT(no)
+fi
+])# AC_PATH_TOOL_PREFIX
+
+
+# AC_PATH_MAGIC
+# -------------
+# find a file program which can recognise a shared library
+AC_DEFUN([AC_PATH_MAGIC],
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
+  if test -n &quot;$ac_tool_prefix&quot;; then
+    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+  else
+    MAGIC_CMD=:
+  fi
+fi
+])# AC_PATH_MAGIC
+
+
+# AC_PROG_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([AC_PROG_LD],
+[AC_ARG_WITH([gnu-ld],
+    [AC_HELP_STRING([--with-gnu-ld],
+        [assume the C compiler uses GNU ld @&lt;:@default=no@:&gt;@])],
+    [test &quot;$withval&quot; = no || with_gnu_ld=yes],
+    [with_gnu_ld=no])
+AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+ac_prog=ld
+if test &quot;$GCC&quot; = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  AC_MSG_CHECKING([for ld used by $CC])
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [[\\/]]* | ?:[[\\/]]*)
+      re_direlt='/[[^/]][[^/]]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+  &quot;&quot;)
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test &quot;$with_gnu_ld&quot; = yes; then
+  AC_MSG_CHECKING([for GNU ld])
+else
+  AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z &quot;$LD&quot;; then
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
+      *GNU* | *'with BFD'*)
+        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+        ;
+      *)
+        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+        ;
+      esac
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+else
+  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+fi])
+LD=&quot;$lt_cv_path_LD&quot;
+if test -n &quot;$LD&quot;; then
+  AC_MSG_RESULT($LD)
+else
+  AC_MSG_RESULT(no)
+fi
+test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_PROG_LD_GNU
+])# AC_PROG_LD
+
+
+# AC_PROG_LD_GNU
+# --------------
+AC_DEFUN([AC_PROG_LD_GNU],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# AC_PROG_LD_GNU
+
+
+# AC_PROG_LD_RELOAD_FLAG
+# ----------------------
+# find reload flag for linker
+#   -- PORTME Some linkers may need a different reload flag.
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+  lt_cv_ld_reload_flag,
+  [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+&quot;&quot; | &quot; &quot;*) ;;
+*) reload_flag=&quot; $reload_flag&quot; ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+  darwin*)
+    if test &quot;$GCC&quot; = yes; then
+      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
+    else
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
+    fi
+    ;;
+esac
+])# AC_PROG_LD_RELOAD_FLAG
+
+
+# AC_DEPLIBS_CHECK_METHOD
+# -----------------------
+# how to check for library dependencies
+#  -- PORTME fill in with the dynamic library characteristics
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
+[AC_CACHE_CHECK([how to recognise dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix4* | aix5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi[[45]]*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin*)
+  # func_win32_libid is a shell function defined in ltmain.sh
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+  lt_cv_file_magic_cmd='func_win32_libid'
+  ;;
+
+mingw* | pw32*)
+  # Base MSYS/MinGW do not provide the 'file' command needed by
+  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+freebsd* | kfreebsd*-gnu | dragonfly*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20* | hpux11*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  case $host_cpu in
+  ia64*)
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+    ;;
+  hppa*64*)
+    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+    ;;
+  *)
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+    ;;
+  esac
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $LD in
+  *-32|*&quot;-32 &quot;) libmagic=32-bit;;
+  *-n32|*&quot;-n32 &quot;) libmagic=N32;;
+  *-64|*&quot;-64 &quot;) libmagic=64-bit;;
+  *) libmagic=never-match;;
+  esac
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+nto-qnx*)
+  lt_cv_deplibs_check_method=unknown
+  ;;
+
+openbsd*)
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sco3.2v5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method=&quot;file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib&quot;
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+
+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown
+])# AC_DEPLIBS_CHECK_METHOD
+
+
+# AC_PROG_NM
+# ----------
+# find the pathname to a BSD-compatible name lister
+AC_DEFUN([AC_PROG_NM],
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
+[if test -n &quot;$NM&quot;; then
+  # Let the user override the test.
+  lt_cv_path_NM=&quot;$NM&quot;
+else
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    tmp_nm=&quot;$ac_dir/${ac_tool_prefix}nm&quot;
+    if test -f &quot;$tmp_nm&quot; || test -f &quot;$tmp_nm$ac_exeext&quot; ; then
+      # Check to see if the nm accepts a BSD-compat flag.
+      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+      #   nm: unknown option &quot;B&quot; ignored
+      # Tru64's nm complains that /dev/null is an invalid object file
+      case `&quot;$tmp_nm&quot; -B /dev/null 2&gt;&amp;1 | sed '1q'` in
+      */dev/null* | *'Invalid file or object type'*)
+        lt_cv_path_NM=&quot;$tmp_nm -B&quot;
+        break
+        ;;
+      *)
+        case `&quot;$tmp_nm&quot; -p /dev/null 2&gt;&amp;1 | sed '1q'` in
+        */dev/null*)
+          lt_cv_path_NM=&quot;$tmp_nm -p&quot;
+          break
+          ;;
+        *)
+          lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
+          continue # so that we can try to find one that supports BSD flags
+          ;;
+        esac
+      esac
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+  test -z &quot;$lt_cv_path_NM&quot; &amp;&amp; lt_cv_path_NM=nm
+fi])
+NM=&quot;$lt_cv_path_NM&quot;
+])# AC_PROG_NM
+
+
+# AC_CHECK_LIBM
+# -------------
+# check for math library
+AC_DEFUN([AC_CHECK_LIBM],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
+  # These system don't have libm, or don't need it
+  ;;
+*-ncr-sysv4.3*)
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=&quot;-lmw&quot;)
+  AC_CHECK_LIB(m, cos, LIBM=&quot;$LIBM -lm&quot;)
+  ;;
+*)
+  AC_CHECK_LIB(m, cos, LIBM=&quot;-lm&quot;)
+  ;;
+esac
+])# AC_CHECK_LIBM
+
+
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
+# -----------------------------------
+# sets LIBLTDL to the link flags for the libltdl convenience library and
+# LTDLINCL to the include flags for the libltdl header and adds
+# --enable-ltdl-convenience to the configure arguments.  Note that
+# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
+# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
+# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
+# (note the single quotes!).  If your package is not flat and you're not
+# using automake, define top_builddir and top_srcdir appropriately in
+# the Makefiles.
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+  case $enable_ltdl_convenience in
+  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
+  &quot;&quot;) enable_ltdl_convenience=yes
+      ac_configure_args=&quot;$ac_configure_args --enable-ltdl-convenience&quot; ;;
+  esac
+  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
+  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+  # For backwards non-gettext consistent compatibility...
+  INCLTDL=&quot;$LTDLINCL&quot;
+])# AC_LIBLTDL_CONVENIENCE
+
+
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
+# -----------------------------------
+# sets LIBLTDL to the link flags for the libltdl installable library and
+# LTDLINCL to the include flags for the libltdl header and adds
+# --enable-ltdl-install to the configure arguments.  Note that
+# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
+# and an installed libltdl is not found, it is assumed to be `libltdl'.
+# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
+# '${top_srcdir}/' (note the single quotes!).  If your package is not
+# flat and you're not using automake, define top_builddir and top_srcdir
+# appropriately in the Makefiles.
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+  AC_CHECK_LIB(ltdl, lt_dlinit,
+  [test x&quot;$enable_ltdl_install&quot; != xyes &amp;&amp; enable_ltdl_install=no],
+  [if test x&quot;$enable_ltdl_install&quot; = xno; then
+     AC_MSG_WARN([libltdl not installed, but installation disabled])
+   else
+     enable_ltdl_install=yes
+   fi
+  ])
+  if test x&quot;$enable_ltdl_install&quot; = x&quot;yes&quot;; then
+    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install&quot;
+    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
+    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+  else
+    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install=no&quot;
+    LIBLTDL=&quot;-lltdl&quot;
+    LTDLINCL=
+  fi
+  # For backwards non-gettext consistent compatibility...
+  INCLTDL=&quot;$LTDLINCL&quot;
+])# AC_LIBLTDL_INSTALLABLE
+
+
+# AC_LIBTOOL_CXX
+# --------------
+# enable support for C++ libraries
+AC_DEFUN([AC_LIBTOOL_CXX],
+[AC_REQUIRE([_LT_AC_LANG_CXX])
+])# AC_LIBTOOL_CXX
+
+
+# _LT_AC_LANG_CXX
+# ---------------
+AC_DEFUN([_LT_AC_LANG_CXX],
+[AC_REQUIRE([AC_PROG_CXX])
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
+])# _LT_AC_LANG_CXX
+
+# _LT_AC_PROG_CXXCPP
+# ---------------
+AC_DEFUN([_LT_AC_PROG_CXXCPP],
+[
+AC_REQUIRE([AC_PROG_CXX])
+if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
+    ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
+    (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
+  AC_PROG_CXXCPP
+fi
+])# _LT_AC_PROG_CXXCPP
+
+# AC_LIBTOOL_F77
+# --------------
+# enable support for Fortran 77 libraries
+AC_DEFUN([AC_LIBTOOL_F77],
+[AC_REQUIRE([_LT_AC_LANG_F77])
+])# AC_LIBTOOL_F77
+
+
+# _LT_AC_LANG_F77
+# ---------------
+AC_DEFUN([_LT_AC_LANG_F77],
+[AC_REQUIRE([AC_PROG_F77])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
+])# _LT_AC_LANG_F77
+
+
+# AC_LIBTOOL_GCJ
+# --------------
+# enable support for GCJ libraries
+AC_DEFUN([AC_LIBTOOL_GCJ],
+[AC_REQUIRE([_LT_AC_LANG_GCJ])
+])# AC_LIBTOOL_GCJ
+
+
+# _LT_AC_LANG_GCJ
+# ---------------
+AC_DEFUN([_LT_AC_LANG_GCJ],
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
+  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
+    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
+      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
+         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
+           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
+])# _LT_AC_LANG_GCJ
+
+
+# AC_LIBTOOL_RC
+# --------------
+# enable support for Windows resource files
+AC_DEFUN([AC_LIBTOOL_RC],
+[AC_REQUIRE([LT_AC_PROG_RC])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
+])# AC_LIBTOOL_RC
+
+
+# AC_LIBTOOL_LANG_C_CONFIG
+# ------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined.  Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
+[lt_save_CC=&quot;$CC&quot;
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}\n'
+
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+#
+# Check for any special shared library compilation flags.
+#
+_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
+if test &quot;$GCC&quot; = no; then
+  case $host_os in
+  sco3.2v5*)
+    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
+    ;;
+  esac
+fi
+if test -n &quot;$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)&quot;; then
+  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
+  if echo &quot;$old_CC $old_CFLAGS &quot; | grep &quot;[[         ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[         ]]&quot; &gt;/dev/null; then :
+  else
+    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
+    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
+  fi
+fi
+
+
+#
+# Check to make sure the static flag actually works.
+#
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
+  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
+  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
+  [],
+  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
+
+
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+AC_LIBTOOL_SYS_LIB_STRIP
+AC_LIBTOOL_DLOPEN_SELF($1)
+
+# Report which librarie types wil actually be built
+AC_MSG_CHECKING([if libtool supports shared libraries])
+AC_MSG_RESULT([$can_build_shared])
+
+AC_MSG_CHECKING([whether to build shared libraries])
+test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  if test -n &quot;$RANLIB&quot;; then
+    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+
+aix4* | aix5*)
+  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  fi
+    ;;
+esac
+AC_MSG_RESULT([$enable_shared])
+
+AC_MSG_CHECKING([whether to build static libraries])
+# Make sure either enable_shared or enable_static is yes.
+test &quot;$enable_shared&quot; = yes || enable_static=yes
+AC_MSG_RESULT([$enable_static])
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC=&quot;$lt_save_CC&quot;
+])# AC_LIBTOOL_LANG_C_CONFIG
+
+
+# AC_LIBTOOL_LANG_CXX_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined.  Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
+[AC_LANG_PUSH(C++)
+AC_REQUIRE([AC_PROG_CXX])
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
+
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(module_cmds, $1)=
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Dependencies to place before and after the object being linked:
+_LT_AC_TAGVAR(predep_objects, $1)=
+_LT_AC_TAGVAR(postdep_objects, $1)=
+_LT_AC_TAGVAR(predeps, $1)=
+_LT_AC_TAGVAR(postdeps, $1)=
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_LD=$LD
+lt_save_GCC=$GCC
+GCC=$GXX
+lt_save_with_gnu_ld=$with_gnu_ld
+lt_save_path_LD=$lt_cv_path_LD
+if test -n &quot;${lt_cv_prog_gnu_ldcxx+set}&quot;; then
+  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+else
+  unset lt_cv_prog_gnu_ld
+fi
+if test -n &quot;${lt_cv_path_LDCXX+set}&quot;; then
+  lt_cv_path_LD=$lt_cv_path_LDCXX
+else
+  unset lt_cv_path_LD
+fi
+test -z &quot;${LDCXX+set}&quot; || LD=$LDCXX
+CC=${CXX-&quot;c++&quot;}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+# We don't want -fno-exception wen compiling C++ code, so set the
+# no_builtin_flag separately
+if test &quot;$GXX&quot; = yes; then
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+else
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+fi
+
+if test &quot;$GXX&quot; = yes; then
+  # Set up default GNU C++ configuration
+
+  AC_PROG_LD
+
+  # Check if GNU C++ uses GNU ld as the underlying linker, since the
+  # archiving commands below assume that GNU ld is being used.
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+    #     investigate it a little bit more. (MM)
+    wlarc='${wl}'
+
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if eval &quot;`$CC -print-prog-name=ld` --help 2&gt;&amp;1&quot; | \
+        grep 'no-whole-archive' &gt; /dev/null; then
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+    else
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+    fi
+  else
+    with_gnu_ld=no
+    wlarc=
+
+    # A generic and very simple default shared library creation
+    # command for GNU C++ for the case where it uses the native
+    # linker, instead of GNU ld.  If possible, this setting should
+    # overridden to take advantage of the native linker features on
+    # the platform it is being used on.
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+  fi
+
+  # Commands to make compiler produce verbose output that lists
+  # what &quot;hidden&quot; libraries, object files and flags are used when
+  # linking a shared library.
+  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+else
+  GXX=no
+  with_gnu_ld=no
+  wlarc=
+fi
+
+# PORTME: fill in a description of your system's C++ link characteristics
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
+case $host_os in
+  aix3*)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  aix4* | aix5*)
+    if test &quot;$host_cpu&quot; = ia64; then
+      # On IA64, the linker does run time linking by default, so we don't
+      # have to do anything special.
+      aix_use_runtimelinking=no
+      exp_sym_flag='-Bexport'
+      no_entry_flag=&quot;&quot;
+    else
+      aix_use_runtimelinking=no
+
+      # Test if we are trying to use run time linking or normal
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+      # need to do runtime linking.
+      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
+        for ld_flag in $LDFLAGS; do
+          case $ld_flag in
+          *-brtl*)
+            aix_use_runtimelinking=yes
+            break
+            ;;
+          esac
+        done
+      esac
+
+      exp_sym_flag='-bexport'
+      no_entry_flag='-bnoentry'
+    fi
+
+    # When large executables or shared objects are built, AIX ld can
+    # have problems creating the table of contents.  If linking a library
+    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+    _LT_AC_TAGVAR(archive_cmds, $1)=''
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+    if test &quot;$GXX&quot; = yes; then
+      case $host_os in aix4.[[012]]|aix4.[[012]].*)
+      # We only want to do this on AIX 4.2 and lower, the check
+      # below for broken collect2 doesn't work under 4.3+
+        collect2name=`${CC} -print-prog-name=collect2`
+        if test -f &quot;$collect2name&quot; &amp;&amp; \
+           strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+        then
+          # We have reworked collect2
+          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+        else
+          # We have old collect2
+          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+          # It fails to find uninstalled libraries when the uninstalled
+          # path is not listed in the libpath.  Setting hardcode_minus_L
+          # to unsupported forces relinking
+          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+        fi
+      esac
+      shared_flag='-shared'
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+      fi
+    else
+      # not using gcc
+      if test &quot;$host_cpu&quot; = ia64; then
+        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+        # chokes on -Wl,-G. The following line is correct:
+        shared_flag='-G'
+      else
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag='${wl}-G'
+        else
+          shared_flag='${wl}-bM:SRE'
+        fi
+      fi
+    fi
+
+    # It seems that -bexpall does not export symbols beginning with
+    # underscore (_), so it is better to generate a list of symbols to export.
+    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # Warning - without using the other runtime loading flags (-brtl),
+      # -berok will link without error, but may produce a broken library.
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
+      # Determine the default libpath from the value encoded in an empty executable.
+      _LT_AC_SYS_LIBPATH_AIX
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+     else
+      if test &quot;$host_cpu&quot; = ia64; then
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=&quot;-z nodefs&quot;
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+      else
+        # Determine the default libpath from the value encoded in an empty executable.
+        _LT_AC_SYS_LIBPATH_AIX
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        # Warning - without using the other run time loading flags,
+        # -berok will link without error, but may produce a broken library.
+        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+        # -bexpall does not export symbols beginning with underscore (_)
+        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+        # Exported symbols can be pulled into shared objects from archives
+        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
+        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+        # This is similar to how AIX traditionally builds its shared libraries.
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+      fi
+    fi
+    ;;
+  chorus*)
+    case $cc_basename in
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+
+
+  cygwin* | mingw* | pw32*)
+    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+    # as there is no search path for DLLs.
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+    _LT_AC_TAGVAR(always_export_symbols, $1)=no
+    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+    if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+      # If the export-symbols file already is a .def file (1st line
+      # is EXPORTS), use it as is; otherwise, prepend...
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+        cp $export_symbols $output_objdir/$soname.def;
+      else
+        echo EXPORTS &gt; $output_objdir/$soname.def;
+        cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+      fi~
+      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+    else
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    fi
+  ;;
+      darwin* | rhapsody*)
+        case $host_os in
+        rhapsody* | darwin1.[[012]])
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[[012]])
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+        esac
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
+      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+    if test &quot;$GXX&quot; = yes ; then
+      lt_int_apple_cc_single_mod=no
+      output_verbose_link_cmd='echo'
+      if $CC -dumpspecs 2&gt;&amp;1 | $EGREP 'single_module' &gt;/dev/null ; then
+       lt_int_apple_cc_single_mod=yes
+      fi
+      if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      else
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+        fi
+        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+          if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          else
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          fi
+            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
+          ;;
+      esac
+      fi
+        ;;
+
+  dgux*)
+    case $cc_basename in
+      ec++*)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      ghcx*)
+        # Green Hills C++ Compiler
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+  freebsd[[12]]*)
+    # C++ shared libraries reported to be fairly broken before switch to ELF
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  freebsd-elf*)
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+    ;;
+  freebsd* | kfreebsd*-gnu | dragonfly*)
+    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+    # conventions
+    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+    ;;
+  gnu*)
+    ;;
+  hpux9*)
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+                                # but as the default
+                                # location of the library.
+
+    case $cc_basename in
+    CC*)
+      # FIXME: insert proper C++ library support
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      ;;
+    aCC*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      # Commands to make compiler produce verbose output that lists
+      # what &quot;hidden&quot; libraries, object files and flags are used when
+      # linking a shared library.
+      #
+      # There doesn't appear to be a way to prevent this compiler from
+      # explicitly linking system object files so we need to strip them
+      # from the output so that they don't get included in the library
+      # dependencies.
+      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;[[-]]L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+      ;;
+    *)
+      if test &quot;$GXX&quot; = yes; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+    esac
+    ;;
+  hpux10*|hpux11*)
+    if test $with_gnu_ld = no; then
+      case $host_cpu in
+      hppa*64*)
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+        ;;
+      ia64*)
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+        ;;
+      *)
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+        ;;
+      esac
+    fi
+    case $host_cpu in
+    hppa*64*)
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+    ia64*)
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+                                              # but as the default
+                                              # location of the library.
+      ;;
+    *)
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+                                              # but as the default
+                                              # location of the library.
+      ;;
+    esac
+
+    case $cc_basename in
+      CC*)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      aCC*)
+        case $host_cpu in
+        hppa*64*|ia64*)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+          ;;
+        *)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+          ;;
+        esac
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;\-L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes; then
+          if test $with_gnu_ld = no; then
+            case $host_cpu in
+            ia64*|hppa*64*)
+              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+              ;;
+            *)
+              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+              ;;
+            esac
+          fi
+        else
+          # FIXME: insert proper C++ library support
+          _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        fi
+        ;
+    esac
+    ;;
+  irix5* | irix6*)
+    case $cc_basename in
+      CC*)
+        # SGI C++
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -ar&quot;, where &quot;CC&quot; is the IRIX C++ compiler.  This is
+        # necessary to make sure instantiated templates are included
+        # in the archive.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes; then
+          if test &quot;$with_gnu_ld&quot; = no; then
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+          else
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` -o $lib'
+          fi
+        fi
+        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+        ;
+    esac
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+    ;;
+  linux*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2&gt;&amp;1 | grep &quot;ld&quot;`; rm -f libconftest$shared_ext; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+        ;
+      icpc*)
+        # Intel C++
+        with_gnu_ld=yes
+        # version 8.0 and above of icpc choke on multiply defined symbols
+        # if we add $predep_objects and $postdep_objects, however 7.1 and
+        # earlier do not add the objects themselves.
+        case `$CC -V 2&gt;&amp;1` in
+        *&quot;Version 7.&quot;*)
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+          ;;
+        *)  # Version 8.0 or newer
+          tmp_idyn=
+          case $host_cpu in
+            ia64*) tmp_idyn=' -i_dynamic';;
+          esac
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+          ;;
+        esac
+        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+        ;
+      pgCC*)
+        # Portland Group C++ compiler
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+        ;;
+      cxx*)
+        # Compaq C++
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+        runpath_var=LD_RUN_PATH
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld .*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+    esac
+    ;;
+  lynxos*)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  m88k*)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  mvs*)
+    case $cc_basename in
+      cxx*)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+      wlarc=
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+    fi
+    # Workaround some broken pre-1.5 toolchains
+    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep conftest.$objext | $SED -e &quot;s:-lgcc -lc -lgcc::&quot;'
+    ;;
+  openbsd2*)
+    # C++ shared libraries are fairly broken
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  openbsd*)
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+    fi
+    output_verbose_link_cmd='echo'
+    ;;
+  osf3*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+
+        ;
+      RCC*)
+        # Rational C++ 2.4.1
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      cxx*)
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+          # Commands to make compiler produce verbose output that lists
+          # what &quot;hidden&quot; libraries, object files and flags are used when
+          # linking a shared library.
+          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+        else
+          # FIXME: insert proper C++ library support
+          _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        fi
+        ;
+    esac
+    ;;
+  osf4* | osf5*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+        # Archives containing C++ object files must be created using
+        # the KAI C++ compiler.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
+        ;
+      RCC*)
+        # Rational C++ 2.4.1
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      cxx*)
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done~
+          echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version        $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
+          $rm $lib.exp'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+          # Commands to make compiler produce verbose output that lists
+          # what &quot;hidden&quot; libraries, object files and flags are used when
+          # linking a shared library.
+          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+        else
+          # FIXME: insert proper C++ library support
+          _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        fi
+        ;
+    esac
+    ;;
+  psos*)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  sco*)
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+    case $cc_basename in
+      CC*)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+  sunos4*)
+    case $cc_basename in
+      CC*)
+        # Sun C++ 4.x
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      lcc*)
+        # Lucid
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+  solaris*)
+    case $cc_basename in
+      CC*)
+        # Sun C++ 4.2, 5.x and Centerline C++
+        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
+        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+        case $host_os in
+          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+          *)
+            # The C++ compiler is used as linker so we must use $wl
+            # flag to pass the commands to the underlying system
+            # linker. We must also pass each convience library through
+            # to the system linker between allextract/defaultextract.
+            # The C++ compiler will combine linker options so we
+            # cannot just pass the convience library names through
+            # without $wl.
+            # Supported since Solaris 2.6 (maybe 2.5.1?)
+            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract'
+            ;;
+        esac
+        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+        output_verbose_link_cmd='echo'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -xar&quot;, where &quot;CC&quot; is the Sun C++ compiler.  This is
+        # necessary to make sure instantiated templates are included
+        # in the archive.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+        ;
+      gcx*)
+        # Green Hills C++ Compiler
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+        # The C++ compiler must be used to create the archive.
+        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+        ;
+      *)
+        # GNU C++ compiler with Solaris linker
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+          if $CC --version | grep -v '^2\.7' &gt; /dev/null; then
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+            # Commands to make compiler produce verbose output that lists
+            # what &quot;hidden&quot; libraries, object files and flags are used when
+            # linking a shared library.
+            output_verbose_link_cmd=&quot;$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
+          else
+            # g++ 2.7 appears to require `-G' NOT `-shared' on this
+            # platform.
+            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+            # Commands to make compiler produce verbose output that lists
+            # what &quot;hidden&quot; libraries, object files and flags are used when
+            # linking a shared library.
+            output_verbose_link_cmd=&quot;$CC -G $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
+          fi
+
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+        fi
+        ;
+    esac
+    ;;
+  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+    ;;
+  tandem*)
+    case $cc_basename in
+      NCC*)
+        # NonStop-UX NCC 3.20
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        ;
+    esac
+    ;;
+  vxworks*)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+  *)
+    # FIXME: insert proper C++ library support
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no
+    ;;
+esac
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
+test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
+
+_LT_AC_TAGVAR(GCC, $1)=&quot;$GXX&quot;
+_LT_AC_TAGVAR(LD, $1)=&quot;$LD&quot;
+
+AC_LIBTOOL_POSTDEP_PREDEP($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+AC_LIBTOOL_SYS_LIB_STRIP
+AC_LIBTOOL_DLOPEN_SELF($1)
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC=$lt_save_CC
+LDCXX=$LD
+LD=$lt_save_LD
+GCC=$lt_save_GCC
+with_gnu_ldcxx=$with_gnu_ld
+with_gnu_ld=$lt_save_with_gnu_ld
+lt_cv_path_LDCXX=$lt_cv_path_LD
+lt_cv_path_LD=$lt_save_path_LD
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+])# AC_LIBTOOL_LANG_CXX_CONFIG
+
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
+# ------------------------
+# Figure out &quot;hidden&quot; library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library.  It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+ifelse([$1],[],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
+int a;
+void foo (void) { a = 0; }
+EOF
+],[$1],[CXX],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
+class Foo
+{
+public:
+  Foo (void) { a = 0; }
+private:
+  int a;
+};
+EOF
+],[$1],[F77],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
+      subroutine foo
+      implicit none
+      integer*4 a
+      a=0
+      return
+      end
+EOF
+],[$1],[GCJ],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
+public class foo {
+  private int a;
+  public void bar (void) {
+    a = 0;
+  }
+};
+EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+  # Parse the compiler output and extract the necessary
+  # objects, libraries and library flags.
+
+  # Sentinel used to keep track of whether or not we are before
+  # the conftest object file.
+  pre_test_object_deps_done=no
+
+  # The `*' in the case matches for architectures that use `case' in
+  # $output_verbose_cmd can trigger glob expansion during the loop
+  # eval without this substitution.
+  output_verbose_link_cmd=`$echo &quot;X$output_verbose_link_cmd&quot; | $Xsed -e &quot;$no_glob_subst&quot;`
+
+  for p in `eval $output_verbose_link_cmd`; do
+    case $p in
+
+    -L* | -R* | -l*)
+       # Some compilers place space between &quot;-{L,R}&quot; and the path.
+       # Remove the space.
+       if test $p = &quot;-L&quot; \
+          || test $p = &quot;-R&quot;; then
+         prev=$p
+         continue
+       else
+         prev=
+       fi
+
+       if test &quot;$pre_test_object_deps_done&quot; = no; then
+         case $p in
+         -L* | -R*)
+           # Internal compiler library paths should come after those
+           # provided the user.  The postdeps already come after the
+           # user supplied libs so there is no need to process them.
+           if test -z &quot;$_LT_AC_TAGVAR(compiler_lib_search_path, $1)&quot;; then
+             _LT_AC_TAGVAR(compiler_lib_search_path, $1)=&quot;${prev}${p}&quot;
+           else
+             _LT_AC_TAGVAR(compiler_lib_search_path, $1)=&quot;${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}&quot;
+           fi
+           ;;
+         # The &quot;-l&quot; case would never come before the object being
+         # linked, so don't bother handling this case.
+         esac
+       else
+         if test -z &quot;$_LT_AC_TAGVAR(postdeps, $1)&quot;; then
+           _LT_AC_TAGVAR(postdeps, $1)=&quot;${prev}${p}&quot;
+         else
+           _LT_AC_TAGVAR(postdeps, $1)=&quot;${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}&quot;
+         fi
+       fi
+       ;;
+
+    *.$objext)
+       # This assumes that the test object file only shows up
+       # once in the compiler output.
+       if test &quot;$p&quot; = &quot;conftest.$objext&quot;; then
+         pre_test_object_deps_done=yes
+         continue
+       fi
+
+       if test &quot;$pre_test_object_deps_done&quot; = no; then
+         if test -z &quot;$_LT_AC_TAGVAR(predep_objects, $1)&quot;; then
+           _LT_AC_TAGVAR(predep_objects, $1)=&quot;$p&quot;
+         else
+           _LT_AC_TAGVAR(predep_objects, $1)=&quot;$_LT_AC_TAGVAR(predep_objects, $1) $p&quot;
+         fi
+       else
+         if test -z &quot;$_LT_AC_TAGVAR(postdep_objects, $1)&quot;; then
+           _LT_AC_TAGVAR(postdep_objects, $1)=&quot;$p&quot;
+         else
+           _LT_AC_TAGVAR(postdep_objects, $1)=&quot;$_LT_AC_TAGVAR(postdep_objects, $1) $p&quot;
+         fi
+       fi
+       ;;
+
+    *) ;; # Ignore the rest.
+
+    esac
+  done
+
+  # Clean up.
+  rm -f a.out a.exe
+else
+  echo &quot;libtool.m4: error: problem compiling $1 test program&quot;
+fi
+
+$rm -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+ifelse([$1],[CXX],
+[case $host_os in
+solaris*)
+  case $cc_basename in
+  CC*)
+    # Adding this requires a known-good setup of shared libraries for
+    # Sun compiler versions before 5.6, else PIC objects from an old
+    # archive will be linked into the output, leading to subtle bugs.
+    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
+    ;;
+  esac
+esac
+])
+
+case &quot; $_LT_AC_TAGVAR(postdeps, $1) &quot; in
+*&quot; -lc &quot;*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+])# AC_LIBTOOL_POSTDEP_PREDEP
+
+# AC_LIBTOOL_LANG_F77_CONFIG
+# ------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined.  Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
+[AC_REQUIRE([AC_PROG_F77])
+AC_LANG_PUSH(Fortran 77)
+
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(module_cmds, $1)=
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;      subroutine t\n      return\n      end\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=&quot;      program t\n      end\n&quot;
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${F77-&quot;f77&quot;}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+AC_MSG_CHECKING([if libtool supports shared libraries])
+AC_MSG_RESULT([$can_build_shared])
+
+AC_MSG_CHECKING([whether to build shared libraries])
+test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  if test -n &quot;$RANLIB&quot;; then
+    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+aix4* | aix5*)
+  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  fi
+  ;;
+esac
+AC_MSG_RESULT([$enable_shared])
+
+AC_MSG_CHECKING([whether to build static libraries])
+# Make sure either enable_shared or enable_static is yes.
+test &quot;$enable_shared&quot; = yes || enable_static=yes
+AC_MSG_RESULT([$enable_static])
+
+test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
+
+_LT_AC_TAGVAR(GCC, $1)=&quot;$G77&quot;
+_LT_AC_TAGVAR(LD, $1)=&quot;$LD&quot;
+
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+AC_LIBTOOL_SYS_LIB_STRIP
+
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC=&quot;$lt_save_CC&quot;
+])# AC_LIBTOOL_LANG_F77_CONFIG
+
+
+# AC_LIBTOOL_LANG_GCJ_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined.  Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;class foo {}\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${GCJ-&quot;gcj&quot;}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+AC_LIBTOOL_SYS_LIB_STRIP
+AC_LIBTOOL_DLOPEN_SELF($1)
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_RESTORE
+CC=&quot;$lt_save_CC&quot;
+])# AC_LIBTOOL_LANG_GCJ_CONFIG
+
+
+# AC_LIBTOOL_LANG_RC_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the Windows resource compiler are
+# suitably defined.  Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM &quot;&amp;Soup&quot;, 100, CHECKED }\n'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=&quot;$lt_simple_compile_test_code&quot;
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${RC-&quot;windres&quot;}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_RESTORE
+CC=&quot;$lt_save_CC&quot;
+])# AC_LIBTOOL_LANG_RC_CONFIG
+
+
+# AC_LIBTOOL_CONFIG([TAGNAME])
+# ----------------------------
+# If TAGNAME is not passed, then create an initial libtool script
+# with a default configuration from the untagged config vars.  Otherwise
+# add code to config.status for appending the configuration named by
+# TAGNAME from the matching tagged config vars.
+AC_DEFUN([AC_LIBTOOL_CONFIG],
+[# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    _LT_AC_TAGVAR(compiler, $1) \
+    _LT_AC_TAGVAR(CC, $1) \
+    _LT_AC_TAGVAR(LD, $1) \
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
+    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
+    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
+    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
+    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
+    _LT_AC_TAGVAR(old_archive_cmds, $1) \
+    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
+    _LT_AC_TAGVAR(predep_objects, $1) \
+    _LT_AC_TAGVAR(postdep_objects, $1) \
+    _LT_AC_TAGVAR(predeps, $1) \
+    _LT_AC_TAGVAR(postdeps, $1) \
+    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
+    _LT_AC_TAGVAR(archive_cmds, $1) \
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
+    _LT_AC_TAGVAR(postinstall_cmds, $1) \
+    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
+    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
+    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
+    _LT_AC_TAGVAR(no_undefined_flag, $1) \
+    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
+    _LT_AC_TAGVAR(hardcode_automatic, $1) \
+    _LT_AC_TAGVAR(module_cmds, $1) \
+    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
+    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
+    _LT_AC_TAGVAR(exclude_expsyms, $1) \
+    _LT_AC_TAGVAR(include_expsyms, $1); do
+
+    case $var in
+    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
+    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
+    _LT_AC_TAGVAR(archive_cmds, $1) | \
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
+    _LT_AC_TAGVAR(module_cmds, $1) | \
+    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
+    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
+    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\[$]0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo&quot;[$]/[$]0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+ifelse([$1], [],
+  [cfgfile=&quot;${ofile}T&quot;
+  trap &quot;$rm \&quot;$cfgfile\&quot;; exit 1&quot; 1 2 15
+  $rm -f &quot;$cfgfile&quot;
+  AC_MSG_NOTICE([creating $ofile])],
+  [cfgfile=&quot;$ofile&quot;])
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+ifelse([$1], [],
+[#! $SHELL
+
+# `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed=&quot;$SED -e 1s/^X//&quot;
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
+
+# The names of the tagged configurations supported by this script.
+available_tags=
+
+# ### BEGIN LIBTOOL CONFIG],
+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
+
+# Is the compiler the GNU C compiler?
+with_gcc=$_LT_AC_TAGVAR(GCC, $1)
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$_LT_AC_TAGVAR(fix_srcfile_path, $1)&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
+
+# Symbols that must always be exported.
+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
+
+ifelse([$1],[],
+[# ### END LIBTOOL CONFIG],
+[# ### END LIBTOOL TAG CONFIG: $tagname])
+
+__EOF__
+
+ifelse([$1],[], [
+  case $host_os in
+  aix3*)
+    cat &lt;&lt;\EOF &gt;&gt; &quot;$cfgfile&quot;
+
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+EOF
+    ;;
+  esac
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$cfgfile&quot; || (rm -f &quot;$cfgfile&quot;; exit 1)
+
+  mv -f &quot;$cfgfile&quot; &quot;$ofile&quot; || \
+    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;$cfgfile&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;$cfgfile&quot;)
+  chmod +x &quot;$ofile&quot;
+])
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+])# AC_LIBTOOL_CONFIG
+
+
+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------------------
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+
+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test &quot;$GCC&quot; = yes; then
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+
+  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+    lt_cv_prog_compiler_rtti_exceptions,
+    [-fno-rtti -fno-exceptions], [],
+    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=&quot;$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions&quot;])
+fi
+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
+
+
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+# ---------------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
+[AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([AC_PROG_NM])
+AC_REQUIRE([AC_OBJEXT])
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'&quot;
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[[BCDT]]'
+  ;;
+cygwin* | mingw* | pw32*)
+  symcode='[[ABCDGISTW]]'
+  ;;
+hpux*) # Its linker distinguishes data from code symbols
+  if test &quot;$host_cpu&quot; = ia64; then
+    symcode='[[ABCDEGRST]]'
+  fi
+  lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+  lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+  ;;
+linux*)
+  if test &quot;$host_cpu&quot; = ia64; then
+    symcode='[[ABCDGIRSTW]]'
+    lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+    lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+  fi
+  ;;
+irix* | nonstopux*)
+  symcode='[[BCDEGRST]]'
+  ;;
+osf*)
+  symcode='[[BCDEGQRST]]'
+  ;;
+solaris* | sysv5*)
+  symcode='[[BDRT]]'
+  ;;
+sysv4)
+  symcode='[[DFNSTU]]'
+  ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2&gt;&amp;1` in
+*GNU* | *'with BFD'*)
+  symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in &quot;&quot; &quot;_&quot;; do
+
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+  symxfrm=&quot;\\1 $ac_symprfx\\2 \\2&quot;
+
+  # Write the raw and C identifiers.
+  lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[[         ]]\($symcode$symcode*\)[[         ]][[         ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'&quot;
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+
+  rm -f conftest*
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+  if AC_TRY_EVAL(ac_compile); then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) &amp;&amp; test -s &quot;$nlist&quot;; then
+      # Try sorting and uniquifying the output.
+      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
+      else
+        rm -f &quot;$nlist&quot;T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if grep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+        if grep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+          cat &lt;&lt;EOF &gt; conftest.$ac_ext
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+EOF
+          # Now generate the symbol file.
+          eval &quot;$lt_cv_sys_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext'
+
+          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
+#if defined (__STDC__) &amp;&amp; __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr_t address;
+}
+lt_preloaded_symbols[[]] =
+{
+EOF
+          $SED &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr_t) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext
+          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
+  {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+          # Now try linking the two files.
+          mv conftest.$ac_objext conftstm.$ac_objext
+          lt_save_LIBS=&quot;$LIBS&quot;
+          lt_save_CFLAGS=&quot;$CFLAGS&quot;
+          LIBS=&quot;conftstm.$ac_objext&quot;
+          CFLAGS=&quot;$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)&quot;
+          if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest${ac_exeext}; then
+            pipe_works=yes
+          fi
+          LIBS=&quot;$lt_save_LIBS&quot;
+          CFLAGS=&quot;$lt_save_CFLAGS&quot;
+        else
+          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+        fi
+      else
+        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+      fi
+    else
+      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+    fi
+  else
+    echo &quot;$progname: failed program was:&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+    cat conftest.$ac_ext &gt;&amp;5
+  fi
+  rm -f conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test &quot;$pipe_works&quot; = yes; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+])
+if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
+  lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z &quot;$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl&quot;; then
+  AC_MSG_RESULT(failed)
+else
+  AC_MSG_RESULT(ok)
+fi
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+
+
+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
+# ---------------------------------------
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
+
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+ ifelse([$1],[CXX],[
+  # C++ specific cases for pic, static, wl, etc.
+  if test &quot;$GXX&quot; = yes; then
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+    case $host_os in
+    aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      ;;
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+      ;;
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    mingw* | os2* | pw32*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+      ;;
+    *djgpp*)
+      # DJGPP does not support shared libraries at all
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+      fi
+      ;;
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        ;
+      *)
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+        ;
+      esac
+      ;;
+    *)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+    esac
+  else
+    case $host_os in
+      aix4* | aix5*)
+        # All AIX code is PIC.
+        if test &quot;$host_cpu&quot; = ia64; then
+          # AIX 5 now supports IA64 processor
+          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+        else
+          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+        fi
+        ;
+      chorus*)
+        case $cc_basename in
+        cxch68*)
+          # Green Hills C++ Compiler
+          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a&quot;
+          ;;
+        esac
+        ;
+       darwin*)
+         # PIC is the default on this platform
+         # Common symbols not allowed in MH_DYLIB files
+         case $cc_basename in
+           xlc*)
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           ;;
+         esac
+       ;;
+      dgux*)
+        case $cc_basename in
+          ec++*)
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+            ;;
+          ghcx*)
+            # Green Hills C++ Compiler
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      freebsd* | kfreebsd*-gnu | dragonfly*)
+        # FreeBSD uses GNU C++
+        ;
+      hpux9* | hpux10* | hpux11*)
+        case $cc_basename in
+          CC*)
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
+            if test &quot;$host_cpu&quot; != ia64; then
+              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+            fi
+            ;;
+          aCC*)
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
+            case $host_cpu in
+            hppa*64*|ia64*)
+              # +Z the default
+              ;;
+            *)
+              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+              ;;
+            esac
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      irix5* | irix6* | nonstopux*)
+        case $cc_basename in
+          CC*)
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+            # CC pic flag -KPIC is the default.
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      linux*)
+        case $cc_basename in
+          KCC*)
+            # KAI C++ Compiler
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+            ;;
+          icpc* | ecpc*)
+            # Intel C++
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+            ;;
+          pgCC*)
+            # Portland Group C++ compiler.
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+            ;;
+          cxx*)
+            # Compaq C++
+            # Make sure the PIC flag is empty.  It appears that all Alpha
+            # Linux and Compaq Tru64 Unix objects are PIC.
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      lynxos*)
+        ;
+      m88k*)
+        ;
+      mvs*)
+        case $cc_basename in
+          cxx*)
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+        ;
+      osf3* | osf4* | osf5*)
+        case $cc_basename in
+          KCC*)
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+            ;;
+          RCC*)
+            # Rational C++ 2.4.1
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+            ;;
+          cxx*)
+            # Digital/Compaq C++
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+            # Make sure the PIC flag is empty.  It appears that all Alpha
+            # Linux and Compaq Tru64 Unix objects are PIC.
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      psos*)
+        ;
+      sco*)
+        case $cc_basename in
+          CC*)
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      solaris*)
+        case $cc_basename in
+          CC*)
+            # Sun C++ 4.2, 5.x and Centerline C++
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+            ;;
+          gcx*)
+            # Green Hills C++ Compiler
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      sunos4*)
+        case $cc_basename in
+          CC*)
+            # Sun C++ 4.x
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+            ;;
+          lcc*)
+            # Lucid
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      tandem*)
+        case $cc_basename in
+          NCC*)
+            # NonStop-UX NCC 3.20
+            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      unixware*)
+        ;
+      vxworks*)
+        ;
+      *)
+        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+        ;
+    esac
+  fi
+],
+[
+  if test &quot;$GCC&quot; = yes; then
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      ;;
+
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+      ;;
+
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      enable_shared=no
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+      fi
+      ;;
+
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+        ;
+      esac
+      ;;
+
+    *)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      else
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+      darwin*)
+        # PIC is the default on this platform
+        # Common symbols not allowed in MH_DYLIB files
+       case $cc_basename in
+         xlc*)
+         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
+         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         ;;
+       esac
+       ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+        ;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # PIC (with -KPIC) is the default.
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+      ;;
+
+    newsos6)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    linux*)
+      case $cc_basename in
+      icc* | ecc*)
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+        ;;
+      pgcc* | pgf77* | pgf90* | pgf95*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+        # which looks to be a dead project)
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+        ;;
+      ccc*)
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+        # All Alpha code is PIC.
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+        ;;
+      esac
+      ;;
+
+    osf3* | osf4* | osf5*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # All OSF/1 code is PIC.
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
+      ;;
+
+    solaris*)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95*)
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+      *)
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      ;;
+
+    unicos*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      ;;
+
+    uts4*)
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    *)
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      ;;
+    esac
+  fi
+])
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n &quot;$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)&quot;; then
+  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
+    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
+    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
+    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
+     &quot;&quot; | &quot; &quot;*) ;;
+     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=&quot; $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)&quot; ;;
+     esac],
+    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+case $host_os in
+  # For platforms which do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+    ;;
+  *)
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=&quot;$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])&quot;
+    ;;
+esac
+])
+
+
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
+# ------------------------------------
+# See if the linker supports building shared libraries.
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
+[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ifelse([$1],[CXX],[
+  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  case $host_os in
+  aix4* | aix5*)
+    # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm
+    if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
+    else
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
+    fi
+    ;;
+  pw32*)
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)=&quot;$ltdll_cmds&quot;
+  ;;
+  cygwin* | mingw*)
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  ;;
+  linux*)
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
+  ;;
+  *)
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  ;;
+  esac
+],[
+  runpath_var=
+  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
+  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+  _LT_AC_TAGVAR(archive_cmds, $1)=
+  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
+  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
+  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+  _LT_AC_TAGVAR(hardcode_direct, $1)=no
+  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
+  _LT_AC_TAGVAR(module_cmds, $1)=
+  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
+  _LT_AC_TAGVAR(always_export_symbols, $1)=no
+  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  _LT_AC_TAGVAR(include_expsyms, $1)=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+  # as well as any symbol that contains `d'.
+  _LT_AC_TAGVAR(exclude_expsyms, $1)=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  extract_expsyms_cmds=
+  # Just being paranoid about ensuring that cc_basename is set.
+  _LT_CC_BASENAME([$compiler])
+  case $host_os in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test &quot;$GCC&quot; != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='${wl}'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
+        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+      else
+          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v 2&gt;/dev/null` in
+      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test &quot;$host_cpu&quot; != ia64; then
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+      fi
+      ;;
+
+    amigaos*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+
+      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we can't use
+      # them.
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      ;;
+
+    beos*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+        # support --undefined.  This deserves some investigation.  FIXME
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      else
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+      # as there is no search path for DLLs.
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_AC_TAGVAR(always_export_symbols, $1)=no
+      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+
+      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+        # If the export-symbols file already is a .def file (1st line
+        # is EXPORTS), use it as is; otherwise, prepend...
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS &gt; $output_objdir/$soname.def;
+          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
+      else
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    linux*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        tmp_addflag=
+        case $cc_basename,$host_cpu in
+        pgcc*)                                # Portland Group C compiler
+          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag'
+          ;;
+        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
+          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag -Mnomain' ;;
+        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
+          tmp_addflag=' -i_dynamic' ;;
+        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
+          tmp_addflag=' -i_dynamic -nofor_main' ;;
+        ifc* | ifort*)                        # Intel Fortran compiler
+          tmp_addflag=' -nofor_main' ;;
+        esac
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+        if test $supports_anon_versioning = yes; then
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
+  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
+  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
+          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+        fi
+        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
+      else
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+        wlarc=
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris* | sysv5*)
+      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    sunos4*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    *)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+    esac
+
+    if test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no; then
+      runpath_var=
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+      fi
+      ;;
+
+    aix4* | aix5*)
+      if test &quot;$host_cpu&quot; = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+        exp_sym_flag='-Bexport'
+        no_entry_flag=&quot;&quot;
+      else
+        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+        # -C means demangle to AIX nm, but means don't demangle with GNU nm
+        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
+        else
+          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
+        fi
+        aix_use_runtimelinking=no
+
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+        esac
+
+        exp_sym_flag='-bexport'
+        no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      _LT_AC_TAGVAR(archive_cmds, $1)=''
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+      if test &quot;$GCC&quot; = yes; then
+        case $host_os in aix4.[[012]]|aix4.[[012]].*)
+        # We only want to do this on AIX 4.2 and lower, the check
+        # below for broken collect2 doesn't work under 4.3+
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f &quot;$collect2name&quot; &amp;&amp; \
+             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+          then
+            # We have reworked collect2
+            _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+          else
+            # We have old collect2
+            _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+            # It fails to find uninstalled libraries when the uninstalled
+            # path is not listed in the libpath.  Setting hardcode_minus_L
+            # to unsupported forces relinking
+            _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+          fi
+        esac
+        shared_flag='-shared'
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+        fi
+      else
+        # not using gcc
+        if test &quot;$host_cpu&quot; = ia64; then
+          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+          # chokes on -Wl,-G. The following line is correct:
+          shared_flag='-G'
+        else
+          if test &quot;$aix_use_runtimelinking&quot; = yes; then
+            shared_flag='${wl}-G'
+          else
+            shared_flag='${wl}-bM:SRE'
+          fi
+        fi
+      fi
+
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        # Warning - without using the other runtime loading flags (-brtl),
+        # -berok will link without error, but may produce a broken library.
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
+       # Determine the default libpath from the value encoded in an empty executable.
+       _LT_AC_SYS_LIBPATH_AIX
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+       else
+        if test &quot;$host_cpu&quot; = ia64; then
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+          _LT_AC_TAGVAR(allow_undefined_flag, $1)=&quot;-z nodefs&quot;
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+        else
+         # Determine the default libpath from the value encoded in an empty executable.
+         _LT_AC_SYS_LIBPATH_AIX
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+          # Warning - without using the other run time loading flags,
+          # -berok will link without error, but may produce a broken library.
+          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+          # -bexpall does not export symbols beginning with underscore (_)
+          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+          # Exported symbols can be pulled into shared objects from archives
+          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
+          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+          # This is similar to how AIX traditionally builds its shared libraries.
+          _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+        fi
+      fi
+      ;;
+
+    amigaos*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      # see comment about different semantics on the GNU ld section
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      ;;
+
+    bsdi[[45]]*)
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+      # Tell ltmain to make .lib files, not .a files.
+      libext=lib
+      # Tell ltmain to make .dll files, not .so files.
+      shrext_cmds=&quot;.dll&quot;
+      # FIXME: Setting linknames here is a bad hack.
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+      # The linker will automatically build a .lib file if we build a DLL.
+      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
+      # FIXME: Should let the user specify the lib program.
+      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
+      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w &quot;$srcfile&quot;`'
+      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+      ;;
+
+    darwin* | rhapsody*)
+      case $host_os in
+        rhapsody* | darwin1.[[012]])
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[[012]])
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+      esac
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no
+      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+    if test &quot;$GCC&quot; = yes ; then
+            output_verbose_link_cmd='echo'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+    else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no
+          ;;
+      esac
+    fi
+      ;;
+
+    dgux*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    freebsd1*)
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | kfreebsd*-gnu | dragonfly*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    hpux9*)
+      if test &quot;$GCC&quot; = yes; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+      ;;
+
+    hpux10* | hpux11*)
+      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*|ia64*)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        *)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        esac
+      else
+        case $host_cpu in
+        hppa*64*|ia64*)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        *)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        esac
+      fi
+      if test &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*)
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+          _LT_AC_TAGVAR(hardcode_direct, $1)=no
+          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+          ;;
+        ia64*)
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+          _LT_AC_TAGVAR(hardcode_direct, $1)=no
+          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+          ;;
+        *)
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+          ;;
+        esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test &quot;$GCC&quot; = yes; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    newsos6)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    openbsd*)
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+      else
+       case $host_os in
+         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+           ;;
+         *)
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+           ;;
+       esac
+      fi
+      ;;
+
+    os2*)
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_AC_TAGVAR(archive_cmds, $1)='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test &quot;$GCC&quot; = yes; then
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      ;;
+
+    osf4* | osf5*)        # as osf3* with the addition of -msym flag
+      if test &quot;$GCC&quot; = yes; then
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+      else
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+        # Both c and cxx compiler support -rpath directly
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+      ;;
+
+    sco3.2v5*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ;;
+
+    solaris*)
+      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
+      if test &quot;$GCC&quot; = yes; then
+        wlarc='${wl}'
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+      else
+        wlarc=''
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      case $host_os in
+      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+      *)
+         # The compiler driver will combine linker options so we
+         # cannot just pass the convience library names through
+         # without $wl, iff we do not link with $LD.
+         # Luckily, gcc supports the same syntax we need for Sun Studio.
+         # Supported since Solaris 2.6 (maybe 2.5.1?)
+         case $wlarc in
+         '')
+           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
+         *)
+           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
+         esac ;;
+      esac
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+      ;;
+
+    sunos4*)
+      if test &quot;x$host_vendor&quot; = xsequent; then
+        # Use $CC to link under sequent, because it throws in some extra .o
+        # files that make .init and .fini sections work.
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+        sni)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+        ;
+        siemens)
+          ## LD is ld it makes a PLAMLIB
+          ## CC just makes a GrossModule.
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+          _LT_AC_TAGVAR(hardcode_direct, $1)=no
+        ;;
+        motorola)
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+        ;
+      esac
+      runpath_var='LD_RUN_PATH'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    sysv4.3*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+        runpath_var=LD_RUN_PATH
+        hardcode_runpath_var=yes
+        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+      fi
+      ;;
+
+    sysv4.2uw2*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      hardcode_runpath_var=yes
+      runpath_var=LD_RUN_PATH
+      ;;
+
+   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
+      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
+      if test &quot;$GCC&quot; = yes; then
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      runpath_var='LD_RUN_PATH'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    sysv5*)
+      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
+      # $CC -shared without GNU ld will not create a library from C++
+      # object files and a static libstdc++, better avoid it by now
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      runpath_var='LD_RUN_PATH'
+      ;;
+
+    uts4*)
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    *)
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no
+      ;;
+    esac
+  fi
+])
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
+test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
+
+variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+if test &quot;$GCC&quot; = yes; then
+  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case &quot;x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)&quot; in
+x|xyes)
+  # Assume -lc should be added
+  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+    case $_LT_AC_TAGVAR(archive_cmds, $1) in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+      $rm conftest*
+      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+      if AC_TRY_EVAL(ac_compile) 2&gt;conftest.err; then
+        soname=conftest
+        lib=conftest
+        libobjs=conftest.$ac_objext
+        deplibs=
+        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
+        compiler_flags=-v
+        linker_flags=-v
+        verstring=
+        output_objdir=.
+        libname=conftest
+        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
+        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1)
+        then
+          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+        else
+          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+        fi
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+      else
+        cat conftest.err 1&gt;&amp;5
+      fi
+      $rm conftest*
+      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
+      ;;
+    esac
+  fi
+  ;;
+esac
+])# AC_LIBTOOL_PROG_LD_SHLIBS
+
+
+# _LT_AC_FILE_LTDLL_C
+# -------------------
+# Be careful that the start marker always follows a newline.
+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
+# /* ltdll.c starts here */
+# #define WIN32_LEAN_AND_MEAN
+# #include &lt;windows.h&gt;
+# #undef WIN32_LEAN_AND_MEAN
+# #include &lt;stdio.h&gt;
+#
+# #ifndef __CYGWIN__
+# #  ifdef __CYGWIN32__
+# #    define __CYGWIN__ __CYGWIN32__
+# #  endif
+# #endif
+#
+# #ifdef __cplusplus
+# extern &quot;C&quot; {
+# #endif
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+# #ifdef __cplusplus
+# }
+# #endif
+#
+# #ifdef __CYGWIN__
+# #include &lt;cygwin/cygwin_dll.h&gt;
+# DECLARE_CYGWIN_DLL( DllMain );
+# #endif
+# HINSTANCE __hDllInstance_base;
+#
+# BOOL APIENTRY
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+# {
+#   __hDllInstance_base = hInst;
+#   return TRUE;
+# }
+# /* ltdll.c ends here */
+])# _LT_AC_FILE_LTDLL_C
+
+
+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
+# ---------------------------------
+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
+
+
+# old names
+AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
+AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
+AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
+AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
+
+# This is just to silence aclocal about the macro not being used
+ifelse([AC_DISABLE_FAST_INSTALL])
+
+AC_DEFUN([LT_AC_PROG_GCJ],
+[AC_CHECK_TOOL(GCJ, gcj, no)
+  test &quot;x${GCJFLAGS+set}&quot; = xset || GCJFLAGS=&quot;-g -O2&quot;
+  AC_SUBST(GCJFLAGS)
+])
+
+AC_DEFUN([LT_AC_PROG_RC],
+[AC_CHECK_TOOL(RC, windres, no)
+])
+
+# NOTE: This macro has been submitted for inclusion into   #
+#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
+#  a released version of Autoconf we should remove this    #
+#  macro and use it instead.                               #
+# LT_AC_PROG_SED
+# --------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible.  Prefer GNU sed if found.
+AC_DEFUN([LT_AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for lt_ac_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      if $as_executable_p &quot;$as_dir/$lt_ac_prog$ac_exec_ext&quot;; then
+        lt_ac_sed_list=&quot;$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext&quot;
+      fi
+    done
+  done
+done
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+  test ! -f $lt_ac_sed &amp;&amp; continue
+  cat /dev/null &gt; conftest.in
+  lt_ac_count=0
+  echo $ECHO_N &quot;0123456789$ECHO_C&quot; &gt;conftest.in
+  # Check for GNU sed and select it if it is found.
+  if &quot;$lt_ac_sed&quot; --version 2&gt;&amp;1 &lt; /dev/null | grep 'GNU' &gt; /dev/null; then
+    lt_cv_path_SED=$lt_ac_sed
+    break
+  fi
+  while true; do
+    cat conftest.in conftest.in &gt;conftest.tmp
+    mv conftest.tmp conftest.in
+    cp conftest.in conftest.nl
+    echo &gt;&gt;conftest.nl
+    $lt_ac_sed -e 's/a$//' &lt; conftest.nl &gt;conftest.out || break
+    cmp -s conftest.out conftest.nl || break
+    # 10000 chars as input seems more than enough
+    test $lt_ac_count -gt 10 &amp;&amp; break
+    lt_ac_count=`expr $lt_ac_count + 1`
+    if test $lt_ac_count -gt $lt_ac_max; then
+      lt_ac_max=$lt_ac_count
+      lt_cv_path_SED=$lt_ac_sed
+    fi
+  done
+done
+])
+SED=$lt_cv_path_SED
+AC_MSG_RESULT([$SED])
+])
+
+# longdouble.m4 serial 1 (gettext-0.12)
+dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+dnl Test whether the compiler supports the 'long double' type.
+dnl Prerequisite: AC_PROG_CC
+
+AC_DEFUN([gt_TYPE_LONGDOUBLE],
+[
+  AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
+    [if test &quot;$GCC&quot; = yes; then
+       gt_cv_c_long_double=yes
+     else
+       AC_TRY_COMPILE([
+         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
+         long double foo = 0.0;
+         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
+         int array [2*(sizeof(long double) &gt;= sizeof(double)) - 1];
+         ], ,
+         gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
+     fi])
+  if test $gt_cv_c_long_double = yes; then
+    AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
+  fi
+])
+
+# longlong.m4 serial 5
+dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_LONG_LONG if 'long long' works.
+
+AC_DEFUN([gl_AC_TYPE_LONG_LONG],
+[
+  AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
+  [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
+    [long long llmax = (long long) -1;
+     return ll &lt;&lt; i | ll &gt;&gt; i | llmax / ll | llmax % ll;],
+    ac_cv_type_long_long=yes,
+    ac_cv_type_long_long=no)])
+  if test $ac_cv_type_long_long = yes; then
+    AC_DEFINE(HAVE_LONG_LONG, 1,
+      [Define if you have the 'long long' type.])
+  fi
+])
+
+# nls.m4 serial 2 (gettext-0.14.3)
+dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
+dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.
+
+AC_PREREQ(2.50)
+
+AC_DEFUN([AM_NLS],
+[
+  AC_MSG_CHECKING([whether NLS is requested])
+  dnl Default is enabled NLS
+  AC_ARG_ENABLE(nls,
+    [  --disable-nls           do not use Native Language Support],
+    USE_NLS=$enableval, USE_NLS=yes)
+  AC_MSG_RESULT($USE_NLS)
+  AC_SUBST(USE_NLS)
+])
+
+AC_DEFUN([AM_MKINSTALLDIRS],
+[
+  dnl Tell automake &gt;= 1.10 to complain if mkinstalldirs is missing.
+  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
+  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
+  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
+  dnl Try to locate it.
+  MKINSTALLDIRS=
+  if test -n &quot;$ac_aux_dir&quot;; then
+    case &quot;$ac_aux_dir&quot; in
+      /*) MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot; ;;
+      *) MKINSTALLDIRS=&quot;\$(top_builddir)/$ac_aux_dir/mkinstalldirs&quot; ;;
+    esac
+  fi
+  if test -z &quot;$MKINSTALLDIRS&quot;; then
+    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
+  fi
+  AC_SUBST(MKINSTALLDIRS)
+])
+
+# po.m4 serial 7 (gettext-0.14.3)
+dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
+dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.
+
+AC_PREREQ(2.50)
+
+dnl Checks for all prerequisites of the po subdirectory.
+AC_DEFUN([AM_PO_SUBDIRS],
+[
+  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+  AC_REQUIRE([AC_PROG_INSTALL])dnl
+  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+  AC_REQUIRE([AM_NLS])dnl
+
+  dnl Perform the following tests also if --disable-nls has been given,
+  dnl because they are needed for &quot;make dist&quot; to work.
+
+  dnl Search for GNU msgfmt in the PATH.
+  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
+  dnl The second test excludes FreeBSD msgfmt.
+  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+    [$ac_dir/$ac_word --statistics /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1 &amp;&amp;
+     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
+    :)
+  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+
+  dnl Search for GNU xgettext 0.12 or newer in the PATH.
+  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
+  dnl The second test excludes FreeBSD xgettext.
+  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1 &amp;&amp;
+     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
+    :)
+  dnl Remove leftover from FreeBSD xgettext call.
+  rm -f messages.po
+
+  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
+  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
+    [$ac_dir/$ac_word --update -q /dev/null /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1], :)
+
+  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+  dnl Test whether we really found GNU msgfmt.
+  if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
+    dnl If it is no GNU msgfmt we define it as : so that the
+    dnl Makefiles still can work.
+    if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+      : ;
+    else
+      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
+      AC_MSG_RESULT(
+        [found $GMSGFMT program is not GNU msgfmt; ignore it])
+      GMSGFMT=&quot;:&quot;
+    fi
+  fi
+
+  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+  dnl Test whether we really found GNU xgettext.
+  if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+    dnl If it is no GNU xgettext we define it as : so that the
+    dnl Makefiles still can work.
+    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+      : ;
+    else
+      AC_MSG_RESULT(
+        [found xgettext program is not GNU xgettext; ignore it])
+      XGETTEXT=&quot;:&quot;
+    fi
+    dnl Remove leftover from FreeBSD xgettext call.
+    rm -f messages.po
+  fi
+
+  AC_OUTPUT_COMMANDS([
+    for ac_file in $CONFIG_FILES; do
+      # Support &quot;outfile[:infile[:infile...]]&quot;
+      case &quot;$ac_file&quot; in
+        *:*) ac_file=`echo &quot;$ac_file&quot;|sed 's%:.*%%'` ;;
+      esac
+      # PO directories have a Makefile.in generated from Makefile.in.in.
+      case &quot;$ac_file&quot; in */Makefile.in)
+        # Adjust a relative srcdir.
+        ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
+        ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
+        ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
+        # In autoconf-2.13 it is called $ac_given_srcdir.
+        # In autoconf-2.50 it is called $srcdir.
+        test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
+        case &quot;$ac_given_srcdir&quot; in
+          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+          /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
+          *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
+        esac
+        # Treat a directory as a PO directory if and only if it has a
+        # POTFILES.in file. This allows packages to have multiple PO
+        # directories under different names or in different locations.
+        if test -f &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot;; then
+          rm -f &quot;$ac_dir/POTFILES&quot;
+          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/POTFILES&quot; || echo &quot;creating $ac_dir/POTFILES&quot;
+          cat &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot; | sed -e &quot;/^#/d&quot; -e &quot;/^[         ]*\$/d&quot; -e &quot;s,.*,     $top_srcdir/&amp; \\\\,&quot; | sed -e &quot;\$s/\(.*\) \\\\/\1/&quot; &gt; &quot;$ac_dir/POTFILES&quot;
+          POMAKEFILEDEPS=&quot;POTFILES.in&quot;
+          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
+          # on $ac_dir but don't depend on user-specified configuration
+          # parameters.
+          if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
+            # The LINGUAS file contains the set of available languages.
+            if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
+              test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
+            fi
+            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
+            # Hide the ALL_LINGUAS assigment from automake.
+            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+            POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
+          else
+            # The set of available languages was given in configure.in.
+            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
+          fi
+          # Compute POFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
+          # Compute UPDATEPOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
+          # Compute DUMMYPOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
+          # Compute GMOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
+          case &quot;$ac_given_srcdir&quot; in
+            .) srcdirpre= ;;
+            *) srcdirpre='$(srcdir)/' ;;
+          esac
+          POFILES=
+          UPDATEPOFILES=
+          DUMMYPOFILES=
+          GMOFILES=
+          for lang in $ALL_LINGUAS; do
+            POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
+            UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
+            DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
+            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+          done
+          # CATALOGS depends on both $ac_dir and the user's LINGUAS
+          # environment variable.
+          INST_LINGUAS=
+          if test -n &quot;$ALL_LINGUAS&quot;; then
+            for presentlang in $ALL_LINGUAS; do
+              useit=no
+              if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
+                desiredlanguages=&quot;$LINGUAS&quot;
+              else
+                desiredlanguages=&quot;$ALL_LINGUAS&quot;
+              fi
+              for desiredlang in $desiredlanguages; do
+                # Use the presentlang catalog if desiredlang is
+                #   a. equal to presentlang, or
+                #   b. a variant of presentlang (because in this case,
+                #      presentlang can be used as a fallback for messages
+                #      which are not translated in the desiredlang catalog).
+                case &quot;$desiredlang&quot; in
+                  &quot;$presentlang&quot;*) useit=yes;;
+                esac
+              done
+              if test $useit = yes; then
+                INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
+              fi
+            done
+          fi
+          CATALOGS=
+          if test -n &quot;$INST_LINGUAS&quot;; then
+            for lang in $INST_LINGUAS; do
+              CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
+            done
+          fi
+          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/Makefile&quot; || echo &quot;creating $ac_dir/Makefile&quot;
+          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
+          for f in &quot;$ac_given_srcdir/$ac_dir&quot;/Rules-*; do
+            if test -f &quot;$f&quot;; then
+              case &quot;$f&quot; in
+                *.orig | *.bak | *~) ;;
+                *) cat &quot;$f&quot; &gt;&gt; &quot;$ac_dir/Makefile&quot; ;;
+              esac
+            fi
+          done
+        fi
+        ;;
+      esac
+    done],
+   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
+    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
+    # from automake.
+    eval 'OBSOLETE_ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
+    # Capture the value of LINGUAS because we need it to compute CATALOGS.
+    LINGUAS=&quot;${LINGUAS-%UNSET%}&quot;
+   ])
+])
+
+dnl Postprocesses a Makefile in a directory containing PO files.
+AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
+[
+  # When this code is run, in config.status, two variables have already been
+  # set:
+  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
+  # - LINGUAS is the value of the environment variable LINGUAS at configure
+  #   time.
+
+changequote(,)dnl
+  # Adjust a relative srcdir.
+  ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
+  ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
+  ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
+  # In autoconf-2.13 it is called $ac_given_srcdir.
+  # In autoconf-2.50 it is called $srcdir.
+  test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
+  case &quot;$ac_given_srcdir&quot; in
+    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+    /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
+    *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
+  esac
+
+  # Find a way to echo strings without interpreting backslash.
+  if test &quot;X`(echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+    gt_echo='echo'
+  else
+    if test &quot;X`(printf '%s\n' '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+      gt_echo='printf %s\n'
+    else
+      echo_func () {
+        cat &lt;&lt;EOT
+$*
+EOT
+      }
+      gt_echo='echo_func'
+    fi
+  fi
+
+  # A sed script that extracts the value of VARIABLE from a Makefile.
+  sed_x_variable='
+# Test if the hold space is empty.
+x
+s/P/P/
+x
+ta
+# Yes it was empty. Look if we have the expected variable definition.
+/^[         ]*VARIABLE[         ]*=/{
+  # Seen the first line of the variable definition.
+  s/^[         ]*VARIABLE[         ]*=//
+  ba
+}
+bd
+:a
+# Here we are processing a line from the variable definition.
+# Remove comment, more precisely replace it with a space.
+s/#.*$/ /
+# See if the line ends in a backslash.
+tb
+:b
+s/\\$//
+# Print the line, without the trailing backslash.
+p
+tc
+# There was no trailing backslash. The end of the variable definition is
+# reached. Clear the hold space.
+s/^.*$//
+x
+bd
+:c
+# A trailing backslash means that the variable definition continues in the
+# next line. Put a nonempty string into the hold space to indicate this.
+s/^.*$/P/
+x
+:d
+'
+changequote([,])dnl
+
+  # Set POTFILES to the value of the Makefile variable POTFILES.
+  sed_x_POTFILES=&quot;`$gt_echo \&quot;$sed_x_variable\&quot; | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`&quot;
+  POTFILES=`sed -n -e &quot;$sed_x_POTFILES&quot; &lt; &quot;$ac_file&quot;`
+  # Compute POTFILES_DEPS as
+  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
+  POTFILES_DEPS=
+  for file in $POTFILES; do
+    POTFILES_DEPS=&quot;$POTFILES_DEPS &quot;'$(top_srcdir)/'&quot;$file&quot;
+  done
+  POMAKEFILEDEPS=&quot;&quot;
+
+  if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
+    test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
+  fi
+  if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
+    # The LINGUAS file contains the set of available languages.
+    ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
+    POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
+  else
+    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
+    sed_x_LINGUAS=&quot;`$gt_echo \&quot;$sed_x_variable\&quot; | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`&quot;
+    ALL_LINGUAS_=`sed -n -e &quot;$sed_x_LINGUAS&quot; &lt; &quot;$ac_file&quot;`
+  fi
+  # Hide the ALL_LINGUAS assigment from automake.
+  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+  # Compute POFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
+  # Compute UPDATEPOFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
+  # Compute DUMMYPOFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
+  # Compute GMOFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
+  # Compute PROPERTIESFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
+  # Compute CLASSFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
+  # Compute QMFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
+  # Compute MSGFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
+  # Compute RESOURCESDLLFILES
+  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
+  case &quot;$ac_given_srcdir&quot; in
+    .) srcdirpre= ;;
+    *) srcdirpre='$(srcdir)/' ;;
+  esac
+  POFILES=
+  UPDATEPOFILES=
+  DUMMYPOFILES=
+  GMOFILES=
+  PROPERTIESFILES=
+  CLASSFILES=
+  QMFILES=
+  MSGFILES=
+  RESOURCESDLLFILES=
+  for lang in $ALL_LINGUAS; do
+    POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
+    UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
+    DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
+    GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+    PROPERTIESFILES=&quot;$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties&quot;
+    CLASSFILES=&quot;$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class&quot;
+    QMFILES=&quot;$QMFILES $srcdirpre$lang.qm&quot;
+    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
+    MSGFILES=&quot;$MSGFILES $srcdirpre$frobbedlang.msg&quot;
+    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
+    RESOURCESDLLFILES=&quot;$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll&quot;
+  done
+  # CATALOGS depends on both $ac_dir and the user's LINGUAS
+  # environment variable.
+  INST_LINGUAS=
+  if test -n &quot;$ALL_LINGUAS&quot;; then
+    for presentlang in $ALL_LINGUAS; do
+      useit=no
+      if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
+        desiredlanguages=&quot;$LINGUAS&quot;
+      else
+        desiredlanguages=&quot;$ALL_LINGUAS&quot;
+      fi
+      for desiredlang in $desiredlanguages; do
+        # Use the presentlang catalog if desiredlang is
+        #   a. equal to presentlang, or
+        #   b. a variant of presentlang (because in this case,
+        #      presentlang can be used as a fallback for messages
+        #      which are not translated in the desiredlang catalog).
+        case &quot;$desiredlang&quot; in
+          &quot;$presentlang&quot;*) useit=yes;;
+        esac
+      done
+      if test $useit = yes; then
+        INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
+      fi
+    done
+  fi
+  CATALOGS=
+  JAVACATALOGS=
+  QTCATALOGS=
+  TCLCATALOGS=
+  CSHARPCATALOGS=
+  if test -n &quot;$INST_LINGUAS&quot;; then
+    for lang in $INST_LINGUAS; do
+      CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
+      JAVACATALOGS=&quot;$JAVACATALOGS \$(DOMAIN)_$lang.properties&quot;
+      QTCATALOGS=&quot;$QTCATALOGS $lang.qm&quot;
+      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
+      TCLCATALOGS=&quot;$TCLCATALOGS $frobbedlang.msg&quot;
+      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
+      CSHARPCATALOGS=&quot;$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll&quot;
+    done
+  fi
+
+  sed -e &quot;s|@POTFILES_DEPS@|$POTFILES_DEPS|g&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@PROPERTIESFILES@|$PROPERTIESFILES|g&quot; -e &quot;s|@CLASSFILES@|$CLASSFILES|g&quot; -e &quot;s|@QMFILES@|$QMFILES|g&quot; -e &quot;s|@MSGFILES@|$MSGFILES|g&quot; -e &quot;s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@JAVACATALOGS@|$JAVACATALOGS|g&quot; -e &quot;s|@QTCATALOGS@|$QTCATALOGS|g&quot; -e &quot;s|@TCLCATALOGS@|$TCLCATALOGS|g&quot; -e &quot;s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g&quot; -e 's,^#distdir:,distdir:,' &lt; &quot;$ac_file&quot; &gt; &quot;$ac_file.tmp&quot;
+  if grep -l '@TCLCATALOGS@' &quot;$ac_file&quot; &gt; /dev/null; then
+    # Add dependencies that cannot be formulated as a simple suffix rule.
+    for lang in $ALL_LINGUAS; do
+      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
+      cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
+$frobbedlang.msg: $lang.po
+        @echo &quot;\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po&quot;; \
+        \$(MSGFMT) -c --tcl -d &quot;\$(srcdir)&quot; -l $lang $srcdirpre$lang.po || { rm -f &quot;\$(srcdir)/$frobbedlang.msg&quot;; exit 1; }
+EOF
+    done
+  fi
+  if grep -l '@CSHARPCATALOGS@' &quot;$ac_file&quot; &gt; /dev/null; then
+    # Add dependencies that cannot be formulated as a simple suffix rule.
+    for lang in $ALL_LINGUAS; do
+      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
+      cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
+$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
+        @echo &quot;\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)&quot;; \
+        \$(MSGFMT) -c --csharp -d &quot;\$(srcdir)&quot; -l $lang $srcdirpre$lang.po -r &quot;\$(DOMAIN)&quot; || { rm -f &quot;\$(srcdir)/$frobbedlang.msg&quot;; exit 1; }
+EOF
+    done
+  fi
+  if test -n &quot;$POMAKEFILEDEPS&quot;; then
+    cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
+Makefile: $POMAKEFILEDEPS
+EOF
+  fi
+  mv &quot;$ac_file.tmp&quot; &quot;$ac_file&quot;
+])
+
+# printf-posix.m4 serial 2 (gettext-0.13.1)
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+dnl Test whether the printf() function supports POSIX/XSI format strings with
+dnl positions.
+
+AC_DEFUN([gt_PRINTF_POSIX],
+[
+  AC_REQUIRE([AC_PROG_CC])
+  AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
+    gt_cv_func_printf_posix,
+    [
+      AC_TRY_RUN([
+#include &lt;stdio.h&gt;
+#include &lt;string.h&gt;
+/* The string &quot;%2$d %1$d&quot;, with dollar characters protected from the shell's
+   dollar expansion (possibly an autoconf bug).  */
+static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
+static char buf[100];
+int main ()
+{
+  sprintf (buf, format, 33, 55);
+  return (strcmp (buf, &quot;55 33&quot;) != 0);
+}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
+      [
+        AC_EGREP_CPP(notposix, [
+#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
+  notposix
+#endif
+        ], gt_cv_func_printf_posix=&quot;guessing no&quot;,
+           gt_cv_func_printf_posix=&quot;guessing yes&quot;)
+      ])
+    ])
+  case $gt_cv_func_printf_posix in
+    *yes)
+      AC_DEFINE(HAVE_POSIX_PRINTF, 1,
+        [Define if your printf() function supports format strings with positions.])
+      ;;
+  esac
+])
+
+# progtest.m4 serial 4 (gettext-0.14.2)
+dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1996.
+
+AC_PREREQ(2.50)
+
+# Search path for a program which passes the given test.
+
+dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
+dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
+AC_DEFUN([AM_PATH_PROG_WITH_TEST],
+[
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat &gt;conf$$.file &lt;&lt;_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
+  ac_executable_p=&quot;test -x&quot;
+else
+  ac_executable_p=&quot;test -f&quot;
+fi
+rm -f conf$$.file
+
+# Extract the first word of &quot;$2&quot;, so it can be a program name with args.
+set dummy $2; ac_word=[$]2
+AC_MSG_CHECKING([for $ac_word])
+AC_CACHE_VAL(ac_cv_path_$1,
+[case &quot;[$]$1&quot; in
+  [[\\/]]* | ?:[[\\/]]*)
+    ac_cv_path_$1=&quot;[$]$1&quot; # Let the user override the test with a path.
+    ;;
+  *)
+    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+    for ac_dir in ifelse([$5], , $PATH, [$5]); do
+      IFS=&quot;$ac_save_IFS&quot;
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
+          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;AS_MESSAGE_LOG_FD
+          if [$3]; then
+            ac_cv_path_$1=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
+            break 2
+          fi
+        fi
+      done
+    done
+    IFS=&quot;$ac_save_IFS&quot;
+dnl If no 4th arg is given, leave the cache variable unset,
+dnl so AC_PATH_PROGS will keep looking.
+ifelse([$4], , , [  test -z &quot;[$]ac_cv_path_$1&quot; &amp;&amp; ac_cv_path_$1=&quot;$4&quot;
+])dnl
+    ;;
+esac])dnl
+$1=&quot;$ac_cv_path_$1&quot;
+if test ifelse([$4], , [-n &quot;[$]$1&quot;], [&quot;[$]$1&quot; != &quot;$4&quot;]); then
+  AC_MSG_RESULT([$]$1)
+else
+  AC_MSG_RESULT(no)
+fi
+AC_SUBST($1)dnl
+])
+
+# signed.m4 serial 1 (gettext-0.10.40)
+dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([bh_C_SIGNED],
+[
+  AC_CACHE_CHECK([for signed], bh_cv_c_signed,
+   [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
+  if test $bh_cv_c_signed = no; then
+    AC_DEFINE(signed, ,
+              [Define to empty if the C compiler doesn't support this keyword.])
+  fi
+])
+
+# size_max.m4 serial 2
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([gl_SIZE_MAX],
+[
+  AC_CHECK_HEADERS(stdint.h)
+  dnl First test whether the system already has SIZE_MAX.
+  AC_MSG_CHECKING([for SIZE_MAX])
+  result=
+  AC_EGREP_CPP([Found it], [
+#include &lt;limits.h&gt;
+#if HAVE_STDINT_H
+#include &lt;stdint.h&gt;
+#endif
+#ifdef SIZE_MAX
+Found it
+#endif
+], result=yes)
+  if test -z &quot;$result&quot;; then
+    dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
+    dnl than the type 'unsigned long'.
+    dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
+    dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
+    _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
+      [#include &lt;stddef.h&gt;], result=?)
+    _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
+      [#include &lt;stddef.h&gt;], result=?)
+    _AC_COMPUTE_INT([sizeof (size_t) &lt;= sizeof (unsigned int)], fits_in_uint,
+      [#include &lt;stddef.h&gt;], result=?)
+    if test &quot;$fits_in_uint&quot; = 1; then
+      dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
+      dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
+      AC_TRY_COMPILE([#include &lt;stddef.h&gt;
+        extern size_t foo;
+        extern unsigned long foo;
+        ], [], fits_in_uint=0)
+    fi
+    if test -z &quot;$result&quot;; then
+      if test &quot;$fits_in_uint&quot; = 1; then
+        result=&quot;$res_hi$res_lo&quot;U
+      else
+        result=&quot;$res_hi$res_lo&quot;UL
+      fi
+    else
+      dnl Shouldn't happen, but who knows...
+      result='~(size_t)0'
+    fi
+  fi
+  AC_MSG_RESULT([$result])
+  if test &quot;$result&quot; != yes; then
+    AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
+      [Define as the maximum value of type 'size_t', if the system doesn't define it.])
+  fi
+])
+
+# stdint_h.m4 serial 5
+dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_STDINT_H_WITH_UINTMAX if &lt;stdint.h&gt; exists,
+# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.
+
+AC_DEFUN([gl_AC_HEADER_STDINT_H],
+[
+  AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
+  [AC_TRY_COMPILE(
+    [#include &lt;sys/types.h&gt;
+#include &lt;stdint.h&gt;],
+    [uintmax_t i = (uintmax_t) -1;],
+    gl_cv_header_stdint_h=yes,
+    gl_cv_header_stdint_h=no)])
+  if test $gl_cv_header_stdint_h = yes; then
+    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
+      [Define if &lt;stdint.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
+       and declares uintmax_t. ])
+  fi
+])
+
+# uintmax_t.m4 serial 9
+dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+AC_PREREQ(2.13)
+
+# Define uintmax_t to 'unsigned long' or 'unsigned long long'
+# if it is not already defined in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.
+
+AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
+[
+  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
+  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
+  if test $gl_cv_header_inttypes_h = no &amp;&amp; test $gl_cv_header_stdint_h = no; then
+    AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
+    test $ac_cv_type_unsigned_long_long = yes \
+      &amp;&amp; ac_type='unsigned long long' \
+      || ac_type='unsigned long'
+    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
+      [Define to unsigned long or unsigned long long
+       if &lt;stdint.h&gt; and &lt;inttypes.h&gt; don't define.])
+  else
+    AC_DEFINE(HAVE_UINTMAX_T, 1,
+      [Define if you have the 'uintmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.])
+  fi
+])
+
+# ulonglong.m4 serial 4
+dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Paul Eggert.
+
+# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
+
+AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
+[
+  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
+  [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
+    [unsigned long long ullmax = (unsigned long long) -1;
+     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;],
+    ac_cv_type_unsigned_long_long=yes,
+    ac_cv_type_unsigned_long_long=no)])
+  if test $ac_cv_type_unsigned_long_long = yes; then
+    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
+      [Define if you have the 'unsigned long long' type.])
+  fi
+])
+
+# wchar_t.m4 serial 1 (gettext-0.12)
+dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+dnl Test whether &lt;stddef.h&gt; has the 'wchar_t' type.
+dnl Prerequisite: AC_PROG_CC
+
+AC_DEFUN([gt_TYPE_WCHAR_T],
+[
+  AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
+    [AC_TRY_COMPILE([#include &lt;stddef.h&gt;
+       wchar_t foo = (wchar_t)'\0';], ,
+       gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
+  if test $gt_cv_c_wchar_t = yes; then
+    AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
+  fi
+])
+
+# wint_t.m4 serial 1 (gettext-0.12)
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+dnl Test whether &lt;wchar.h&gt; has the 'wint_t' type.
+dnl Prerequisite: AC_PROG_CC
+
+AC_DEFUN([gt_TYPE_WINT_T],
+[
+  AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
+    [AC_TRY_COMPILE([#include &lt;wchar.h&gt;
+       wint_t foo = (wchar_t)'\0';], ,
+       gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
+  if test $gt_cv_c_wint_t = yes; then
+    AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
+  fi
+])
+
+# xsize.m4 serial 3
+dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_XSIZE],
+[
+  dnl Prerequisites of lib/xsize.h.
+  AC_REQUIRE([gl_SIZE_MAX])
+  AC_REQUIRE([AC_C_INLINE])
+  AC_CHECK_HEADERS(stdint.h)
+])
+
+# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version=&quot;1.9&quot;])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION so it can be traced.
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+         [AM_AUTOMAKE_VERSION([1.9.6])])
+
+# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory.  The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run.  This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+#    fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+#    fails if $ac_aux_dir is absolute,
+#    fails when called from a subdirectory in a VPATH build with
+#          a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir.  In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
+#   am_aux_dir='\$(top_srcdir)/'`expr &quot;$ac_aux_dir&quot; : &quot;$srcdir//*\(.*\)&quot;`
+# and then we would define $MISSING as
+#   MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this &quot;fixed&quot; $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH.  The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir &amp;&amp; pwd`
+])
+
+# AM_CONDITIONAL                                            -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 7
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
+        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])
+AC_SUBST([$1_FALSE])
+if $2; then
+  $1_TRUE=
+  $1_FALSE='#'
+else
+  $1_TRUE='#'
+  $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z &quot;${$1_TRUE}&quot; &amp;&amp; test -z &quot;${$1_FALSE}&quot;; then
+  AC_MSG_ERROR([[conditional &quot;$1&quot; was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 8
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery.  Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is &quot;CC&quot;, &quot;CXX&quot;, &quot;GCJ&quot;, or &quot;OBJC&quot;.
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC,   [depcc=&quot;$CC&quot;   am_compiler_list=],
+       [$1], CXX,  [depcc=&quot;$CXX&quot;  am_compiler_list=],
+       [$1], OBJC, [depcc=&quot;$OBJC&quot; am_compiler_list='gcc3 gcc'],
+       [$1], GCJ,  [depcc=&quot;$GCJ&quot;  am_compiler_list='gcc3 gcc'],
+                   [depcc=&quot;$$1&quot;   am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+               [am_cv_$1_dependencies_compiler_type],
+[if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp &quot;$am_depcomp&quot; conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_$1_dependencies_compiler_type=none
+  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] &lt; ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : &gt; sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
+      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+        continue
+      else
+        break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
+       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
+        am_cv_$1_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+  test &quot;x$enable_dependency_tracking&quot; != xno \
+  &amp;&amp; test &quot;$am_cv_$1_dependencies_compiler_type&quot; = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], [&quot;${am__leading_dot}deps&quot;])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[  --disable-dependency-tracking  speeds up one-time build
+  --enable-dependency-tracking   do not reject slow dependency extractors])
+if test &quot;x$enable_dependency_tracking&quot; != xno; then
+  am_depcomp=&quot;$ac_aux_dir/depcomp&quot;
+  AMDEPBACKSLASH='\'
+fi
+AM_CONDITIONAL([AMDEP], [test &quot;x$enable_dependency_tracking&quot; != xno])
+AC_SUBST([AMDEPBACKSLASH])
+])
+
+# Generate code to set up dependency tracking.              -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+#serial 3
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[for mf in $CONFIG_FILES; do
+  # Strip MF so we end up with the name of the file.
+  mf=`echo &quot;$mf&quot; | sed -e 's/:.*$//'`
+  # Check whether this is an Automake generated Makefile or not.
+  # We used to match only the files named `Makefile.in', but
+  # some people rename them; so instead we look at the file content.
+  # Grep'ing the first line is not enough: some people post-process
+  # each Makefile.in and add a new line on top of each file to say so.
+  # So let's grep whole file.
+  if grep '^#.*generated by automake' $mf &gt; /dev/null 2&gt;&amp;1; then
+    dirpart=`AS_DIRNAME(&quot;$mf&quot;)`
+  else
+    continue
+  fi
+  # Extract the definition of DEPDIR, am__include, and am__quote
+  # from the Makefile without running `make'.
+  DEPDIR=`sed -n 's/^DEPDIR = //p' &lt; &quot;$mf&quot;`
+  test -z &quot;$DEPDIR&quot; &amp;&amp; continue
+  am__include=`sed -n 's/^am__include = //p' &lt; &quot;$mf&quot;`
+  test -z &quot;am__include&quot; &amp;&amp; continue
+  am__quote=`sed -n 's/^am__quote = //p' &lt; &quot;$mf&quot;`
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n 's/^U = //p' &lt; &quot;$mf&quot;`
+  # Find all dependency output files, they are included files with
+  # $(DEPDIR) in their names.  We invoke sed twice because it is the
+  # simplest approach to changing $(DEPDIR) to its actual value in the
+  # expansion.
+  for file in `sed -n &quot;
+    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote&quot;'$/\1/p' &lt;&quot;$mf&quot; | \
+       sed -e 's/\$(DEPDIR)/'&quot;$DEPDIR&quot;'/g' -e 's/\$U/'&quot;$U&quot;'/g'`; do
+    # Make sure the directory exists.
+    test -f &quot;$dirpart/$file&quot; &amp;&amp; continue
+    fdir=`AS_DIRNAME([&quot;$file&quot;])`
+    AS_MKDIR_P([$dirpart/$fdir])
+    # echo &quot;creating $dirpart/$file&quot;
+    echo '# dummy' &gt; &quot;$dirpart/$file&quot;
+  done
+done
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled.  FIXME.  This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+     [test x&quot;$AMDEP_TRUE&quot; != x&quot;&quot; || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+     [AMDEP_TRUE=&quot;$AMDEP_TRUE&quot; ac_aux_dir=&quot;$ac_aux_dir&quot;])
+])
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 8
+
+# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
+
+# Do all the work for Automake.                             -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 12
+
+# This macro actually does too much.  Some checks are only needed if
+# your package does certain things.  But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out.  PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition.  After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.58])dnl
+dnl Autoconf wants to disallow AM_ names.  We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+# test to see if srcdir already configured
+if test &quot;`cd $srcdir &amp;&amp; pwd`&quot; != &quot;`pwd`&quot; &amp;&amp;
+   test -f $srcdir/config.status; then
+  AC_MSG_ERROR([source directory already configured; run &quot;make distclean&quot; there first])
+fi
+
+# test whether we have cygpath
+if test -z &quot;$CYGPATH_W&quot;; then
+  if (cygpath --version) &gt;/dev/null 2&gt;/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, &quot;$PACKAGE&quot;, [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, &quot;$VERSION&quot;, [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AM_PROG_INSTALL_SH
+AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the &quot;check&quot; target.  The system &quot;awk&quot; is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+                                   [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+                  [_AM_DEPENDENCIES(CC)],
+                  [define([AC_PROG_CC],
+                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+                  [_AM_DEPENDENCIES(CXX)],
+                  [define([AC_PROG_CXX],
+                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+])
+])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated.  The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+  case $_am_header in
+    $1 | $1:* )
+      break ;;
+    * )
+      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+  esac
+done
+echo &quot;timestamp for $1&quot; &gt;`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+install_sh=${install_sh-&quot;$am_aux_dir/install-sh&quot;}
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot.  For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2&gt;/dev/null
+mkdir .tst 2&gt;/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2&gt;/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Check to see how 'make' treats includes.                    -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat &gt; confinc &lt;&lt; 'END'
+am__doit:
+        @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include=&quot;#&quot;
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo &quot;include confinc&quot; &gt; confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually &quot;gmake&quot;), in which
+# case it prints its new name instead of `make'.
+if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | grep -v 'ing directory'`&quot; = &quot;done&quot;; then
+   am__include=include
+   am__quote=
+   _am_result=GNU
+fi
+# Now try BSD make style include.
+if test &quot;$am__include&quot; = &quot;#&quot;; then
+   echo '.include &quot;confinc&quot;' &gt; confmf
+   if test &quot;`$am_make -s -f confmf 2&gt; /dev/null`&quot; = &quot;done&quot;; then
+      am__include=.include
+      am__quote=&quot;\&quot;&quot;
+      _am_result=BSD
+   fi
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-&quot;${am_missing_run}$2&quot;}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+test x&quot;${MISSING+set}&quot; = xset || MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
+# Use eval to expand $SHELL
+if eval &quot;$MISSING --run true&quot;; then
+  am_missing_run=&quot;$MISSING --run &quot;
+else
+  am_missing_run=
+  AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
+#
+# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
+# created by `make install' are always world readable, even if the
+# installer happens to have an overly restrictive umask (e.g. 077).
+# This was a mistake.  There are at least two reasons why we must not
+# use `-m 0755':
+#   - it causes special bits like SGID to be ignored,
+#   - it may be too restrictive (some setups expect 775 directories).
+#
+# Do not use -m 0755 and let people choose whatever they expect by
+# setting umask.
+#
+# We cannot accept any implementation of `mkdir' that recognizes `-p'.
+# Some implementations (such as Solaris 8's) are not thread-safe: if a
+# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
+# concurrently, both version can detect that a/ is missing, but only
+# one can create it and the other will error out.  Consequently we
+# restrict ourselves to GNU make (using the --version option ensures
+# this.)
+AC_DEFUN([AM_PROG_MKDIR_P],
+[if mkdir -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test ! -d ./--version; then
+  # We used to keeping the `.' as first argument, in order to
+  # allow $(mkdir_p) to be used without argument.  As in
+  #   $(mkdir_p) $(somedir)
+  # where $(somedir) is conditionally defined.  However this is wrong
+  # for two reasons:
+  #  1. if the package is installed by a user who cannot write `.'
+  #     make install will fail,
+  #  2. the above comment should most certainly read
+  #     $(mkdir_p) $(DESTDIR)$(somedir)
+  #     so it does not work when $(somedir) is undefined and
+  #     $(DESTDIR) is not.
+  #  To support the latter case, we have to write
+  #     test -z &quot;$(somedir)&quot; || $(mkdir_p) $(DESTDIR)$(somedir),
+  #  so the `.' trick is pointless.
+  mkdir_p='mkdir -p --'
+else
+  # On NextStep and OpenStep, the `mkdir' command does not
+  # recognize any option.  It will interpret all options as
+  # directories to create, and then abort because `.' already
+  # exists.
+  for d in ./-p ./--version;
+  do
+    test -d $d &amp;&amp; rmdir $d
+  done
+  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
+  if test -f &quot;$ac_aux_dir/mkinstalldirs&quot;; then
+    mkdir_p='$(mkinstalldirs)'
+  else
+    mkdir_p='$(install_sh) -d'
+  fi
+fi
+AC_SUBST([mkdir_p])])
+
+# Helper functions for option handling.                     -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# ------------------------------
+# Set option NAME.  Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ----------------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane.    -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp &gt; conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   set X `ls -Lt $srcdir/configure conftest.file 2&gt; /dev/null`
+   if test &quot;$[*]&quot; = &quot;X&quot;; then
+      # -L didn't work.
+      set X `ls -t $srcdir/configure conftest.file`
+   fi
+   rm -f conftest.file
+   if test &quot;$[*]&quot; != &quot;X $srcdir/configure conftest.file&quot; \
+      &amp;&amp; test &quot;$[*]&quot; != &quot;X conftest.file $srcdir/configure&quot;; then
+
+      # If neither matched, then we have a broken ls.  This can happen
+      # if, for instance, CONFIG_SHELL is bash and it inherits a
+      # broken ls alias from the environment.  This has actually
+      # happened.  Such a system could not be considered &quot;sane&quot;.
+      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
+alias in your environment])
+   fi
+
+   test &quot;$[2]&quot; = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries.  This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'.  However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test &quot;$cross_compiling&quot; != no; then
+  AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM=&quot;\${SHELL} \$(install_sh) -c -s&quot;
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Check how to create a tarball.                            -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+#     tardir=directory &amp;&amp; $(am__tar) &gt; result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+#     $(am__untar) &lt; result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+     [am__tar='${AMTAR} chof - &quot;$$tardir&quot;'; am__untar='${AMTAR} xf -'],
+     [m4_case([$1], [ustar],, [pax],,
+              [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+  case $_am_tool in
+  gnutar)
+    for _am_tar in tar gnutar gtar;
+    do
+      AM_RUN_LOG([$_am_tar --version]) &amp;&amp; break
+    done
+    am__tar=&quot;$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - &quot;'&quot;$$tardir&quot;'
+    am__tar_=&quot;$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - &quot;'&quot;$tardir&quot;'
+    am__untar=&quot;$_am_tar -xf -&quot;
+    ;;
+  plaintar)
+    # Must skip GNU tar: if it does not support --format= it doesn't create
+    # ustar tarball either.
+    (tar --version) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; continue
+    am__tar='tar chf - &quot;$$tardir&quot;'
+    am__tar_='tar chf - &quot;$tardir&quot;'
+    am__untar='tar xf -'
+    ;;
+  pax)
+    am__tar='pax -L -x $1 -w &quot;$$tardir&quot;'
+    am__tar_='pax -L -x $1 -w &quot;$tardir&quot;'
+    am__untar='pax -r'
+    ;;
+  cpio)
+    am__tar='find &quot;$$tardir&quot; -print | cpio -o -H $1 -L'
+    am__tar_='find &quot;$tardir&quot; -print | cpio -o -H $1 -L'
+    am__untar='cpio -i -H $1 -d'
+    ;;
+  none)
+    am__tar=false
+    am__tar_=false
+    am__untar=false
+    ;;
+  esac
+
+  # If the value was cached, stop now.  We just wanted to have am__tar
+  # and am__untar set.
+  test -n &quot;${am_cv_prog_tar_$1}&quot; &amp;&amp; break
+
+  # tar/untar a dummy directory, and stop if the command works
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  echo GrepMe &gt; conftest.dir/file
+  AM_RUN_LOG([tardir=conftest.dir &amp;&amp; eval $am__tar_ &gt;conftest.tar])
+  rm -rf conftest.dir
+  if test -s conftest.tar; then
+    AM_RUN_LOG([$am__untar &lt;conftest.tar])
+    grep GrepMe conftest.dir/file &gt;/dev/null 2&gt;&amp;1 &amp;&amp; break
+  fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([acinclude.m4])
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: apps Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.6.1999
+# *************************************************************************
+
+INCLUDES =                -I..
+
+bin_PROGRAMS =                gsmsmsstore gsmctl gsmsmsd gsmpb gsmsendsms
+
+# build gsmsmsd from gsmsmsd.cc and libgsmme.la
+gsmsmsd_SOURCES =        gsmsmsd.cc
+gsmsmsd_LDADD =                ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmpb from gsmpb.cc and libgsmme.la
+gsmpb_SOURCES =                gsmpb.cc
+gsmpb_LDADD =                ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmctl from gsmctl.cc and libgsmme.la
+gsmctl_SOURCES =        gsmctl.cc
+gsmctl_LDADD =                ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmsendsms from gsmsendsms.cc and libgsmme.la
+gsmsendsms_SOURCES =        gsmsendsms.cc
+gsmsendsms_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmsmsstore from gsmsmsstore.cc and libgsmme.la
+gsmsmsstore_SOURCES =        gsmsmsstore.cc
+gsmsmsstore_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,442 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: apps Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.6.1999
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+INCLUDES = -I..
+
+bin_PROGRAMS = gsmsmsstore gsmctl gsmsmsd gsmpb gsmsendsms
+
+# build gsmsmsd from gsmsmsd.cc and libgsmme.la
+gsmsmsd_SOURCES = gsmsmsd.cc
+gsmsmsd_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmpb from gsmpb.cc and libgsmme.la
+gsmpb_SOURCES = gsmpb.cc
+gsmpb_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmctl from gsmctl.cc and libgsmme.la
+gsmctl_SOURCES = gsmctl.cc
+gsmctl_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmsendsms from gsmsendsms.cc and libgsmme.la
+gsmsendsms_SOURCES = gsmsendsms.cc
+gsmsendsms_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build gsmsmsstore from gsmsmsstore.cc and libgsmme.la
+gsmsmsstore_SOURCES = gsmsmsstore.cc
+gsmsmsstore_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+subdir = apps
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+bin_PROGRAMS = gsmsmsstore$(EXEEXT) gsmctl$(EXEEXT) gsmsmsd$(EXEEXT) \
+        gsmpb$(EXEEXT) gsmsendsms$(EXEEXT)
+PROGRAMS = $(bin_PROGRAMS)
+
+am_gsmctl_OBJECTS = gsmctl.$(OBJEXT)
+gsmctl_OBJECTS = $(am_gsmctl_OBJECTS)
+gsmctl_DEPENDENCIES = ../gsmlib/libgsmme.la
+gsmctl_LDFLAGS =
+am_gsmpb_OBJECTS = gsmpb.$(OBJEXT)
+gsmpb_OBJECTS = $(am_gsmpb_OBJECTS)
+gsmpb_DEPENDENCIES = ../gsmlib/libgsmme.la
+gsmpb_LDFLAGS =
+am_gsmsendsms_OBJECTS = gsmsendsms.$(OBJEXT)
+gsmsendsms_OBJECTS = $(am_gsmsendsms_OBJECTS)
+gsmsendsms_DEPENDENCIES = ../gsmlib/libgsmme.la
+gsmsendsms_LDFLAGS =
+am_gsmsmsd_OBJECTS = gsmsmsd.$(OBJEXT)
+gsmsmsd_OBJECTS = $(am_gsmsmsd_OBJECTS)
+gsmsmsd_DEPENDENCIES = ../gsmlib/libgsmme.la
+gsmsmsd_LDFLAGS =
+am_gsmsmsstore_OBJECTS = gsmsmsstore.$(OBJEXT)
+gsmsmsstore_OBJECTS = $(am_gsmsmsstore_OBJECTS)
+gsmsmsstore_DEPENDENCIES = ../gsmlib/libgsmme.la
+gsmsmsstore_LDFLAGS =
+
+DEFS = @DEFS@
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/gsmctl.Po ./$(DEPDIR)/gsmpb.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsmsendsms.Po ./$(DEPDIR)/gsmsmsd.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsmsmsstore.Po
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+        $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+        $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CXXFLAGS = @CXXFLAGS@
+DIST_SOURCES = $(gsmctl_SOURCES) $(gsmpb_SOURCES) $(gsmsendsms_SOURCES) \
+        $(gsmsmsd_SOURCES) $(gsmsmsstore_SOURCES)
+DIST_COMMON = Makefile.am Makefile.in
+SOURCES = $(gsmctl_SOURCES) $(gsmpb_SOURCES) $(gsmsendsms_SOURCES) $(gsmsmsd_SOURCES) $(gsmsmsstore_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  apps/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+install-binPROGRAMS: $(bin_PROGRAMS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(bindir)
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+          if test -f $$p \
+             || test -f $$p1 \
+          ; then \
+            f=`echo &quot;$$p1&quot; | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+           echo &quot; $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f&quot;; \
+           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
+          else :; fi; \
+        done
+
+uninstall-binPROGRAMS:
+        @$(NORMAL_UNINSTALL)
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          f=`echo &quot;$$p&quot; | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+          echo &quot; rm -f $(DESTDIR)$(bindir)/$$f&quot;; \
+          rm -f $(DESTDIR)$(bindir)/$$f; \
+        done
+
+clean-binPROGRAMS:
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+          echo &quot; rm -f $$p $$f&quot;; \
+          rm -f $$p $$f ; \
+        done
+gsmctl$(EXEEXT): $(gsmctl_OBJECTS) $(gsmctl_DEPENDENCIES) 
+        @rm -f gsmctl$(EXEEXT)
+        $(CXXLINK) $(gsmctl_LDFLAGS) $(gsmctl_OBJECTS) $(gsmctl_LDADD) $(LIBS)
+gsmpb$(EXEEXT): $(gsmpb_OBJECTS) $(gsmpb_DEPENDENCIES) 
+        @rm -f gsmpb$(EXEEXT)
+        $(CXXLINK) $(gsmpb_LDFLAGS) $(gsmpb_OBJECTS) $(gsmpb_LDADD) $(LIBS)
+gsmsendsms$(EXEEXT): $(gsmsendsms_OBJECTS) $(gsmsendsms_DEPENDENCIES) 
+        @rm -f gsmsendsms$(EXEEXT)
+        $(CXXLINK) $(gsmsendsms_LDFLAGS) $(gsmsendsms_OBJECTS) $(gsmsendsms_LDADD) $(LIBS)
+gsmsmsd$(EXEEXT): $(gsmsmsd_OBJECTS) $(gsmsmsd_DEPENDENCIES) 
+        @rm -f gsmsmsd$(EXEEXT)
+        $(CXXLINK) $(gsmsmsd_LDFLAGS) $(gsmsmsd_OBJECTS) $(gsmsmsd_LDADD) $(LIBS)
+gsmsmsstore$(EXEEXT): $(gsmsmsstore_OBJECTS) $(gsmsmsstore_DEPENDENCIES) 
+        @rm -f gsmsmsstore$(EXEEXT)
+        $(CXXLINK) $(gsmsmsstore_LDFLAGS) $(gsmsmsstore_OBJECTS) $(gsmsmsstore_LDADD) $(LIBS)
+
+mostlyclean-compile:
+        -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+        -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmctl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmpb.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmsendsms.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmsmsd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmsmsstore.Po@am__quote@
+
+distclean-depend:
+        -rm -rf ./$(DEPDIR)
+
+.cc.o:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+
+.cc.obj:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `cygpath -w $&lt;`
+
+.cc.lo:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(LTCXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+CXXDEPMODE = @CXXDEPMODE@
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+
+ETAGS = etags
+ETAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+                $(TAGS_FILES) $(LISP)
+        tags=; \
+        here=`pwd`; \
+        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        test -z &quot;$(ETAGS_ARGS)$$tags$$unique&quot; \
+          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$tags $$unique
+
+GTAGS:
+        here=`$(am__cd) $(top_builddir) &amp;&amp; pwd` \
+          &amp;&amp; cd $(top_srcdir) \
+          &amp;&amp; gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+
+installdirs:
+        $(mkinstalldirs) $(DESTDIR)$(bindir)
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+        distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-binPROGRAMS
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+        mostlyclean-libtool
+
+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
+
+.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \
+        clean-generic clean-libtool distclean distclean-compile \
+        distclean-depend distclean-generic distclean-libtool \
+        distclean-tags distdir dvi dvi-am info info-am install \
+        install-am install-binPROGRAMS install-data install-data-am \
+        install-exec install-exec-am install-info install-info-am \
+        install-man install-strip installcheck installcheck-am \
+        installdirs maintainer-clean maintainer-clean-generic \
+        mostlyclean mostlyclean-compile mostlyclean-generic \
+        mostlyclean-libtool tags uninstall uninstall-am \
+        uninstall-binPROGRAMS uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmctlcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmctl.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmctl.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmctl.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,635 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmctl.cc
+// *
+// * Purpose: GSM mobile phone control program
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 11.7.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;strstream&gt;
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// my ME
+
+static MeTa *m;
+
+// information parameters
+
+enum InfoParameter {AllInfo, // print all info
+                    MeInfo,     // MeInfo must be first!
+                    FunctionalityInfo,
+                    OperatorInfo,
+                    CurrentOperatorInfo,
+                    FacilityLockStateInfo,
+                    FacilityLockCapabilityInfo,
+                    PasswordInfo,
+                    PINInfo,
+                    CLIPInfo,
+                    CallForwardingInfo,
+                    BatteryInfo,
+                    BitErrorInfo,
+                    SCAInfo,
+                    CharSetInfo,
+                    SignalInfo}; // SignalInfo must be last!
+
+// operation parameters
+
+// FIXME operations not implemented yet
+
+// options
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;operation&quot;, required_argument, (int*)NULL, 'o'},
+  {&quot;device&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// helper function, prints forwarding info
+
+void printForwardReason(string s, ForwardInfo &amp;info)
+{
+  cout &lt;&lt; s &lt;&lt; &quot;  &quot;
+       &lt;&lt; (info._active ? _(&quot;active &quot;) : _(&quot;inactive &quot;))
+       &lt;&lt; _(&quot;number: &quot;) &lt;&lt; info._number
+       &lt;&lt; _(&quot;  subaddr: &quot;) &lt;&lt; info._subAddr
+       &lt;&lt; _(&quot;  time: &quot;) &lt;&lt; info._time &lt;&lt; endl;
+}
+
+// print information
+
+static void printInfo(InfoParameter ip)
+{
+  switch (ip)
+  {
+  case MeInfo:
+  {
+    MEInfo mei = m-&gt;getMEInfo();
+    cout &lt;&lt; _(&quot;&lt;ME0&gt;  Manufacturer: &quot;) &lt;&lt; mei._manufacturer &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME1&gt;  Model: &quot;) &lt;&lt; mei._model &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME2&gt;  Revision: &quot;) &lt;&lt; mei._revision &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME3&gt;  Serial Number: &quot;) &lt;&lt; mei._serialNumber &lt;&lt; endl;
+    break;
+  }
+  case FunctionalityInfo:
+  {
+    try {
+      int fun;
+      fun = m-&gt;getFunctionalityLevel();
+      cout &lt;&lt; _(&quot;&lt;FUN&gt;  Functionality Level: &quot;) &lt;&lt; fun &lt;&lt; endl;
+    } catch (GsmException &amp;x) { 
+      cout &lt;&lt; _(&quot;&lt;FUN&gt;  Functionality Level: &quot;) &lt;&lt; _(&quot;unsupported&quot;) &lt;&lt; endl;
+    }
+    break;
+  }
+  case OperatorInfo:
+  {
+    int count = 0;
+    vector&lt;OPInfo&gt; opis = m-&gt;getAvailableOPInfo();
+    for (vector&lt;OPInfo&gt;::iterator i = opis.begin(); i != opis.end(); ++i)
+    {
+      cout &lt;&lt; &quot;&lt;OP&quot; &lt;&lt; count &lt;&lt; _(&quot;&gt;  Status: &quot;);
+      switch (i-&gt;_status)
+      {
+      case UnknownOPStatus: cout &lt;&lt; _(&quot;unknown&quot;); break;
+      case CurrentOPStatus: cout &lt;&lt; _(&quot;current&quot;); break;
+      case AvailableOPStatus: cout &lt;&lt; _(&quot;available&quot;); break;
+      case ForbiddenOPStatus: cout &lt;&lt; _(&quot;forbidden&quot;); break;
+      }
+      cout &lt;&lt; _(&quot;  Long name: '&quot;) &lt;&lt; i-&gt;_longName &lt;&lt; &quot;' &quot;
+           &lt;&lt; _(&quot;  Short name: '&quot;) &lt;&lt; i-&gt;_shortName &lt;&lt; &quot;' &quot;
+           &lt;&lt; _(&quot;  Numeric name: &quot;) &lt;&lt; i-&gt;_numericName &lt;&lt; endl;
+      ++count;
+    }
+    break;
+  }
+  case CurrentOperatorInfo:
+  {
+    OPInfo opi = m-&gt;getCurrentOPInfo();
+    cout &lt;&lt; &quot;&lt;CURROP0&gt;&quot;
+         &lt;&lt; _(&quot;  Long name: '&quot;) &lt;&lt; opi._longName &lt;&lt; &quot;' &quot;
+         &lt;&lt; _(&quot;  Short name: '&quot;) &lt;&lt; opi._shortName &lt;&lt; &quot;' &quot;
+         &lt;&lt; _(&quot;  Numeric name: &quot;) &lt;&lt; opi._numericName
+         &lt;&lt; _(&quot;  Mode: &quot;);
+    switch (opi._mode)
+    {
+    case AutomaticOPMode: cout &lt;&lt; _(&quot;automatic&quot;); break;
+    case ManualOPMode: cout &lt;&lt; _(&quot;manual&quot;); break;
+    case DeregisterOPMode: cout &lt;&lt; _(&quot;deregister&quot;); break;
+    case ManualAutomaticOPMode: cout &lt;&lt; _(&quot;manual/automatic&quot;); break;
+    }
+    cout &lt;&lt; endl;
+    break;
+  }
+  case FacilityLockStateInfo:
+  {
+    int count = 0;
+    vector&lt;string&gt; fclc = m-&gt;getFacilityLockCapabilities();
+    for (vector&lt;string&gt;::iterator i = fclc.begin(); i != fclc.end(); ++i)
+      if (*i != &quot;AB&quot; &amp;&amp; *i != &quot;AG&quot; &amp;&amp; *i != &quot;AC&quot;)
+      {
+        cout &lt;&lt; &quot;&lt;FLSTAT&quot; &lt;&lt; count &lt;&lt;  &quot;&gt;  '&quot; &lt;&lt; *i &lt;&lt; &quot;'&quot;;
+        try
+        {
+          if (m-&gt;getFacilityLockStatus(*i, VoiceFacility))
+            cout &lt;&lt; _(&quot;  Voice&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        try
+        {
+        if (m-&gt;getFacilityLockStatus(*i, DataFacility))
+          cout &lt;&lt; _(&quot;  Data&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        try
+        {
+        if (m-&gt;getFacilityLockStatus(*i, FaxFacility))
+          cout &lt;&lt; _(&quot;  Fax&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        cout &lt;&lt; endl;
+        ++count;
+      }
+    break;
+  }
+  case FacilityLockCapabilityInfo:
+  {
+    cout &lt;&lt; &quot;&lt;FLCAP0&gt;  &quot;;
+    vector&lt;string&gt; fclc = m-&gt;getFacilityLockCapabilities();
+    for (vector&lt;string&gt;::iterator i = fclc.begin(); i != fclc.end(); ++i)
+      cout &lt;&lt; &quot;'&quot; &lt;&lt; *i &lt;&lt; &quot;' &quot;;
+    cout &lt;&lt; endl;
+    break;
+  }
+  case PasswordInfo:
+  {
+    vector&lt;PWInfo&gt; pwi = m-&gt;getPasswords();
+    int count = 0;
+    for (vector&lt;PWInfo&gt;::iterator i = pwi.begin(); i != pwi.end(); ++i)
+    {
+      cout &lt;&lt; &quot;&lt;PW&quot; &lt;&lt; count &lt;&lt;  &quot;&gt;  '&quot;
+           &lt;&lt; i-&gt;_facility &lt;&lt; &quot;' &quot; &lt;&lt; i-&gt;_maxPasswdLen &lt;&lt; endl;
+      ++count;
+    }
+    break;
+  }
+  case PINInfo:
+  {
+    cout &lt;&lt; &quot;&lt;PIN0&gt; &quot; &lt;&lt; m-&gt;getPINStatus() &lt;&lt; endl;
+    break;
+  }
+  case CLIPInfo:
+  {
+    cout &lt;&lt; &quot;&lt;CLIP0&gt;  &quot; &lt;&lt; (m-&gt;getNetworkCLIP() ? _(&quot;on&quot;) : _(&quot;off&quot;)) &lt;&lt; endl;
+    break;
+  }
+  case CallForwardingInfo:
+  {
+    for (int r = 0; r &lt; 4; ++r)
+    {
+      string text;
+      switch (r)
+      {
+      case 0: text = _(&quot;UnconditionalReason&quot;); break;
+      case 1: text = _(&quot;MobileBusyReason&quot;); break;
+      case 2: text = _(&quot;NoReplyReason&quot;); break;
+      case 3: text = _(&quot;NotReachableReason&quot;); break;
+      }
+      ForwardInfo voice, fax, data;
+      m-&gt;getCallForwardInfo((ForwardReason)r, voice, fax, data);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;0&gt;  &quot; + text + _(&quot;  Voice&quot;), voice);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;1&gt;  &quot; + text + _(&quot;  Data&quot;), data);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;2&gt;  &quot; + text + _(&quot;  Fax&quot;), fax);
+    }
+    break;
+  }
+  case BatteryInfo:
+  {
+    cout &lt;&lt; &quot;&lt;BATT0&gt;  &quot;;
+    int bcs = m-&gt;getBatteryChargeStatus();
+    switch (bcs)
+    {
+    case 0: cout &lt;&lt; _(&quot;0 ME is powered by the battery&quot;) &lt;&lt; endl; break;
+    case 1: cout &lt;&lt; _(&quot;1 ME has a battery connected, but is not powered by it&quot;)
+                 &lt;&lt; endl; break;
+    case 2: cout &lt;&lt; _(&quot;2 ME does not have a battery connected&quot;) &lt;&lt; endl; break;
+    case 3:
+      cout &lt;&lt; _(&quot;3 Recognized power fault, calls inhibited&quot;) &lt;&lt; endl;
+      break;
+    }
+    cout &lt;&lt; &quot;&lt;BATT1&gt;  &quot; &lt;&lt; m-&gt;getBatteryCharge() &lt;&lt; endl;
+    break;
+  }
+  case BitErrorInfo:
+  {
+    cout &lt;&lt; &quot;&lt;BITERR0&gt;  &quot; &lt;&lt; m-&gt;getBitErrorRate() &lt;&lt; endl;
+    break;
+  }
+  case SCAInfo:
+  {
+    cout &lt;&lt; &quot;&lt;SCA0&gt;  &quot; &lt;&lt; m-&gt;getServiceCentreAddress() &lt;&lt; endl;
+    break;
+  }
+  case CharSetInfo:
+  {
+    cout &lt;&lt; &quot;&lt;CSET0&gt;  &quot;;
+    vector&lt;string&gt; cs = m-&gt;getSupportedCharSets();
+    for (vector&lt;string&gt;::iterator i = cs.begin(); i != cs.end(); ++i)
+      cout &lt;&lt; &quot;'&quot; &lt;&lt; *i &lt;&lt; &quot;' &quot;;
+    cout &lt;&lt; endl;
+    cout &lt;&lt; &quot;&lt;CSET1&gt;  '&quot; &lt;&lt; m-&gt;getCurrentCharSet() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    break;
+  }
+  case SignalInfo:
+  {
+    cout &lt;&lt; &quot;&lt;SIG0&gt;  &quot; &lt;&lt; m-&gt;getSignalStrength() &lt;&lt; endl;
+    break;
+  }
+  default:
+    assert(0);
+    break;
+  }
+}
+
+// convert facility class string of the form &quot;&quot;, &quot;all&quot;, or any combination
+// of &quot;v&quot; (voice), &quot;d&quot; (data), or &quot;f&quot; (fax) to numeric form
+
+FacilityClass strToFacilityClass(string facilityClassS)
+{
+  facilityClassS = lowercase(facilityClassS);
+  FacilityClass facilityClass = (FacilityClass)0;
+  if (facilityClassS == &quot;all&quot; || facilityClassS == &quot;&quot;)
+    return (FacilityClass)ALL_FACILITIES;
+
+  // OR in facility class bits
+  for (unsigned int i = 0; i &lt; facilityClassS.length(); ++i)
+    if (facilityClassS[i] == 'v')
+      facilityClass = (FacilityClass)(facilityClass | VoiceFacility);
+    else if (facilityClassS[i] == 'd')
+      facilityClass = (FacilityClass)(facilityClass | DataFacility);
+    else if (facilityClassS[i] == 'f')
+      facilityClass = (FacilityClass)(facilityClass | FaxFacility);
+    else
+      throw GsmException(
+        stringPrintf(_(&quot;unknown facility class parameter '%c'&quot;),
+                     facilityClassS[i]), ParameterError);
+
+  return facilityClass;
+}
+
+// check if argc - optind is in range min..max
+// throw exception otherwise
+
+void checkParamCount(int optind, int argc, int min, int max)
+{
+  int paramCount = argc - optind;
+  if (paramCount &lt; min)
+    throw GsmException(stringPrintf(_(&quot;not enough parameters, minimum number &quot;
+                                      &quot;of parameters is %d&quot;), min),
+                       ParameterError);
+  else if (paramCount &gt; max)
+    throw GsmException(stringPrintf(_(&quot;too many parameters, maximum number &quot;
+                                      &quot;of parameters is %d&quot;), max),
+                       ParameterError);
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string device = &quot;/dev/mobilephone&quot;;
+    string operation;
+    string baudrate;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;I:o:d:b:hvX&quot;, longOpts, &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'd':
+        device = optarg;
+        break;
+      case 'o':
+        operation = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-b baudrate][-d device][-h]&quot;
+                             &quot;[-I init string][-o operation]\n&quot;
+                             &quot;  [-v][-X]{parameters}&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --device      sets the destination device to &quot;
+                  &quot;connect to&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -o, --operation   operation to perform on the mobile \n&quot;
+                  &quot;                    phone with the specified parameters&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  parameters        parameters to use for the operation\n&quot;
+                  &quot;                    (if an operation is given) or\n&quot;
+                  &quot;                    a specification which kind of\n&quot;
+                  &quot;                    information to read from the mobile &quot;
+                  &quot;phone&quot;)
+             &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;Refer to gsmctl(1) for details on the available parameters&quot;
+                  &quot; and operations.&quot;)
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    // open the port and ME/TA
+    m = new MeTa(new
+#ifdef WIN32
+                 Win32SerialPort
+#else
+                 UnixSerialPort
+#endif
+                 (device,
+                  baudrate == &quot;&quot; ?
+                  DEFAULT_BAUD_RATE :
+                  baudRateStrToSpeed(baudrate),
+                  initString, swHandshake));
+    
+    if (operation == &quot;&quot;)
+    {                           // process info parameters
+      for (int i = optind; i &lt; argc; ++i)
+      {
+        string param = lowercase(argv[i]);
+        if (param == &quot;all&quot;)
+          for (int ip = MeInfo; ip &lt;= SignalInfo; ++ip)
+            printInfo((InfoParameter)ip);
+        else if (param == &quot;me&quot;)
+          printInfo(MeInfo);
+        else if (param == &quot;fun&quot;)
+          printInfo(FunctionalityInfo);
+        else if (param == &quot;op&quot;)
+          printInfo(OperatorInfo);
+        else if (param == &quot;currop&quot;)
+          printInfo(CurrentOperatorInfo);
+        else if (param == &quot;flstat&quot;)
+          printInfo(FacilityLockStateInfo);
+        else if (param == &quot;flcap&quot;)
+          printInfo(FacilityLockCapabilityInfo);
+        else if (param == &quot;pw&quot;)
+          printInfo(PasswordInfo);
+        else if (param == &quot;pin&quot;)
+          printInfo(PINInfo);
+        else if (param == &quot;clip&quot;)
+          printInfo(CLIPInfo);
+        else if (param == &quot;forw&quot;)
+          printInfo(CallForwardingInfo);
+        else if (param == &quot;batt&quot;)
+          printInfo(BatteryInfo);
+        else if (param == &quot;biterr&quot;)
+          printInfo(BitErrorInfo);
+        else if (param == &quot;sig&quot;)
+          printInfo(SignalInfo);
+        else if (param == &quot;sca&quot;)
+          printInfo(SCAInfo);
+        else if (param == &quot;cset&quot;)
+          printInfo(CharSetInfo);
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown information parameter '%s'&quot;),
+                         param.c_str()),
+            ParameterError);
+      }
+    }
+    else
+    {                           // process operation
+      operation = lowercase(operation);
+      if (operation == &quot;dial&quot;)
+      {
+        // dial: number
+        checkParamCount(optind, argc, 1, 1);
+
+        m-&gt;dial(argv[optind]);
+        
+        // wait for keypress from stdin
+        char c;
+        read(1, &amp;c, 1);
+      }
+      else if (operation == &quot;on&quot;)
+      {
+          m-&gt;setFunctionalityLevel(1);
+      }
+      else if (operation == &quot;off&quot;)
+      {
+          m-&gt;setFunctionalityLevel(0);
+      }
+      else if (operation == &quot;pin&quot;)
+      {
+        // pin: PIN
+        checkParamCount(optind, argc, 1, 1);
+
+        m-&gt;setPIN(argv[optind]);
+      }
+      else if (operation == &quot;setop&quot;)
+      {
+        // setop: opmode numeric FIXME allow long and numeric too
+        checkParamCount(optind, argc, 2, 2);
+        string opmodeS = lowercase(argv[optind]);
+        OPModes opmode;
+        if (opmodeS == &quot;automatic&quot;)
+          opmode = AutomaticOPMode;
+        else if (opmodeS == &quot;manual&quot;)
+          opmode = ManualOPMode;
+        else if (opmodeS == &quot;deregister&quot;)
+          opmode = DeregisterOPMode;
+        else if (opmodeS == &quot;manualautomatic&quot;)
+          opmode = ManualAutomaticOPMode;
+        else
+          throw GsmException(stringPrintf(_(&quot;unknown opmode parameter '%s'&quot;),
+                                          opmodeS.c_str()), ParameterError);
+
+        m-&gt;setCurrentOPInfo(opmode, &quot;&quot; , &quot;&quot;, checkNumber(argv[optind + 1]));
+      }
+      else if (operation == &quot;lock&quot;)
+      {
+        // lock: facility [facilityclass] [passwd]
+        checkParamCount(optind, argc, 1, 3);
+        string passwd = (argc - optind == 3) ?
+          (string)argv[optind + 2] : (string)&quot;&quot;;
+        
+        m-&gt;lockFacility(argv[optind],
+                        (argc - optind &gt;= 2) ?
+                        strToFacilityClass(argv[optind + 1]) :
+                        (FacilityClass)ALL_FACILITIES,
+                        passwd);
+      }
+      else if (operation == &quot;unlock&quot;)
+      {
+        // unlock: facility [facilityclass] [passwd]
+        checkParamCount(optind, argc, 1, 3);
+        string passwd = argc - optind == 3 ? argv[optind + 2] : &quot;&quot;;
+        
+        m-&gt;unlockFacility(argv[optind],
+                          (argc - optind &gt;= 2) ?
+                          strToFacilityClass(argv[optind + 1]) :
+                          (FacilityClass)ALL_FACILITIES,
+                          passwd);
+      }
+      else if (operation == &quot;setpw&quot;)
+      {
+        // set password: facility oldpasswd newpasswd
+        checkParamCount(optind, argc, 1, 3);
+        string oldPasswd = argc - optind &gt;= 2 ? argv[optind + 1] : &quot;&quot;;
+        string newPasswd = argc - optind == 3 ? argv[optind + 2] : &quot;&quot;;
+
+        m-&gt;setPassword(argv[optind], oldPasswd, newPasswd);
+      }
+      else if (operation == &quot;forw&quot;)
+      {
+        // call forwarding: mode reason number [facilityclass] [forwardtime]
+        checkParamCount(optind, argc, 2, 5);
+
+        // get optional parameters facility class and forwardtime
+        int forwardTime = argc - optind == 5 ? checkNumber(argv[optind + 4]) :
+          NOT_SET;
+        FacilityClass facilityClass =
+          argc - optind &gt;= 4 ? strToFacilityClass(argv[optind + 3]) :
+          (FacilityClass)ALL_FACILITIES;
+        
+        // get forward reason
+        string reasonS = lowercase(argv[optind + 1]);
+        ForwardReason reason;
+        if (reasonS == &quot;unconditional&quot;)
+          reason = UnconditionalReason;
+        else if (reasonS == &quot;mobilebusy&quot;)
+          reason = MobileBusyReason;
+        else if (reasonS == &quot;noreply&quot;)
+          reason = NoReplyReason;
+        else if (reasonS == &quot;notreachable&quot;)
+          reason = NotReachableReason;
+        else if (reasonS == &quot;all&quot;)
+          reason = AllReasons;
+        else if (reasonS == &quot;allconditional&quot;)
+          reason = AllConditionalReasons;
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown forward reason parameter '%s'&quot;),
+                         reasonS.c_str()), ParameterError);
+        
+        // get mode
+        string modeS = lowercase(argv[optind]);
+        ForwardMode mode;
+        if (modeS == &quot;disable&quot;)
+          mode = DisableMode;
+        else if (modeS == &quot;enable&quot;)
+          mode = EnableMode;
+        else if (modeS == &quot;register&quot;)
+          mode = RegistrationMode;
+        else if (modeS == &quot;erase&quot;)
+          mode = ErasureMode;
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown forward mode parameter '%s'&quot;),
+                         modeS.c_str()), ParameterError);
+
+        m-&gt;setCallForwarding(reason, mode,
+                             (argc - optind &gt;= 3) ? argv[optind + 2] : &quot;&quot;,
+                             &quot;&quot;, // subaddr
+                             facilityClass, forwardTime);
+      }
+      else if (operation == &quot;setsca&quot;)
+      {
+        // set sca: number
+        checkParamCount(optind, argc, 1, 1);
+        m-&gt;setServiceCentreAddress(argv[optind]);
+      }
+      else if (operation == &quot;cset&quot;)
+      {
+        // set charset: string
+        checkParamCount(optind, argc, 1, 1);
+        m-&gt;setCharSet(argv[optind]);
+      }
+      else
+         throw GsmException(stringPrintf(_(&quot;unknown operation '%s'&quot;),
+                                         operation.c_str()), ParameterError);
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmpbcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmpb.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmpb.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmpb.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,507 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmpb.cc
+// *
+// * Purpose: phonebook management program
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 24.6.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sorted_phonebook.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;phonebook&quot;, required_argument, (int*)NULL, 'p'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;destination&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;source&quot;, required_argument, (int*)NULL, 's'},
+  {&quot;destination-backend&quot;, required_argument, (int*)NULL, 'D'},
+  {&quot;source-backend&quot;, required_argument, (int*)NULL, 'S'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;charset&quot;, required_argument, (int*)NULL, 't'},
+  {&quot;copy&quot;, no_argument, (int*)NULL, 'c'},
+  {&quot;synchronize&quot;, no_argument, (int*)NULL, 'y'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {&quot;verbose&quot;, no_argument, (int*)NULL, 'V'},
+  {&quot;indexed&quot;, no_argument, (int*)NULL, 'i'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// insert those entries from sourcePhonebook into destPhonebook
+// that are not already present in destPhonebook
+
+void insertNotPresent(SortedPhonebookRef sourcePhonebook,
+                      SortedPhonebookRef destPhonebook,
+                      bool indexed, bool verbose)
+{
+  for (SortedPhonebookBase::iterator i = sourcePhonebook-&gt;begin();
+       i != sourcePhonebook-&gt;end(); ++i)
+  {
+    pair&lt;SortedPhonebookBase::iterator, SortedPhonebookBase::iterator&gt; range;
+    if (indexed)
+    {
+      int index = i-&gt;index();
+      range = destPhonebook-&gt;equal_range(index);
+    }
+    else
+    {
+      string text = i-&gt;text();
+      range = destPhonebook-&gt;equal_range(text);
+    }
+
+    // do nothing if the entry is already present in the destination
+    bool alreadyPresent = false;
+    for (SortedPhonebookBase::iterator j = range.first;
+         j != range.second; ++j)
+    {
+      i-&gt;setUseIndex(indexed);
+      if (i-&gt;telephone() == j-&gt;telephone())
+      {
+        alreadyPresent = true;
+        break;
+      }
+    }
+    // ... else insert it
+    if (! alreadyPresent)
+    {
+      if (verbose)
+      {
+        cout &lt;&lt; stringPrintf(_(&quot;inserting '%s' tel# %s&quot;),
+                             i-&gt;text().c_str(), i-&gt;telephone().c_str());
+        if (indexed)
+          cout &lt;&lt; stringPrintf(_(&quot; (index #%d)&quot;), i-&gt;index());
+        cout &lt;&lt; endl;
+      }
+      i-&gt;setUseIndex(indexed);
+      destPhonebook-&gt;insert(*i); // insert
+    }
+  }
+}
+
+// update those entries in destPhonebook, that
+// - have the same name as one entry in destPhonebook
+// - but have a different telephone number
+// this is only done if the name in question is unique in the destPhonebook
+// the case of several entries having the same in the sourcePhonebook
+// is handled - only the first is considered for updating
+
+void updateEntries(SortedPhonebookRef sourcePhonebook,
+                   SortedPhonebookRef destPhonebook,
+                   bool verbose)
+{
+  bool firstLoop = true;
+  string lastText;
+
+  for (SortedPhonebookBase::iterator i = sourcePhonebook-&gt;begin();
+       i != sourcePhonebook-&gt;end(); ++i)
+  {
+    string text = i-&gt;text();
+    if (! firstLoop &amp;&amp; text != lastText)
+    {
+      pair&lt;SortedPhonebookBase::iterator,
+        SortedPhonebookBase::iterator&gt; range =
+        destPhonebook-&gt;equal_range(text);
+      
+      SortedPhonebookBase::iterator first = range.first;
+      if (first != destPhonebook-&gt;end() &amp;&amp; range.second == ++first)
+      {                         // just one text in the destPhonebook
+        if (! (*range.first == *i)) // overwrite if different in destination
+        {
+          if (verbose)
+            cout &lt;&lt; stringPrintf(_(&quot;updating '%s' tel# %s to new tel# %s&quot;),
+                                 range.first-&gt;text().c_str(),
+                                 range.first-&gt;telephone().c_str(),
+                                 i-&gt;telephone().c_str())
+                 &lt;&lt; endl;
+          
+          *range.first = *i;
+        }
+      }
+      lastText = text;
+    }
+    firstLoop = false;
+  }
+}
+
+// the same but for indexed phonebooks
+
+void updateEntriesIndexed(SortedPhonebookRef sourcePhonebook,
+                          SortedPhonebookRef destPhonebook,
+                          bool verbose)
+{
+  for (SortedPhonebookBase::iterator i = sourcePhonebook-&gt;begin();
+       i != sourcePhonebook-&gt;end(); ++i)
+  {
+    int index = i-&gt;index();
+    
+    SortedPhonebookBase::iterator j = destPhonebook-&gt;find(index);
+    
+    if (j != destPhonebook-&gt;end())
+    {                           // index present in the destPhonebook
+      if (! (*j == *i))         // overwrite if different in destination
+      {
+        if (verbose)
+          cout &lt;&lt; stringPrintf(_(&quot;updating '%s' tel# %s to new tel# %s&quot;
+                                 &quot;(index %d)&quot;),
+                               j-&gt;text().c_str(),
+                               j-&gt;telephone().c_str(),
+                               i-&gt;telephone().c_str(), i-&gt;index())
+               &lt;&lt; endl;
+        
+        *j = *i;
+      }
+    }
+  }
+}
+
+// delete those entries from destPhonebook, that are not present
+// in sourcePhonebook
+
+void deleteNotPresent(SortedPhonebookRef sourcePhonebook,
+                      SortedPhonebookRef destPhonebook,
+                      bool indexed, bool verbose)
+{
+  for (SortedPhonebookBase::iterator i = destPhonebook-&gt;begin();
+       i != destPhonebook-&gt;end(); ++i)
+  {
+    pair&lt;SortedPhonebookBase::iterator, SortedPhonebookBase::iterator&gt; range;
+    if (indexed)
+    {
+      int index = i-&gt;index();
+      range = sourcePhonebook-&gt;equal_range(index);
+    }
+    else
+    {
+      string text = i-&gt;text();
+      range = sourcePhonebook-&gt;equal_range(text);
+    }
+        
+    bool found = false;
+    for (SortedPhonebookBase::iterator j = range.first;
+         j != range.second; ++j)
+    {
+      i-&gt;setUseIndex(indexed);
+      if (j-&gt;telephone() == i-&gt;telephone())
+      {
+        found = true;
+        break;
+      }
+    }
+    if (! found)
+    {
+      if (verbose)
+      {
+        cout &lt;&lt; stringPrintf(_(&quot;deleting '%s' tel# %s&quot;),
+                             i-&gt;text().c_str(), i-&gt;telephone().c_str());
+        if (indexed)
+          cout &lt;&lt; stringPrintf(_(&quot; (index #%d)&quot;), i-&gt;index());
+        cout &lt;&lt; endl;
+      }
+      destPhonebook-&gt;erase(i);
+#ifdef BUGGY_MAP_ERASE
+          deleteNotPresent(sourcePhonebook, destPhonebook, indexed, verbose);
+          return;
+#endif
+    }
+  }
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string destination;
+    string source;
+    string destinationBackend;
+    string sourceBackend;
+    string baudrate;
+    bool doSynchronize = true;
+    string phonebook;
+    SortedPhonebookRef sourcePhonebook, destPhonebook;
+    bool verbose = false;
+    bool indexed = false;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+    string charSet;
+    Ref&lt;MeTa&gt; sourceMeTa, destMeTa;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;I:p:s:d:b:cyhvViD:S:Xt:&quot;, longOpts,
+                             &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'V':
+        verbose = true;
+        break;
+      case 'p':
+        phonebook = optarg;
+        break;
+      case 'd':
+        destination = optarg;
+        break;
+      case 's':
+        source = optarg;
+        break;
+      case 'D':
+        destinationBackend = optarg;
+        break;
+      case 'S':
+        sourceBackend = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 't':
+        charSet = optarg;
+        break;
+      case 'c':
+        doSynchronize = false;
+        break;
+      case 'i':
+        indexed = true;
+        break;
+      case 'y':
+        doSynchronize = true;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-b baudrate][-c][-d device or file][-h]&quot;
+                             &quot;[-I init string]\n&quot;
+                             &quot;  [-p phonebook name][-s device or file]&quot;
+                             &quot;[-t charset][-v]&quot;
+                             &quot;[-V][-y][-X]&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -c, --copy        copy source entries to destination&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --destination sets the destination device to &quot;
+                  &quot;connect \n&quot;
+                  &quot;                    to, or the file to write&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -D, --destination-backend sets the destination backend&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -i, --index       takes index positions into account&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -p, --phonebook   name of phonebook to use&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -s, --source      sets the source device to connect to,\n&quot;
+                  &quot;                    or the file to read&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -t, --charset     sets the character set to use for\n&quot;
+                  &quot;                    phonebook entries&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -S, --source-backend sets the source backend&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -V, --verbose     print detailed progress messages&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -y, --synchronize synchronize destination with source\n&quot;
+                  &quot;                    entries (destination is overwritten)\n&quot;
+                  &quot;                    (see gsmpb(1) for details)&quot;)
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    // check if all parameters all present
+    if (destination == &quot;&quot; || source == &quot;&quot;)
+      throw GsmException(_(&quot;both source and destination must be given&quot;),
+                         ParameterError);
+
+    // start accessing source mobile phone or file
+    if (sourceBackend != &quot;&quot;)
+      sourcePhonebook =
+        CustomPhonebookRegistry::createPhonebook(sourceBackend, source);
+    else if (source == &quot;-&quot;)
+      sourcePhonebook = new SortedPhonebook(true, indexed);
+    else if (isFile(source))
+      sourcePhonebook = new SortedPhonebook(source, indexed);
+    else
+    {
+      if (phonebook == &quot;&quot;)
+        throw GsmException(_(&quot;phonebook name must be given&quot;), ParameterError);
+
+      sourceMeTa = new MeTa(new
+#ifdef WIN32
+                            Win32SerialPort
+#else
+                            UnixSerialPort
+#endif
+                            (source,
+                             baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                             baudRateStrToSpeed(baudrate), initString,
+                             swHandshake));
+      if (charSet != &quot;&quot;)
+        sourceMeTa-&gt;setCharSet(charSet);
+      sourcePhonebook =
+        new SortedPhonebook(sourceMeTa-&gt;getPhonebook(phonebook));
+    }
+
+    // make sure destination.c_str file exists
+        if (destination != &quot;&quot;)
+        {
+      try
+          {
+        ofstream f(destination.c_str(), ios::out | ios::app);
+          }
+      catch (exception)
+          {
+          }
+        }
+
+    // start accessing destination mobile phone or file
+    if (destinationBackend != &quot;&quot;)
+      destPhonebook =
+        CustomPhonebookRegistry::createPhonebook(destinationBackend,
+                                                 destination);
+    else if (destination == &quot;-&quot;)
+      destPhonebook = new SortedPhonebook(false, indexed);
+    else if (isFile(destination))
+      destPhonebook = new SortedPhonebook(destination, indexed);
+    else
+    {
+      if (phonebook == &quot;&quot;)
+        throw GsmException(_(&quot;phonebook name must be given&quot;), ParameterError);
+
+      destMeTa = new MeTa(new 
+#ifdef WIN32
+                          Win32SerialPort
+#else
+                          UnixSerialPort
+#endif
+                          (destination,
+                           baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                           baudRateStrToSpeed(baudrate), initString,
+                           swHandshake));
+      if (charSet != &quot;&quot;)
+        destMeTa-&gt;setCharSet(charSet);
+      PhonebookRef destPb = destMeTa-&gt;getPhonebook(phonebook);
+
+      // check maximum lengths of source text and phonenumber when writing to
+      // mobile phone
+      unsigned int maxTextLen = destPb-&gt;getMaxTextLen();
+      unsigned int maxTelLen = destPb-&gt;getMaxTelephoneLen();
+
+      for (SortedPhonebookBase::iterator i = sourcePhonebook-&gt;begin();
+           i != sourcePhonebook-&gt;end(); ++i)
+        if (i-&gt;text().length() &gt; maxTextLen)
+          throw GsmException(
+            stringPrintf(_(&quot;text '%s' is too large to fit into destination &quot;
+                           &quot;(maximum size %d characters)&quot;),
+                         i-&gt;text().c_str(), maxTextLen),
+            ParameterError);
+        else if (i-&gt;telephone().length() &gt; maxTelLen)
+          throw GsmException(
+            stringPrintf(_(&quot;phone number '%s' is too large to fit into &quot;
+                           &quot;destination (maximum size %d characters)&quot;),
+                         i-&gt;telephone().c_str(), maxTelLen),
+            ParameterError);
+
+      // read phonebook
+      destPhonebook = new SortedPhonebook(destPb);      
+    }
+
+    // now do the actual work
+    if (doSynchronize)
+    {                           // synchronizing
+      if (indexed)
+      {
+        sourcePhonebook-&gt;setSortOrder(ByIndex);
+        destPhonebook-&gt;setSortOrder(ByIndex);
+        // for an explanation see below
+        updateEntriesIndexed(sourcePhonebook, destPhonebook, verbose);
+        deleteNotPresent(sourcePhonebook, destPhonebook, true, verbose);
+        insertNotPresent(sourcePhonebook, destPhonebook, true, verbose);
+      }
+      else
+      {
+        sourcePhonebook-&gt;setSortOrder(ByText);
+        destPhonebook-&gt;setSortOrder(ByText);
+        // the following is done to avoid superfluous writes to the TA
+        // (that takes time) and keep updated (ie. telephone number changed)
+        // entries at the same place
+        // 1. update entries in place where just the number changed
+        updateEntries(sourcePhonebook, destPhonebook, verbose);
+        // 2. delete those that are not present anymore
+        deleteNotPresent(sourcePhonebook, destPhonebook, false, verbose);
+        // 3. insert the new ones
+        insertNotPresent(sourcePhonebook, destPhonebook, false, verbose);
+      }
+    }
+    else
+    {                           // copying
+      destPhonebook-&gt;clear();
+      for (SortedPhonebookBase::iterator i = sourcePhonebook-&gt;begin();
+           i != sourcePhonebook-&gt;end(); ++i)
+      {
+        if (verbose)
+        {
+          cout &lt;&lt; stringPrintf(_(&quot;inserting '%s' tel# %s&quot;),
+                               i-&gt;text().c_str(), i-&gt;telephone().c_str());
+          if (indexed)
+            cout &lt;&lt; stringPrintf(_(&quot; (index #%d)&quot;), i-&gt;index());
+          cout &lt;&lt; endl;
+        }
+        destPhonebook-&gt;insert(*i);
+      }
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsendsmscc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsendsms.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsendsms.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsendsms.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,257 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmsendsms.cc
+// *
+// * Purpose: GSM sms send program
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 16.7.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// options
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;requeststat&quot;, no_argument, (int*)NULL, 'r'},
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;sca&quot;, required_argument, (int*)NULL, 'C'},
+  {&quot;device&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;concatenate&quot;, required_argument, (int*)NULL, 'c'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;test&quot;, no_argument, (int*)NULL, 't'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// convert /r and /n to CR and LF
+
+static string unescapeString(char *line)
+{
+  string result;
+  bool escaped = false;
+  int index = 0;
+
+  while (line[index] != 0 &amp;&amp;
+         line[index] != CR &amp;&amp; line[index] != LF)
+  {
+    if (escaped)
+    {
+      escaped = false;
+      if (line[index] == 'r')
+        result += CR;
+      else if (line[index] == 'n')
+        result += LF;
+      else if (line[index] == '\\')
+        result += '\\';
+      else
+        result += line[index];
+    }
+    else
+      if (line[index] == '\\')
+        escaped = true;
+      else
+        result += line[index];
+
+    ++index;
+  }
+  return result;
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string device = &quot;/dev/mobilephone&quot;;
+    bool test = false;
+    string baudrate;
+    Ref&lt;GsmAt&gt; at;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+    bool requestStatusReport = false;
+    // service centre address (set on command line)
+    string serviceCentreAddress;
+    MeTa *m = NULL;
+    string concatenatedMessageIdStr;
+    int concatenatedMessageId = -1;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;c:C:I:d:b:thvXr&quot;, longOpts, &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'c':
+        concatenatedMessageIdStr = optarg;
+        break;
+      case 'C':
+        serviceCentreAddress = optarg;
+        break;
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'd':
+        device = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 't':
+        test = true;
+        break;
+      case 'r':
+        requestStatusReport = true;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-b baudrate][-c concatenatedID]&quot;
+                             &quot;[-C sca][-d device][-h][-I init string]\n&quot;
+                             &quot;  [-t][-v][-X] phonenumber [text]&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -c, --concatenate ID for concatenated SMS messages&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -C, --sca         SMS service centre address&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --device      sets the destination device to connect &quot;
+                  &quot;to&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -r, --requeststat request SMS status report&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -t, --test        convert text to GSM alphabet and &quot;
+                  &quot;vice\n&quot;
+                  &quot;                    versa, no SMS message is sent&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  phonenumber       recipient's phone number&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  text              optional text of the SMS message\n&quot;
+                  &quot;                    if omitted: read from stdin&quot;)
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    if (! test)
+    {
+      // open the port and ME/TA
+      Ref&lt;Port&gt; port = new
+#ifdef WIN32
+             Win32SerialPort
+#else
+             UnixSerialPort
+#endif
+        (device,
+         baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+         baudRateStrToSpeed(baudrate),
+         initString, swHandshake);
+      // switch message service level to 1
+      // this enables acknowledgement PDUs
+      m = new MeTa(port);
+      m-&gt;setMessageService(1);
+
+      at = new GsmAt(*m);
+    }
+
+    // check parameters
+    if (optind == argc)
+      throw GsmException(_(&quot;phone number and text missing&quot;), ParameterError);
+
+    if (optind + 2 &lt; argc)
+      throw GsmException(_(&quot;more than two parameters given&quot;), ParameterError);
+    
+    if (concatenatedMessageIdStr != &quot;&quot;)
+      concatenatedMessageId = checkNumber(concatenatedMessageIdStr);
+
+    // get phone number
+    string phoneNumber = argv[optind];
+
+    // get text
+    string text;
+    if (optind + 1 == argc)
+    {                           // read from stdin
+      char s[1000];
+      cin.get(s, 1000);
+      text = unescapeString(s);
+      if (text.length() &gt; 160)
+        throw GsmException(_(&quot;text is larger than 160 characters&quot;),
+                           ParameterError);
+    }
+    else
+      text = argv[optind + 1];
+
+    if (test)
+      cout &lt;&lt; gsmToLatin1(latin1ToGsm(text)) &lt;&lt; endl;
+    else
+    {
+      // send SMS
+      Ref&lt;SMSSubmitMessage&gt; submitSMS = new SMSSubmitMessage();
+      // set service centre address in new submit PDU if requested by user
+      if (serviceCentreAddress != &quot;&quot;)
+      {
+        Address sca(serviceCentreAddress);
+        submitSMS-&gt;setServiceCentreAddress(sca);
+      }
+      submitSMS-&gt;setStatusReportRequest(requestStatusReport);
+      Address destAddr(phoneNumber);
+      submitSMS-&gt;setDestinationAddress(destAddr);
+      if (concatenatedMessageId == -1)
+        m-&gt;sendSMSs(submitSMS, text, true);
+      else
+        m-&gt;sendSMSs(submitSMS, text, false, concatenatedMessageId);
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsmsdcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsd.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsd.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsd.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,719 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmsmsd.cc
+// *
+// * Purpose: SMS receiver daemon
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 5.6.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+
+#ifdef WIN32
+#include &lt;io.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#define popen _popen
+#define pclose _pclose
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#include &lt;dirent.h&gt;
+#include &lt;syslog.h&gt;
+#endif
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;signal.h&gt;
+#include &lt;fstream&gt;
+#include &lt;iostream&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_event.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;requeststat&quot;, no_argument, (int*)NULL, 'r'},
+  {&quot;direct&quot;, no_argument, (int*)NULL, 'D'},
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;store&quot;, required_argument, (int*)NULL, 't'},
+  {&quot;device&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;spool&quot;, required_argument, (int*)NULL, 's'},
+  {&quot;sent&quot;, required_argument, (int*)NULL, 'S'},
+  {&quot;failed&quot;, required_argument, (int*)NULL, 'F'},
+  {&quot;priorities&quot;, required_argument, (int*)NULL, 'P'},
+#ifndef WIN32
+  {&quot;syslog&quot;, no_argument, (int*)NULL, 'L'},
+#endif
+  {&quot;sca&quot;, required_argument, (int*)NULL, 'C'},
+  {&quot;flush&quot;, no_argument, (int*)NULL, 'f'},
+  {&quot;concatenate&quot;, required_argument, (int*)NULL, 'c'},
+  {&quot;action&quot;, required_argument, (int*)NULL, 'a'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// my ME
+
+static MeTa *me = NULL;
+string receiveStoreName;        // store name for received SMSs
+
+// service centre address (set on command line)
+
+static string serviceCentreAddress;
+
+// ID if concatenated messages should be sent
+
+static int concatenatedMessageId = -1;
+
+// signal handler for terminate signal
+
+bool terminateSent = false;
+
+void terminateHandler(int signum)
+{
+  terminateSent = true;
+}
+
+// local class to handle SMS events
+
+struct IncomingMessage
+{
+  // used if new message is put into store
+  int _index;                   // -1 means message want send directly
+  string _storeName;
+  // used if SMS message was sent directly to TA
+  SMSMessageRef _newSMSMessage;
+  // used if CB message was sent directly to TA
+  CBMessageRef _newCBMessage;
+  // used in both cases
+  GsmEvent::SMSMessageType _messageType;
+
+  IncomingMessage() : _index(-1) {}
+};
+
+vector&lt;IncomingMessage&gt; newMessages;
+
+class EventHandler : public GsmEvent
+{
+public:
+  // inherited from GsmEvent
+  void SMSReception(SMSMessageRef newMessage,
+                    SMSMessageType messageType);
+  void CBReception(CBMessageRef newMessage);
+  void SMSReceptionIndication(string storeName, unsigned int index,
+                              SMSMessageType messageType);
+
+  virtual ~EventHandler() {}
+};
+
+void EventHandler::SMSReception(SMSMessageRef newMessage,
+                                SMSMessageType messageType)
+{
+  IncomingMessage m;
+  m._messageType = messageType;
+  m._newSMSMessage = newMessage;
+  newMessages.push_back(m);
+}
+
+void EventHandler::CBReception(CBMessageRef newMessage)
+{
+  IncomingMessage m;
+  m._messageType = GsmEvent::CellBroadcastSMS;
+  m._newCBMessage = newMessage;
+  newMessages.push_back(m);
+}
+
+void EventHandler::SMSReceptionIndication(string storeName, unsigned int index,
+                                          SMSMessageType messageType)
+{
+  IncomingMessage m;
+  m._index = index;
+
+  if (receiveStoreName != &quot;&quot; &amp;&amp; ( storeName == &quot;MT&quot; || storeName == &quot;mt&quot;))
+    m._storeName = receiveStoreName;
+  else
+    m._storeName = storeName;
+
+  m._messageType = messageType;
+  newMessages.push_back(m);
+}
+
+// execute action on string
+
+void doAction(string action, string result)
+{
+  if (action != &quot;&quot;)
+  {
+    FILE *fd = popen(action.c_str(), &quot;w&quot;);
+    if (fd == NULL)
+      throw GsmException(stringPrintf(_(&quot;could not execute '%s'&quot;),
+                                      action.c_str()), OSError);
+    fputs(result.c_str(), fd);
+    if (ferror(fd))
+      throw GsmException(stringPrintf(_(&quot;error writing to '%s'&quot;),
+                                      action.c_str()), OSError);
+    pclose(fd);
+  }
+  else
+    // default if no action: output on stdout
+    cout &lt;&lt; result &lt;&lt; endl;
+}
+
+// send all SMS messages in spool dir
+
+bool requestStatusReport = false;
+
+void sendSMS(string spoolDirBase, string sentDirBase, string failedDirBase,
+             unsigned int priority, bool enableSyslog, Ref&lt;GsmAt&gt; at)
+{
+  string spoolDir = spoolDirBase;
+  string sentDir = sentDirBase;
+  string failedDir = failedDirBase;
+  if ( priority &gt;= 1 )
+  {
+    spoolDir = spoolDirBase + stringPrintf(_(&quot;%d&quot;),priority);
+    sentDir = sentDirBase + stringPrintf(_(&quot;%d&quot;),priority);
+    failedDir = failedDirBase + stringPrintf(_(&quot;%d&quot;),priority);
+  }
+  if ( priority &gt; 1 )
+    sendSMS(spoolDirBase, sentDirBase, failedDirBase, priority-1, enableSyslog, at);
+  if (spoolDirBase != &quot;&quot;)
+  {
+    // look into spoolDir for any outgoing SMS that should be sent
+#ifdef WIN32
+    struct _finddata_t fileInfo;
+        long fileHandle;
+        string pattern = spoolDir + &quot;\\*&quot;;
+    fileHandle = _findfirst(pattern.c_str(), &amp;fileInfo);
+        bool moreFiles = fileHandle != -1L;
+#else
+    DIR *dir = opendir(spoolDir.c_str());
+    if (dir == (DIR*)NULL)
+      throw GsmException(
+        stringPrintf(_(&quot;error when calling opendir('%s')&quot;
+                       &quot;(errno: %d/%s)&quot;), 
+                     spoolDir.c_str(), errno, strerror(errno)),
+        OSError);
+#endif
+
+#ifdef WIN32
+    while (moreFiles)
+        {
+      if (strcmp(fileInfo.name, &quot;.&quot;) != 0 &amp;&amp;
+          strcmp(fileInfo.name, &quot;..&quot;) != 0)
+#else
+    struct dirent *entry;
+    while ((entry = readdir(dir)) != (struct dirent*)NULL)
+      if (strcmp(entry-&gt;d_name, &quot;.&quot;) != 0 &amp;&amp;
+          strcmp(entry-&gt;d_name, &quot;..&quot;) != 0)
+#endif
+      {
+        if ( priority &gt; 1 )
+          sendSMS(spoolDirBase, sentDirBase, failedDirBase, priority-1, enableSyslog, at);
+        // read in file
+        // the first line is interpreted as the phone number
+        // the rest is the message
+#ifdef WIN32
+        string filename = spoolDir + &quot;\\&quot; + fileInfo.name;
+#else
+        string filename = spoolDir + &quot;/&quot; + entry-&gt;d_name;
+#endif
+        ifstream ifs(filename.c_str());
+        if (! ifs)
+#ifndef WIN32
+          if (enableSyslog)
+          {
+            syslog(LOG_WARNING, &quot;Could not open SMS spool file %s&quot;,
+                   filename.c_str());
+            if (failedDirBase != &quot;&quot;) {
+              string failedfilename = failedDir + &quot;/&quot; + entry-&gt;d_name;
+              rename(filename.c_str(),failedfilename.c_str());
+            }
+            continue;
+          }
+          else
+#endif
+          throw GsmException(
+            stringPrintf(_(&quot;count not open SMS spool file %s&quot;),
+                         filename.c_str()), ParameterError);
+        char phoneBuf[1001];
+        ifs.getline(phoneBuf, 1000);
+        for(int i=0;i&lt;1000;i++)
+          if(phoneBuf[i]=='\t' || phoneBuf[i]==0)
+          { // ignore everything after a &lt;TAB&gt; in the phone number
+            phoneBuf[i]=0;
+            break;
+          }
+        string text;
+        while (! ifs.eof())
+        {
+          char c;
+          ifs.get(c);
+          text += c;
+        }
+        ifs.close();
+        
+        // remove trailing newline/linefeed
+        while (text[text.length() - 1] == '\n' ||
+               text[text.length() - 1] == '\r')
+          text = text.substr(0, text.length() - 1);
+
+        // send the message
+        string phoneNumber(phoneBuf);
+        Ref&lt;SMSSubmitMessage&gt; submitSMS = new SMSSubmitMessage();
+        // set service centre address in new submit PDU if requested by user
+        if (serviceCentreAddress != &quot;&quot;)
+        {
+          Address sca(serviceCentreAddress);
+          submitSMS-&gt;setServiceCentreAddress(sca);
+        }
+        submitSMS-&gt;setStatusReportRequest(requestStatusReport);
+        Address destAddr(phoneNumber);
+        submitSMS-&gt;setDestinationAddress(destAddr);
+        try
+        {
+          if (concatenatedMessageId == -1)
+            me-&gt;sendSMSs(submitSMS, text, true);
+          else
+          {
+            // maximum for concatenatedMessageId is 255
+            if (concatenatedMessageId &gt; 256)
+              concatenatedMessageId = 0;
+            me-&gt;sendSMSs(submitSMS, text, false, concatenatedMessageId++);
+          }
+#ifndef WIN32
+          if (enableSyslog)
+            syslog(LOG_NOTICE, &quot;Sent SMS to %s from file %s&quot;, phoneBuf, filename.c_str());
+#endif
+          if (sentDirBase != &quot;&quot;) {
+#ifdef WIN32
+          string sentfilename = sentDir + &quot;\\&quot; + fileInfo.name;
+#else
+          string sentfilename = sentDir + &quot;/&quot; + entry-&gt;d_name;
+#endif
+            rename(filename.c_str(),sentfilename.c_str());
+          } else {
+            unlink(filename.c_str());
+          }
+        }
+        catch (GsmException &amp;me)
+        {
+#ifndef WIN32
+          if (enableSyslog)
+            syslog(LOG_WARNING, &quot;Failed sending SMS to %s from file %s: %s&quot;, phoneBuf,
+                   filename.c_str(), me.what());
+          else
+#endif
+            cerr &lt;&lt; &quot;Failed sending SMS to &quot; &lt;&lt; phoneBuf &lt;&lt; &quot; from &quot;
+                 &lt;&lt; filename &lt;&lt; &quot;: &quot; &lt;&lt; me.what() &lt;&lt; endl;
+          if (failedDirBase != &quot;&quot;) {
+#ifdef WIN32
+            string failedfilename = failedDir + &quot;\\&quot; + fileInfo.name;
+#else
+            string failedfilename = failedDir + &quot;/&quot; + entry-&gt;d_name;
+#endif
+            rename(filename.c_str(),failedfilename.c_str());
+          }
+        }
+#ifdef WIN32
+      }
+      moreFiles = _findnext(fileHandle, &amp;fileInfo) == 0; 
+#endif
+    }
+#ifdef WIN32
+    _findclose(fileHandle);
+#else
+    closedir(dir);
+#endif
+  }
+}
+
+#ifndef WIN32
+void syslogExit(int exitcode, int *dummy)
+{
+  syslog(LOG_NOTICE, &quot;exited (exit %d)&quot;,exitcode);
+}
+#endif
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  bool enableSyslog = false;
+  try
+  {
+    string device = &quot;/dev/mobilephone&quot;;
+    string action;
+    string baudrate;
+    bool enableSMS = true;
+    bool enableCB = true;
+    bool enableStat = true;
+    bool flushSMS = false;
+    bool onlyReceptionIndication = true;
+    string spoolDir;
+    string sentDir = &quot;&quot;;
+    string failedDir = &quot;&quot;;
+    unsigned int priorities = 0;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+    string concatenatedMessageIdStr;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;c:C:I:t:fd:a:b:hvs:S:F:P:LXDr&quot;,
+                             longOpts, &amp;dummy)) != -1)
+      switch (opt)
+      {
+      case 'c':
+        concatenatedMessageIdStr = optarg;
+        break;
+      case 'r':
+        requestStatusReport = true;
+        break;
+      case 'D':
+        onlyReceptionIndication = false;
+        break;
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 't':
+        receiveStoreName = optarg;
+        break;
+      case 'd':
+        device = optarg;
+        break;
+      case 'C':
+        serviceCentreAddress = optarg;
+        break;
+      case 's':
+        spoolDir = optarg;
+        break;
+      case 'S':
+        sentDir = optarg;
+        break;
+      case 'F':
+        failedDir = optarg;
+        break;
+      case 'P':
+        priorities = abs(atoi(optarg));
+        break;
+      case 'f':
+        flushSMS = true;
+        break;
+      case 'a':
+        action = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-a action][-b baudrate][-C sca][-d device]&quot;
+                             &quot;[-f][-h][-I init string]\n&quot;
+                             &quot;  [-s spool dir][-t][-v]{sms_type}&quot;)
+             &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;  -a, --action      the action to execute when an SMS &quot;
+                  &quot;arrives\n&quot;
+                  &quot;                    (SMS is send to stdin of action)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -c, --concatenate start ID for concatenated SMS messages&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -C, --sca         SMS service centre address&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --device      sets the device to connect to&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -D, --direct      enable direct routing of SMSs&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -f, --flush       flush SMS from store&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -F, --failed      directory to move failed SMS to,&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;                    if unset, the SMS will be deleted&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+#ifndef WIN32
+             &lt;&lt; _(&quot;  -L, --syslog      log errors and information to syslog&quot;)
+             &lt;&lt; endl
+#endif
+             &lt;&lt; _(&quot;  -P, --priorities  number of priority levels to use,&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;                    (default: none)&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -r, --requeststat request SMS status report&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -s, --spool       spool directory for outgoing SMS&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -S, --sent        directory to move sent SMS to,&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;                    if unset, the SMS will be deleted&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -t, --store       name of SMS store to use for flush\n&quot;
+                  &quot;                    and/or temporary SMS storage&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  sms_type may be any combination of&quot;) &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;    sms, no_sms     controls reception of normal SMS&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;    cb, no_cb       controls reception of cell broadcast&quot;
+                  &quot; messages&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;    stat, no_stat   controls reception of status reports&quot;)
+             &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;  default is \&quot;sms cb stat\&quot;&quot;) &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;If no action is given, the SMS is printed to stdout&quot;)
+             &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;If -P is given, it activates the priority system and sets the&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;number or levels to use. For every level, there must be directories&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;named &lt;spool directory&gt;+&lt;priority level&gt;.&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;For example \&quot;-P 2 -s queue -S send -F failed\&quot; needs the following&quot;) &lt;&lt;endl
+             &lt;&lt; _(&quot;directories: queue1/ queue2/ send1/ send2/ failed1/ failed2/&quot;) &lt;&lt;endl
+             &lt;&lt; _(&quot;Before sending one SMS from queue2, all pending SMS from queue1&quot;) &lt;&lt;endl
+             &lt;&lt; _(&quot;will be sent.&quot;) &lt;&lt;endl
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+  
+    // find out which kind of message to route
+    for (int i = optind; i &lt; argc; ++i)
+    {
+      string s = lowercase(argv[i]);
+      if (s == &quot;sms&quot;)
+        enableSMS = true;
+      else if (s == &quot;no_sms&quot;)
+        enableSMS = false;
+      else if (s == &quot;cb&quot;)
+        enableCB = true;
+      else if (s == &quot;no_cb&quot;)
+        enableCB = false;
+      else if (s == &quot;stat&quot;)
+        enableStat = true;
+      else if (s == &quot;no_stat&quot;)
+        enableStat = false;
+    }
+
+    // check parameters
+    if (concatenatedMessageIdStr != &quot;&quot;)
+      concatenatedMessageId = checkNumber(concatenatedMessageIdStr);
+    
+    // register signal handler for terminate signal
+#ifndef WIN32
+    struct sigaction terminateAction;
+    terminateAction.sa_handler = terminateHandler;
+    sigemptyset(&amp;terminateAction.sa_mask);
+    terminateAction.sa_flags = SA_RESTART;
+    if (sigaction(SIGINT, &amp;terminateAction, NULL) != 0 ||
+        sigaction(SIGTERM, &amp;terminateAction, NULL) != 0)
+#else
+    if(signal(SIGINT, terminateHandler) == SIG_ERR ||
+        signal(SIGTERM, terminateHandler) == SIG_ERR)
+#endif
+      throw GsmException(
+        stringPrintf(_(&quot;error when calling sigaction() (errno: %d/%s)&quot;), 
+                     errno, strerror(errno)),
+        OSError);
+
+    // open GSM device
+    me = new MeTa(new
+#ifdef WIN32
+                  Win32SerialPort
+#else
+                  UnixSerialPort
+#endif
+                  (device,
+                   baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                   baudRateStrToSpeed(baudrate), initString,
+                   swHandshake));
+
+    // if flush option is given get all SMS from store and dispatch them
+    if (flushSMS)
+    {
+      if (receiveStoreName == &quot;&quot;)
+        throw GsmException(_(&quot;store name must be given for flush option&quot;),
+                           ParameterError);
+      
+      SMSStoreRef store = me-&gt;getSMSStore(receiveStoreName);
+
+      for (SMSStore::iterator s = store-&gt;begin(); s != store-&gt;end(); ++s)
+        if (! s-&gt;empty())
+        {
+          string result = _(&quot;Type of message: &quot;);
+          switch (s-&gt;message()-&gt;messageType())
+          {
+          case SMSMessage::SMS_DELIVER:
+            result += _(&quot;SMS message\n&quot;);
+            break;
+          case SMSMessage::SMS_SUBMIT_REPORT:
+            result += _(&quot;submit report message\n&quot;);
+            break;
+          case SMSMessage::SMS_STATUS_REPORT:
+            result += _(&quot;status report message\n&quot;);
+            break;
+          }
+          result += s-&gt;message()-&gt;toString();
+          doAction(action, result);
+          store-&gt;erase(s);
+        }
+    }
+
+    // set default SMS store if -t option was given or
+    // read from ME otherwise
+    if (receiveStoreName == &quot;&quot;)
+    {
+      string dummy1, dummy2;
+      me-&gt;getSMSStore(dummy1, dummy2, receiveStoreName );
+    }
+    else
+      me-&gt;setSMSStore(receiveStoreName, 3);
+
+    // switch message service level to 1
+    // this enables SMS routing to TA
+    me-&gt;setMessageService(1);
+
+    // switch on SMS routing
+    me-&gt;setSMSRoutingToTA(enableSMS, enableCB, enableStat,
+                        onlyReceptionIndication);
+
+    // register event handler to handle routed SMSs, CBMs, and status reports
+    me-&gt;setEventHandler(new EventHandler());
+    
+    // wait for new messages
+    bool exitScheduled = false;
+    while (1)
+    {
+#ifdef WIN32
+      ::timeval timeoutVal;
+      timeoutVal.tv_sec = 5;
+      timeoutVal.tv_usec = 0;
+      me-&gt;waitEvent((gsmlib::timeval *)&amp;timeoutVal);
+#else
+      struct timeval timeoutVal;
+      timeoutVal.tv_sec = 5;
+      timeoutVal.tv_usec = 0;
+      me-&gt;waitEvent(&amp;timeoutVal);
+#endif
+      // if it returns, there was an event or a timeout
+      while (newMessages.size() &gt; 0)
+      {
+        // get first new message and remove it from the vector
+        SMSMessageRef newSMSMessage = newMessages.begin()-&gt;_newSMSMessage;
+        CBMessageRef newCBMessage = newMessages.begin()-&gt;_newCBMessage;
+        GsmEvent::SMSMessageType messageType =
+          newMessages.begin()-&gt;_messageType;
+        int index = newMessages.begin()-&gt;_index;
+        string storeName = newMessages.begin()-&gt;_storeName;
+        newMessages.erase(newMessages.begin());
+
+        // process the new message
+        string result = _(&quot;Type of message: &quot;);
+        switch (messageType)
+        {
+        case GsmEvent::NormalSMS:
+          result += _(&quot;SMS message\n&quot;);
+          break;
+        case GsmEvent::CellBroadcastSMS:
+          result += _(&quot;cell broadcast message\n&quot;);
+          break;
+        case GsmEvent::StatusReportSMS:
+          result += _(&quot;status report message\n&quot;);
+          break;
+        }
+        if (! newSMSMessage.isnull())
+          result += newSMSMessage-&gt;toString();
+        else if (! newCBMessage.isnull())
+          result += newCBMessage-&gt;toString();
+        else
+        {
+          SMSStoreRef store = me-&gt;getSMSStore(storeName);
+          store-&gt;setCaching(false);
+
+          if (messageType == GsmEvent::CellBroadcastSMS)
+            result += (*store.getptr())[index].cbMessage()-&gt;toString();
+          else
+            result += (*store.getptr())[index].message()-&gt;toString();
+            
+          store-&gt;erase(store-&gt;begin() + index);
+        }
+        
+        // call the action
+        doAction(action, result);
+      }
+
+      // if no new SMS came in and program exit was scheduled, then exit
+      if (exitScheduled)
+        exit(0);
+      
+      // handle terminate signal
+      if (terminateSent)
+      {
+        exitScheduled = true;
+        // switch off SMS routing
+        try
+        {
+          me-&gt;setSMSRoutingToTA(false, false, false);
+        }
+        catch (GsmException &amp;ge)
+        {
+          // some phones (e.g. Motorola Timeport 260) don't allow to switch
+          // off SMS routing which results in an error. Just ignore this.
+        }
+        // the AT sequences involved in switching of SMS routing
+        // may yield more SMS events, so go round the loop one more time
+      }
+
+      // send spooled SMS
+      if (! terminateSent)
+        sendSMS(spoolDir, sentDir, failedDir, priorities, enableSyslog, me-&gt;getAt());
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    if (ge.getErrorClass() == MeTaCapabilityError)
+      cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;)
+           &lt;&lt; _(&quot;(try setting sms_type, please refer to gsmsmsd manpage)&quot;)
+           &lt;&lt; endl;
+    // switch off message routing, so that following invocations of gsmsmd
+    // are not swamped with message deliveries while they start up
+    if (me != NULL)
+    {
+      try
+      {
+        me-&gt;setSMSRoutingToTA(false, false, false);
+      }
+      catch (GsmException &amp;ge)
+      {
+        // some phones (e.g. Motorola Timeport 260) don't allow to switch
+        // off SMS routing which results in an error. Just ignore this.
+      }
+    }
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1appsgsmsmsstorecc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsstore.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsstore.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/apps/gsmsmsstore.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,439 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmsmsstore.cc
+// *
+// * Purpose: SMS store management program
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.8.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#include &lt;ctype.h&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sorted_sms_store.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;store&quot;, required_argument, (int*)NULL, 't'},
+  {&quot;erase&quot;, no_argument, (int*)NULL, 'e'},
+  {&quot;add&quot;, no_argument, (int*)NULL, 'a'},
+  {&quot;list&quot;, no_argument, (int*)NULL, 'l'},
+  {&quot;destination&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;source&quot;, required_argument, (int*)NULL, 's'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;sca&quot;, required_argument, (int*)NULL, 'C'},
+  {&quot;copy&quot;, no_argument, (int*)NULL, 'c'},
+  {&quot;delete&quot;, no_argument, (int*)NULL, 'x'},
+  {&quot;backup&quot;, no_argument, (int*)NULL, 'k'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {&quot;verbose&quot;, no_argument, (int*)NULL, 'V'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+bool verbose = false;           // true if --verbose option given
+
+// type of operation to perform
+
+enum Operation {CopyOp = 'c', BackupOp = 'k', DeleteOp = 'x',
+                AddOp = 'a', ListOp = 'l', NoOp = 0};
+
+// aux function, insert entry only if not already present in dest
+
+void backup(SortedSMSStoreRef destStore, SMSStoreEntry &amp;entry)
+{
+  // the following only works because we know that the default sort order
+  // is by date
+  assert(destStore-&gt;sortOrder() == ByDate);
+
+  Timestamp date = entry.message()-&gt;serviceCentreTimestamp();
+  pair&lt;SortedSMSStore::iterator, SortedSMSStore::iterator&gt; range =
+    destStore-&gt;equal_range(date);
+          
+  for (SortedSMSStore::iterator j = range.first;
+       j != range.second; ++j)
+    if (entry == *j)
+      // do nothing if the entry is already present in the destination
+      return;
+
+  if (verbose)
+    cout &lt;&lt; stringPrintf(_(&quot;inserting entry #%d from source into destination&quot;),
+                         entry.index()) &lt;&lt; endl
+         &lt;&lt; entry.message()-&gt;toString();
+  destStore-&gt;insert(entry);     // insert
+}
+
+// aux function, throw exception if operation != NoOp
+
+void checkNoOp(Operation operation, int opt)
+{
+  if (operation != NoOp)
+    throw GsmException(stringPrintf(_(&quot;incompatible options '%c' and '%c'&quot;),
+                                    (char)operation, (char)opt),
+                       ParameterError);
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string destination;
+    string source;
+    string baudrate;
+    string storeName;
+    char operation = NoOp;
+    SortedSMSStoreRef sourceStore, destStore;
+    bool useIndices = false;    // use indices in delete, copy, backup op
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+    // service centre address (set on command line)
+    string serviceCentreAddress;
+    Ref&lt;MeTa&gt; sourceMeTa, destMeTa;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;I:t:s:d:b:cxlakhvVXC:&quot;,
+                             longOpts, &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'C':
+        serviceCentreAddress = optarg;
+        break;
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'V':
+        verbose = true;
+        break;
+      case 't':
+        storeName = optarg;
+        break;
+      case 'd':
+        destination = optarg;
+        break;
+      case 's':
+        source = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 'c':
+        checkNoOp((Operation)operation, opt);
+        operation = CopyOp;
+        break;
+      case 'x':
+        checkNoOp((Operation)operation, opt);
+        operation = DeleteOp;
+        break;
+      case 'l':
+        checkNoOp((Operation)operation, opt);
+        operation = ListOp;
+        break;
+      case 'a':
+        checkNoOp((Operation)operation, opt);
+        operation = AddOp;
+        break;
+      case 'k':
+        checkNoOp((Operation)operation, opt);
+        operation = BackupOp;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-a][-b baudrate][-c][-C sca]&quot;
+                             &quot;[-d device or file]\n&quot;
+                             &quot;  [-h][-I init string][-k][-l]&quot;
+                             &quot;[-s device or file]&quot;
+                             &quot;[-t SMS store name]\n  [-v][-V][-x][-X]&quot;
+                             &quot;{indices}|[phonenumber text]&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -a, --add         add new SMS submit message\n&quot;
+                  &quot;                    (phonenumber and text) to destination&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -c, --copy        copy source entries to destination\n&quot;
+                  &quot;                    (if indices are given, &quot;
+                  &quot;copy only these entries)&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -C, --sca         SMS service centre address&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --destination sets the destination device to\n&quot;
+                  &quot;                    connect to, or the file to write to&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -k, --backup      backup new entries to destination\n&quot;
+                  &quot;                    (if indices are given, &quot;
+                  &quot;copy only these entries)&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -l, --list        list source to stdout&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -s, --source      sets the source device to connect to,\n&quot;
+                  &quot;                    or the file to read&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -t, --store       name of SMS store to use&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -V, --verbose     print detailed progress messages&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -x, --delete      delete entries denoted by indices&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    // check if parameters are complete
+    if (operation == NoOp)
+      throw GsmException(_(&quot;no operation option given&quot;), ParameterError);
+    if (operation == BackupOp || operation == CopyOp)
+      if (destination.length() == 0 || source.length() == 0)
+        throw GsmException(_(&quot;both source and destination required&quot;),
+                           ParameterError);
+    if (operation == ListOp)
+    {
+      if (destination.length() != 0)
+        throw GsmException(_(&quot;destination must not be given&quot;), ParameterError);
+      if (source.length() == 0)
+        throw GsmException(_(&quot;source required&quot;), ParameterError);
+    }
+    if (operation == AddOp || operation == DeleteOp)
+    {
+      if (source.length() != 0)
+        throw GsmException(_(&quot;source must not be given&quot;), ParameterError);
+      if (destination.length() == 0)
+        throw GsmException(_(&quot;destination required&quot;), ParameterError);
+    }
+    if (operation == CopyOp || operation == DeleteOp || operation == BackupOp)
+    {
+      // check if all indices are numbers
+      for (int i = optind; i &lt; argc; ++i)
+        for (char *pp = argv[i]; *pp != 0; ++pp)
+          if (! isdigit(*pp))
+            throw GsmException(stringPrintf(_(&quot;expected number, got '%s'&quot;),
+                                            argv[i]), ParameterError);
+      useIndices = optind != argc;
+    }
+    else if (operation == AddOp)
+    {
+      if (optind + 2 &lt; argc)
+        throw GsmException(_(&quot;more than two parameters given&quot;),
+                           ParameterError);
+      if (optind + 2 &gt; argc)
+        throw GsmException(_(&quot;not enough parameters given&quot;),
+                           ParameterError);
+    }
+    else
+      if (optind != argc)
+        throw GsmException(_(&quot;unexpected parameters&quot;), ParameterError);
+    
+    // start accessing source store or file if required by operation
+    if (operation == CopyOp || operation == BackupOp || operation == ListOp)
+      if (source == &quot;-&quot;)
+        sourceStore = new SortedSMSStore(true);
+      else if (isFile(source))
+        sourceStore = new SortedSMSStore(source);
+      else
+      {
+        if (storeName == &quot;&quot;)
+          throw GsmException(_(&quot;store name must be given&quot;), ParameterError);
+        
+        sourceMeTa = new MeTa(new
+#ifdef WIN32
+                              Win32SerialPort
+#else
+                              UnixSerialPort
+#endif
+                              (source,
+                               baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                               baudRateStrToSpeed(baudrate), initString,
+                               swHandshake));
+        sourceStore = new SortedSMSStore(sourceMeTa-&gt;getSMSStore(storeName));
+      }
+      
+    // make sure destination file exists
+    if (destination != &quot;&quot;)
+    {
+      try
+      {
+        ofstream f(destination.c_str(), ios::out | ios::app | ios::binary);
+      }
+      catch (exception)
+      {
+      }
+    }
+
+    // start accessing destination destination store or file
+    if (operation == CopyOp || operation == BackupOp || operation == AddOp ||
+        operation == DeleteOp)
+      if (destination == &quot;-&quot;)
+        destStore = new SortedSMSStore(false);
+      else if (isFile(destination))
+        destStore = new SortedSMSStore(destination);
+      else
+      {
+        if (storeName == &quot;&quot;)
+          throw GsmException(_(&quot;store name must be given&quot;), ParameterError);
+        
+        destMeTa = new MeTa(new
+#ifdef WIN32
+                            Win32SerialPort
+#else
+                            UnixSerialPort
+#endif
+                            (destination,
+                             baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                             baudRateStrToSpeed(baudrate), initString,
+                             swHandshake));
+        destStore = new SortedSMSStore(destMeTa-&gt;getSMSStore(storeName));      
+      }
+
+    // now do the actual work
+    switch (operation)
+    {
+    case BackupOp:
+    {
+      sourceStore-&gt;setSortOrder(ByIndex); // needed in loop
+
+      if (useIndices)
+        for (int i = optind; i &lt; argc; ++i)
+        {
+          SortedSMSStore::iterator j = sourceStore-&gt;find(atoi(argv[i]));
+          if (j == sourceStore-&gt;end())
+            throw GsmException(stringPrintf(_(&quot;no index '%s' in source&quot;),
+                                            argv[i]), ParameterError);
+          backup(destStore, *j);
+        }
+      else
+        for (SortedSMSStore::iterator i = sourceStore-&gt;begin();
+             i != sourceStore-&gt;end(); ++i)
+          backup(destStore, *i);
+      break;
+    }
+    case CopyOp:
+    {                        
+      destStore-&gt;clear();
+      if (! useIndices)         // copy all entries
+      {
+        for (SortedSMSStore::iterator i = sourceStore-&gt;begin();
+             i != sourceStore-&gt;end(); ++i)
+        {
+          if (verbose)
+            cout &lt;&lt; stringPrintf(_(&quot;inserting entry #%d from source &quot;
+                                   &quot;into destination&quot;), i-&gt;index()) &lt;&lt; endl
+                 &lt;&lt; i-&gt;message()-&gt;toString();
+          destStore-&gt;insert(*i);
+        }
+      }
+      else                      // copy indexed entries
+      {
+        sourceStore-&gt;setSortOrder(ByIndex); // needed in loop
+
+        for (int i = optind; i &lt; argc; ++i)
+        {
+          SortedSMSStore::iterator j = sourceStore-&gt;find(atoi(argv[i]));
+          if (j == sourceStore-&gt;end())
+            throw GsmException(stringPrintf(_(&quot;no index '%s' in source&quot;),
+                                            argv[i]), ParameterError);
+          if (verbose)
+            cout &lt;&lt; stringPrintf(_(&quot;inserting entry #%d from source into &quot;
+                                   &quot;destination&quot;), j-&gt;index()) &lt;&lt; endl
+                 &lt;&lt; j-&gt;message()-&gt;toString();
+          destStore-&gt;insert(*j);
+        }
+      }
+      break;
+    }
+    case ListOp:
+    {
+      for (SortedSMSStore::iterator i = sourceStore-&gt;begin();
+           i != sourceStore-&gt;end(); ++i)
+        cout &lt;&lt; stringPrintf(_(&quot;index #%d&quot;), i-&gt;index()) &lt;&lt; endl
+             &lt;&lt; i-&gt;message()-&gt;toString();
+      break;
+    }
+    case AddOp:
+    {
+      SMSMessageRef sms = new SMSSubmitMessage(argv[optind + 1], argv[optind]);
+      // set service centre address in new submit PDU if requested by user
+      if (serviceCentreAddress != &quot;&quot;)
+      {
+        Address sca(serviceCentreAddress);
+        sms-&gt;setServiceCentreAddress(sca);
+      }
+      if (verbose)
+        cout &lt;&lt; _(&quot;inserting new entry into destination&quot;) &lt;&lt; endl
+             &lt;&lt; sms-&gt;toString();
+      destStore-&gt;insert(sms);
+      break;
+    }
+    case DeleteOp:
+    {
+      destStore-&gt;setSortOrder(ByIndex);
+      for (int i = optind; i &lt; argc; ++i)
+      {
+        int index = atoi(argv[i]);
+        if (verbose)
+        {
+          SortedSMSStore::iterator e = destStore-&gt;find(index);
+          if (e != destStore-&gt;end())
+            cout &lt;&lt; stringPrintf(_(&quot;deleting entry #%d from destination&quot;),
+                                 index) &lt;&lt; endl
+                 &lt;&lt; e-&gt;message()-&gt;toString();
+        }
+        if (destStore-&gt;erase(index) != 1)
+          throw GsmException(stringPrintf(_(&quot;no index '%s' in destination&quot;),
+                                          argv[i]), ParameterError);
+      }
+      break;
+    }
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1configure"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,30623 @@
</span><ins>+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.59.
+#
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n &quot;${ZSH_VERSION+set}&quot; &amp;&amp; (emulate sh) &gt;/dev/null 2&gt;&amp;1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+&quot;$@&quot;}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+&quot;$@&quot;}'='&quot;$@&quot;'
+elif test -n &quot;${BASH_VERSION+set}&quot; &amp;&amp; (set -o posix) &gt;/dev/null 2&gt;&amp;1; then
+  set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) &gt;/dev/null 2&gt;&amp;1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='&gt; '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -z &quot;`(eval $as_var=C; export $as_var) 2&gt;&amp;1`&quot;); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename /) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test &quot;X`basename / 2&gt;&amp;1`&quot; = &quot;X/&quot;; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename &quot;$0&quot; ||
+$as_expr X/&quot;$0&quot; : '.*/\([^/][^/]*\)/*$' \| \
+         X&quot;$0&quot; : 'X\(//\)$' \| \
+         X&quot;$0&quot; : 'X\(/\)$' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X/&quot;$0&quot; |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+            /^X\/\(\/\/\)$/{ s//\1/; q; }
+            /^X\/\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+  test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+  test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot;  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  case $0 in
+    *[\\/]* ) as_myself=$0 ;;
+    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  test -r &quot;$as_dir/$0&quot; &amp;&amp; as_myself=$as_dir/$0 &amp;&amp; break
+done
+
+       ;;
+  esac
+  # We did not find ourselves, most probably we were run as `sh COMMAND'
+  # in which case we are not to be found in the path.
+  if test &quot;x$as_myself&quot; = x; then
+    as_myself=$0
+  fi
+  if test ! -f &quot;$as_myself&quot;; then
+    { echo &quot;$as_me: error: cannot find myself; rerun with an absolute path&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for as_base in sh bash ksh sh5; do
+         case $as_dir in
+         /*)
+           if (&quot;$as_dir/$as_base&quot; -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+  test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+  test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot; ') 2&gt;/dev/null; then
+             $as_unset BASH_ENV || test &quot;${BASH_ENV+set}&quot; != set || { BASH_ENV=; export BASH_ENV; }
+             $as_unset ENV || test &quot;${ENV+set}&quot; != set || { ENV=; export ENV; }
+             CONFIG_SHELL=$as_dir/$as_base
+             export CONFIG_SHELL
+             exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; ${1+&quot;$@&quot;}
+           fi;;
+         esac
+       done
+done
+;;
+  esac
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, and appends trailing '-' during
+  # substitution so that $LINENO is not a special case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' &lt;$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' &gt;$as_me.lineno &amp;&amp;
+  chmod +x $as_me.lineno ||
+    { echo &quot;$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo &quot;testing\c&quot;; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='        ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo &gt;conf$$.file
+if ln -s conf$$.file conf$$ 2&gt;/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2&gt;/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2&gt;/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p &amp;&amp; rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_executable_p=&quot;test -f&quot;
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp=&quot;eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'&quot;
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh=&quot;eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'&quot;
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=&quot;         $as_nl&quot;
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+  # Remove one level of quotation (which was required for Make).
+  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\$\\$0,'$0','`
+  ;;
+esac
+
+echo=${ECHO-echo}
+if test &quot;X$1&quot; = X--no-reexec; then
+  # Discard the --no-reexec flag, and continue.
+  shift
+elif test &quot;X$1&quot; = X--fallback-echo; then
+  # Avoid inline document here, it may be left over
+  :
+elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' ; then
+  # Yippee, $echo works!
+  :
+else
+  # Restart under the correct shell.
+  exec $SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+fi
+
+if test &quot;X$1&quot; = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat &lt;&lt;EOF
+$*
+EOF
+  exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
+
+if test -z &quot;$ECHO&quot;; then
+if test &quot;X${echo_test_string+set}&quot; != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+  for cmd in 'sed 50q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 2q &quot;$0&quot;' 'echo test'; do
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+    if (echo_test_string=`eval $cmd`) 2&gt;/dev/null &amp;&amp;
+       echo_test_string=`eval $cmd` &amp;&amp;
+       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
+    then
+      break
+    fi
+  done
+fi
+
+if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+  :
+else
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
+  # backslashes.  This makes it impossible to quote backslashes using
+  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
+  #
+  # So, first we look for a working echo in the user's PATH.
+
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for dir in $PATH /usr/ucb; do
+    IFS=&quot;$lt_save_ifs&quot;
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+      echo=&quot;$dir/echo&quot;
+      break
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+
+  if test &quot;X$echo&quot; = Xecho; then
+    # We didn't find a better echo, so look for alternatives.
+    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+      # This shell has a builtin print -r that does the trick.
+      echo='print -r'
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
+         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+      # If we have ksh, try running configure again with it.
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+      export ORIGINAL_CONFIG_SHELL
+      CONFIG_SHELL=/bin/ksh
+      export CONFIG_SHELL
+      exec $CONFIG_SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+    else
+      # Try using printf.
+      echo='printf %s\n'
+      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        # Cool, printf works
+        :
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+        export CONFIG_SHELL
+        SHELL=&quot;$CONFIG_SHELL&quot;
+        export SHELL
+        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+      elif echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+           echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+      else
+        # maybe with a smaller string...
+        prev=:
+
+        for cmd in 'echo test' 'sed 2q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 50q &quot;$0&quot;'; do
+          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
+          then
+            break
+          fi
+          prev=&quot;$cmd&quot;
+        done
+
+        if test &quot;$prev&quot; != 'sed 50q &quot;$0&quot;'; then
+          echo_test_string=`eval $prev`
+          export echo_test_string
+          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;$0&quot; ${1+&quot;$@&quot;}
+        else
+          # Oops.  We lost completely, so just stick with echo.
+          echo=echo
+        fi
+      fi
+    fi
+  fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL $0 --fallback-echo&quot;; then
+   ECHO=&quot;$CONFIG_SHELL \\\$\$0 --fallback-echo&quot;
+fi
+
+
+
+
+tagnames=${tagnames+${tagnames},}CXX
+
+tagnames=${tagnames+${tagnames},}F77
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2&gt;/dev/null | sed 1q`
+
+exec 6&gt;&amp;1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_config_libobj_dir=.
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=
+
+ac_unique_file=&quot;gsmlib/gsm_error.h&quot;
+# Factoring default headers for most tests.
+ac_includes_default=&quot;\
+#include &lt;stdio.h&gt;
+#if HAVE_SYS_TYPES_H
+# include &lt;sys/types.h&gt;
+#endif
+#if HAVE_SYS_STAT_H
+# include &lt;sys/stat.h&gt;
+#endif
+#if STDC_HEADERS
+# include &lt;stdlib.h&gt;
+# include &lt;stddef.h&gt;
+#else
+# if HAVE_STDLIB_H
+#  include &lt;stdlib.h&gt;
+# endif
+#endif
+#if HAVE_STRING_H
+# if !STDC_HEADERS &amp;&amp; HAVE_MEMORY_H
+#  include &lt;memory.h&gt;
+# endif
+# include &lt;string.h&gt;
+#endif
+#if HAVE_STRINGS_H
+# include &lt;strings.h&gt;
+#endif
+#if HAVE_INTTYPES_H
+# include &lt;inttypes.h&gt;
+#else
+# if HAVE_STDINT_H
+#  include &lt;stdint.h&gt;
+# endif
+#endif
+#if HAVE_UNISTD_H
+# include &lt;unistd.h&gt;
+#endif&quot;
+
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA GSM_VERSION MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB COMPILE_INTL_TRUE COMPILE_INTL_FALSE LIBOBJS LTLIBOBJS'
+ac_subst_files=''
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can &quot;make install exec_prefix=/foo&quot;
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
+
+ac_prev=
+for ac_option
+do
+  # If the previous option needs an argument, assign it.
+  if test -n &quot;$ac_prev&quot;; then
+    eval &quot;$ac_prev=\$ac_option&quot;
+    ac_prev=
+    continue
+  fi
+
+  ac_optarg=`expr &quot;x$ac_option&quot; : 'x[^=]*=\(.*\)'`
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_option in
+
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
+    ac_prev=bindir ;;
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+    bindir=$ac_optarg ;;
+
+  -build | --build | --buil | --bui | --bu)
+    ac_prev=build_alias ;;
+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+    build_alias=$ac_optarg ;;
+
+  -cache-file | --cache-file | --cache-fil | --cache-fi \
+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+    ac_prev=cache_file ;;
+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+    cache_file=$ac_optarg ;;
+
+  --config-cache | -C)
+    cache_file=config.cache ;;
+
+  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+  | --da=*)
+    datadir=$ac_optarg ;;
+
+  -disable-* | --disable-*)
+    ac_feature=`expr &quot;x$ac_option&quot; : 'x-*disable-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr &quot;x$ac_feature&quot; : &quot;.*[^-_$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      { echo &quot;$as_me: error: invalid feature name: $ac_feature&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    eval &quot;enable_$ac_feature=no&quot; ;;
+
+  -enable-* | --enable-*)
+    ac_feature=`expr &quot;x$ac_option&quot; : 'x-*enable-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr &quot;x$ac_feature&quot; : &quot;.*[^-_$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      { echo &quot;$as_me: error: invalid feature name: $ac_feature&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    case $ac_option in
+      *=*) ac_optarg=`echo &quot;$ac_optarg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;`;;
+      *) ac_optarg=yes ;;
+    esac
+    eval &quot;enable_$ac_feature='$ac_optarg'&quot; ;;
+
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+  | --exec | --exe | --ex)
+    ac_prev=exec_prefix ;;
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+  | --exec=* | --exe=* | --ex=*)
+    exec_prefix=$ac_optarg ;;
+
+  -gas | --gas | --ga | --g)
+    # Obsolete; use --with-gas.
+    with_gas=yes ;;
+
+  -help | --help | --hel | --he | -h)
+    ac_init_help=long ;;
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+    ac_init_help=recursive ;;
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+    ac_init_help=short ;;
+
+  -host | --host | --hos | --ho)
+    ac_prev=host_alias ;;
+  -host=* | --host=* | --hos=* | --ho=*)
+    host_alias=$ac_optarg ;;
+
+  -includedir | --includedir | --includedi | --included | --include \
+  | --includ | --inclu | --incl | --inc)
+    ac_prev=includedir ;;
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
+    includedir=$ac_optarg ;;
+
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
+    ac_prev=infodir ;;
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+    infodir=$ac_optarg ;;
+
+  -libdir | --libdir | --libdi | --libd)
+    ac_prev=libdir ;;
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
+    libdir=$ac_optarg ;;
+
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+  | --libexe | --libex | --libe)
+    ac_prev=libexecdir ;;
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+  | --libexe=* | --libex=* | --libe=*)
+    libexecdir=$ac_optarg ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst \
+  | --locals | --local | --loca | --loc | --lo)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+    localstatedir=$ac_optarg ;;
+
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+    ac_prev=mandir ;;
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+    mandir=$ac_optarg ;;
+
+  -nfp | --nfp | --nf)
+    # Obsolete; use --without-fp.
+    with_fp=no ;;
+
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c | -n)
+    no_create=yes ;;
+
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+    no_recursion=yes ;;
+
+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+  | --oldin | --oldi | --old | --ol | --o)
+    ac_prev=oldincludedir ;;
+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+    oldincludedir=$ac_optarg ;;
+
+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+    ac_prev=prefix ;;
+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+    prefix=$ac_optarg ;;
+
+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
+  | --program-pre | --program-pr | --program-p)
+    ac_prev=program_prefix ;;
+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+    program_prefix=$ac_optarg ;;
+
+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
+  | --program-suf | --program-su | --program-s)
+    ac_prev=program_suffix ;;
+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+    program_suffix=$ac_optarg ;;
+
+  -program-transform-name | --program-transform-name \
+  | --program-transform-nam | --program-transform-na \
+  | --program-transform-n | --program-transform- \
+  | --program-transform | --program-transfor \
+  | --program-transfo | --program-transf \
+  | --program-trans | --program-tran \
+  | --progr-tra | --program-tr | --program-t)
+    ac_prev=program_transform_name ;;
+  -program-transform-name=* | --program-transform-name=* \
+  | --program-transform-nam=* | --program-transform-na=* \
+  | --program-transform-n=* | --program-transform-=* \
+  | --program-transform=* | --program-transfor=* \
+  | --program-transfo=* | --program-transf=* \
+  | --program-trans=* | --program-tran=* \
+  | --progr-tra=* | --program-tr=* | --program-t=*)
+    program_transform_name=$ac_optarg ;;
+
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil)
+    silent=yes ;;
+
+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+    ac_prev=sbindir ;;
+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+  | --sbi=* | --sb=*)
+    sbindir=$ac_optarg ;;
+
+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+  | --sharedst | --shareds | --shared | --share | --shar \
+  | --sha | --sh)
+    ac_prev=sharedstatedir ;;
+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+  | --sha=* | --sh=*)
+    sharedstatedir=$ac_optarg ;;
+
+  -site | --site | --sit)
+    ac_prev=site ;;
+  -site=* | --site=* | --sit=*)
+    site=$ac_optarg ;;
+
+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+    ac_prev=srcdir ;;
+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+    srcdir=$ac_optarg ;;
+
+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+  | --syscon | --sysco | --sysc | --sys | --sy)
+    ac_prev=sysconfdir ;;
+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+    sysconfdir=$ac_optarg ;;
+
+  -target | --target | --targe | --targ | --tar | --ta | --t)
+    ac_prev=target_alias ;;
+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+    target_alias=$ac_optarg ;;
+
+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
+    verbose=yes ;;
+
+  -version | --version | --versio | --versi | --vers | -V)
+    ac_init_version=: ;;
+
+  -with-* | --with-*)
+    ac_package=`expr &quot;x$ac_option&quot; : 'x-*with-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr &quot;x$ac_package&quot; : &quot;.*[^-_$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      { echo &quot;$as_me: error: invalid package name: $ac_package&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package| sed 's/-/_/g'`
+    case $ac_option in
+      *=*) ac_optarg=`echo &quot;$ac_optarg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;`;;
+      *) ac_optarg=yes ;;
+    esac
+    eval &quot;with_$ac_package='$ac_optarg'&quot; ;;
+
+  -without-* | --without-*)
+    ac_package=`expr &quot;x$ac_option&quot; : 'x-*without-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr &quot;x$ac_package&quot; : &quot;.*[^-_$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      { echo &quot;$as_me: error: invalid package name: $ac_package&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package | sed 's/-/_/g'`
+    eval &quot;with_$ac_package=no&quot; ;;
+
+  --x)
+    # Obsolete; use --with-x.
+    with_x=yes ;;
+
+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+  | --x-incl | --x-inc | --x-in | --x-i)
+    ac_prev=x_includes ;;
+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+    x_includes=$ac_optarg ;;
+
+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+    ac_prev=x_libraries ;;
+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+    x_libraries=$ac_optarg ;;
+
+  -*) { echo &quot;$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information.&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ;;
+
+  *=*)
+    ac_envvar=`expr &quot;x$ac_option&quot; : 'x\([^=]*\)='`
+    # Reject names that are not valid shell variable names.
+    expr &quot;x$ac_envvar&quot; : &quot;.*[^_$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      { echo &quot;$as_me: error: invalid variable name: $ac_envvar&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+    ac_optarg=`echo &quot;$ac_optarg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;`
+    eval &quot;$ac_envvar='$ac_optarg'&quot;
+    export $ac_envvar ;;
+
+  *)
+    # FIXME: should be removed in autoconf 3.0.
+    echo &quot;$as_me: WARNING: you should use --build, --host, --target&quot; &gt;&amp;2
+    expr &quot;x$ac_option&quot; : &quot;.*[^-._$as_cr_alnum]&quot; &gt;/dev/null &amp;&amp;
+      echo &quot;$as_me: WARNING: invalid host type: $ac_option&quot; &gt;&amp;2
+    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+    ;;
+
+  esac
+done
+
+if test -n &quot;$ac_prev&quot;; then
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+  { echo &quot;$as_me: error: missing argument to $ac_option&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+fi
+
+# Be sure to have absolute paths.
+for ac_var in exec_prefix prefix
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+    *)  { echo &quot;$as_me: error: expected an absolute directory name for --$ac_var: $ac_val&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+              localstatedir libdir includedir oldincludedir infodir mandir
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* ) ;;
+    *)  { echo &quot;$as_me: error: expected an absolute directory name for --$ac_var: $ac_val&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test &quot;x$host_alias&quot; != x; then
+  if test &quot;x$build_alias&quot; = x; then
+    cross_compiling=maybe
+    echo &quot;$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+    If a cross compiler is detected then cross compile mode will be used.&quot; &gt;&amp;2
+  elif test &quot;x$build_alias&quot; != &quot;x$host_alias&quot;; then
+    cross_compiling=yes
+  fi
+fi
+
+ac_tool_prefix=
+test -n &quot;$host_alias&quot; &amp;&amp; ac_tool_prefix=$host_alias-
+
+test &quot;$silent&quot; = yes &amp;&amp; exec 6&gt;/dev/null
+
+
+# Find the source files, if location was not specified.
+if test -z &quot;$srcdir&quot;; then
+  ac_srcdir_defaulted=yes
+  # Try the directory containing this script, then its parent.
+  ac_confdir=`(dirname &quot;$0&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$0&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$0&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$0&quot; : 'X\(//\)$' \| \
+         X&quot;$0&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$0&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+  srcdir=$ac_confdir
+  if test ! -r $srcdir/$ac_unique_file; then
+    srcdir=..
+  fi
+else
+  ac_srcdir_defaulted=no
+fi
+if test ! -r $srcdir/$ac_unique_file; then
+  if test &quot;$ac_srcdir_defaulted&quot; = yes; then
+    { echo &quot;$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or ..&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+  else
+    { echo &quot;$as_me: error: cannot find sources ($ac_unique_file) in $srcdir&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+  fi
+fi
+(cd $srcdir &amp;&amp; test -r ./$ac_unique_file) 2&gt;/dev/null ||
+  { echo &quot;$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work&quot; &gt;&amp;2
+   { (exit 1); exit 1; }; }
+srcdir=`echo &quot;$srcdir&quot; | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
+ac_env_CXX_set=${CXX+set}
+ac_env_CXX_value=$CXX
+ac_cv_env_CXX_set=${CXX+set}
+ac_cv_env_CXX_value=$CXX
+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_env_CXXFLAGS_value=$CXXFLAGS
+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
+ac_env_CXXCPP_set=${CXXCPP+set}
+ac_env_CXXCPP_value=$CXXCPP
+ac_cv_env_CXXCPP_set=${CXXCPP+set}
+ac_cv_env_CXXCPP_value=$CXXCPP
+ac_env_F77_set=${F77+set}
+ac_env_F77_value=$F77
+ac_cv_env_F77_set=${F77+set}
+ac_cv_env_F77_value=$F77
+ac_env_FFLAGS_set=${FFLAGS+set}
+ac_env_FFLAGS_value=$FFLAGS
+ac_cv_env_FFLAGS_set=${FFLAGS+set}
+ac_cv_env_FFLAGS_value=$FFLAGS
+
+#
+# Report the --help message.
+#
+if test &quot;$ac_init_help&quot; = &quot;long&quot;; then
+  # Omit some internal or obsolete options to make the list less imposing.
+  # This message is too long to be a string in the A/UX 3.1 sh.
+  cat &lt;&lt;_ACEOF
+\`configure' configures this package to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE.  See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+  -h, --help              display this help and exit
+      --help=short        display options specific to this package
+      --help=recursive    display the short help of all the included packages
+  -V, --version           display version information and exit
+  -q, --quiet, --silent   do not print \`checking...' messages
+      --cache-file=FILE   cache test results in FILE [disabled]
+  -C, --config-cache      alias for \`--cache-file=config.cache'
+  -n, --no-create         do not create output files
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+
+_ACEOF
+
+  cat &lt;&lt;_ACEOF
+Installation directories:
+  --prefix=PREFIX         install architecture-independent files in PREFIX
+                          [$ac_default_prefix]
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+                          [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+  --bindir=DIR           user executables [EPREFIX/bin]
+  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR       program executables [EPREFIX/libexec]
+  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+  --libdir=DIR           object code libraries [EPREFIX/lib]
+  --includedir=DIR       C header files [PREFIX/include]
+  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+  --infodir=DIR          info documentation [PREFIX/info]
+  --mandir=DIR           man documentation [PREFIX/man]
+_ACEOF
+
+  cat &lt;&lt;\_ACEOF
+
+Program names:
+  --program-prefix=PREFIX            prepend PREFIX to installed program names
+  --program-suffix=SUFFIX            append SUFFIX to installed program names
+  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
+
+System types:
+  --build=BUILD     configure for building on BUILD [guessed]
+  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n &quot;$ac_init_help&quot;; then
+
+  cat &lt;&lt;\_ACEOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --disable-dependency-tracking  speeds up one-time build
+  --enable-dependency-tracking   do not reject slow dependency extractors
+  --enable-shared[=PKGS]
+                          build shared libraries [default=yes]
+  --enable-static[=PKGS]
+                          build static libraries [default=yes]
+  --enable-fast-install[=PKGS]
+                          optimize for fast installation [default=yes]
+  --disable-libtool-lock  avoid locking (might break parallel builds)
+  --disable-nls           do not use Native Language Support
+  --disable-rpath         do not hardcode runtime library paths
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
+  --with-pic              try to use only PIC/non-PIC objects [default=use
+                          both]
+  --with-tags[=TAGS]
+                          include additional configurations [automatic]
+  --with-gnu-ld           assume the C compiler uses GNU ld default=no
+  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
+  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
+  --with-included-gettext use the GNU gettext library included here
+  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
+  --without-libintl-prefix     don't search for libintl in includedir and libdir
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L&lt;lib dir&gt; if you have libraries in a
+              nonstandard directory &lt;lib dir&gt;
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I&lt;include dir&gt; if you have
+              headers in a nonstandard directory &lt;include dir&gt;
+  CPP         C preprocessor
+  CXX         C++ compiler command
+  CXXFLAGS    C++ compiler flags
+  CXXCPP      C++ preprocessor
+  F77         Fortran 77 compiler command
+  FFLAGS      Fortran 77 compiler flags
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+_ACEOF
+fi
+
+if test &quot;$ac_init_help&quot; = &quot;recursive&quot;; then
+  # If there are subdirs, report their specific --help.
+  ac_popdir=`pwd`
+  for ac_dir in : $ac_subdirs_all; do test &quot;x$ac_dir&quot; = x: &amp;&amp; continue
+    test -d $ac_dir || continue
+    ac_builddir=.
+
+if test &quot;$ac_dir&quot; != .; then
+  ac_dir_suffix=/`echo &quot;$ac_dir&quot; | sed 's,^\.[\\/],,'`
+  # A &quot;../&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo &quot;$ac_dir_suffix&quot; | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z &quot;$ac_top_builddir&quot;; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir=&quot;$ac_dir&quot;;;
+*)
+  case &quot;$ac_dir&quot; in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
+  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+    cd $ac_dir
+    # Check for guested configure; otherwise get Cygnus style configure.
+    if test -f $ac_srcdir/configure.gnu; then
+      echo
+      $SHELL $ac_srcdir/configure.gnu  --help=recursive
+    elif test -f $ac_srcdir/configure; then
+      echo
+      $SHELL $ac_srcdir/configure  --help=recursive
+    elif test -f $ac_srcdir/configure.ac ||
+           test -f $ac_srcdir/configure.in; then
+      echo
+      $ac_configure --help
+    else
+      echo &quot;$as_me: WARNING: no configuration information is in $ac_dir&quot; &gt;&amp;2
+    fi
+    cd &quot;$ac_popdir&quot;
+  done
+fi
+
+test -n &quot;$ac_init_help&quot; &amp;&amp; exit 0
+if $ac_init_version; then
+  cat &lt;&lt;\_ACEOF
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+  exit 0
+fi
+exec 5&gt;config.log
+cat &gt;&amp;5 &lt;&lt;_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by $as_me, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+{
+cat &lt;&lt;_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2&gt;/dev/null | sed 1q`
+uname -m = `(uname -m) 2&gt;/dev/null || echo unknown`
+uname -r = `(uname -r) 2&gt;/dev/null || echo unknown`
+uname -s = `(uname -s) 2&gt;/dev/null || echo unknown`
+uname -v = `(uname -v) 2&gt;/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2&gt;/dev/null || echo unknown`
+/bin/uname -X     = `(/bin/uname -X) 2&gt;/dev/null     || echo unknown`
+
+/bin/arch              = `(/bin/arch) 2&gt;/dev/null              || echo unknown`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2&gt;/dev/null       || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2&gt;/dev/null || echo unknown`
+hostinfo               = `(hostinfo) 2&gt;/dev/null               || echo unknown`
+/bin/machine           = `(/bin/machine) 2&gt;/dev/null           || echo unknown`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2&gt;/dev/null       || echo unknown`
+/bin/universe          = `(/bin/universe) 2&gt;/dev/null          || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  echo &quot;PATH: $as_dir&quot;
+done
+
+} &gt;&amp;5
+
+cat &gt;&amp;5 &lt;&lt;_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_sep=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+  for ac_arg
+  do
+    case $ac_arg in
+    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+    | -silent | --silent | --silen | --sile | --sil)
+      continue ;;
+    *&quot; &quot;*|*&quot;        &quot;*|*[\[\]\~\#\$\^\&amp;\*\(\)\{\}\\\|\;\&lt;\&gt;\?\&quot;\']*)
+      ac_arg=`echo &quot;$ac_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
+    esac
+    case $ac_pass in
+    1) ac_configure_args0=&quot;$ac_configure_args0 '$ac_arg'&quot; ;;
+    2)
+      ac_configure_args1=&quot;$ac_configure_args1 '$ac_arg'&quot;
+      if test $ac_must_keep_next = true; then
+        ac_must_keep_next=false # Got value, back to normal.
+      else
+        case $ac_arg in
+          *=* | --config-cache | -C | -disable-* | --disable-* \
+          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+          | -with-* | --with-* | -without-* | --without-* | --x)
+            case &quot;$ac_configure_args0 &quot; in
+              &quot;$ac_configure_args1&quot;*&quot; '$ac_arg' &quot;* ) continue ;;
+            esac
+            ;;
+          -* ) ac_must_keep_next=true ;;
+        esac
+      fi
+      ac_configure_args=&quot;$ac_configure_args$ac_sep'$ac_arg'&quot;
+      # Get rid of the leading space.
+      ac_sep=&quot; &quot;
+      ;;
+    esac
+  done
+done
+$as_unset ac_configure_args0 || test &quot;${ac_configure_args0+set}&quot; != set || { ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test &quot;${ac_configure_args1+set}&quot; != set || { ac_configure_args1=; export ac_configure_args1; }
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log.  We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+trap 'exit_status=$?
+  # Save into config.log some information that might help in debugging.
+  {
+    echo
+
+    cat &lt;&lt;\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+    echo
+    # The following way of writing the cache mishandles newlines in values,
+{
+  (set) 2&gt;&amp;1 |
+    case `(ac_space='&quot;'&quot;' '&quot;'&quot;'; set | grep ac_space) 2&gt;&amp;1` in
+    *ac_space=\ *)
+      sed -n \
+        &quot;s/'&quot;'&quot;'/'&quot;'&quot;'\\\\'&quot;'&quot;''&quot;'&quot;'/g;
+          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='&quot;'&quot;'\\2'&quot;'&quot;'/p&quot;
+      ;;
+    *)
+      sed -n \
+        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
+      ;;
+    esac;
+}
+    echo
+
+    cat &lt;&lt;\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=$`echo $ac_var`
+      echo &quot;$ac_var='&quot;'&quot;'$ac_val'&quot;'&quot;'&quot;
+    done | sort
+    echo
+
+    if test -n &quot;$ac_subst_files&quot;; then
+      cat &lt;&lt;\_ASBOX
+## ------------- ##
+## Output files. ##
+## ------------- ##
+_ASBOX
+      echo
+      for ac_var in $ac_subst_files
+      do
+        eval ac_val=$`echo $ac_var`
+        echo &quot;$ac_var='&quot;'&quot;'$ac_val'&quot;'&quot;'&quot;
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      cat &lt;&lt;\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+      echo
+      sed &quot;/^$/d&quot; confdefs.h | sort
+      echo
+    fi
+    test &quot;$ac_signal&quot; != 0 &amp;&amp;
+      echo &quot;$as_me: caught signal $ac_signal&quot;
+    echo &quot;$as_me: exit $exit_status&quot;
+  } &gt;&amp;5
+  rm -f core *.core &amp;&amp;
+  rm -rf conftest* confdefs* conf$$* $ac_clean_files &amp;&amp;
+    exit $exit_status
+     ' 0
+for ac_signal in 1 2 13 15; do
+  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo &gt;confdefs.h
+
+# Predefined preprocessor variables.
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE_NAME &quot;$PACKAGE_NAME&quot;
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE_TARNAME &quot;$PACKAGE_TARNAME&quot;
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE_VERSION &quot;$PACKAGE_VERSION&quot;
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE_STRING &quot;$PACKAGE_STRING&quot;
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE_BUGREPORT &quot;$PACKAGE_BUGREPORT&quot;
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer explicitly selected file to automatically selected ones.
+if test -z &quot;$CONFIG_SITE&quot;; then
+  if test &quot;x$prefix&quot; != xNONE; then
+    CONFIG_SITE=&quot;$prefix/share/config.site $prefix/etc/config.site&quot;
+  else
+    CONFIG_SITE=&quot;$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site&quot;
+  fi
+fi
+for ac_site_file in $CONFIG_SITE; do
+  if test -r &quot;$ac_site_file&quot;; then
+    { echo &quot;$as_me:$LINENO: loading site script $ac_site_file&quot; &gt;&amp;5
+echo &quot;$as_me: loading site script $ac_site_file&quot; &gt;&amp;6;}
+    sed 's/^/| /' &quot;$ac_site_file&quot; &gt;&amp;5
+    . &quot;$ac_site_file&quot;
+  fi
+done
+
+if test -r &quot;$cache_file&quot;; then
+  # Some versions of bash will fail to source /dev/null (special
+  # files actually), so we avoid doing that.
+  if test -f &quot;$cache_file&quot;; then
+    { echo &quot;$as_me:$LINENO: loading cache $cache_file&quot; &gt;&amp;5
+echo &quot;$as_me: loading cache $cache_file&quot; &gt;&amp;6;}
+    case $cache_file in
+      [\\/]* | ?:[\\/]* ) . $cache_file;;
+      *)                      . ./$cache_file;;
+    esac
+  fi
+else
+  { echo &quot;$as_me:$LINENO: creating cache $cache_file&quot; &gt;&amp;5
+echo &quot;$as_me: creating cache $cache_file&quot; &gt;&amp;6;}
+  &gt;$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in `(set) 2&gt;&amp;1 |
+               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val=&quot;\$ac_cv_env_${ac_var}_value&quot;
+  eval ac_new_val=&quot;\$ac_env_${ac_var}_value&quot;
+  case $ac_old_set,$ac_new_set in
+    set,)
+      { echo &quot;$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run&quot; &gt;&amp;5
+echo &quot;$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run&quot; &gt;&amp;2;}
+      ac_cache_corrupted=: ;;
+    ,set)
+      { echo &quot;$as_me:$LINENO: error: \`$ac_var' was not set in the previous run&quot; &gt;&amp;5
+echo &quot;$as_me: error: \`$ac_var' was not set in the previous run&quot; &gt;&amp;2;}
+      ac_cache_corrupted=: ;;
+    ,);;
+    *)
+      if test &quot;x$ac_old_val&quot; != &quot;x$ac_new_val&quot;; then
+        { echo &quot;$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:&quot; &gt;&amp;5
+echo &quot;$as_me: error: \`$ac_var' has changed since the previous run:&quot; &gt;&amp;2;}
+        { echo &quot;$as_me:$LINENO:   former value:  $ac_old_val&quot; &gt;&amp;5
+echo &quot;$as_me:   former value:  $ac_old_val&quot; &gt;&amp;2;}
+        { echo &quot;$as_me:$LINENO:   current value: $ac_new_val&quot; &gt;&amp;5
+echo &quot;$as_me:   current value: $ac_new_val&quot; &gt;&amp;2;}
+        ac_cache_corrupted=:
+      fi;;
+  esac
+  # Pass precious variables to config.status.
+  if test &quot;$ac_new_set&quot; = set; then
+    case $ac_new_val in
+    *&quot; &quot;*|*&quot;        &quot;*|*[\[\]\~\#\$\^\&amp;\*\(\)\{\}\\\|\;\&lt;\&gt;\?\&quot;\']*)
+      ac_arg=$ac_var=`echo &quot;$ac_new_val&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
+    *) ac_arg=$ac_var=$ac_new_val ;;
+    esac
+    case &quot; $ac_configure_args &quot; in
+      *&quot; '$ac_arg' &quot;*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+      *) ac_configure_args=&quot;$ac_configure_args '$ac_arg'&quot; ;;
+    esac
+  fi
+done
+if $ac_cache_corrupted; then
+  { echo &quot;$as_me:$LINENO: error: changes in the environment can compromise the build&quot; &gt;&amp;5
+echo &quot;$as_me: error: changes in the environment can compromise the build&quot; &gt;&amp;2;}
+  { { echo &quot;$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over&quot; &gt;&amp;5
+echo &quot;$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_aux_dir=
+for ac_dir in scripts $srcdir/scripts; do
+  if test -f $ac_dir/install-sh; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh=&quot;$ac_aux_dir/install-sh -c&quot;
+    break
+  elif test -f $ac_dir/install.sh; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh=&quot;$ac_aux_dir/install.sh -c&quot;
+    break
+  elif test -f $ac_dir/shtool; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh=&quot;$ac_aux_dir/shtool install -c&quot;
+    break
+  fi
+done
+if test -z &quot;$ac_aux_dir&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+ac_config_guess=&quot;$SHELL $ac_aux_dir/config.guess&quot;
+ac_config_sub=&quot;$SHELL $ac_aux_dir/config.sub&quot;
+ac_configure=&quot;$SHELL $ac_aux_dir/configure&quot; # This should be Cygnus configure.
+
+# Find a good install program.  We prefer a C program (faster),
+# so one script is as good as another.  But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group &quot;staff&quot;
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+echo &quot;$as_me:$LINENO: checking for a BSD-compatible install&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for a BSD-compatible install... $ECHO_C&quot; &gt;&amp;6
+if test -z &quot;$INSTALL&quot;; then
+if test &quot;${ac_cv_path_install+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+  ./ | .// | /cC/* | \
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+  /usr/ucb/* ) ;;
+  *)
+    # OSF1 and SCO ODT 3.0 have their own names for install.
+    # Don't use installbsd from OSF since it installs stuff as root
+    # by default.
+    for ac_prog in ginstall scoinst install; do
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $as_executable_p &quot;$as_dir/$ac_prog$ac_exec_ext&quot;; then
+          if test $ac_prog = install &amp;&amp;
+            grep dspmsg &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
+            # AIX install.  It has an incompatible calling convention.
+            :
+          elif test $ac_prog = install &amp;&amp;
+            grep pwplus &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
+            # program-specific install script used by HP pwplus--don't use.
+            :
+          else
+            ac_cv_path_install=&quot;$as_dir/$ac_prog$ac_exec_ext -c&quot;
+            break 3
+          fi
+        fi
+      done
+    done
+    ;;
+esac
+done
+
+
+fi
+  if test &quot;${ac_cv_path_install+set}&quot; = set; then
+    INSTALL=$ac_cv_path_install
+  else
+    # As a last resort, use the slow shell script.  We don't cache a
+    # path for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the path is relative.
+    INSTALL=$ac_install_sh
+  fi
+fi
+echo &quot;$as_me:$LINENO: result: $INSTALL&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$INSTALL&quot; &gt;&amp;6
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z &quot;$INSTALL_PROGRAM&quot; &amp;&amp; INSTALL_PROGRAM='${INSTALL}'
+
+test -z &quot;$INSTALL_SCRIPT&quot; &amp;&amp; INSTALL_SCRIPT='${INSTALL}'
+
+test -z &quot;$INSTALL_DATA&quot; &amp;&amp; INSTALL_DATA='${INSTALL} -m 644'
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}gcc&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CC&quot;; then
+  ac_cv_prog_CC=&quot;$CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_CC=&quot;${ac_tool_prefix}gcc&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n &quot;$CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_CC&quot;; then
+  ac_ct_CC=$CC
+  # Extract the first word of &quot;gcc&quot;, so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_CC&quot;; then
+  ac_cv_prog_ac_ct_CC=&quot;$ac_ct_CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_CC=&quot;gcc&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n &quot;$ac_ct_CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC=&quot;$ac_cv_prog_CC&quot;
+fi
+
+if test -z &quot;$CC&quot;; then
+  if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}cc&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CC&quot;; then
+  ac_cv_prog_CC=&quot;$CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_CC=&quot;${ac_tool_prefix}cc&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n &quot;$CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_CC&quot;; then
+  ac_ct_CC=$CC
+  # Extract the first word of &quot;cc&quot;, so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_CC&quot;; then
+  ac_cv_prog_ac_ct_CC=&quot;$ac_ct_CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_CC=&quot;cc&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n &quot;$ac_ct_CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC=&quot;$ac_cv_prog_CC&quot;
+fi
+
+fi
+if test -z &quot;$CC&quot;; then
+  # Extract the first word of &quot;cc&quot;, so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CC&quot;; then
+  ac_cv_prog_CC=&quot;$CC&quot; # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    if test &quot;$as_dir/$ac_word$ac_exec_ext&quot; = &quot;/usr/ucb/cc&quot;; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC=&quot;cc&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+if test $ac_prog_rejected = yes; then
+  # We found a bogon in the path, so make sure we never use it.
+  set dummy $ac_cv_prog_CC
+  shift
+  if test $# != 0; then
+    # We chose a different compiler from the bogus one.
+    # However, it has the same basename, so the bogon will be chosen
+    # first if we set CC to just the basename; use the full file name.
+    shift
+    ac_cv_prog_CC=&quot;$as_dir/$ac_word${1+' '}$@&quot;
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n &quot;$CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$CC&quot;; then
+  if test -n &quot;$ac_tool_prefix&quot;; then
+  for ac_prog in cl
+  do
+    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CC&quot;; then
+  ac_cv_prog_CC=&quot;$CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_CC=&quot;$ac_tool_prefix$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n &quot;$CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+    test -n &quot;$CC&quot; &amp;&amp; break
+  done
+fi
+if test -z &quot;$CC&quot;; then
+  ac_ct_CC=$CC
+  for ac_prog in cl
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_CC+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_CC&quot;; then
+  ac_cv_prog_ac_ct_CC=&quot;$ac_ct_CC&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_CC=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n &quot;$ac_ct_CC&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_CC&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_CC&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$ac_ct_CC&quot; &amp;&amp; break
+done
+
+  CC=$ac_ct_CC
+fi
+
+fi
+
+
+test -z &quot;$CC&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo &quot;$as_me:$LINENO:&quot; \
+     &quot;checking for C compiler version&quot; &gt;&amp;5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files=&quot;$ac_clean_files a.out a.exe b.out&quot;
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+echo &quot;$as_me:$LINENO: checking for C compiler default output file name&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for C compiler default output file name... $ECHO_C&quot; &gt;&amp;6
+ac_link_default=`echo &quot;$ac_link&quot; | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link_default\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link_default) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+  # Find the output, starting from the most likely.  This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+# b.out is created by i960 compilers.
+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+do
+  test -f &quot;$ac_file&quot; || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+        ;
+    conftest.$ac_ext )
+        # This is the source file.
+        ;
+    [ab].out )
+        # We found the default executable, but exeext='' is most
+        # certainly right.
+        break;;
+    *.* )
+        ac_cv_exeext=`expr &quot;$ac_file&quot; : '[^.]*\(\..*\)'`
+        # FIXME: I believe we export ac_cv_exeext for Libtool,
+        # but it would be cool to find out if it's true.  Does anybody
+        # maintain Libtool? --akim.
+        export ac_cv_exeext
+        break;;
+    * )
+        break;;
+  esac
+done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+{ { echo &quot;$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: C compiler cannot create executables
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+echo &quot;$as_me:$LINENO: result: $ac_file&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_file&quot; &gt;&amp;6
+
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo &quot;$as_me:$LINENO: checking whether the C compiler works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the C compiler works... $ECHO_C&quot; &gt;&amp;6
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test &quot;$cross_compiling&quot; != yes; then
+  if { ac_try='./$ac_file'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+    cross_compiling=no
+  else
+    if test &quot;$cross_compiling&quot; = maybe; then
+        cross_compiling=yes
+    else
+        { { echo &quot;$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+    fi
+  fi
+fi
+echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+
+rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo &quot;$as_me:$LINENO: checking whether we are cross compiling&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are cross compiling... $ECHO_C&quot; &gt;&amp;6
+echo &quot;$as_me:$LINENO: result: $cross_compiling&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$cross_compiling&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking for suffix of executables&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for suffix of executables... $ECHO_C&quot; &gt;&amp;6
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+  test -f &quot;$ac_file&quot; || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr &quot;$ac_file&quot; : '[^.]*\(\..*\)'`
+          export ac_cv_exeext
+          break;;
+    * ) break;;
+  esac
+done
+else
+  { { echo &quot;$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+echo &quot;$as_me:$LINENO: result: $ac_cv_exeext&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_exeext&quot; &gt;&amp;6
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+echo &quot;$as_me:$LINENO: checking for suffix of object files&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for suffix of object files... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_objext+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2&gt;/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+    *) ac_cv_objext=`expr &quot;$ac_file&quot; : '.*\.\(.*\)'`
+       break;;
+  esac
+done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+{ { echo &quot;$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_objext&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_objext&quot; &gt;&amp;6
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+echo &quot;$as_me:$LINENO: checking whether we are using the GNU C compiler&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU C compiler... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_c_compiler_gnu+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_c_compiler_gnu&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_c_compiler_gnu&quot; &gt;&amp;6
+GCC=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS=&quot;-g&quot;
+echo &quot;$as_me:$LINENO: checking whether $CC accepts -g&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether $CC accepts -g... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_cc_g+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_g=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cc_g&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_cc_g&quot; &gt;&amp;6
+if test &quot;$ac_test_CFLAGS&quot; = set; then
+  CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+  if test &quot;$GCC&quot; = yes; then
+    CFLAGS=&quot;-g -O2&quot;
+  else
+    CFLAGS=&quot;-g&quot;
+  fi
+else
+  if test &quot;$GCC&quot; = yes; then
+    CFLAGS=&quot;-O2&quot;
+  else
+    CFLAGS=
+  fi
+fi
+echo &quot;$as_me:$LINENO: checking for $CC option to accept ANSI C&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $CC option to accept ANSI C... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_cc_stdc+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;sys/types.h&gt;
+#include &lt;sys/stat.h&gt;
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+   function prototypes and stuff, but not '\xHH' hex character constants.
+   These don't provoke an error unfortunately, instead are silently treated
+   as 'x'.  The following induces an error, until -std1 is added to get
+   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+   array size at least.  It's necessary to write '\x00'==0 to get something
+   that's true only with -std1.  */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX                        -qlanglvl=ansi
+# Ultrix and OSF/1        -std1
+# HP-UX 10.20 and later        -Ae
+# HP-UX older versions        -Aa -D_HPUX_SOURCE
+# SVR4                        -Xc -D__EXTENSIONS__
+for ac_arg in &quot;&quot; -qlanglvl=ansi -std1 -Ae &quot;-Aa -D_HPUX_SOURCE&quot; &quot;-Xc -D__EXTENSIONS__&quot;
+do
+  CC=&quot;$ac_save_CC $ac_arg&quot;
+  rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case &quot;x$ac_cv_prog_cc_stdc&quot; in
+  x|xno)
+    echo &quot;$as_me:$LINENO: result: none needed&quot; &gt;&amp;5
+echo &quot;${ECHO_T}none needed&quot; &gt;&amp;6 ;;
+  *)
+    echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cc_stdc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_cc_stdc&quot; &gt;&amp;6
+    CC=&quot;$CC $ac_cv_prog_cc_stdc&quot; ;;
+esac
+
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   '' \
+   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
+   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
+   'extern &quot;C&quot; void exit (int) throw ();' \
+   'extern &quot;C&quot; void exit (int);' \
+   'void exit (int);'
+do
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n &quot;$ac_declaration&quot;; then
+  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
+  echo $ac_declaration      &gt;&gt;confdefs.h
+  echo '#endif'             &gt;&gt;confdefs.h
+fi
+
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+echo &quot;$as_me:$LINENO: checking for textdomain in -lintl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for textdomain in -lintl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_intl_textdomain+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lintl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char textdomain ();
+int
+main ()
+{
+textdomain ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_intl_textdomain=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_intl_textdomain=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_intl_textdomain&quot; &gt;&amp;6
+if test $ac_cv_lib_intl_textdomain = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_LIBINTL 1
+_ACEOF
+
+  LIBS=&quot;-lintl $LIBS&quot;
+
+fi
+
+
+          ac_config_headers=&quot;$ac_config_headers gsm_config.h&quot;
+
+
+am__api_version=&quot;1.9&quot;
+echo &quot;$as_me:$LINENO: checking whether build environment is sane&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether build environment is sane... $ECHO_C&quot; &gt;&amp;6
+# Just in case
+sleep 1
+echo timestamp &gt; conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   set X `ls -Lt $srcdir/configure conftest.file 2&gt; /dev/null`
+   if test &quot;$*&quot; = &quot;X&quot;; then
+      # -L didn't work.
+      set X `ls -t $srcdir/configure conftest.file`
+   fi
+   rm -f conftest.file
+   if test &quot;$*&quot; != &quot;X $srcdir/configure conftest.file&quot; \
+      &amp;&amp; test &quot;$*&quot; != &quot;X conftest.file $srcdir/configure&quot;; then
+
+      # If neither matched, then we have a broken ls.  This can happen
+      # if, for instance, CONFIG_SHELL is bash and it inherits a
+      # broken ls alias from the environment.  This has actually
+      # happened.  Such a system could not be considered &quot;sane&quot;.
+      { { echo &quot;$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
+alias in your environment&quot; &gt;&amp;5
+echo &quot;$as_me: error: ls -t appears to fail.  Make sure there is not a broken
+alias in your environment&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+   fi
+
+   test &quot;$2&quot; = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   { { echo &quot;$as_me:$LINENO: error: newly created file is older than distributed files!
+Check your system clock&quot; &gt;&amp;5
+echo &quot;$as_me: error: newly created file is older than distributed files!
+Check your system clock&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+test &quot;$program_prefix&quot; != NONE &amp;&amp;
+  program_transform_name=&quot;s,^,$program_prefix,;$program_transform_name&quot;
+# Use a double $ so make ignores it.
+test &quot;$program_suffix&quot; != NONE &amp;&amp;
+  program_transform_name=&quot;s,\$,$program_suffix,;$program_transform_name&quot;
+# Double any \ or $.  echo might interpret backslashes.
+# By default was `s,x,x', remove it if useless.
+cat &lt;&lt;\_ACEOF &gt;conftest.sed
+s/[\\$]/&amp;&amp;/g;s/;s,x,x,$//
+_ACEOF
+program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
+rm conftest.sed
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir &amp;&amp; pwd`
+
+test x&quot;${MISSING+set}&quot; = xset || MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
+# Use eval to expand $SHELL
+if eval &quot;$MISSING --run true&quot;; then
+  am_missing_run=&quot;$MISSING --run &quot;
+else
+  am_missing_run=
+  { echo &quot;$as_me:$LINENO: WARNING: \`missing' script is too old or missing&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`missing' script is too old or missing&quot; &gt;&amp;2;}
+fi
+
+if mkdir -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test ! -d ./--version; then
+  # We used to keeping the `.' as first argument, in order to
+  # allow $(mkdir_p) to be used without argument.  As in
+  #   $(mkdir_p) $(somedir)
+  # where $(somedir) is conditionally defined.  However this is wrong
+  # for two reasons:
+  #  1. if the package is installed by a user who cannot write `.'
+  #     make install will fail,
+  #  2. the above comment should most certainly read
+  #     $(mkdir_p) $(DESTDIR)$(somedir)
+  #     so it does not work when $(somedir) is undefined and
+  #     $(DESTDIR) is not.
+  #  To support the latter case, we have to write
+  #     test -z &quot;$(somedir)&quot; || $(mkdir_p) $(DESTDIR)$(somedir),
+  #  so the `.' trick is pointless.
+  mkdir_p='mkdir -p --'
+else
+  # On NextStep and OpenStep, the `mkdir' command does not
+  # recognize any option.  It will interpret all options as
+  # directories to create, and then abort because `.' already
+  # exists.
+  for d in ./-p ./--version;
+  do
+    test -d $d &amp;&amp; rmdir $d
+  done
+  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
+  if test -f &quot;$ac_aux_dir/mkinstalldirs&quot;; then
+    mkdir_p='$(mkinstalldirs)'
+  else
+    mkdir_p='$(install_sh) -d'
+  fi
+fi
+
+for ac_prog in gawk mawk nawk awk
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_AWK+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$AWK&quot;; then
+  ac_cv_prog_AWK=&quot;$AWK&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_AWK=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n &quot;$AWK&quot;; then
+  echo &quot;$as_me:$LINENO: result: $AWK&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$AWK&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$AWK&quot; &amp;&amp; break
+done
+
+echo &quot;$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C&quot; &gt;&amp;6
+set dummy ${MAKE-make}; ac_make=`echo &quot;$2&quot; | sed 'y,:./+-,___p_,'`
+if eval &quot;test \&quot;\${ac_cv_prog_make_${ac_make}_set+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.make &lt;&lt;\_ACEOF
+all:
+        @echo 'ac_maketemp=&quot;$(MAKE)&quot;'
+_ACEOF
+# GNU make sometimes prints &quot;make[1]: Entering...&quot;, which would confuse us.
+eval `${MAKE-make} -f conftest.make 2&gt;/dev/null | grep temp=`
+if test -n &quot;$ac_maketemp&quot;; then
+  eval ac_cv_prog_make_${ac_make}_set=yes
+else
+  eval ac_cv_prog_make_${ac_make}_set=no
+fi
+rm -f conftest.make
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_prog_make_'${ac_make}_set`\&quot; = yes&quot;; then
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+  SET_MAKE=
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+  SET_MAKE=&quot;MAKE=${MAKE-make}&quot;
+fi
+
+rm -rf .tst 2&gt;/dev/null
+mkdir .tst 2&gt;/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2&gt;/dev/null
+
+DEPDIR=&quot;${am__leading_dot}deps&quot;
+
+          ac_config_commands=&quot;$ac_config_commands depfiles&quot;
+
+
+am_make=${MAKE-make}
+cat &gt; confinc &lt;&lt; 'END'
+am__doit:
+        @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+echo &quot;$as_me:$LINENO: checking for style of include used by $am_make&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for style of include used by $am_make... $ECHO_C&quot; &gt;&amp;6
+am__include=&quot;#&quot;
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo &quot;include confinc&quot; &gt; confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually &quot;gmake&quot;), in which
+# case it prints its new name instead of `make'.
+if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | grep -v 'ing directory'`&quot; = &quot;done&quot;; then
+   am__include=include
+   am__quote=
+   _am_result=GNU
+fi
+# Now try BSD make style include.
+if test &quot;$am__include&quot; = &quot;#&quot;; then
+   echo '.include &quot;confinc&quot;' &gt; confmf
+   if test &quot;`$am_make -s -f confmf 2&gt; /dev/null`&quot; = &quot;done&quot;; then
+      am__include=.include
+      am__quote=&quot;\&quot;&quot;
+      _am_result=BSD
+   fi
+fi
+
+
+echo &quot;$as_me:$LINENO: result: $_am_result&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$_am_result&quot; &gt;&amp;6
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
+if test &quot;${enable_dependency_tracking+set}&quot; = set; then
+  enableval=&quot;$enable_dependency_tracking&quot;
+
+fi;
+if test &quot;x$enable_dependency_tracking&quot; != xno; then
+  am_depcomp=&quot;$ac_aux_dir/depcomp&quot;
+  AMDEPBACKSLASH='\'
+fi
+
+
+if test &quot;x$enable_dependency_tracking&quot; != xno; then
+  AMDEP_TRUE=
+  AMDEP_FALSE='#'
+else
+  AMDEP_TRUE='#'
+  AMDEP_FALSE=
+fi
+
+
+
+# test to see if srcdir already configured
+if test &quot;`cd $srcdir &amp;&amp; pwd`&quot; != &quot;`pwd`&quot; &amp;&amp;
+   test -f $srcdir/config.status; then
+  { { echo &quot;$as_me:$LINENO: error: source directory already configured; run \&quot;make distclean\&quot; there first&quot; &gt;&amp;5
+echo &quot;$as_me: error: source directory already configured; run \&quot;make distclean\&quot; there first&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+# test whether we have cygpath
+if test -z &quot;$CYGPATH_W&quot;; then
+  if (cygpath --version) &gt;/dev/null 2&gt;/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE=gsmlib
+ VERSION=1.10
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PACKAGE &quot;$PACKAGE&quot;
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define VERSION &quot;$VERSION&quot;
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-&quot;${am_missing_run}aclocal-${am__api_version}&quot;}
+
+
+AUTOCONF=${AUTOCONF-&quot;${am_missing_run}autoconf&quot;}
+
+
+AUTOMAKE=${AUTOMAKE-&quot;${am_missing_run}automake-${am__api_version}&quot;}
+
+
+AUTOHEADER=${AUTOHEADER-&quot;${am_missing_run}autoheader&quot;}
+
+
+MAKEINFO=${MAKEINFO-&quot;${am_missing_run}makeinfo&quot;}
+
+install_sh=${install_sh-&quot;$am_aux_dir/install-sh&quot;}
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'.  However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test &quot;$cross_compiling&quot; != no; then
+  if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}strip&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_STRIP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$STRIP&quot;; then
+  ac_cv_prog_STRIP=&quot;$STRIP&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_STRIP=&quot;${ac_tool_prefix}strip&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n &quot;$STRIP&quot;; then
+  echo &quot;$as_me:$LINENO: result: $STRIP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$STRIP&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_STRIP&quot;; then
+  ac_ct_STRIP=$STRIP
+  # Extract the first word of &quot;strip&quot;, so it can be a program name with args.
+set dummy strip; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_STRIP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_STRIP&quot;; then
+  ac_cv_prog_ac_ct_STRIP=&quot;$ac_ct_STRIP&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_STRIP=&quot;strip&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_prog_ac_ct_STRIP&quot; &amp;&amp; ac_cv_prog_ac_ct_STRIP=&quot;:&quot;
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n &quot;$ac_ct_STRIP&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_STRIP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_STRIP&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  STRIP=$ac_ct_STRIP
+else
+  STRIP=&quot;$ac_cv_prog_STRIP&quot;
+fi
+
+fi
+INSTALL_STRIP_PROGRAM=&quot;\${SHELL} \$(install_sh) -c -s&quot;
+
+# We need awk for the &quot;check&quot; target.  The system &quot;awk&quot; is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-&quot;${am_missing_run}tar&quot;}
+
+am__tar='${AMTAR} chof - &quot;$$tardir&quot;'; am__untar='${AMTAR} xf -'
+
+
+
+
+depcc=&quot;$CC&quot;   am_compiler_list=
+
+echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${am_cv_CC_dependencies_compiler_type+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp &quot;$am_depcomp&quot; conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CC_dependencies_compiler_type=none
+  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : &gt; sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
+      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+        continue
+      else
+        break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
+       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
+        am_cv_CC_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$am_cv_CC_dependencies_compiler_type&quot; &gt;&amp;6
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+
+
+if
+  test &quot;x$enable_dependency_tracking&quot; != xno \
+  &amp;&amp; test &quot;$am_cv_CC_dependencies_compiler_type&quot; = gcc3; then
+  am__fastdepCC_TRUE=
+  am__fastdepCC_FALSE='#'
+else
+  am__fastdepCC_TRUE='#'
+  am__fastdepCC_FALSE=
+fi
+
+
+
+
+# Check whether --enable-shared or --disable-shared was given.
+if test &quot;${enable_shared+set}&quot; = set; then
+  enableval=&quot;$enable_shared&quot;
+  p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_shared=yes ;;
+    no) enable_shared=no ;;
+    *)
+      enable_shared=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_shared=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac
+else
+  enable_shared=yes
+fi;
+
+
+if test &quot;$CXXFLAGS&quot; = &quot;&quot;; then
+   CXXFLAGS=&quot;-O2&quot;
+fi
+
+
+
+if test x&quot;`egrep _REENTRANT /usr/include/features.h`&quot; != x; then
+  CXXFLAGS=&quot;-D_REENTRANT $CXXFLAGS&quot;
+  CFLAGS=&quot;-D_REENTRANT $CFLAGS&quot;
+fi
+
+CXXFLAGS=&quot;-Wall $CXXFLAGS&quot;
+
+# Check whether --enable-static or --disable-static was given.
+if test &quot;${enable_static+set}&quot; = set; then
+  enableval=&quot;$enable_static&quot;
+  p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_static=yes ;;
+    no) enable_static=no ;;
+    *)
+     enable_static=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_static=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac
+else
+  enable_static=yes
+fi;
+
+# Check whether --enable-fast-install or --disable-fast-install was given.
+if test &quot;${enable_fast_install+set}&quot; = set; then
+  enableval=&quot;$enable_fast_install&quot;
+  p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_fast_install=yes ;;
+    no) enable_fast_install=no ;;
+    *)
+      enable_fast_install=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+      for pkg in $enableval; do
+        IFS=&quot;$lt_save_ifs&quot;
+        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+          enable_fast_install=yes
+        fi
+      done
+      IFS=&quot;$lt_save_ifs&quot;
+      ;;
+    esac
+else
+  enable_fast_install=yes
+fi;
+
+# Make sure we can run config.sub.
+$ac_config_sub sun4 &gt;/dev/null 2&gt;&amp;1 ||
+  { { echo &quot;$as_me:$LINENO: error: cannot run $ac_config_sub&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot run $ac_config_sub&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+
+echo &quot;$as_me:$LINENO: checking build system type&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking build system type... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_build+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_cv_build_alias=$build_alias
+test -z &quot;$ac_cv_build_alias&quot; &amp;&amp;
+  ac_cv_build_alias=`$ac_config_guess`
+test -z &quot;$ac_cv_build_alias&quot; &amp;&amp;
+  { { echo &quot;$as_me:$LINENO: error: cannot guess build type; you must specify one&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot guess build type; you must specify one&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+  { { echo &quot;$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed&quot; &gt;&amp;5
+echo &quot;$as_me: error: $ac_config_sub $ac_cv_build_alias failed&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_build&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_build&quot; &gt;&amp;6
+build=$ac_cv_build
+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+echo &quot;$as_me:$LINENO: checking host system type&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking host system type... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_host+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_cv_host_alias=$host_alias
+test -z &quot;$ac_cv_host_alias&quot; &amp;&amp;
+  ac_cv_host_alias=$ac_cv_build_alias
+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
+  { { echo &quot;$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed&quot; &gt;&amp;5
+echo &quot;$as_me: error: $ac_config_sub $ac_cv_host_alias failed&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_host&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_host&quot; &gt;&amp;6
+host=$ac_cv_host
+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+echo &quot;$as_me:$LINENO: checking for a sed that does not truncate output&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for a sed that does not truncate output... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_path_SED+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  # Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for lt_ac_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      if $as_executable_p &quot;$as_dir/$lt_ac_prog$ac_exec_ext&quot;; then
+        lt_ac_sed_list=&quot;$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext&quot;
+      fi
+    done
+  done
+done
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+  test ! -f $lt_ac_sed &amp;&amp; continue
+  cat /dev/null &gt; conftest.in
+  lt_ac_count=0
+  echo $ECHO_N &quot;0123456789$ECHO_C&quot; &gt;conftest.in
+  # Check for GNU sed and select it if it is found.
+  if &quot;$lt_ac_sed&quot; --version 2&gt;&amp;1 &lt; /dev/null | grep 'GNU' &gt; /dev/null; then
+    lt_cv_path_SED=$lt_ac_sed
+    break
+  fi
+  while true; do
+    cat conftest.in conftest.in &gt;conftest.tmp
+    mv conftest.tmp conftest.in
+    cp conftest.in conftest.nl
+    echo &gt;&gt;conftest.nl
+    $lt_ac_sed -e 's/a$//' &lt; conftest.nl &gt;conftest.out || break
+    cmp -s conftest.out conftest.nl || break
+    # 10000 chars as input seems more than enough
+    test $lt_ac_count -gt 10 &amp;&amp; break
+    lt_ac_count=`expr $lt_ac_count + 1`
+    if test $lt_ac_count -gt $lt_ac_max; then
+      lt_ac_max=$lt_ac_count
+      lt_cv_path_SED=$lt_ac_sed
+    fi
+  done
+done
+
+fi
+
+SED=$lt_cv_path_SED
+echo &quot;$as_me:$LINENO: result: $SED&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$SED&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking for egrep&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for egrep... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_egrep+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if echo a | (grep -E '(a|b)') &gt;/dev/null 2&gt;&amp;1
+    then ac_cv_prog_egrep='grep -E'
+    else ac_cv_prog_egrep='egrep'
+    fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_prog_egrep&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_egrep&quot; &gt;&amp;6
+ EGREP=$ac_cv_prog_egrep
+
+
+
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test &quot;${with_gnu_ld+set}&quot; = set; then
+  withval=&quot;$with_gnu_ld&quot;
+  test &quot;$withval&quot; = no || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi;
+ac_prog=ld
+if test &quot;$GCC&quot; = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  echo &quot;$as_me:$LINENO: checking for ld used by $CC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ld used by $CC... $ECHO_C&quot; &gt;&amp;6
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | ?:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+  &quot;&quot;)
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test &quot;$with_gnu_ld&quot; = yes; then
+  echo &quot;$as_me:$LINENO: checking for GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for GNU ld... $ECHO_C&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: checking for non-GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for non-GNU ld... $ECHO_C&quot; &gt;&amp;6
+fi
+if test &quot;${lt_cv_path_LD+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$LD&quot;; then
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
+      *GNU* | *'with BFD'*)
+        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+        ;
+      *)
+        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+        ;
+      esac
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+else
+  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+fi
+fi
+
+LD=&quot;$lt_cv_path_LD&quot;
+if test -n &quot;$LD&quot;; then
+  echo &quot;$as_me:$LINENO: result: $LD&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$LD&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+test -z &quot;$LD&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable ld found in \$PATH&quot; &gt;&amp;5
+echo &quot;$as_me: error: no acceptable ld found in \$PATH&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+echo &quot;$as_me:$LINENO: checking if the linker ($LD) is GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if the linker ($LD) is GNU ld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_gnu_ld+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_gnu_ld&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_gnu_ld&quot; &gt;&amp;6
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+echo &quot;$as_me:$LINENO: checking for $LD option to reload object files&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $LD option to reload object files... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_ld_reload_flag+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_ld_reload_flag='-r'
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_ld_reload_flag&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_ld_reload_flag&quot; &gt;&amp;6
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+&quot;&quot; | &quot; &quot;*) ;;
+*) reload_flag=&quot; $reload_flag&quot; ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+  darwin*)
+    if test &quot;$GCC&quot; = yes; then
+      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
+    else
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
+    fi
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking for BSD-compatible nm&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for BSD-compatible nm... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_path_NM+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$NM&quot;; then
+  # Let the user override the test.
+  lt_cv_path_NM=&quot;$NM&quot;
+else
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    tmp_nm=&quot;$ac_dir/${ac_tool_prefix}nm&quot;
+    if test -f &quot;$tmp_nm&quot; || test -f &quot;$tmp_nm$ac_exeext&quot; ; then
+      # Check to see if the nm accepts a BSD-compat flag.
+      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+      #   nm: unknown option &quot;B&quot; ignored
+      # Tru64's nm complains that /dev/null is an invalid object file
+      case `&quot;$tmp_nm&quot; -B /dev/null 2&gt;&amp;1 | sed '1q'` in
+      */dev/null* | *'Invalid file or object type'*)
+        lt_cv_path_NM=&quot;$tmp_nm -B&quot;
+        break
+        ;;
+      *)
+        case `&quot;$tmp_nm&quot; -p /dev/null 2&gt;&amp;1 | sed '1q'` in
+        */dev/null*)
+          lt_cv_path_NM=&quot;$tmp_nm -p&quot;
+          break
+          ;;
+        *)
+          lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
+          continue # so that we can try to find one that supports BSD flags
+          ;;
+        esac
+      esac
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+  test -z &quot;$lt_cv_path_NM&quot; &amp;&amp; lt_cv_path_NM=nm
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_path_NM&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_path_NM&quot; &gt;&amp;6
+NM=&quot;$lt_cv_path_NM&quot;
+
+echo &quot;$as_me:$LINENO: checking whether ln -s works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether ln -s works... $ECHO_C&quot; &gt;&amp;6
+LN_S=$as_ln_s
+if test &quot;$LN_S&quot; = &quot;ln -s&quot;; then
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no, using $LN_S&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no, using $LN_S&quot; &gt;&amp;6
+fi
+
+echo &quot;$as_me:$LINENO: checking how to recognise dependent libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to recognise dependent libraries... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_deplibs_check_method+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix4* | aix5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi[45]*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin*)
+  # func_win32_libid is a shell function defined in ltmain.sh
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+  lt_cv_file_magic_cmd='func_win32_libid'
+  ;;
+
+mingw* | pw32*)
+  # Base MSYS/MinGW do not provide the 'file' command needed by
+  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+freebsd* | kfreebsd*-gnu | dragonfly*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20* | hpux11*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  case $host_cpu in
+  ia64*)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+    ;;
+  hppa*64*)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+    ;;
+  *)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+    ;;
+  esac
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $LD in
+  *-32|*&quot;-32 &quot;) libmagic=32-bit;;
+  *-n32|*&quot;-n32 &quot;) libmagic=N32;;
+  *-64|*&quot;-64 &quot;) libmagic=64-bit;;
+  *) libmagic=never-match;;
+  esac
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+nto-qnx*)
+  lt_cv_deplibs_check_method=unknown
+  ;;
+
+openbsd*)
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sco3.2v5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method=&quot;file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib&quot;
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+
+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+esac
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_deplibs_check_method&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_deplibs_check_method&quot; &gt;&amp;6
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test &quot;${enable_libtool_lock+set}&quot; = set; then
+  enableval=&quot;$enable_libtool_lock&quot;
+
+fi;
+test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+  # Find out which ABI we are using.
+  echo 'int i;' &gt; conftest.$ac_ext
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *ELF-32*)
+      HPUX_IA64_MODE=&quot;32&quot;
+      ;;
+    *ELF-64*)
+      HPUX_IA64_MODE=&quot;64&quot;
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+*-*-irix6*)
+  # Find out which ABI we are using.
+  echo '#line 3740 &quot;configure&quot;' &gt; conftest.$ac_ext
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+   if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD=&quot;${LD-ld} -melf32bsmip&quot;
+      ;;
+    *N32*)
+      LD=&quot;${LD-ld} -melf32bmipn32&quot;
+      ;;
+    *64-bit*)
+      LD=&quot;${LD-ld} -melf64bmip&quot;
+      ;;
+    esac
+   else
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD=&quot;${LD-ld} -32&quot;
+      ;;
+    *N32*)
+      LD=&quot;${LD-ld} -n32&quot;
+      ;;
+    *64-bit*)
+      LD=&quot;${LD-ld} -64&quot;
+      ;;
+    esac
+   fi
+  fi
+  rm -rf conftest*
+  ;;
+
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
+  # Find out which ABI we are using.
+  echo 'int i;' &gt; conftest.$ac_ext
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+    case `/usr/bin/file conftest.o` in
+    *32-bit*)
+      case $host in
+        x86_64-*linux*)
+          LD=&quot;${LD-ld} -m elf_i386&quot;
+          ;;
+        ppc64-*linux*|powerpc64-*linux*)
+          LD=&quot;${LD-ld} -m elf32ppclinux&quot;
+          ;;
+        s390x-*linux*)
+          LD=&quot;${LD-ld} -m elf_s390&quot;
+          ;;
+        sparc64-*linux*)
+          LD=&quot;${LD-ld} -m elf32_sparc&quot;
+          ;;
+      esac
+      ;;
+    *64-bit*)
+      case $host in
+        x86_64-*linux*)
+          LD=&quot;${LD-ld} -m elf_x86_64&quot;
+          ;;
+        ppc*-*linux*|powerpc*-*linux*)
+          LD=&quot;${LD-ld} -m elf64ppc&quot;
+          ;;
+        s390*-*linux*)
+          LD=&quot;${LD-ld} -m elf64_s390&quot;
+          ;;
+        sparc*-*linux*)
+          LD=&quot;${LD-ld} -m elf64_sparc&quot;
+          ;;
+      esac
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS=&quot;$CFLAGS&quot;
+  CFLAGS=&quot;$CFLAGS -belf&quot;
+  echo &quot;$as_me:$LINENO: checking whether the C compiler needs -belf&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the C compiler needs -belf... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_cc_needs_belf+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  lt_cv_cc_needs_belf=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+lt_cv_cc_needs_belf=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+     ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_cc_needs_belf&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_cc_needs_belf&quot; &gt;&amp;6
+  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS=&quot;$SAVE_CFLAGS&quot;
+  fi
+  ;;
+
+esac
+
+need_locks=&quot;$enable_libtool_lock&quot;
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo &quot;$as_me:$LINENO: checking how to run the C preprocessor&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to run the C preprocessor... $ECHO_C&quot; &gt;&amp;6
+# On Suns, sometimes $CPP names a directory.
+if test -n &quot;$CPP&quot; &amp;&amp; test -d &quot;$CPP&quot;; then
+  CPP=
+fi
+if test -z &quot;$CPP&quot;; then
+  if test &quot;${ac_cv_prog_CPP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in &quot;$CC -E&quot; &quot;$CC -E -traditional-cpp&quot; &quot;/lib/cpp&quot;
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+echo &quot;$as_me:$LINENO: result: $CPP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CPP&quot; &gt;&amp;6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+echo &quot;$as_me:$LINENO: checking for ANSI C header files&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ANSI C header files... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_header_stdc+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdlib.h&gt;
+#include &lt;stdarg.h&gt;
+#include &lt;string.h&gt;
+#include &lt;float.h&gt;
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_header_stdc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_header_stdc=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;string.h&gt;
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;memchr&quot; &gt;/dev/null 2&gt;&amp;1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdlib.h&gt;
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;free&quot; &gt;/dev/null 2&gt;&amp;1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+  if test &quot;$cross_compiling&quot; = yes; then
+  :
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ctype.h&gt;
+#if ((' ' &amp; 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' &lt;= (c) &amp;&amp; (c) &lt;= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+                   (('a' &lt;= (c) &amp;&amp; (c) &lt;= 'i') \
+                     || ('j' &lt;= (c) &amp;&amp; (c) &lt;= 'r') \
+                     || ('s' &lt;= (c) &amp;&amp; (c) &lt;= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) &amp;&amp; !(f)) || (!(e) &amp;&amp; (f)))
+int
+main ()
+{
+  int i;
+  for (i = 0; i &lt; 256; i++)
+    if (XOR (islower (i), ISLOWER (i))
+        || toupper (i) != TOUPPER (i))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_header_stdc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_header_stdc&quot; &gt;&amp;6
+if test $ac_cv_header_stdc = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+                  inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  eval &quot;$as_ac_Header=yes&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+eval &quot;$as_ac_Header=no&quot;
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+for ac_header in dlfcn.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -n &quot;$ac_tool_prefix&quot;; then
+  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+  do
+    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CXX&quot;; then
+  ac_cv_prog_CXX=&quot;$CXX&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_CXX=&quot;$ac_tool_prefix$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n &quot;$CXX&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CXX&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+    test -n &quot;$CXX&quot; &amp;&amp; break
+  done
+fi
+if test -z &quot;$CXX&quot;; then
+  ac_ct_CXX=$CXX
+  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_CXX&quot;; then
+  ac_cv_prog_ac_ct_CXX=&quot;$ac_ct_CXX&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_CXX=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n &quot;$ac_ct_CXX&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_CXX&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$ac_ct_CXX&quot; &amp;&amp; break
+done
+test -n &quot;$ac_ct_CXX&quot; || ac_ct_CXX=&quot;g++&quot;
+
+  CXX=$ac_ct_CXX
+fi
+
+
+# Provide some information about the compiler.
+echo &quot;$as_me:$LINENO:&quot; \
+     &quot;checking for C++ compiler version&quot; &gt;&amp;5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+
+echo &quot;$as_me:$LINENO: checking whether we are using the GNU C++ compiler&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU C++ compiler... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_cxx_compiler_gnu+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_cxx_compiler_gnu&quot; &gt;&amp;6
+GXX=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS=&quot;-g&quot;
+echo &quot;$as_me:$LINENO: checking whether $CXX accepts -g&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether $CXX accepts -g... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_cxx_g+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cxx_g=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cxx_g&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_cxx_g&quot; &gt;&amp;6
+if test &quot;$ac_test_CXXFLAGS&quot; = set; then
+  CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+  if test &quot;$GXX&quot; = yes; then
+    CXXFLAGS=&quot;-g -O2&quot;
+  else
+    CXXFLAGS=&quot;-g&quot;
+  fi
+else
+  if test &quot;$GXX&quot; = yes; then
+    CXXFLAGS=&quot;-O2&quot;
+  else
+    CXXFLAGS=
+  fi
+fi
+for ac_declaration in \
+   '' \
+   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
+   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
+   'extern &quot;C&quot; void exit (int) throw ();' \
+   'extern &quot;C&quot; void exit (int);' \
+   'void exit (int);'
+do
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n &quot;$ac_declaration&quot;; then
+  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
+  echo $ac_declaration      &gt;&gt;confdefs.h
+  echo '#endif'             &gt;&gt;confdefs.h
+fi
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+depcc=&quot;$CXX&quot;  am_compiler_list=
+
+echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${am_cv_CXX_dependencies_compiler_type+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp &quot;$am_depcomp&quot; conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CXX_dependencies_compiler_type=none
+  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : &gt; sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
+      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+        continue
+      else
+        break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
+       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
+        am_cv_CXX_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CXX_dependencies_compiler_type=none
+fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;6
+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
+
+
+
+if
+  test &quot;x$enable_dependency_tracking&quot; != xno \
+  &amp;&amp; test &quot;$am_cv_CXX_dependencies_compiler_type&quot; = gcc3; then
+  am__fastdepCXX_TRUE=
+  am__fastdepCXX_FALSE='#'
+else
+  am__fastdepCXX_TRUE='#'
+  am__fastdepCXX_FALSE=
+fi
+
+
+
+
+if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
+    ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
+    (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
+  ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+echo &quot;$as_me:$LINENO: checking how to run the C++ preprocessor&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to run the C++ preprocessor... $ECHO_C&quot; &gt;&amp;6
+if test -z &quot;$CXXCPP&quot;; then
+  if test &quot;${ac_cv_prog_CXXCPP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+      # Double quotes because CXXCPP needs to be expanded
+    for CXXCPP in &quot;$CXX -E&quot; &quot;/lib/cpp&quot;
+    do
+      ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_cxx_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_cxx_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
+fi
+
+    done
+    ac_cv_prog_CXXCPP=$CXXCPP
+
+fi
+  CXXCPP=$ac_cv_prog_CXXCPP
+else
+  ac_cv_prog_CXXCPP=$CXXCPP
+fi
+echo &quot;$as_me:$LINENO: result: $CXXCPP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CXXCPP&quot; &gt;&amp;6
+ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_cxx_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_cxx_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo &quot;$as_me:$LINENO: error: C++ preprocessor \&quot;$CXXCPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: C++ preprocessor \&quot;$CXXCPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+fi
+
+
+ac_ext=f
+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
+if test -n &quot;$ac_tool_prefix&quot;; then
+  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
+  do
+    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_F77+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$F77&quot;; then
+  ac_cv_prog_F77=&quot;$F77&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_F77=&quot;$ac_tool_prefix$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+F77=$ac_cv_prog_F77
+if test -n &quot;$F77&quot;; then
+  echo &quot;$as_me:$LINENO: result: $F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$F77&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+    test -n &quot;$F77&quot; &amp;&amp; break
+  done
+fi
+if test -z &quot;$F77&quot;; then
+  ac_ct_F77=$F77
+  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_F77+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_F77&quot;; then
+  ac_cv_prog_ac_ct_F77=&quot;$ac_ct_F77&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_F77=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_F77=$ac_cv_prog_ac_ct_F77
+if test -n &quot;$ac_ct_F77&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_F77&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$ac_ct_F77&quot; &amp;&amp; break
+done
+
+  F77=$ac_ct_F77
+fi
+
+
+# Provide some information about the compiler.
+echo &quot;$as_me:5311:&quot; \
+     &quot;checking for Fortran 77 compiler version&quot; &gt;&amp;5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+rm -f a.out
+
+# If we don't use `.F' as extension, the preprocessor is not run on the
+# input file.  (Note that this only needs to work for GNU compilers.)
+ac_save_ext=$ac_ext
+ac_ext=F
+echo &quot;$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU Fortran 77 compiler... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_f77_compiler_gnu+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+      program main
+#ifndef __GNUC__
+       choke me
+#endif
+
+      end
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_f77_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_f77_compiler_gnu&quot; &gt;&amp;6
+ac_ext=$ac_save_ext
+ac_test_FFLAGS=${FFLAGS+set}
+ac_save_FFLAGS=$FFLAGS
+FFLAGS=
+echo &quot;$as_me:$LINENO: checking whether $F77 accepts -g&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether $F77 accepts -g... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_f77_g+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  FFLAGS=-g
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+      program main
+
+      end
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_f77_g=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_prog_f77_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_prog_f77_g&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_f77_g&quot; &gt;&amp;6
+if test &quot;$ac_test_FFLAGS&quot; = set; then
+  FFLAGS=$ac_save_FFLAGS
+elif test $ac_cv_prog_f77_g = yes; then
+  if test &quot;x$ac_cv_f77_compiler_gnu&quot; = xyes; then
+    FFLAGS=&quot;-g -O2&quot;
+  else
+    FFLAGS=&quot;-g&quot;
+  fi
+else
+  if test &quot;x$ac_cv_f77_compiler_gnu&quot; = xyes; then
+    FFLAGS=&quot;-O2&quot;
+  else
+    FFLAGS=
+  fi
+fi
+
+G77=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+
+# find the maximum length of command line arguments
+echo &quot;$as_me:$LINENO: checking the maximum length of command line arguments&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking the maximum length of command line arguments... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_sys_max_cmd_len+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+    i=0
+  teststring=&quot;ABCD&quot;
+
+  case $build_os in
+  msdosdjgpp*)
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
+    # during glob expansion).  Even if it were fixed, the result of this
+    # check would be larger than it should be.
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
+    ;;
+
+  gnu*)
+    # Under GNU Hurd, this test is not required because there is
+    # no limit to the length of command line arguments.
+    # Libtool will interpret -1 as no limit whatsoever
+    lt_cv_sys_max_cmd_len=-1;
+    ;;
+
+  cygwin* | mingw*)
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
+    # about 5 minutes as the teststring grows exponentially.
+    # Worse, since 9x/ME are not pre-emptively multitasking,
+    # you end up with a &quot;frozen&quot; computer, even though with patience
+    # the test eventually succeeds (with a max line length of 256k).
+    # Instead, let's just punt: use the minimum linelength reported by
+    # all of the supported platforms: 8192 (on NT/2K/XP).
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  amigaos*)
+    # On AmigaOS with pdksh, this test takes hours, literally.
+    # So we just punt and use a minimum line length of 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+    # This has been around since 386BSD, at least.  Likely further.
+    if test -x /sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+    elif test -x /usr/sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+    else
+      lt_cv_sys_max_cmd_len=65536        # usable default for all BSDs
+    fi
+    # And add a safety zone
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    ;;
+  osf*)
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+    # nice to cause kernel panics so lets avoid the loop below.
+    # First set a reasonable default.
+    lt_cv_sys_max_cmd_len=16384
+    #
+    if test -x /sbin/sysconfig; then
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
+      esac
+    fi
+    ;;
+  *)
+    # If test is not a shell built-in, we'll probably end up computing a
+    # maximum length that is only half of the actual maximum length, but
+    # we can't tell.
+    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+    while (test &quot;X&quot;`$SHELL $0 --fallback-echo &quot;X$teststring&quot; 2&gt;/dev/null` \
+               = &quot;XX$teststring&quot;) &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+            new_result=`expr &quot;X$teststring&quot; : &quot;.*&quot; 2&gt;&amp;1` &amp;&amp;
+            lt_cv_sys_max_cmd_len=$new_result &amp;&amp;
+            test $i != 17 # 1/2 MB should be enough
+    do
+      i=`expr $i + 1`
+      teststring=$teststring$teststring
+    done
+    teststring=
+    # Add a significant safety factor because C++ compilers can tack on massive
+    # amounts of additional arguments before passing them to the linker.
+    # It appears as though 1/2 is a usable value.
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+    ;;
+  esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+  echo &quot;$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_sys_max_cmd_len&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: none&quot; &gt;&amp;5
+echo &quot;${ECHO_T}none&quot; &gt;&amp;6
+fi
+
+
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+echo &quot;$as_me:$LINENO: checking command to parse $NM output from $compiler object&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking command to parse $NM output from $compiler object... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_sys_global_symbol_pipe+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'&quot;
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[BCDT]'
+  ;;
+cygwin* | mingw* | pw32*)
+  symcode='[ABCDGISTW]'
+  ;;
+hpux*) # Its linker distinguishes data from code symbols
+  if test &quot;$host_cpu&quot; = ia64; then
+    symcode='[ABCDEGRST]'
+  fi
+  lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+  lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+  ;;
+linux*)
+  if test &quot;$host_cpu&quot; = ia64; then
+    symcode='[ABCDGIRSTW]'
+    lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+    lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+  fi
+  ;;
+irix* | nonstopux*)
+  symcode='[BCDEGRST]'
+  ;;
+osf*)
+  symcode='[BCDEGQRST]'
+  ;;
+solaris* | sysv5*)
+  symcode='[BDRT]'
+  ;;
+sysv4)
+  symcode='[DFNSTU]'
+  ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2&gt;&amp;1` in
+*GNU* | *'with BFD'*)
+  symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in &quot;&quot; &quot;_&quot;; do
+
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+  symxfrm=&quot;\\1 $ac_symprfx\\2 \\2&quot;
+
+  # Write the raw and C identifiers.
+  lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][         ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'&quot;
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+
+  rm -f conftest*
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if { (eval echo &quot;$as_me:$LINENO: \&quot;$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist\&quot;&quot;) &gt;&amp;5
+  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s &quot;$nlist&quot;; then
+      # Try sorting and uniquifying the output.
+      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
+      else
+        rm -f &quot;$nlist&quot;T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if grep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+        if grep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+          cat &lt;&lt;EOF &gt; conftest.$ac_ext
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+EOF
+          # Now generate the symbol file.
+          eval &quot;$lt_cv_sys_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext'
+
+          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
+#if defined (__STDC__) &amp;&amp; __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr_t address;
+}
+lt_preloaded_symbols[] =
+{
+EOF
+          $SED &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr_t) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext
+          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
+  {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+          # Now try linking the two files.
+          mv conftest.$ac_objext conftstm.$ac_objext
+          lt_save_LIBS=&quot;$LIBS&quot;
+          lt_save_CFLAGS=&quot;$CFLAGS&quot;
+          LIBS=&quot;conftstm.$ac_objext&quot;
+          CFLAGS=&quot;$CFLAGS$lt_prog_compiler_no_builtin_flag&quot;
+          if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext}; then
+            pipe_works=yes
+          fi
+          LIBS=&quot;$lt_save_LIBS&quot;
+          CFLAGS=&quot;$lt_save_CFLAGS&quot;
+        else
+          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
+        fi
+      else
+        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
+      fi
+    else
+      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;5
+    fi
+  else
+    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+    cat conftest.$ac_ext &gt;&amp;5
+  fi
+  rm -f conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test &quot;$pipe_works&quot; = yes; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+
+fi
+
+if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
+  lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z &quot;$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl&quot;; then
+  echo &quot;$as_me:$LINENO: result: failed&quot; &gt;&amp;5
+echo &quot;${ECHO_T}failed&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: ok&quot; &gt;&amp;5
+echo &quot;${ECHO_T}ok&quot; &gt;&amp;6
+fi
+
+echo &quot;$as_me:$LINENO: checking for objdir&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for objdir... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_objdir+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  rm -f .libs 2&gt;/dev/null
+mkdir .libs 2&gt;/dev/null
+if test -d .libs; then
+  lt_cv_objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  lt_cv_objdir=_libs
+fi
+rmdir .libs 2&gt;/dev/null
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_objdir&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_objdir&quot; &gt;&amp;6
+objdir=$lt_cv_objdir
+
+
+
+
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e 1s/^X//'
+sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm=&quot;rm -f&quot;
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
+ofile=&quot;$default_ofile&quot;
+with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
+
+if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}ar&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_AR+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$AR&quot;; then
+  ac_cv_prog_AR=&quot;$AR&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_AR=&quot;${ac_tool_prefix}ar&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n &quot;$AR&quot;; then
+  echo &quot;$as_me:$LINENO: result: $AR&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$AR&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_AR&quot;; then
+  ac_ct_AR=$AR
+  # Extract the first word of &quot;ar&quot;, so it can be a program name with args.
+set dummy ar; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_AR+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_AR&quot;; then
+  ac_cv_prog_ac_ct_AR=&quot;$ac_ct_AR&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_AR=&quot;ar&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_prog_ac_ct_AR&quot; &amp;&amp; ac_cv_prog_ac_ct_AR=&quot;false&quot;
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n &quot;$ac_ct_AR&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_AR&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_AR&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  AR=$ac_ct_AR
+else
+  AR=&quot;$ac_cv_prog_AR&quot;
+fi
+
+if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$RANLIB&quot;; then
+  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n &quot;$RANLIB&quot;; then
+  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_RANLIB&quot;; then
+  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n &quot;$ac_ct_RANLIB&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  RANLIB=$ac_ct_RANLIB
+else
+  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
+fi
+
+if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}strip&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_STRIP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$STRIP&quot;; then
+  ac_cv_prog_STRIP=&quot;$STRIP&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_STRIP=&quot;${ac_tool_prefix}strip&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n &quot;$STRIP&quot;; then
+  echo &quot;$as_me:$LINENO: result: $STRIP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$STRIP&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_STRIP&quot;; then
+  ac_ct_STRIP=$STRIP
+  # Extract the first word of &quot;strip&quot;, so it can be a program name with args.
+set dummy strip; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_STRIP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_STRIP&quot;; then
+  ac_cv_prog_ac_ct_STRIP=&quot;$ac_ct_STRIP&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_STRIP=&quot;strip&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_prog_ac_ct_STRIP&quot; &amp;&amp; ac_cv_prog_ac_ct_STRIP=&quot;:&quot;
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n &quot;$ac_ct_STRIP&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_STRIP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_STRIP&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  STRIP=$ac_ct_STRIP
+else
+  STRIP=&quot;$ac_cv_prog_STRIP&quot;
+fi
+
+
+old_CC=&quot;$CC&quot;
+old_CFLAGS=&quot;$CFLAGS&quot;
+
+# Set sane defaults for various variables
+test -z &quot;$AR&quot; &amp;&amp; AR=ar
+test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
+test -z &quot;$AS&quot; &amp;&amp; AS=as
+test -z &quot;$CC&quot; &amp;&amp; CC=cc
+test -z &quot;$LTCC&quot; &amp;&amp; LTCC=$CC
+test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
+test -z &quot;$LD&quot; &amp;&amp; LD=ld
+test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
+test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
+test -z &quot;$NM&quot; &amp;&amp; NM=nm
+test -z &quot;$SED&quot; &amp;&amp; SED=sed
+test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
+test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
+test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n &quot;$RANLIB&quot;; then
+  case $host_os in
+  openbsd*)
+    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
+    ;;
+  *)
+    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+    ;;
+  esac
+  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
+fi
+
+for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
+    echo &quot;$as_me:$LINENO: checking for ${ac_tool_prefix}file&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ${ac_tool_prefix}file... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case $MAGIC_CMD in
+[\\/*] |  ?:[\\/]*)
+  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  ac_dummy=&quot;/usr/bin$PATH_SEPARATOR$PATH&quot;
+  for ac_dir in $ac_dummy; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f $ac_dir/${ac_tool_prefix}file; then
+      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/${ac_tool_prefix}file&quot;
+      if test -n &quot;$file_magic_test_file&quot;; then
+        case $deplibs_check_method in
+        &quot;file_magic &quot;*)
+          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
+          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
+            :
+          else
+            cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+          fi ;;
+        esac
+      fi
+      break
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
+  ;;
+esac
+fi
+
+MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+if test -n &quot;$MAGIC_CMD&quot;; then
+  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
+  if test -n &quot;$ac_tool_prefix&quot;; then
+    echo &quot;$as_me:$LINENO: checking for file&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for file... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case $MAGIC_CMD in
+[\\/*] |  ?:[\\/]*)
+  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  ac_dummy=&quot;/usr/bin$PATH_SEPARATOR$PATH&quot;
+  for ac_dir in $ac_dummy; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f $ac_dir/file; then
+      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/file&quot;
+      if test -n &quot;$file_magic_test_file&quot;; then
+        case $deplibs_check_method in
+        &quot;file_magic &quot;*)
+          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
+          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
+            :
+          else
+            cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+          fi ;;
+        esac
+      fi
+      break
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
+  ;;
+esac
+fi
+
+MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+if test -n &quot;$MAGIC_CMD&quot;; then
+  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  else
+    MAGIC_CMD=:
+  fi
+fi
+
+  fi
+  ;;
+esac
+
+enable_dlopen=no
+enable_win32_dll=no
+
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test &quot;${enable_libtool_lock+set}&quot; = set; then
+  enableval=&quot;$enable_libtool_lock&quot;
+
+fi;
+test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+
+
+# Check whether --with-pic or --without-pic was given.
+if test &quot;${with_pic+set}&quot; = set; then
+  withval=&quot;$with_pic&quot;
+  pic_mode=&quot;$withval&quot;
+else
+  pic_mode=default
+fi;
+test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+lt_save_CC=&quot;$CC&quot;
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}\n'
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+
+
+#
+# Check for any special shared library compilation flags.
+#
+lt_prog_cc_shlib=
+if test &quot;$GCC&quot; = no; then
+  case $host_os in
+  sco3.2v5*)
+    lt_prog_cc_shlib='-belf'
+    ;;
+  esac
+fi
+if test -n &quot;$lt_prog_cc_shlib&quot;; then
+  { echo &quot;$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;2;}
+  if echo &quot;$old_CC $old_CFLAGS &quot; | grep &quot;[         ]$lt_prog_cc_shlib[         ]&quot; &gt;/dev/null; then :
+  else
+    { echo &quot;$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;2;}
+    lt_cv_prog_cc_can_build_shared=no
+  fi
+fi
+
+
+#
+# Check to make sure the static flag actually works.
+#
+echo &quot;$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_prog_compiler_static_works+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_prog_compiler_static_works=no
+   save_LDFLAGS=&quot;$LDFLAGS&quot;
+   LDFLAGS=&quot;$LDFLAGS $lt_prog_compiler_static&quot;
+   printf &quot;$lt_simple_link_test_code&quot; &gt; conftest.$ac_ext
+   if (eval $ac_link 2&gt;conftest.err) &amp;&amp; test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1&gt;&amp;5
+       $echo &quot;X$_lt_linker_boilerplate&quot; | $Xsed &gt; conftest.exp
+       $SED '/^$/d' conftest.err &gt;conftest.er2
+       if diff conftest.exp conftest.er2 &gt;/dev/null; then
+         lt_prog_compiler_static_works=yes
+       fi
+     else
+       lt_prog_compiler_static_works=yes
+     fi
+   fi
+   $rm conftest*
+   LDFLAGS=&quot;$save_LDFLAGS&quot;
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_static_works&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_static_works&quot; &gt;&amp;6
+
+if test x&quot;$lt_prog_compiler_static_works&quot; = xyes; then
+    :
+else
+    lt_prog_compiler_static=
+fi
+
+
+
+
+lt_prog_compiler_no_builtin_flag=
+
+if test &quot;$GCC&quot; = yes; then
+  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
+
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_rtti_exceptions+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_rtti_exceptions=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;-fno-rtti -fno-exceptions&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:6407: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:6411: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_rtti_exceptions=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;6
+
+if test x&quot;$lt_cv_prog_compiler_rtti_exceptions&quot; = xyes; then
+    lt_prog_compiler_no_builtin_flag=&quot;$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions&quot;
+else
+    :
+fi
+
+fi
+
+lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
+
+  if test &quot;$GCC&quot; = yes; then
+    lt_prog_compiler_wl='-Wl,'
+    lt_prog_compiler_static='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static='-Bstatic'
+      fi
+      ;;
+
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+      ;;
+
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic='-DDLL_EXPORT'
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic='-fno-common'
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      lt_prog_compiler_can_build_shared=no
+      enable_shared=no
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        lt_prog_compiler_pic=-Kconform_pic
+      fi
+      ;;
+
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic='-fPIC'
+        ;
+      esac
+      ;;
+
+    *)
+      lt_prog_compiler_pic='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      lt_prog_compiler_wl='-Wl,'
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static='-Bstatic'
+      else
+        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+      darwin*)
+        # PIC is the default on this platform
+        # Common symbols not allowed in MH_DYLIB files
+       case $cc_basename in
+         xlc*)
+         lt_prog_compiler_pic='-qnocommon'
+         lt_prog_compiler_wl='-Wl,'
+         ;;
+       esac
+       ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic='-DDLL_EXPORT'
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      lt_prog_compiler_wl='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic='+Z'
+        ;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      lt_prog_compiler_static='${wl}-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_prog_compiler_wl='-Wl,'
+      # PIC (with -KPIC) is the default.
+      lt_prog_compiler_static='-non_shared'
+      ;;
+
+    newsos6)
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    linux*)
+      case $cc_basename in
+      icc* | ecc*)
+        lt_prog_compiler_wl='-Wl,'
+        lt_prog_compiler_pic='-KPIC'
+        lt_prog_compiler_static='-static'
+        ;;
+      pgcc* | pgf77* | pgf90* | pgf95*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+        # which looks to be a dead project)
+        lt_prog_compiler_wl='-Wl,'
+        lt_prog_compiler_pic='-fpic'
+        lt_prog_compiler_static='-Bstatic'
+        ;;
+      ccc*)
+        lt_prog_compiler_wl='-Wl,'
+        # All Alpha code is PIC.
+        lt_prog_compiler_static='-non_shared'
+        ;;
+      esac
+      ;;
+
+    osf3* | osf4* | osf5*)
+      lt_prog_compiler_wl='-Wl,'
+      # All OSF/1 code is PIC.
+      lt_prog_compiler_static='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      lt_prog_compiler_pic='-Kpic'
+      lt_prog_compiler_static='-dn'
+      ;;
+
+    solaris*)
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95*)
+        lt_prog_compiler_wl='-Qoption ld ';;
+      *)
+        lt_prog_compiler_wl='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      lt_prog_compiler_wl='-Qoption ld '
+      lt_prog_compiler_pic='-PIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      lt_prog_compiler_wl='-Wl,'
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+        lt_prog_compiler_pic='-Kconform_pic'
+        lt_prog_compiler_static='-Bstatic'
+      fi
+      ;;
+
+    unicos*)
+      lt_prog_compiler_wl='-Wl,'
+      lt_prog_compiler_can_build_shared=no
+      ;;
+
+    uts4*)
+      lt_prog_compiler_pic='-pic'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    *)
+      lt_prog_compiler_can_build_shared=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic&quot; &gt;&amp;6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n &quot;$lt_prog_compiler_pic&quot;; then
+
+echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_prog_compiler_pic_works+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_prog_compiler_pic_works=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;$lt_prog_compiler_pic -DPIC&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:6669: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:6673: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_prog_compiler_pic_works=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_works&quot; &gt;&amp;6
+
+if test x&quot;$lt_prog_compiler_pic_works&quot; = xyes; then
+    case $lt_prog_compiler_pic in
+     &quot;&quot; | &quot; &quot;*) ;;
+     *) lt_prog_compiler_pic=&quot; $lt_prog_compiler_pic&quot; ;;
+     esac
+else
+    lt_prog_compiler_pic=
+     lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+case $host_os in
+  # For platforms which do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic=
+    ;;
+  *)
+    lt_prog_compiler_pic=&quot;$lt_prog_compiler_pic -DPIC&quot;
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_c_o+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_c_o=no
+   $rm -r conftest 2&gt;/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:6731: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err &gt;&amp;5
+   echo &quot;$as_me:6735: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
+     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
+     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_c_o=yes
+     fi
+   fi
+   chmod u+w . 2&gt;&amp;5
+   $rm conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
+   $rm out/* &amp;&amp; rmdir out
+   cd ..
+   rmdir conftest
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o&quot; &gt;&amp;6
+
+
+hard_links=&quot;nottested&quot;
+if test &quot;$lt_cv_prog_compiler_c_o&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
+  if test &quot;$hard_links&quot; = no; then
+    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+
+  runpath_var=
+  allow_undefined_flag=
+  enable_shared_with_static_runtimes=no
+  archive_cmds=
+  archive_expsym_cmds=
+  old_archive_From_new_cmds=
+  old_archive_from_expsyms_cmds=
+  export_dynamic_flag_spec=
+  whole_archive_flag_spec=
+  thread_safe_flag_spec=
+  hardcode_libdir_flag_spec=
+  hardcode_libdir_flag_spec_ld=
+  hardcode_libdir_separator=
+  hardcode_direct=no
+  hardcode_minus_L=no
+  hardcode_shlibpath_var=unsupported
+  link_all_deplibs=unknown
+  hardcode_automatic=no
+  module_cmds=
+  module_expsym_cmds=
+  always_export_symbols=no
+  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  include_expsyms=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+  # as well as any symbol that contains `d'.
+  exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  extract_expsyms_cmds=
+  # Just being paranoid about ensuring that cc_basename is set.
+  for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+  case $host_os in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test &quot;$GCC&quot; != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  ld_shlibs=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='${wl}'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec='${wl}--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
+        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+      else
+          whole_archive_flag_spec=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v 2&gt;/dev/null` in
+      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test &quot;$host_cpu&quot; != ia64; then
+        ld_shlibs=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+
+      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we can't use
+      # them.
+      ld_shlibs=no
+      ;;
+
+    beos*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        allow_undefined_flag=unsupported
+        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+        # support --undefined.  This deserves some investigation.  FIXME
+        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      else
+        ld_shlibs=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+      # as there is no search path for DLLs.
+      hardcode_libdir_flag_spec='-L$libdir'
+      allow_undefined_flag=unsupported
+      always_export_symbols=no
+      enable_shared_with_static_runtimes=yes
+      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+
+      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+        # If the export-symbols file already is a .def file (1st line
+        # is EXPORTS), use it as is; otherwise, prepend...
+        archive_expsym_cmds='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS &gt; $output_objdir/$soname.def;
+          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
+      else
+        ld_shlibs=no
+      fi
+      ;;
+
+    linux*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        tmp_addflag=
+        case $cc_basename,$host_cpu in
+        pgcc*)                                # Portland Group C compiler
+          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag'
+          ;;
+        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
+          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag -Mnomain' ;;
+        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
+          tmp_addflag=' -i_dynamic' ;;
+        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
+          tmp_addflag=' -i_dynamic -nofor_main' ;;
+        ifc* | ifort*)                        # Intel Fortran compiler
+          tmp_addflag=' -nofor_main' ;;
+        esac
+        archive_cmds='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+        if test $supports_anon_versioning = yes; then
+          archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
+  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
+  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
+          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+        fi
+        link_all_deplibs=no
+      else
+        ld_shlibs=no
+      fi
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+        wlarc=
+      else
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris* | sysv5*)
+      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
+        ld_shlibs=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs=no
+      fi
+      ;;
+
+    sunos4*)
+      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    *)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    esac
+
+    if test &quot;$ld_shlibs&quot; = no; then
+      runpath_var=
+      hardcode_libdir_flag_spec=
+      export_dynamic_flag_spec=
+      whole_archive_flag_spec=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      allow_undefined_flag=unsupported
+      always_export_symbols=yes
+      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L=yes
+      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        hardcode_direct=unsupported
+      fi
+      ;;
+
+    aix4* | aix5*)
+      if test &quot;$host_cpu&quot; = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+        exp_sym_flag='-Bexport'
+        no_entry_flag=&quot;&quot;
+      else
+        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+        # -C means demangle to AIX nm, but means don't demangle with GNU nm
+        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        else
+          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        fi
+        aix_use_runtimelinking=no
+
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+        esac
+
+        exp_sym_flag='-bexport'
+        no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      archive_cmds=''
+      hardcode_direct=yes
+      hardcode_libdir_separator=':'
+      link_all_deplibs=yes
+
+      if test &quot;$GCC&quot; = yes; then
+        case $host_os in aix4.[012]|aix4.[012].*)
+        # We only want to do this on AIX 4.2 and lower, the check
+        # below for broken collect2 doesn't work under 4.3+
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f &quot;$collect2name&quot; &amp;&amp; \
+             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+          then
+            # We have reworked collect2
+            hardcode_direct=yes
+          else
+            # We have old collect2
+            hardcode_direct=unsupported
+            # It fails to find uninstalled libraries when the uninstalled
+            # path is not listed in the libpath.  Setting hardcode_minus_L
+            # to unsupported forces relinking
+            hardcode_minus_L=yes
+            hardcode_libdir_flag_spec='-L$libdir'
+            hardcode_libdir_separator=
+          fi
+        esac
+        shared_flag='-shared'
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+        fi
+      else
+        # not using gcc
+        if test &quot;$host_cpu&quot; = ia64; then
+          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+          # chokes on -Wl,-G. The following line is correct:
+          shared_flag='-G'
+        else
+          if test &quot;$aix_use_runtimelinking&quot; = yes; then
+            shared_flag='${wl}-G'
+          else
+            shared_flag='${wl}-bM:SRE'
+          fi
+        fi
+      fi
+
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      always_export_symbols=yes
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        # Warning - without using the other runtime loading flags (-brtl),
+        # -berok will link without error, but may produce a broken library.
+        allow_undefined_flag='-berok'
+       # Determine the default libpath from the value encoded in an empty executable.
+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        archive_expsym_cmds=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+       else
+        if test &quot;$host_cpu&quot; = ia64; then
+          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+          allow_undefined_flag=&quot;-z nodefs&quot;
+          archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+        else
+         # Determine the default libpath from the value encoded in an empty executable.
+         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+          # Warning - without using the other run time loading flags,
+          # -berok will link without error, but may produce a broken library.
+          no_undefined_flag=' ${wl}-bernotok'
+          allow_undefined_flag=' ${wl}-berok'
+          # -bexpall does not export symbols beginning with underscore (_)
+          always_export_symbols=yes
+          # Exported symbols can be pulled into shared objects from archives
+          whole_archive_flag_spec=' '
+          archive_cmds_need_lc=yes
+          # This is similar to how AIX traditionally builds its shared libraries.
+          archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+        fi
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      # see comment about different semantics on the GNU ld section
+      ld_shlibs=no
+      ;;
+
+    bsdi[45]*)
+      export_dynamic_flag_spec=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec=' '
+      allow_undefined_flag=unsupported
+      # Tell ltmain to make .lib files, not .a files.
+      libext=lib
+      # Tell ltmain to make .dll files, not .so files.
+      shrext_cmds=&quot;.dll&quot;
+      # FIXME: Setting linknames here is a bad hack.
+      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+      # The linker will automatically build a .lib file if we build a DLL.
+      old_archive_From_new_cmds='true'
+      # FIXME: Should let the user specify the lib program.
+      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+      fix_srcfile_path='`cygpath -w &quot;$srcfile&quot;`'
+      enable_shared_with_static_runtimes=yes
+      ;;
+
+    darwin* | rhapsody*)
+      case $host_os in
+        rhapsody* | darwin1.[012])
+         allow_undefined_flag='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[012])
+               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+      esac
+      archive_cmds_need_lc=no
+      hardcode_direct=no
+      hardcode_automatic=yes
+      hardcode_shlibpath_var=unsupported
+      whole_archive_flag_spec=''
+      link_all_deplibs=yes
+    if test &quot;$GCC&quot; = yes ; then
+            output_verbose_link_cmd='echo'
+        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+      archive_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      module_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+    else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+         archive_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          module_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         ld_shlibs=no
+          ;;
+      esac
+    fi
+      ;;
+
+    dgux*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_shlibpath_var=no
+      ;;
+
+    freebsd1*)
+      ld_shlibs=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2*)
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | kfreebsd*-gnu | dragonfly*)
+      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    hpux9*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      fi
+      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator=:
+      hardcode_direct=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      hardcode_minus_L=yes
+      export_dynamic_flag_spec='${wl}-E'
+      ;;
+
+    hpux10* | hpux11*)
+      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        *)
+          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        esac
+      else
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        *)
+          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        esac
+      fi
+      if test &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*)
+          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+          hardcode_libdir_flag_spec_ld='+b $libdir'
+          hardcode_libdir_separator=:
+          hardcode_direct=no
+          hardcode_shlibpath_var=no
+          ;;
+        ia64*)
+          hardcode_libdir_flag_spec='-L$libdir'
+          hardcode_direct=no
+          hardcode_shlibpath_var=no
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L=yes
+          ;;
+        *)
+          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+          hardcode_libdir_separator=:
+          hardcode_direct=yes
+          export_dynamic_flag_spec='${wl}-E'
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L=yes
+          ;;
+        esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec_ld='-rpath $libdir'
+      fi
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      link_all_deplibs=yes
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    newsos6)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct=yes
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      hardcode_shlibpath_var=no
+      ;;
+
+    openbsd*)
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+        export_dynamic_flag_spec='${wl}-E'
+      else
+       case $host_os in
+         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+           hardcode_libdir_flag_spec='-R$libdir'
+           ;;
+         *)
+           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+           ;;
+       esac
+      fi
+      ;;
+
+    os2*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      allow_undefined_flag=unsupported
+      archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        allow_undefined_flag=' -expect_unresolved \*'
+        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      fi
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+
+    osf4* | osf5*)        # as osf3* with the addition of -msym flag
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      else
+        allow_undefined_flag=' -expect_unresolved \*'
+        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        archive_expsym_cmds='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+        # Both c and cxx compiler support -rpath directly
+        hardcode_libdir_flag_spec='-rpath $libdir'
+      fi
+      hardcode_libdir_separator=:
+      ;;
+
+    sco3.2v5*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var=no
+      export_dynamic_flag_spec='${wl}-Bexport'
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ;;
+
+    solaris*)
+      no_undefined_flag=' -z text'
+      if test &quot;$GCC&quot; = yes; then
+        wlarc='${wl}'
+        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+      else
+        wlarc=''
+        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      fi
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_shlibpath_var=no
+      case $host_os in
+      solaris2.[0-5] | solaris2.[0-5].*) ;;
+      *)
+         # The compiler driver will combine linker options so we
+         # cannot just pass the convience library names through
+         # without $wl, iff we do not link with $LD.
+         # Luckily, gcc supports the same syntax we need for Sun Studio.
+         # Supported since Solaris 2.6 (maybe 2.5.1?)
+         case $wlarc in
+         '')
+           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+         *)
+           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
+         esac ;;
+      esac
+      link_all_deplibs=yes
+      ;;
+
+    sunos4*)
+      if test &quot;x$host_vendor&quot; = xsequent; then
+        # Use $CC to link under sequent, because it throws in some extra .o
+        # files that make .init and .fini sections work.
+        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+        sni)
+          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct=yes # is this really true???
+        ;
+        siemens)
+          ## LD is ld it makes a PLAMLIB
+          ## CC just makes a GrossModule.
+          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+          reload_cmds='$CC -r -o $output$reload_objs'
+          hardcode_direct=no
+        ;;
+        motorola)
+          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+        ;
+      esac
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var=no
+      ;;
+
+    sysv4.3*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var=no
+      export_dynamic_flag_spec='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_shlibpath_var=no
+        runpath_var=LD_RUN_PATH
+        hardcode_runpath_var=yes
+        ld_shlibs=yes
+      fi
+      ;;
+
+    sysv4.2uw2*)
+      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct=yes
+      hardcode_minus_L=no
+      hardcode_shlibpath_var=no
+      hardcode_runpath_var=yes
+      runpath_var=LD_RUN_PATH
+      ;;
+
+   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
+      no_undefined_flag='${wl}-z ${wl}text'
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var=no
+      ;;
+
+    sysv5*)
+      no_undefined_flag=' -z text'
+      # $CC -shared without GNU ld will not create a library from C++
+      # object files and a static libstdc++, better avoid it by now
+      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      hardcode_libdir_flag_spec=
+      hardcode_shlibpath_var=no
+      runpath_var='LD_RUN_PATH'
+      ;;
+
+    uts4*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_shlibpath_var=no
+      ;;
+
+    *)
+      ld_shlibs=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $ld_shlibs&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ld_shlibs&quot; &gt;&amp;6
+test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no
+
+variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+if test &quot;$GCC&quot; = yes; then
+  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case &quot;x$archive_cmds_need_lc&quot; in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc=yes
+
+  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+    case $archive_cmds in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
+      $rm conftest*
+      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } 2&gt;conftest.err; then
+        soname=conftest
+        lib=conftest
+        libobjs=conftest.$ac_objext
+        deplibs=
+        wl=$lt_prog_compiler_wl
+        compiler_flags=-v
+        linker_flags=-v
+        verstring=
+        output_objdir=.
+        libname=conftest
+        lt_save_allow_undefined_flag=$allow_undefined_flag
+        allow_undefined_flag=
+        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
+  (eval $archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+        then
+          archive_cmds_need_lc=no
+        else
+          archive_cmds_need_lc=yes
+        fi
+        allow_undefined_flag=$lt_save_allow_undefined_flag
+      else
+        cat conftest.err 1&gt;&amp;5
+      fi
+      $rm conftest*
+      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$archive_cmds_need_lc&quot; &gt;&amp;6
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=&quot;.so&quot;
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+if test &quot;$GCC&quot; = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
+    # if the path contains &quot;;&quot; then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
+    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
+    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+  else
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+  fi
+else
+  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}${shared_ext}$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test &quot;$host_cpu&quot; = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+           echo ' yes '
+           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+        :
+      else
+        can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+      # instead of lib&lt;name&gt;.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}${shared_ext}$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}${shared_ext}'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  shrext_cmds=&quot;.dll&quot;
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$host_os in
+  yes,cygwin* | yes,mingw* | yes,pw32*)
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
+      ;;
+    mingw*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
+        # It is most probably a Windows format PATH printed by
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
+        # path with ; separators, and with drive letters. We can handle the
+        # drive letters (cygwin fileutils understands them), so leave them,
+        # especially as we might pass files found there to a mingw objdump,
+        # which wouldn't understand a cygwinified path. Ahh.
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+      fi
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      ;;
+    esac
+    ;;
+
+  *)
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker=&quot;$host_os dyld&quot;
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  soname_spec='${libname}${release}${major}$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+  if test &quot;$GCC&quot; = yes; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
+  else
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+  fi
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[123]*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker=&quot;$host_os dld.so&quot;
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
+    else
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+   hppa*64*)
+     shrext_cmds='.sl'
+     hardcode_into_libs=yes
+     dynamic_linker=&quot;$host_os dld.sl&quot;
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+     soname_spec='${libname}${release}${shared_ext}$major'
+     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+     ;;
+   *)
+    shrext_cmds='.sl'
+    dynamic_linker=&quot;$host_os dld.sl&quot;
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+                version_type=linux
+        else
+                version_type=irix
+        fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsdelf*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='NetBSD ld.elf_so'
+  ;;
+
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+nto-qnx*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+  case $host_os in
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+    *)                         need_version=no  ;;
+  esac
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    case $host_os in
+      openbsd2.[89] | openbsd2.[89].*)
+        shlibpath_overrides_runpath=no
+        ;
+      *)
+        shlibpath_overrides_runpath=yes
+        ;
+      esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=&quot;.dll&quot;
+  need_lib_prefix=no
+  library_names_spec='$libname${shared_ext} $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+    soname_spec='$libname${shared_ext}.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+
+echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
+hardcode_action=
+if test -n &quot;$hardcode_libdir_flag_spec&quot; || \
+   test -n &quot;$runpath_var&quot; || \
+   test &quot;X$hardcode_automatic&quot; = &quot;Xyes&quot; ; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, )&quot; != no &amp;&amp;
+     test &quot;$hardcode_minus_L&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action=unsupported
+fi
+echo &quot;$as_me:$LINENO: result: $hardcode_action&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hardcode_action&quot; &gt;&amp;6
+
+if test &quot;$hardcode_action&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
+if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+   darwin*)
+       if test -n &quot;$STRIP&quot; ; then
+         striplib=&quot;$STRIP -x&quot;
+         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+       else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+       ;;
+   *)
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+    ;;
+  esac
+fi
+
+if test &quot;x$enable_dlopen&quot; != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=&quot;load_add_on&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32*)
+    lt_cv_dlopen=&quot;LoadLibrary&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  cygwin*)
+    lt_cv_dlopen=&quot;dlopen&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  darwin*)
+  # if libdl is installed we need to link against it
+    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+
+    lt_cv_dlopen=&quot;dyld&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+
+fi
+
+   ;;
+
+  *)
+    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef shl_load
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
+if test $ac_cv_func_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef dlopen
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != dlopen;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
+if test $ac_cv_func_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lsvld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_svld_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_dld_link = yes; then
+  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+    ;;
+  esac
+
+  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+
+    save_LDFLAGS=&quot;$LDFLAGS&quot;
+    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+
+    save_LIBS=&quot;$LIBS&quot;
+    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+
+    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 8983 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
+
+    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self_static=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 9081 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self_static=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
+    fi
+
+    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+    LDFLAGS=&quot;$save_LDFLAGS&quot;
+    LIBS=&quot;$save_LIBS&quot;
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+
+# Report which librarie types wil actually be built
+echo &quot;$as_me:$LINENO: checking if libtool supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if libtool supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+echo &quot;$as_me:$LINENO: result: $can_build_shared&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$can_build_shared&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking whether to build shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether to build shared libraries... $ECHO_C&quot; &gt;&amp;6
+test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  if test -n &quot;$RANLIB&quot;; then
+    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+
+aix4* | aix5*)
+  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  fi
+    ;;
+esac
+echo &quot;$as_me:$LINENO: result: $enable_shared&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$enable_shared&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking whether to build static libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether to build static libraries... $ECHO_C&quot; &gt;&amp;6
+# Make sure either enable_shared or enable_static is yes.
+test &quot;$enable_shared&quot; = yes || enable_static=yes
+echo &quot;$as_me:$LINENO: result: $enable_static&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$enable_static&quot; &gt;&amp;6
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    compiler \
+    CC \
+    LD \
+    lt_prog_compiler_wl \
+    lt_prog_compiler_pic \
+    lt_prog_compiler_static \
+    lt_prog_compiler_no_builtin_flag \
+    export_dynamic_flag_spec \
+    thread_safe_flag_spec \
+    whole_archive_flag_spec \
+    enable_shared_with_static_runtimes \
+    old_archive_cmds \
+    old_archive_from_new_cmds \
+    predep_objects \
+    postdep_objects \
+    predeps \
+    postdeps \
+    compiler_lib_search_path \
+    archive_cmds \
+    archive_expsym_cmds \
+    postinstall_cmds \
+    postuninstall_cmds \
+    old_archive_from_expsyms_cmds \
+    allow_undefined_flag \
+    no_undefined_flag \
+    export_symbols_cmds \
+    hardcode_libdir_flag_spec \
+    hardcode_libdir_flag_spec_ld \
+    hardcode_libdir_separator \
+    hardcode_automatic \
+    module_cmds \
+    module_expsym_cmds \
+    lt_cv_prog_compiler_c_o \
+    exclude_expsyms \
+    include_expsyms; do
+
+    case $var in
+    old_archive_cmds | \
+    old_archive_from_new_cmds | \
+    archive_cmds | \
+    archive_expsym_cmds | \
+    module_cmds | \
+    module_expsym_cmds | \
+    old_archive_from_expsyms_cmds | \
+    export_symbols_cmds | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\$0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+cfgfile=&quot;${ofile}T&quot;
+  trap &quot;$rm \&quot;$cfgfile\&quot;; exit 1&quot; 1 2 15
+  $rm -f &quot;$cfgfile&quot;
+  { echo &quot;$as_me:$LINENO: creating $ofile&quot; &gt;&amp;5
+echo &quot;$as_me: creating $ofile&quot; &gt;&amp;6;}
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+#! $SHELL
+
+# `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed=&quot;$SED -e 1s/^X//&quot;
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
+
+# The names of the tagged configurations supported by this script.
+available_tags=
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# ### END LIBTOOL CONFIG
+
+__EOF__
+
+
+  case $host_os in
+  aix3*)
+    cat &lt;&lt;\EOF &gt;&gt; &quot;$cfgfile&quot;
+
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+EOF
+    ;;
+  esac
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$cfgfile&quot; || (rm -f &quot;$cfgfile&quot;; exit 1)
+
+  mv -f &quot;$cfgfile&quot; &quot;$ofile&quot; || \
+    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;$cfgfile&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;$cfgfile&quot;)
+  chmod +x &quot;$ofile&quot;
+
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=&quot;$lt_save_CC&quot;
+
+
+# Check whether --with-tags or --without-tags was given.
+if test &quot;${with_tags+set}&quot; = set; then
+  withval=&quot;$with_tags&quot;
+  tagnames=&quot;$withval&quot;
+fi;
+
+if test -f &quot;$ltmain&quot; &amp;&amp; test -n &quot;$tagnames&quot;; then
+  if test ! -f &quot;${ofile}&quot;; then
+    { echo &quot;$as_me:$LINENO: WARNING: output file \`$ofile' does not exist&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: output file \`$ofile' does not exist&quot; &gt;&amp;2;}
+  fi
+
+  if test -z &quot;$LTCC&quot;; then
+    eval &quot;`$SHELL ${ofile} --config | grep '^LTCC='`&quot;
+    if test -z &quot;$LTCC&quot;; then
+      { echo &quot;$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: output file \`$ofile' does not look like a libtool script&quot; &gt;&amp;2;}
+    else
+      { echo &quot;$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'&quot; &gt;&amp;2;}
+    fi
+  fi
+
+  # Extract list of available tagged configurations in $ofile.
+  # Note that this assumes the entire list is on one line.
+  available_tags=`grep &quot;^available_tags=&quot; &quot;${ofile}&quot; | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\&quot;//g'`
+
+  lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
+  for tagname in $tagnames; do
+    IFS=&quot;$lt_save_ifs&quot;
+    # Check whether tagname contains only valid characters
+    case `$echo &quot;X$tagname&quot; | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
+    &quot;&quot;) ;;
+    *)  { { echo &quot;$as_me:$LINENO: error: invalid tag name: $tagname&quot; &gt;&amp;5
+echo &quot;$as_me: error: invalid tag name: $tagname&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+        ;
+    esac
+
+    if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;${ofile}&quot; &gt; /dev/null
+    then
+      { { echo &quot;$as_me:$LINENO: error: tag name \&quot;$tagname\&quot; already exists&quot; &gt;&amp;5
+echo &quot;$as_me: error: tag name \&quot;$tagname\&quot; already exists&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+    fi
+
+    # Update the list of available tags.
+    if test -n &quot;$tagname&quot;; then
+      echo appending configuration tag \&quot;$tagname\&quot; to $ofile
+
+      case $tagname in
+      CXX)
+        if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
+            ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
+            (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
+          ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+
+
+archive_cmds_need_lc_CXX=no
+allow_undefined_flag_CXX=
+always_export_symbols_CXX=no
+archive_expsym_cmds_CXX=
+export_dynamic_flag_spec_CXX=
+hardcode_direct_CXX=no
+hardcode_libdir_flag_spec_CXX=
+hardcode_libdir_flag_spec_ld_CXX=
+hardcode_libdir_separator_CXX=
+hardcode_minus_L_CXX=no
+hardcode_automatic_CXX=no
+module_cmds_CXX=
+module_expsym_cmds_CXX=
+link_all_deplibs_CXX=unknown
+old_archive_cmds_CXX=$old_archive_cmds
+no_undefined_flag_CXX=
+whole_archive_flag_spec_CXX=
+enable_shared_with_static_runtimes_CXX=no
+
+# Dependencies to place before and after the object being linked:
+predep_objects_CXX=
+postdep_objects_CXX=
+predeps_CXX=
+postdeps_CXX=
+compiler_lib_search_path_CXX=
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+objext_CXX=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_LD=$LD
+lt_save_GCC=$GCC
+GCC=$GXX
+lt_save_with_gnu_ld=$with_gnu_ld
+lt_save_path_LD=$lt_cv_path_LD
+if test -n &quot;${lt_cv_prog_gnu_ldcxx+set}&quot;; then
+  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+else
+  unset lt_cv_prog_gnu_ld
+fi
+if test -n &quot;${lt_cv_path_LDCXX+set}&quot;; then
+  lt_cv_path_LD=$lt_cv_path_LDCXX
+else
+  unset lt_cv_path_LD
+fi
+test -z &quot;${LDCXX+set}&quot; || LD=$LDCXX
+CC=${CXX-&quot;c++&quot;}
+compiler=$CC
+compiler_CXX=$CC
+for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+
+# We don't want -fno-exception wen compiling C++ code, so set the
+# no_builtin_flag separately
+if test &quot;$GXX&quot; = yes; then
+  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
+else
+  lt_prog_compiler_no_builtin_flag_CXX=
+fi
+
+if test &quot;$GXX&quot; = yes; then
+  # Set up default GNU C++ configuration
+
+
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test &quot;${with_gnu_ld+set}&quot; = set; then
+  withval=&quot;$with_gnu_ld&quot;
+  test &quot;$withval&quot; = no || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi;
+ac_prog=ld
+if test &quot;$GCC&quot; = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  echo &quot;$as_me:$LINENO: checking for ld used by $CC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ld used by $CC... $ECHO_C&quot; &gt;&amp;6
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | ?:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+  &quot;&quot;)
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test &quot;$with_gnu_ld&quot; = yes; then
+  echo &quot;$as_me:$LINENO: checking for GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for GNU ld... $ECHO_C&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: checking for non-GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for non-GNU ld... $ECHO_C&quot; &gt;&amp;6
+fi
+if test &quot;${lt_cv_path_LD+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$LD&quot;; then
+  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=&quot;$lt_save_ifs&quot;
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
+      *GNU* | *'with BFD'*)
+        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+        ;
+      *)
+        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+        ;
+      esac
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+else
+  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+fi
+fi
+
+LD=&quot;$lt_cv_path_LD&quot;
+if test -n &quot;$LD&quot;; then
+  echo &quot;$as_me:$LINENO: result: $LD&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$LD&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+test -z &quot;$LD&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable ld found in \$PATH&quot; &gt;&amp;5
+echo &quot;$as_me: error: no acceptable ld found in \$PATH&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+echo &quot;$as_me:$LINENO: checking if the linker ($LD) is GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if the linker ($LD) is GNU ld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_gnu_ld+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_gnu_ld&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_gnu_ld&quot; &gt;&amp;6
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+  # Check if GNU C++ uses GNU ld as the underlying linker, since the
+  # archiving commands below assume that GNU ld is being used.
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+    #     investigate it a little bit more. (MM)
+    wlarc='${wl}'
+
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if eval &quot;`$CC -print-prog-name=ld` --help 2&gt;&amp;1&quot; | \
+        grep 'no-whole-archive' &gt; /dev/null; then
+      whole_archive_flag_spec_CXX=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+    else
+      whole_archive_flag_spec_CXX=
+    fi
+  else
+    with_gnu_ld=no
+    wlarc=
+
+    # A generic and very simple default shared library creation
+    # command for GNU C++ for the case where it uses the native
+    # linker, instead of GNU ld.  If possible, this setting should
+    # overridden to take advantage of the native linker features on
+    # the platform it is being used on.
+    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+  fi
+
+  # Commands to make compiler produce verbose output that lists
+  # what &quot;hidden&quot; libraries, object files and flags are used when
+  # linking a shared library.
+  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+else
+  GXX=no
+  with_gnu_ld=no
+  wlarc=
+fi
+
+# PORTME: fill in a description of your system's C++ link characteristics
+echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+ld_shlibs_CXX=yes
+case $host_os in
+  aix3*)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+  aix4* | aix5*)
+    if test &quot;$host_cpu&quot; = ia64; then
+      # On IA64, the linker does run time linking by default, so we don't
+      # have to do anything special.
+      aix_use_runtimelinking=no
+      exp_sym_flag='-Bexport'
+      no_entry_flag=&quot;&quot;
+    else
+      aix_use_runtimelinking=no
+
+      # Test if we are trying to use run time linking or normal
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+      # need to do runtime linking.
+      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+        for ld_flag in $LDFLAGS; do
+          case $ld_flag in
+          *-brtl*)
+            aix_use_runtimelinking=yes
+            break
+            ;;
+          esac
+        done
+      esac
+
+      exp_sym_flag='-bexport'
+      no_entry_flag='-bnoentry'
+    fi
+
+    # When large executables or shared objects are built, AIX ld can
+    # have problems creating the table of contents.  If linking a library
+    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+    archive_cmds_CXX=''
+    hardcode_direct_CXX=yes
+    hardcode_libdir_separator_CXX=':'
+    link_all_deplibs_CXX=yes
+
+    if test &quot;$GXX&quot; = yes; then
+      case $host_os in aix4.[012]|aix4.[012].*)
+      # We only want to do this on AIX 4.2 and lower, the check
+      # below for broken collect2 doesn't work under 4.3+
+        collect2name=`${CC} -print-prog-name=collect2`
+        if test -f &quot;$collect2name&quot; &amp;&amp; \
+           strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+        then
+          # We have reworked collect2
+          hardcode_direct_CXX=yes
+        else
+          # We have old collect2
+          hardcode_direct_CXX=unsupported
+          # It fails to find uninstalled libraries when the uninstalled
+          # path is not listed in the libpath.  Setting hardcode_minus_L
+          # to unsupported forces relinking
+          hardcode_minus_L_CXX=yes
+          hardcode_libdir_flag_spec_CXX='-L$libdir'
+          hardcode_libdir_separator_CXX=
+        fi
+      esac
+      shared_flag='-shared'
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+      fi
+    else
+      # not using gcc
+      if test &quot;$host_cpu&quot; = ia64; then
+        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+        # chokes on -Wl,-G. The following line is correct:
+        shared_flag='-G'
+      else
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag='${wl}-G'
+        else
+          shared_flag='${wl}-bM:SRE'
+        fi
+      fi
+    fi
+
+    # It seems that -bexpall does not export symbols beginning with
+    # underscore (_), so it is better to generate a list of symbols to export.
+    always_export_symbols_CXX=yes
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # Warning - without using the other runtime loading flags (-brtl),
+      # -berok will link without error, but may produce a broken library.
+      allow_undefined_flag_CXX='-berok'
+      # Determine the default libpath from the value encoded in an empty executable.
+      cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+
+      archive_expsym_cmds_CXX=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+     else
+      if test &quot;$host_cpu&quot; = ia64; then
+        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
+        allow_undefined_flag_CXX=&quot;-z nodefs&quot;
+        archive_expsym_cmds_CXX=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+      else
+        # Determine the default libpath from the value encoded in an empty executable.
+        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        # Warning - without using the other run time loading flags,
+        # -berok will link without error, but may produce a broken library.
+        no_undefined_flag_CXX=' ${wl}-bernotok'
+        allow_undefined_flag_CXX=' ${wl}-berok'
+        # -bexpall does not export symbols beginning with underscore (_)
+        always_export_symbols_CXX=yes
+        # Exported symbols can be pulled into shared objects from archives
+        whole_archive_flag_spec_CXX=' '
+        archive_cmds_need_lc_CXX=yes
+        # This is similar to how AIX traditionally builds its shared libraries.
+        archive_expsym_cmds_CXX=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+      fi
+    fi
+    ;;
+  chorus*)
+    case $cc_basename in
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+
+
+  cygwin* | mingw* | pw32*)
+    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
+    # as there is no search path for DLLs.
+    hardcode_libdir_flag_spec_CXX='-L$libdir'
+    allow_undefined_flag_CXX=unsupported
+    always_export_symbols_CXX=no
+    enable_shared_with_static_runtimes_CXX=yes
+
+    if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+      # If the export-symbols file already is a .def file (1st line
+      # is EXPORTS), use it as is; otherwise, prepend...
+      archive_expsym_cmds_CXX='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+        cp $export_symbols $output_objdir/$soname.def;
+      else
+        echo EXPORTS &gt; $output_objdir/$soname.def;
+        cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+      fi~
+      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+    else
+      ld_shlibs_CXX=no
+    fi
+  ;;
+      darwin* | rhapsody*)
+        case $host_os in
+        rhapsody* | darwin1.[012])
+         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[012])
+               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+        esac
+      archive_cmds_need_lc_CXX=no
+      hardcode_direct_CXX=no
+      hardcode_automatic_CXX=yes
+      hardcode_shlibpath_var_CXX=unsupported
+      whole_archive_flag_spec_CXX=''
+      link_all_deplibs_CXX=yes
+
+    if test &quot;$GXX&quot; = yes ; then
+      lt_int_apple_cc_single_mod=no
+      output_verbose_link_cmd='echo'
+      if $CC -dumpspecs 2&gt;&amp;1 | $EGREP 'single_module' &gt;/dev/null ; then
+       lt_int_apple_cc_single_mod=yes
+      fi
+      if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
+       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      else
+          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+        fi
+        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+          if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
+            archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          else
+            archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          fi
+            module_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+          archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          module_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         ld_shlibs_CXX=no
+          ;;
+      esac
+      fi
+        ;;
+
+  dgux*)
+    case $cc_basename in
+      ec++*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      ghcx*)
+        # Green Hills C++ Compiler
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+  freebsd[12]*)
+    # C++ shared libraries reported to be fairly broken before switch to ELF
+    ld_shlibs_CXX=no
+    ;;
+  freebsd-elf*)
+    archive_cmds_need_lc_CXX=no
+    ;;
+  freebsd* | kfreebsd*-gnu | dragonfly*)
+    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+    # conventions
+    ld_shlibs_CXX=yes
+    ;;
+  gnu*)
+    ;;
+  hpux9*)
+    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+    hardcode_libdir_separator_CXX=:
+    export_dynamic_flag_spec_CXX='${wl}-E'
+    hardcode_direct_CXX=yes
+    hardcode_minus_L_CXX=yes # Not in the search PATH,
+                                # but as the default
+                                # location of the library.
+
+    case $cc_basename in
+    CC*)
+      # FIXME: insert proper C++ library support
+      ld_shlibs_CXX=no
+      ;;
+    aCC*)
+      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      # Commands to make compiler produce verbose output that lists
+      # what &quot;hidden&quot; libraries, object files and flags are used when
+      # linking a shared library.
+      #
+      # There doesn't appear to be a way to prevent this compiler from
+      # explicitly linking system object files so we need to strip them
+      # from the output so that they don't get included in the library
+      # dependencies.
+      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;[-]L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+      ;;
+    *)
+      if test &quot;$GXX&quot; = yes; then
+        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+      fi
+      ;;
+    esac
+    ;;
+  hpux10*|hpux11*)
+    if test $with_gnu_ld = no; then
+      case $host_cpu in
+      hppa*64*)
+        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
+        hardcode_libdir_separator_CXX=:
+        ;;
+      ia64*)
+        hardcode_libdir_flag_spec_CXX='-L$libdir'
+        ;;
+      *)
+        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
+        hardcode_libdir_separator_CXX=:
+        export_dynamic_flag_spec_CXX='${wl}-E'
+        ;;
+      esac
+    fi
+    case $host_cpu in
+    hppa*64*)
+      hardcode_direct_CXX=no
+      hardcode_shlibpath_var_CXX=no
+      ;;
+    ia64*)
+      hardcode_direct_CXX=no
+      hardcode_shlibpath_var_CXX=no
+      hardcode_minus_L_CXX=yes # Not in the search PATH,
+                                              # but as the default
+                                              # location of the library.
+      ;;
+    *)
+      hardcode_direct_CXX=yes
+      hardcode_minus_L_CXX=yes # Not in the search PATH,
+                                              # but as the default
+                                              # location of the library.
+      ;;
+    esac
+
+    case $cc_basename in
+      CC*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      aCC*)
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+          ;;
+        *)
+          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+          ;;
+        esac
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;\-L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes; then
+          if test $with_gnu_ld = no; then
+            case $host_cpu in
+            ia64*|hppa*64*)
+              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
+              ;;
+            *)
+              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+              ;;
+            esac
+          fi
+        else
+          # FIXME: insert proper C++ library support
+          ld_shlibs_CXX=no
+        fi
+        ;
+    esac
+    ;;
+  irix5* | irix6*)
+    case $cc_basename in
+      CC*)
+        # SGI C++
+        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -ar&quot;, where &quot;CC&quot; is the IRIX C++ compiler.  This is
+        # necessary to make sure instantiated templates are included
+        # in the archive.
+        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes; then
+          if test &quot;$with_gnu_ld&quot; = no; then
+            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+          else
+            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` -o $lib'
+          fi
+        fi
+        link_all_deplibs_CXX=yes
+        ;
+    esac
+    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator_CXX=:
+    ;;
+  linux*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2&gt;&amp;1 | grep &quot;ld&quot;`; rm -f libconftest$shared_ext; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+
+        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
+        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
+        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
+        ;
+      icpc*)
+        # Intel C++
+        with_gnu_ld=yes
+        # version 8.0 and above of icpc choke on multiply defined symbols
+        # if we add $predep_objects and $postdep_objects, however 7.1 and
+        # earlier do not add the objects themselves.
+        case `$CC -V 2&gt;&amp;1` in
+        *&quot;Version 7.&quot;*)
+            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+          ;;
+        *)  # Version 8.0 or newer
+          tmp_idyn=
+          case $host_cpu in
+            ia64*) tmp_idyn=' -i_dynamic';;
+          esac
+            archive_cmds_CXX='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+          archive_expsym_cmds_CXX='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+          ;;
+        esac
+        archive_cmds_need_lc_CXX=no
+        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+        ;
+      pgCC*)
+        # Portland Group C++ compiler
+        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+          archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+
+        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
+        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
+        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+        ;;
+      cxx*)
+        # Compaq C++
+        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+        runpath_var=LD_RUN_PATH
+        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+        hardcode_libdir_separator_CXX=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld .*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+    esac
+    ;;
+  lynxos*)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+  m88k*)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+  mvs*)
+    case $cc_basename in
+      cxx*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+      wlarc=
+      hardcode_libdir_flag_spec_CXX='-R$libdir'
+      hardcode_direct_CXX=yes
+      hardcode_shlibpath_var_CXX=no
+    fi
+    # Workaround some broken pre-1.5 toolchains
+    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep conftest.$objext | $SED -e &quot;s:-lgcc -lc -lgcc::&quot;'
+    ;;
+  openbsd2*)
+    # C++ shared libraries are fairly broken
+    ld_shlibs_CXX=no
+    ;;
+  openbsd*)
+    hardcode_direct_CXX=yes
+    hardcode_shlibpath_var_CXX=no
+    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+      export_dynamic_flag_spec_CXX='${wl}-E'
+      whole_archive_flag_spec_CXX=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+    fi
+    output_verbose_link_cmd='echo'
+    ;;
+  osf3*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+        hardcode_libdir_separator_CXX=:
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
+        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
+
+        ;
+      RCC*)
+        # Rational C++ 2.4.1
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      cxx*)
+        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+        hardcode_libdir_separator_CXX=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+          hardcode_libdir_separator_CXX=:
+
+          # Commands to make compiler produce verbose output that lists
+          # what &quot;hidden&quot; libraries, object files and flags are used when
+          # linking a shared library.
+          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+        else
+          # FIXME: insert proper C++ library support
+          ld_shlibs_CXX=no
+        fi
+        ;
+    esac
+    ;;
+  osf4* | osf5*)
+    case $cc_basename in
+      KCC*)
+        # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+        # KCC will only create a shared library if the output file
+        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
+        # to its proper name (with version) after linking.
+        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
+        hardcode_libdir_separator_CXX=:
+
+        # Archives containing C++ object files must be created using
+        # the KAI C++ compiler.
+        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
+        ;
+      RCC*)
+        # Rational C++ 2.4.1
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      cxx*)
+        allow_undefined_flag_CXX=' -expect_unresolved \*'
+        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done~
+          echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version        $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
+          $rm $lib.exp'
+
+        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+        hardcode_libdir_separator_CXX=:
+
+        # Commands to make compiler produce verbose output that lists
+        # what &quot;hidden&quot; libraries, object files and flags are used when
+        # linking a shared library.
+        #
+        # There doesn't appear to be a way to prevent this compiler from
+        # explicitly linking system object files so we need to strip them
+        # from the output so that they don't get included in the library
+        # dependencies.
+        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
+        ;
+      *)
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
+         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
+          hardcode_libdir_separator_CXX=:
+
+          # Commands to make compiler produce verbose output that lists
+          # what &quot;hidden&quot; libraries, object files and flags are used when
+          # linking a shared library.
+          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
+
+        else
+          # FIXME: insert proper C++ library support
+          ld_shlibs_CXX=no
+        fi
+        ;
+    esac
+    ;;
+  psos*)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+  sco*)
+    archive_cmds_need_lc_CXX=no
+    case $cc_basename in
+      CC*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+  sunos4*)
+    case $cc_basename in
+      CC*)
+        # Sun C++ 4.x
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      lcc*)
+        # Lucid
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+  solaris*)
+    case $cc_basename in
+      CC*)
+        # Sun C++ 4.2, 5.x and Centerline C++
+        archive_cmds_need_lc_CXX=yes
+        no_undefined_flag_CXX=' -zdefs'
+        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+        archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+        hardcode_libdir_flag_spec_CXX='-R$libdir'
+        hardcode_shlibpath_var_CXX=no
+        case $host_os in
+          solaris2.[0-5] | solaris2.[0-5].*) ;;
+          *)
+            # The C++ compiler is used as linker so we must use $wl
+            # flag to pass the commands to the underlying system
+            # linker. We must also pass each convience library through
+            # to the system linker between allextract/defaultextract.
+            # The C++ compiler will combine linker options so we
+            # cannot just pass the convience library names through
+            # without $wl.
+            # Supported since Solaris 2.6 (maybe 2.5.1?)
+            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract'
+            ;;
+        esac
+        link_all_deplibs_CXX=yes
+
+        output_verbose_link_cmd='echo'
+
+        # Archives containing C++ object files must be created using
+        # &quot;CC -xar&quot;, where &quot;CC&quot; is the Sun C++ compiler.  This is
+        # necessary to make sure instantiated templates are included
+        # in the archive.
+        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
+        ;
+      gcx*)
+        # Green Hills C++ Compiler
+        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+        # The C++ compiler must be used to create the archive.
+        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+        ;
+      *)
+        # GNU C++ compiler with Solaris linker
+        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
+          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
+          if $CC --version | grep -v '^2\.7' &gt; /dev/null; then
+            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+            archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+            # Commands to make compiler produce verbose output that lists
+            # what &quot;hidden&quot; libraries, object files and flags are used when
+            # linking a shared library.
+            output_verbose_link_cmd=&quot;$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
+          else
+            # g++ 2.7 appears to require `-G' NOT `-shared' on this
+            # platform.
+            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+            archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+            # Commands to make compiler produce verbose output that lists
+            # what &quot;hidden&quot; libraries, object files and flags are used when
+            # linking a shared library.
+            output_verbose_link_cmd=&quot;$CC -G $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
+          fi
+
+          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
+        fi
+        ;
+    esac
+    ;;
+  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+    archive_cmds_need_lc_CXX=no
+    ;;
+  tandem*)
+    case $cc_basename in
+      NCC*)
+        # NonStop-UX NCC 3.20
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;
+    esac
+    ;;
+  vxworks*)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+  *)
+    # FIXME: insert proper C++ library support
+    ld_shlibs_CXX=no
+    ;;
+esac
+echo &quot;$as_me:$LINENO: result: $ld_shlibs_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ld_shlibs_CXX&quot; &gt;&amp;6
+test &quot;$ld_shlibs_CXX&quot; = no &amp;&amp; can_build_shared=no
+
+GCC_CXX=&quot;$GXX&quot;
+LD_CXX=&quot;$LD&quot;
+
+
+cat &gt; conftest.$ac_ext &lt;&lt;EOF
+class Foo
+{
+public:
+  Foo (void) { a = 0; }
+private:
+  int a;
+};
+EOF
+
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; then
+  # Parse the compiler output and extract the necessary
+  # objects, libraries and library flags.
+
+  # Sentinel used to keep track of whether or not we are before
+  # the conftest object file.
+  pre_test_object_deps_done=no
+
+  # The `*' in the case matches for architectures that use `case' in
+  # $output_verbose_cmd can trigger glob expansion during the loop
+  # eval without this substitution.
+  output_verbose_link_cmd=`$echo &quot;X$output_verbose_link_cmd&quot; | $Xsed -e &quot;$no_glob_subst&quot;`
+
+  for p in `eval $output_verbose_link_cmd`; do
+    case $p in
+
+    -L* | -R* | -l*)
+       # Some compilers place space between &quot;-{L,R}&quot; and the path.
+       # Remove the space.
+       if test $p = &quot;-L&quot; \
+          || test $p = &quot;-R&quot;; then
+         prev=$p
+         continue
+       else
+         prev=
+       fi
+
+       if test &quot;$pre_test_object_deps_done&quot; = no; then
+         case $p in
+         -L* | -R*)
+           # Internal compiler library paths should come after those
+           # provided the user.  The postdeps already come after the
+           # user supplied libs so there is no need to process them.
+           if test -z &quot;$compiler_lib_search_path_CXX&quot;; then
+             compiler_lib_search_path_CXX=&quot;${prev}${p}&quot;
+           else
+             compiler_lib_search_path_CXX=&quot;${compiler_lib_search_path_CXX} ${prev}${p}&quot;
+           fi
+           ;;
+         # The &quot;-l&quot; case would never come before the object being
+         # linked, so don't bother handling this case.
+         esac
+       else
+         if test -z &quot;$postdeps_CXX&quot;; then
+           postdeps_CXX=&quot;${prev}${p}&quot;
+         else
+           postdeps_CXX=&quot;${postdeps_CXX} ${prev}${p}&quot;
+         fi
+       fi
+       ;;
+
+    *.$objext)
+       # This assumes that the test object file only shows up
+       # once in the compiler output.
+       if test &quot;$p&quot; = &quot;conftest.$objext&quot;; then
+         pre_test_object_deps_done=yes
+         continue
+       fi
+
+       if test &quot;$pre_test_object_deps_done&quot; = no; then
+         if test -z &quot;$predep_objects_CXX&quot;; then
+           predep_objects_CXX=&quot;$p&quot;
+         else
+           predep_objects_CXX=&quot;$predep_objects_CXX $p&quot;
+         fi
+       else
+         if test -z &quot;$postdep_objects_CXX&quot;; then
+           postdep_objects_CXX=&quot;$p&quot;
+         else
+           postdep_objects_CXX=&quot;$postdep_objects_CXX $p&quot;
+         fi
+       fi
+       ;;
+
+    *) ;; # Ignore the rest.
+
+    esac
+  done
+
+  # Clean up.
+  rm -f a.out a.exe
+else
+  echo &quot;libtool.m4: error: problem compiling CXX test program&quot;
+fi
+
+$rm -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+case $host_os in
+solaris*)
+  case $cc_basename in
+  CC*)
+    # Adding this requires a known-good setup of shared libraries for
+    # Sun compiler versions before 5.6, else PIC objects from an old
+    # archive will be linked into the output, leading to subtle bugs.
+    postdeps_CXX='-lCstd -lCrun'
+    ;;
+  esac
+esac
+
+
+case &quot; $postdeps_CXX &quot; in
+*&quot; -lc &quot;*) archive_cmds_need_lc_CXX=no ;;
+esac
+
+lt_prog_compiler_wl_CXX=
+lt_prog_compiler_pic_CXX=
+lt_prog_compiler_static_CXX=
+
+echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
+
+  # C++ specific cases for pic, static, wl, etc.
+  if test &quot;$GXX&quot; = yes; then
+    lt_prog_compiler_wl_CXX='-Wl,'
+    lt_prog_compiler_static_CXX='-static'
+
+    case $host_os in
+    aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static_CXX='-Bstatic'
+      fi
+      ;;
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
+      ;;
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    mingw* | os2* | pw32*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic_CXX='-fno-common'
+      ;;
+    *djgpp*)
+      # DJGPP does not support shared libraries at all
+      lt_prog_compiler_pic_CXX=
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        lt_prog_compiler_pic_CXX=-Kconform_pic
+      fi
+      ;;
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        ;
+      *)
+        lt_prog_compiler_pic_CXX='-fPIC'
+        ;
+      esac
+      ;;
+    *)
+      lt_prog_compiler_pic_CXX='-fPIC'
+      ;;
+    esac
+  else
+    case $host_os in
+      aix4* | aix5*)
+        # All AIX code is PIC.
+        if test &quot;$host_cpu&quot; = ia64; then
+          # AIX 5 now supports IA64 processor
+          lt_prog_compiler_static_CXX='-Bstatic'
+        else
+          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
+        fi
+        ;
+      chorus*)
+        case $cc_basename in
+        cxch68*)
+          # Green Hills C++ Compiler
+          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)=&quot;--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a&quot;
+          ;;
+        esac
+        ;
+       darwin*)
+         # PIC is the default on this platform
+         # Common symbols not allowed in MH_DYLIB files
+         case $cc_basename in
+           xlc*)
+           lt_prog_compiler_pic_CXX='-qnocommon'
+           lt_prog_compiler_wl_CXX='-Wl,'
+           ;;
+         esac
+       ;;
+      dgux*)
+        case $cc_basename in
+          ec++*)
+            lt_prog_compiler_pic_CXX='-KPIC'
+            ;;
+          ghcx*)
+            # Green Hills C++ Compiler
+            lt_prog_compiler_pic_CXX='-pic'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      freebsd* | kfreebsd*-gnu | dragonfly*)
+        # FreeBSD uses GNU C++
+        ;
+      hpux9* | hpux10* | hpux11*)
+        case $cc_basename in
+          CC*)
+            lt_prog_compiler_wl_CXX='-Wl,'
+            lt_prog_compiler_static_CXX=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
+            if test &quot;$host_cpu&quot; != ia64; then
+              lt_prog_compiler_pic_CXX='+Z'
+            fi
+            ;;
+          aCC*)
+            lt_prog_compiler_wl_CXX='-Wl,'
+            lt_prog_compiler_static_CXX=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
+            case $host_cpu in
+            hppa*64*|ia64*)
+              # +Z the default
+              ;;
+            *)
+              lt_prog_compiler_pic_CXX='+Z'
+              ;;
+            esac
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      irix5* | irix6* | nonstopux*)
+        case $cc_basename in
+          CC*)
+            lt_prog_compiler_wl_CXX='-Wl,'
+            lt_prog_compiler_static_CXX='-non_shared'
+            # CC pic flag -KPIC is the default.
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      linux*)
+        case $cc_basename in
+          KCC*)
+            # KAI C++ Compiler
+            lt_prog_compiler_wl_CXX='--backend -Wl,'
+            lt_prog_compiler_pic_CXX='-fPIC'
+            ;;
+          icpc* | ecpc*)
+            # Intel C++
+            lt_prog_compiler_wl_CXX='-Wl,'
+            lt_prog_compiler_pic_CXX='-KPIC'
+            lt_prog_compiler_static_CXX='-static'
+            ;;
+          pgCC*)
+            # Portland Group C++ compiler.
+            lt_prog_compiler_wl_CXX='-Wl,'
+            lt_prog_compiler_pic_CXX='-fpic'
+            lt_prog_compiler_static_CXX='-Bstatic'
+            ;;
+          cxx*)
+            # Compaq C++
+            # Make sure the PIC flag is empty.  It appears that all Alpha
+            # Linux and Compaq Tru64 Unix objects are PIC.
+            lt_prog_compiler_pic_CXX=
+            lt_prog_compiler_static_CXX='-non_shared'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      lynxos*)
+        ;
+      m88k*)
+        ;
+      mvs*)
+        case $cc_basename in
+          cxx*)
+            lt_prog_compiler_pic_CXX='-W c,exportall'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+        ;
+      osf3* | osf4* | osf5*)
+        case $cc_basename in
+          KCC*)
+            lt_prog_compiler_wl_CXX='--backend -Wl,'
+            ;;
+          RCC*)
+            # Rational C++ 2.4.1
+            lt_prog_compiler_pic_CXX='-pic'
+            ;;
+          cxx*)
+            # Digital/Compaq C++
+            lt_prog_compiler_wl_CXX='-Wl,'
+            # Make sure the PIC flag is empty.  It appears that all Alpha
+            # Linux and Compaq Tru64 Unix objects are PIC.
+            lt_prog_compiler_pic_CXX=
+            lt_prog_compiler_static_CXX='-non_shared'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      psos*)
+        ;
+      sco*)
+        case $cc_basename in
+          CC*)
+            lt_prog_compiler_pic_CXX='-fPIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      solaris*)
+        case $cc_basename in
+          CC*)
+            # Sun C++ 4.2, 5.x and Centerline C++
+            lt_prog_compiler_pic_CXX='-KPIC'
+            lt_prog_compiler_static_CXX='-Bstatic'
+            lt_prog_compiler_wl_CXX='-Qoption ld '
+            ;;
+          gcx*)
+            # Green Hills C++ Compiler
+            lt_prog_compiler_pic_CXX='-PIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      sunos4*)
+        case $cc_basename in
+          CC*)
+            # Sun C++ 4.x
+            lt_prog_compiler_pic_CXX='-pic'
+            lt_prog_compiler_static_CXX='-Bstatic'
+            ;;
+          lcc*)
+            # Lucid
+            lt_prog_compiler_pic_CXX='-pic'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      tandem*)
+        case $cc_basename in
+          NCC*)
+            # NonStop-UX NCC 3.20
+            lt_prog_compiler_pic_CXX='-KPIC'
+            ;;
+          *)
+            ;;
+        esac
+        ;
+      unixware*)
+        ;
+      vxworks*)
+        ;
+      *)
+        lt_prog_compiler_can_build_shared_CXX=no
+        ;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_CXX&quot; &gt;&amp;6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n &quot;$lt_prog_compiler_pic_CXX&quot;; then
+
+echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_prog_compiler_pic_works_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_prog_compiler_pic_works_CXX=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;$lt_prog_compiler_pic_CXX -DPIC&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:11334: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:11338: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_prog_compiler_pic_works_CXX=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_CXX&quot; &gt;&amp;6
+
+if test x&quot;$lt_prog_compiler_pic_works_CXX&quot; = xyes; then
+    case $lt_prog_compiler_pic_CXX in
+     &quot;&quot; | &quot; &quot;*) ;;
+     *) lt_prog_compiler_pic_CXX=&quot; $lt_prog_compiler_pic_CXX&quot; ;;
+     esac
+else
+    lt_prog_compiler_pic_CXX=
+     lt_prog_compiler_can_build_shared_CXX=no
+fi
+
+fi
+case $host_os in
+  # For platforms which do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic_CXX=
+    ;;
+  *)
+    lt_prog_compiler_pic_CXX=&quot;$lt_prog_compiler_pic_CXX -DPIC&quot;
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_c_o_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_c_o_CXX=no
+   $rm -r conftest 2&gt;/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:11396: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err &gt;&amp;5
+   echo &quot;$as_me:11400: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
+     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
+     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_c_o_CXX=yes
+     fi
+   fi
+   chmod u+w . 2&gt;&amp;5
+   $rm conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
+   $rm out/* &amp;&amp; rmdir out
+   cd ..
+   rmdir conftest
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_CXX&quot; &gt;&amp;6
+
+
+hard_links=&quot;nottested&quot;
+if test &quot;$lt_cv_prog_compiler_c_o_CXX&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
+  if test &quot;$hard_links&quot; = no; then
+    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+
+  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  case $host_os in
+  aix4* | aix5*)
+    # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm
+    if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+    else
+      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+    fi
+    ;;
+  pw32*)
+    export_symbols_cmds_CXX=&quot;$ltdll_cmds&quot;
+  ;;
+  cygwin* | mingw*)
+    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  ;;
+  linux*)
+    link_all_deplibs_CXX=no
+  ;;
+  *)
+    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  ;;
+  esac
+
+echo &quot;$as_me:$LINENO: result: $ld_shlibs_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ld_shlibs_CXX&quot; &gt;&amp;6
+test &quot;$ld_shlibs_CXX&quot; = no &amp;&amp; can_build_shared=no
+
+variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+if test &quot;$GCC&quot; = yes; then
+  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case &quot;x$archive_cmds_need_lc_CXX&quot; in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc_CXX=yes
+
+  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+    case $archive_cmds_CXX in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
+      $rm conftest*
+      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } 2&gt;conftest.err; then
+        soname=conftest
+        lib=conftest
+        libobjs=conftest.$ac_objext
+        deplibs=
+        wl=$lt_prog_compiler_wl_CXX
+        compiler_flags=-v
+        linker_flags=-v
+        verstring=
+        output_objdir=.
+        libname=conftest
+        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
+        allow_undefined_flag_CXX=
+        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_CXX 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
+  (eval $archive_cmds_CXX 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+        then
+          archive_cmds_need_lc_CXX=no
+        else
+          archive_cmds_need_lc_CXX=yes
+        fi
+        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
+      else
+        cat conftest.err 1&gt;&amp;5
+      fi
+      $rm conftest*
+      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$archive_cmds_need_lc_CXX&quot; &gt;&amp;6
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=&quot;.so&quot;
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+if test &quot;$GCC&quot; = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
+    # if the path contains &quot;;&quot; then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
+    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
+    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+  else
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+  fi
+else
+  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}${shared_ext}$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test &quot;$host_cpu&quot; = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+           echo ' yes '
+           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+        :
+      else
+        can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+      # instead of lib&lt;name&gt;.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}${shared_ext}$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}${shared_ext}'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  shrext_cmds=&quot;.dll&quot;
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$host_os in
+  yes,cygwin* | yes,mingw* | yes,pw32*)
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
+      ;;
+    mingw*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
+        # It is most probably a Windows format PATH printed by
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
+        # path with ; separators, and with drive letters. We can handle the
+        # drive letters (cygwin fileutils understands them), so leave them,
+        # especially as we might pass files found there to a mingw objdump,
+        # which wouldn't understand a cygwinified path. Ahh.
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+      fi
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      ;;
+    esac
+    ;;
+
+  *)
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker=&quot;$host_os dyld&quot;
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  soname_spec='${libname}${release}${major}$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+  if test &quot;$GCC&quot; = yes; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
+  else
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+  fi
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[123]*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker=&quot;$host_os dld.so&quot;
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
+    else
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+   hppa*64*)
+     shrext_cmds='.sl'
+     hardcode_into_libs=yes
+     dynamic_linker=&quot;$host_os dld.sl&quot;
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+     soname_spec='${libname}${release}${shared_ext}$major'
+     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+     ;;
+   *)
+    shrext_cmds='.sl'
+    dynamic_linker=&quot;$host_os dld.sl&quot;
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+                version_type=linux
+        else
+                version_type=irix
+        fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsdelf*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='NetBSD ld.elf_so'
+  ;;
+
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+nto-qnx*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+  case $host_os in
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+    *)                         need_version=no  ;;
+  esac
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    case $host_os in
+      openbsd2.[89] | openbsd2.[89].*)
+        shlibpath_overrides_runpath=no
+        ;
+      *)
+        shlibpath_overrides_runpath=yes
+        ;
+      esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=&quot;.dll&quot;
+  need_lib_prefix=no
+  library_names_spec='$libname${shared_ext} $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+    soname_spec='$libname${shared_ext}.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+
+echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
+hardcode_action_CXX=
+if test -n &quot;$hardcode_libdir_flag_spec_CXX&quot; || \
+   test -n &quot;$runpath_var_CXX&quot; || \
+   test &quot;X$hardcode_automatic_CXX&quot; = &quot;Xyes&quot; ; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$hardcode_direct_CXX&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)&quot; != no &amp;&amp;
+     test &quot;$hardcode_minus_L_CXX&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action_CXX=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action_CXX=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action_CXX=unsupported
+fi
+echo &quot;$as_me:$LINENO: result: $hardcode_action_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hardcode_action_CXX&quot; &gt;&amp;6
+
+if test &quot;$hardcode_action_CXX&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
+if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+   darwin*)
+       if test -n &quot;$STRIP&quot; ; then
+         striplib=&quot;$STRIP -x&quot;
+         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+       else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+       ;;
+   *)
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+    ;;
+  esac
+fi
+
+if test &quot;x$enable_dlopen&quot; != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=&quot;load_add_on&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32*)
+    lt_cv_dlopen=&quot;LoadLibrary&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  cygwin*)
+    lt_cv_dlopen=&quot;dlopen&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  darwin*)
+  # if libdl is installed we need to link against it
+    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+
+    lt_cv_dlopen=&quot;dyld&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+
+fi
+
+   ;;
+
+  *)
+    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef shl_load
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
+if test $ac_cv_func_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef dlopen
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != dlopen;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
+if test $ac_cv_func_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lsvld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_svld_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_dld_link = yes; then
+  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+    ;;
+  esac
+
+  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+
+    save_LDFLAGS=&quot;$LDFLAGS&quot;
+    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+
+    save_LIBS=&quot;$LIBS&quot;
+    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+
+    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 12781 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
+
+    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self_static=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 12879 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self_static=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
+    fi
+
+    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+    LDFLAGS=&quot;$save_LDFLAGS&quot;
+    LIBS=&quot;$save_LIBS&quot;
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    compiler_CXX \
+    CC_CXX \
+    LD_CXX \
+    lt_prog_compiler_wl_CXX \
+    lt_prog_compiler_pic_CXX \
+    lt_prog_compiler_static_CXX \
+    lt_prog_compiler_no_builtin_flag_CXX \
+    export_dynamic_flag_spec_CXX \
+    thread_safe_flag_spec_CXX \
+    whole_archive_flag_spec_CXX \
+    enable_shared_with_static_runtimes_CXX \
+    old_archive_cmds_CXX \
+    old_archive_from_new_cmds_CXX \
+    predep_objects_CXX \
+    postdep_objects_CXX \
+    predeps_CXX \
+    postdeps_CXX \
+    compiler_lib_search_path_CXX \
+    archive_cmds_CXX \
+    archive_expsym_cmds_CXX \
+    postinstall_cmds_CXX \
+    postuninstall_cmds_CXX \
+    old_archive_from_expsyms_cmds_CXX \
+    allow_undefined_flag_CXX \
+    no_undefined_flag_CXX \
+    export_symbols_cmds_CXX \
+    hardcode_libdir_flag_spec_CXX \
+    hardcode_libdir_flag_spec_ld_CXX \
+    hardcode_libdir_separator_CXX \
+    hardcode_automatic_CXX \
+    module_cmds_CXX \
+    module_expsym_cmds_CXX \
+    lt_cv_prog_compiler_c_o_CXX \
+    exclude_expsyms_CXX \
+    include_expsyms_CXX; do
+
+    case $var in
+    old_archive_cmds_CXX | \
+    old_archive_from_new_cmds_CXX | \
+    archive_cmds_CXX | \
+    archive_expsym_cmds_CXX | \
+    module_cmds_CXX | \
+    module_expsym_cmds_CXX | \
+    old_archive_from_expsyms_cmds_CXX | \
+    export_symbols_cmds_CXX | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\$0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+cfgfile=&quot;$ofile&quot;
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_CXX
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_CXX
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_CXX
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_CXX
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_CXX
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_CXX
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_CXX
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_CXX
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_CXX
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_CXX
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_CXX
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_CXX
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_CXX
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_CXX
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_CXX
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_CXX
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_CXX
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_CXX
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_CXX
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_CXX
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path_CXX&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_CXX
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_CXX
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_CXX
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_CXX
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=$lt_save_CC
+LDCXX=$LD
+LD=$lt_save_LD
+GCC=$lt_save_GCC
+with_gnu_ldcxx=$with_gnu_ld
+with_gnu_ld=$lt_save_with_gnu_ld
+lt_cv_path_LDCXX=$lt_cv_path_LD
+lt_cv_path_LD=$lt_save_path_LD
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      F77)
+        if test -n &quot;$F77&quot; &amp;&amp; test &quot;X$F77&quot; != &quot;Xno&quot;; then
+
+ac_ext=f
+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
+
+
+archive_cmds_need_lc_F77=no
+allow_undefined_flag_F77=
+always_export_symbols_F77=no
+archive_expsym_cmds_F77=
+export_dynamic_flag_spec_F77=
+hardcode_direct_F77=no
+hardcode_libdir_flag_spec_F77=
+hardcode_libdir_flag_spec_ld_F77=
+hardcode_libdir_separator_F77=
+hardcode_minus_L_F77=no
+hardcode_automatic_F77=no
+module_cmds_F77=
+module_expsym_cmds_F77=
+link_all_deplibs_F77=unknown
+old_archive_cmds_F77=$old_archive_cmds
+no_undefined_flag_F77=
+whole_archive_flag_spec_F77=
+enable_shared_with_static_runtimes_F77=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+objext_F77=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;      subroutine t\n      return\n      end\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=&quot;      program t\n      end\n&quot;
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${F77-&quot;f77&quot;}
+compiler=$CC
+compiler_F77=$CC
+for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+
+echo &quot;$as_me:$LINENO: checking if libtool supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if libtool supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+echo &quot;$as_me:$LINENO: result: $can_build_shared&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$can_build_shared&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking whether to build shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether to build shared libraries... $ECHO_C&quot; &gt;&amp;6
+test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  if test -n &quot;$RANLIB&quot;; then
+    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+aix4* | aix5*)
+  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  fi
+  ;;
+esac
+echo &quot;$as_me:$LINENO: result: $enable_shared&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$enable_shared&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking whether to build static libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether to build static libraries... $ECHO_C&quot; &gt;&amp;6
+# Make sure either enable_shared or enable_static is yes.
+test &quot;$enable_shared&quot; = yes || enable_static=yes
+echo &quot;$as_me:$LINENO: result: $enable_static&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$enable_static&quot; &gt;&amp;6
+
+test &quot;$ld_shlibs_F77&quot; = no &amp;&amp; can_build_shared=no
+
+GCC_F77=&quot;$G77&quot;
+LD_F77=&quot;$LD&quot;
+
+lt_prog_compiler_wl_F77=
+lt_prog_compiler_pic_F77=
+lt_prog_compiler_static_F77=
+
+echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
+
+  if test &quot;$GCC&quot; = yes; then
+    lt_prog_compiler_wl_F77='-Wl,'
+    lt_prog_compiler_static_F77='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static_F77='-Bstatic'
+      fi
+      ;;
+
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
+      ;;
+
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic_F77='-fno-common'
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      lt_prog_compiler_can_build_shared_F77=no
+      enable_shared=no
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        lt_prog_compiler_pic_F77=-Kconform_pic
+      fi
+      ;;
+
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic_F77='-fPIC'
+        ;
+      esac
+      ;;
+
+    *)
+      lt_prog_compiler_pic_F77='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static_F77='-Bstatic'
+      else
+        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+      darwin*)
+        # PIC is the default on this platform
+        # Common symbols not allowed in MH_DYLIB files
+       case $cc_basename in
+         xlc*)
+         lt_prog_compiler_pic_F77='-qnocommon'
+         lt_prog_compiler_wl_F77='-Wl,'
+         ;;
+       esac
+       ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic_F77='+Z'
+        ;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      # PIC (with -KPIC) is the default.
+      lt_prog_compiler_static_F77='-non_shared'
+      ;;
+
+    newsos6)
+      lt_prog_compiler_pic_F77='-KPIC'
+      lt_prog_compiler_static_F77='-Bstatic'
+      ;;
+
+    linux*)
+      case $cc_basename in
+      icc* | ecc*)
+        lt_prog_compiler_wl_F77='-Wl,'
+        lt_prog_compiler_pic_F77='-KPIC'
+        lt_prog_compiler_static_F77='-static'
+        ;;
+      pgcc* | pgf77* | pgf90* | pgf95*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+        # which looks to be a dead project)
+        lt_prog_compiler_wl_F77='-Wl,'
+        lt_prog_compiler_pic_F77='-fpic'
+        lt_prog_compiler_static_F77='-Bstatic'
+        ;;
+      ccc*)
+        lt_prog_compiler_wl_F77='-Wl,'
+        # All Alpha code is PIC.
+        lt_prog_compiler_static_F77='-non_shared'
+        ;;
+      esac
+      ;;
+
+    osf3* | osf4* | osf5*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      # All OSF/1 code is PIC.
+      lt_prog_compiler_static_F77='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      lt_prog_compiler_pic_F77='-Kpic'
+      lt_prog_compiler_static_F77='-dn'
+      ;;
+
+    solaris*)
+      lt_prog_compiler_pic_F77='-KPIC'
+      lt_prog_compiler_static_F77='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95*)
+        lt_prog_compiler_wl_F77='-Qoption ld ';;
+      *)
+        lt_prog_compiler_wl_F77='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      lt_prog_compiler_wl_F77='-Qoption ld '
+      lt_prog_compiler_pic_F77='-PIC'
+      lt_prog_compiler_static_F77='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      lt_prog_compiler_pic_F77='-KPIC'
+      lt_prog_compiler_static_F77='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+        lt_prog_compiler_pic_F77='-Kconform_pic'
+        lt_prog_compiler_static_F77='-Bstatic'
+      fi
+      ;;
+
+    unicos*)
+      lt_prog_compiler_wl_F77='-Wl,'
+      lt_prog_compiler_can_build_shared_F77=no
+      ;;
+
+    uts4*)
+      lt_prog_compiler_pic_F77='-pic'
+      lt_prog_compiler_static_F77='-Bstatic'
+      ;;
+
+    *)
+      lt_prog_compiler_can_build_shared_F77=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_F77&quot; &gt;&amp;6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n &quot;$lt_prog_compiler_pic_F77&quot;; then
+
+echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_prog_compiler_pic_works_F77+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_prog_compiler_pic_works_F77=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;$lt_prog_compiler_pic_F77&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:13764: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:13768: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_prog_compiler_pic_works_F77=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_F77&quot; &gt;&amp;6
+
+if test x&quot;$lt_prog_compiler_pic_works_F77&quot; = xyes; then
+    case $lt_prog_compiler_pic_F77 in
+     &quot;&quot; | &quot; &quot;*) ;;
+     *) lt_prog_compiler_pic_F77=&quot; $lt_prog_compiler_pic_F77&quot; ;;
+     esac
+else
+    lt_prog_compiler_pic_F77=
+     lt_prog_compiler_can_build_shared_F77=no
+fi
+
+fi
+case $host_os in
+  # For platforms which do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic_F77=
+    ;;
+  *)
+    lt_prog_compiler_pic_F77=&quot;$lt_prog_compiler_pic_F77&quot;
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_c_o_F77+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_c_o_F77=no
+   $rm -r conftest 2&gt;/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:13826: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err &gt;&amp;5
+   echo &quot;$as_me:13830: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
+     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
+     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_c_o_F77=yes
+     fi
+   fi
+   chmod u+w . 2&gt;&amp;5
+   $rm conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
+   $rm out/* &amp;&amp; rmdir out
+   cd ..
+   rmdir conftest
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_F77&quot; &gt;&amp;6
+
+
+hard_links=&quot;nottested&quot;
+if test &quot;$lt_cv_prog_compiler_c_o_F77&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
+  if test &quot;$hard_links&quot; = no; then
+    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+
+  runpath_var=
+  allow_undefined_flag_F77=
+  enable_shared_with_static_runtimes_F77=no
+  archive_cmds_F77=
+  archive_expsym_cmds_F77=
+  old_archive_From_new_cmds_F77=
+  old_archive_from_expsyms_cmds_F77=
+  export_dynamic_flag_spec_F77=
+  whole_archive_flag_spec_F77=
+  thread_safe_flag_spec_F77=
+  hardcode_libdir_flag_spec_F77=
+  hardcode_libdir_flag_spec_ld_F77=
+  hardcode_libdir_separator_F77=
+  hardcode_direct_F77=no
+  hardcode_minus_L_F77=no
+  hardcode_shlibpath_var_F77=unsupported
+  link_all_deplibs_F77=unknown
+  hardcode_automatic_F77=no
+  module_cmds_F77=
+  module_expsym_cmds_F77=
+  always_export_symbols_F77=no
+  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  include_expsyms_F77=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+  # as well as any symbol that contains `d'.
+  exclude_expsyms_F77=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  extract_expsyms_cmds=
+  # Just being paranoid about ensuring that cc_basename is set.
+  for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+  case $host_os in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test &quot;$GCC&quot; != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  ld_shlibs_F77=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='${wl}'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
+        whole_archive_flag_spec_F77=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+      else
+          whole_archive_flag_spec_F77=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v 2&gt;/dev/null` in
+      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test &quot;$host_cpu&quot; != ia64; then
+        ld_shlibs_F77=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_minus_L_F77=yes
+
+      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we can't use
+      # them.
+      ld_shlibs_F77=no
+      ;;
+
+    beos*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        allow_undefined_flag_F77=unsupported
+        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+        # support --undefined.  This deserves some investigation.  FIXME
+        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      else
+        ld_shlibs_F77=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
+      # as there is no search path for DLLs.
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      allow_undefined_flag_F77=unsupported
+      always_export_symbols_F77=no
+      enable_shared_with_static_runtimes_F77=yes
+      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+
+      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+        # If the export-symbols file already is a .def file (1st line
+        # is EXPORTS), use it as is; otherwise, prepend...
+        archive_expsym_cmds_F77='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS &gt; $output_objdir/$soname.def;
+          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
+      else
+        ld_shlibs_F77=no
+      fi
+      ;;
+
+    linux*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        tmp_addflag=
+        case $cc_basename,$host_cpu in
+        pgcc*)                                # Portland Group C compiler
+          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag'
+          ;;
+        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
+          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag -Mnomain' ;;
+        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
+          tmp_addflag=' -i_dynamic' ;;
+        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
+          tmp_addflag=' -i_dynamic -nofor_main' ;;
+        ifc* | ifort*)                        # Intel Fortran compiler
+          tmp_addflag=' -nofor_main' ;;
+        esac
+        archive_cmds_F77='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+        if test $supports_anon_versioning = yes; then
+          archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
+  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
+  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
+          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+        fi
+        link_all_deplibs_F77=no
+      else
+        ld_shlibs_F77=no
+      fi
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+        wlarc=
+      else
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris* | sysv5*)
+      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
+        ld_shlibs_F77=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs_F77=no
+      fi
+      ;;
+
+    sunos4*)
+      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      hardcode_direct_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    *)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs_F77=no
+      fi
+      ;;
+    esac
+
+    if test &quot;$ld_shlibs_F77&quot; = no; then
+      runpath_var=
+      hardcode_libdir_flag_spec_F77=
+      export_dynamic_flag_spec_F77=
+      whole_archive_flag_spec_F77=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      allow_undefined_flag_F77=unsupported
+      always_export_symbols_F77=yes
+      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L_F77=yes
+      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        hardcode_direct_F77=unsupported
+      fi
+      ;;
+
+    aix4* | aix5*)
+      if test &quot;$host_cpu&quot; = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+        exp_sym_flag='-Bexport'
+        no_entry_flag=&quot;&quot;
+      else
+        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+        # -C means demangle to AIX nm, but means don't demangle with GNU nm
+        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        else
+          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        fi
+        aix_use_runtimelinking=no
+
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+        esac
+
+        exp_sym_flag='-bexport'
+        no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      archive_cmds_F77=''
+      hardcode_direct_F77=yes
+      hardcode_libdir_separator_F77=':'
+      link_all_deplibs_F77=yes
+
+      if test &quot;$GCC&quot; = yes; then
+        case $host_os in aix4.[012]|aix4.[012].*)
+        # We only want to do this on AIX 4.2 and lower, the check
+        # below for broken collect2 doesn't work under 4.3+
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f &quot;$collect2name&quot; &amp;&amp; \
+             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+          then
+            # We have reworked collect2
+            hardcode_direct_F77=yes
+          else
+            # We have old collect2
+            hardcode_direct_F77=unsupported
+            # It fails to find uninstalled libraries when the uninstalled
+            # path is not listed in the libpath.  Setting hardcode_minus_L
+            # to unsupported forces relinking
+            hardcode_minus_L_F77=yes
+            hardcode_libdir_flag_spec_F77='-L$libdir'
+            hardcode_libdir_separator_F77=
+          fi
+        esac
+        shared_flag='-shared'
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+        fi
+      else
+        # not using gcc
+        if test &quot;$host_cpu&quot; = ia64; then
+          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+          # chokes on -Wl,-G. The following line is correct:
+          shared_flag='-G'
+        else
+          if test &quot;$aix_use_runtimelinking&quot; = yes; then
+            shared_flag='${wl}-G'
+          else
+            shared_flag='${wl}-bM:SRE'
+          fi
+        fi
+      fi
+
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      always_export_symbols_F77=yes
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        # Warning - without using the other runtime loading flags (-brtl),
+        # -berok will link without error, but may produce a broken library.
+        allow_undefined_flag_F77='-berok'
+       # Determine the default libpath from the value encoded in an empty executable.
+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+      program main
+
+      end
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        archive_expsym_cmds_F77=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+       else
+        if test &quot;$host_cpu&quot; = ia64; then
+          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
+          allow_undefined_flag_F77=&quot;-z nodefs&quot;
+          archive_expsym_cmds_F77=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+        else
+         # Determine the default libpath from the value encoded in an empty executable.
+         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+      program main
+
+      end
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+          # Warning - without using the other run time loading flags,
+          # -berok will link without error, but may produce a broken library.
+          no_undefined_flag_F77=' ${wl}-bernotok'
+          allow_undefined_flag_F77=' ${wl}-berok'
+          # -bexpall does not export symbols beginning with underscore (_)
+          always_export_symbols_F77=yes
+          # Exported symbols can be pulled into shared objects from archives
+          whole_archive_flag_spec_F77=' '
+          archive_cmds_need_lc_F77=yes
+          # This is similar to how AIX traditionally builds its shared libraries.
+          archive_expsym_cmds_F77=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+        fi
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_minus_L_F77=yes
+      # see comment about different semantics on the GNU ld section
+      ld_shlibs_F77=no
+      ;;
+
+    bsdi[45]*)
+      export_dynamic_flag_spec_F77=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec_F77=' '
+      allow_undefined_flag_F77=unsupported
+      # Tell ltmain to make .lib files, not .a files.
+      libext=lib
+      # Tell ltmain to make .dll files, not .so files.
+      shrext_cmds=&quot;.dll&quot;
+      # FIXME: Setting linknames here is a bad hack.
+      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+      # The linker will automatically build a .lib file if we build a DLL.
+      old_archive_From_new_cmds_F77='true'
+      # FIXME: Should let the user specify the lib program.
+      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
+      fix_srcfile_path_F77='`cygpath -w &quot;$srcfile&quot;`'
+      enable_shared_with_static_runtimes_F77=yes
+      ;;
+
+    darwin* | rhapsody*)
+      case $host_os in
+        rhapsody* | darwin1.[012])
+         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[012])
+               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+      esac
+      archive_cmds_need_lc_F77=no
+      hardcode_direct_F77=no
+      hardcode_automatic_F77=yes
+      hardcode_shlibpath_var_F77=unsupported
+      whole_archive_flag_spec_F77=''
+      link_all_deplibs_F77=yes
+    if test &quot;$GCC&quot; = yes ; then
+            output_verbose_link_cmd='echo'
+        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+      archive_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      module_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+    else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+         archive_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          module_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         ld_shlibs_F77=no
+          ;;
+      esac
+    fi
+      ;;
+
+    dgux*)
+      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    freebsd1*)
+      ld_shlibs_F77=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      hardcode_libdir_flag_spec_F77='-R$libdir'
+      hardcode_direct_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2*)
+      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_F77=yes
+      hardcode_minus_L_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | kfreebsd*-gnu | dragonfly*)
+      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec_F77='-R$libdir'
+      hardcode_direct_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    hpux9*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      fi
+      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator_F77=:
+      hardcode_direct_F77=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      hardcode_minus_L_F77=yes
+      export_dynamic_flag_spec_F77='${wl}-E'
+      ;;
+
+    hpux10* | hpux11*)
+      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        *)
+          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        esac
+      else
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        *)
+          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        esac
+      fi
+      if test &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*)
+          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
+          hardcode_libdir_separator_F77=:
+          hardcode_direct_F77=no
+          hardcode_shlibpath_var_F77=no
+          ;;
+        ia64*)
+          hardcode_libdir_flag_spec_F77='-L$libdir'
+          hardcode_direct_F77=no
+          hardcode_shlibpath_var_F77=no
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L_F77=yes
+          ;;
+        *)
+          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
+          hardcode_libdir_separator_F77=:
+          hardcode_direct_F77=yes
+          export_dynamic_flag_spec_F77='${wl}-E'
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L_F77=yes
+          ;;
+        esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
+      fi
+      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_F77=:
+      link_all_deplibs_F77=yes
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      hardcode_libdir_flag_spec_F77='-R$libdir'
+      hardcode_direct_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    newsos6)
+      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_F77=yes
+      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_F77=:
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    openbsd*)
+      hardcode_direct_F77=yes
+      hardcode_shlibpath_var_F77=no
+      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
+        export_dynamic_flag_spec_F77='${wl}-E'
+      else
+       case $host_os in
+         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+           hardcode_libdir_flag_spec_F77='-R$libdir'
+           ;;
+         *)
+           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
+           ;;
+       esac
+      fi
+      ;;
+
+    os2*)
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_minus_L_F77=yes
+      allow_undefined_flag_F77=unsupported
+      archive_cmds_F77='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        allow_undefined_flag_F77=' -expect_unresolved \*'
+        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      fi
+      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_F77=:
+      ;;
+
+    osf4* | osf5*)        # as osf3* with the addition of -msym flag
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
+      else
+        allow_undefined_flag_F77=' -expect_unresolved \*'
+        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+        # Both c and cxx compiler support -rpath directly
+        hardcode_libdir_flag_spec_F77='-rpath $libdir'
+      fi
+      hardcode_libdir_separator_F77=:
+      ;;
+
+    sco3.2v5*)
+      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var_F77=no
+      export_dynamic_flag_spec_F77='${wl}-Bexport'
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ;;
+
+    solaris*)
+      no_undefined_flag_F77=' -z text'
+      if test &quot;$GCC&quot; = yes; then
+        wlarc='${wl}'
+        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+      else
+        wlarc=''
+        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      fi
+      hardcode_libdir_flag_spec_F77='-R$libdir'
+      hardcode_shlibpath_var_F77=no
+      case $host_os in
+      solaris2.[0-5] | solaris2.[0-5].*) ;;
+      *)
+         # The compiler driver will combine linker options so we
+         # cannot just pass the convience library names through
+         # without $wl, iff we do not link with $LD.
+         # Luckily, gcc supports the same syntax we need for Sun Studio.
+         # Supported since Solaris 2.6 (maybe 2.5.1?)
+         case $wlarc in
+         '')
+           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
+         *)
+           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
+         esac ;;
+      esac
+      link_all_deplibs_F77=yes
+      ;;
+
+    sunos4*)
+      if test &quot;x$host_vendor&quot; = xsequent; then
+        # Use $CC to link under sequent, because it throws in some extra .o
+        # files that make .init and .fini sections work.
+        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_direct_F77=yes
+      hardcode_minus_L_F77=yes
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+        sni)
+          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct_F77=yes # is this really true???
+        ;
+        siemens)
+          ## LD is ld it makes a PLAMLIB
+          ## CC just makes a GrossModule.
+          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+          reload_cmds_F77='$CC -r -o $output$reload_objs'
+          hardcode_direct_F77=no
+        ;;
+        motorola)
+          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
+        ;
+      esac
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    sysv4.3*)
+      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var_F77=no
+      export_dynamic_flag_spec_F77='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_shlibpath_var_F77=no
+        runpath_var=LD_RUN_PATH
+        hardcode_runpath_var=yes
+        ld_shlibs_F77=yes
+      fi
+      ;;
+
+    sysv4.2uw2*)
+      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_F77=yes
+      hardcode_minus_L_F77=no
+      hardcode_shlibpath_var_F77=no
+      hardcode_runpath_var=yes
+      runpath_var=LD_RUN_PATH
+      ;;
+
+   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
+      no_undefined_flag_F77='${wl}-z ${wl}text'
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    sysv5*)
+      no_undefined_flag_F77=' -z text'
+      # $CC -shared without GNU ld will not create a library from C++
+      # object files and a static libstdc++, better avoid it by now
+      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      hardcode_libdir_flag_spec_F77=
+      hardcode_shlibpath_var_F77=no
+      runpath_var='LD_RUN_PATH'
+      ;;
+
+    uts4*)
+      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec_F77='-L$libdir'
+      hardcode_shlibpath_var_F77=no
+      ;;
+
+    *)
+      ld_shlibs_F77=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $ld_shlibs_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ld_shlibs_F77&quot; &gt;&amp;6
+test &quot;$ld_shlibs_F77&quot; = no &amp;&amp; can_build_shared=no
+
+variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+if test &quot;$GCC&quot; = yes; then
+  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case &quot;x$archive_cmds_need_lc_F77&quot; in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc_F77=yes
+
+  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+    case $archive_cmds_F77 in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
+      $rm conftest*
+      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } 2&gt;conftest.err; then
+        soname=conftest
+        lib=conftest
+        libobjs=conftest.$ac_objext
+        deplibs=
+        wl=$lt_prog_compiler_wl_F77
+        compiler_flags=-v
+        linker_flags=-v
+        verstring=
+        output_objdir=.
+        libname=conftest
+        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
+        allow_undefined_flag_F77=
+        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_F77 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
+  (eval $archive_cmds_F77 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+        then
+          archive_cmds_need_lc_F77=no
+        else
+          archive_cmds_need_lc_F77=yes
+        fi
+        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
+      else
+        cat conftest.err 1&gt;&amp;5
+      fi
+      $rm conftest*
+      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$archive_cmds_need_lc_F77&quot; &gt;&amp;6
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=&quot;.so&quot;
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+if test &quot;$GCC&quot; = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
+    # if the path contains &quot;;&quot; then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
+    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
+    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+  else
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+  fi
+else
+  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}${shared_ext}$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test &quot;$host_cpu&quot; = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+           echo ' yes '
+           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+        :
+      else
+        can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+      # instead of lib&lt;name&gt;.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}${shared_ext}$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}${shared_ext}'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  shrext_cmds=&quot;.dll&quot;
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$host_os in
+  yes,cygwin* | yes,mingw* | yes,pw32*)
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
+      ;;
+    mingw*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
+        # It is most probably a Windows format PATH printed by
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
+        # path with ; separators, and with drive letters. We can handle the
+        # drive letters (cygwin fileutils understands them), so leave them,
+        # especially as we might pass files found there to a mingw objdump,
+        # which wouldn't understand a cygwinified path. Ahh.
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+      fi
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      ;;
+    esac
+    ;;
+
+  *)
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker=&quot;$host_os dyld&quot;
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  soname_spec='${libname}${release}${major}$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+  if test &quot;$GCC&quot; = yes; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
+  else
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+  fi
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[123]*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker=&quot;$host_os dld.so&quot;
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
+    else
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+   hppa*64*)
+     shrext_cmds='.sl'
+     hardcode_into_libs=yes
+     dynamic_linker=&quot;$host_os dld.sl&quot;
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+     soname_spec='${libname}${release}${shared_ext}$major'
+     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+     ;;
+   *)
+    shrext_cmds='.sl'
+    dynamic_linker=&quot;$host_os dld.sl&quot;
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+                version_type=linux
+        else
+                version_type=irix
+        fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsdelf*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='NetBSD ld.elf_so'
+  ;;
+
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+nto-qnx*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+  case $host_os in
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+    *)                         need_version=no  ;;
+  esac
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    case $host_os in
+      openbsd2.[89] | openbsd2.[89].*)
+        shlibpath_overrides_runpath=no
+        ;
+      *)
+        shlibpath_overrides_runpath=yes
+        ;
+      esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=&quot;.dll&quot;
+  need_lib_prefix=no
+  library_names_spec='$libname${shared_ext} $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+    soname_spec='$libname${shared_ext}.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+
+echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
+hardcode_action_F77=
+if test -n &quot;$hardcode_libdir_flag_spec_F77&quot; || \
+   test -n &quot;$runpath_var_F77&quot; || \
+   test &quot;X$hardcode_automatic_F77&quot; = &quot;Xyes&quot; ; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$hardcode_direct_F77&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)&quot; != no &amp;&amp;
+     test &quot;$hardcode_minus_L_F77&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action_F77=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action_F77=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action_F77=unsupported
+fi
+echo &quot;$as_me:$LINENO: result: $hardcode_action_F77&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hardcode_action_F77&quot; &gt;&amp;6
+
+if test &quot;$hardcode_action_F77&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
+if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+   darwin*)
+       if test -n &quot;$STRIP&quot; ; then
+         striplib=&quot;$STRIP -x&quot;
+         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+       else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+       ;;
+   *)
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+    ;;
+  esac
+fi
+
+
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    compiler_F77 \
+    CC_F77 \
+    LD_F77 \
+    lt_prog_compiler_wl_F77 \
+    lt_prog_compiler_pic_F77 \
+    lt_prog_compiler_static_F77 \
+    lt_prog_compiler_no_builtin_flag_F77 \
+    export_dynamic_flag_spec_F77 \
+    thread_safe_flag_spec_F77 \
+    whole_archive_flag_spec_F77 \
+    enable_shared_with_static_runtimes_F77 \
+    old_archive_cmds_F77 \
+    old_archive_from_new_cmds_F77 \
+    predep_objects_F77 \
+    postdep_objects_F77 \
+    predeps_F77 \
+    postdeps_F77 \
+    compiler_lib_search_path_F77 \
+    archive_cmds_F77 \
+    archive_expsym_cmds_F77 \
+    postinstall_cmds_F77 \
+    postuninstall_cmds_F77 \
+    old_archive_from_expsyms_cmds_F77 \
+    allow_undefined_flag_F77 \
+    no_undefined_flag_F77 \
+    export_symbols_cmds_F77 \
+    hardcode_libdir_flag_spec_F77 \
+    hardcode_libdir_flag_spec_ld_F77 \
+    hardcode_libdir_separator_F77 \
+    hardcode_automatic_F77 \
+    module_cmds_F77 \
+    module_expsym_cmds_F77 \
+    lt_cv_prog_compiler_c_o_F77 \
+    exclude_expsyms_F77 \
+    include_expsyms_F77; do
+
+    case $var in
+    old_archive_cmds_F77 | \
+    old_archive_from_new_cmds_F77 | \
+    archive_cmds_F77 | \
+    archive_expsym_cmds_F77 | \
+    module_cmds_F77 | \
+    module_expsym_cmds_F77 | \
+    old_archive_from_expsyms_cmds_F77 | \
+    export_symbols_cmds_F77 | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\$0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+cfgfile=&quot;$ofile&quot;
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_F77
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_F77
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_F77
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_F77
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_F77
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_F77
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_F77
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_F77
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_F77
+archive_expsym_cmds=$lt_archive_expsym_cmds_F77
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_F77
+module_expsym_cmds=$lt_module_expsym_cmds_F77
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_F77
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_F77
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_F77
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_F77
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_F77
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_F77
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_F77
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_F77
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_F77
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_F77
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_F77
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_F77
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path_F77&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_F77
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_F77
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_F77
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_F77
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=&quot;$lt_save_CC&quot;
+
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      GCJ)
+        if test -n &quot;$GCJ&quot; &amp;&amp; test &quot;X$GCJ&quot; != &quot;Xno&quot;; then
+
+
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+objext_GCJ=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code=&quot;class foo {}\n&quot;
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${GCJ-&quot;gcj&quot;}
+compiler=$CC
+compiler_GCJ=$CC
+for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+archive_cmds_need_lc_GCJ=no
+
+old_archive_cmds_GCJ=$old_archive_cmds
+
+
+lt_prog_compiler_no_builtin_flag_GCJ=
+
+if test &quot;$GCC&quot; = yes; then
+  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
+
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_rtti_exceptions+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_rtti_exceptions=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;-fno-rtti -fno-exceptions&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:15967: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:15971: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_rtti_exceptions=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;6
+
+if test x&quot;$lt_cv_prog_compiler_rtti_exceptions&quot; = xyes; then
+    lt_prog_compiler_no_builtin_flag_GCJ=&quot;$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions&quot;
+else
+    :
+fi
+
+fi
+
+lt_prog_compiler_wl_GCJ=
+lt_prog_compiler_pic_GCJ=
+lt_prog_compiler_static_GCJ=
+
+echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
+
+  if test &quot;$GCC&quot; = yes; then
+    lt_prog_compiler_wl_GCJ='-Wl,'
+    lt_prog_compiler_static_GCJ='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static_GCJ='-Bstatic'
+      fi
+      ;;
+
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
+      ;;
+
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic_GCJ='-fno-common'
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      lt_prog_compiler_can_build_shared_GCJ=no
+      enable_shared=no
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        lt_prog_compiler_pic_GCJ=-Kconform_pic
+      fi
+      ;;
+
+    hpux*)
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic_GCJ='-fPIC'
+        ;
+      esac
+      ;;
+
+    *)
+      lt_prog_compiler_pic_GCJ='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      if test &quot;$host_cpu&quot; = ia64; then
+        # AIX 5 now supports IA64 processor
+        lt_prog_compiler_static_GCJ='-Bstatic'
+      else
+        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+      darwin*)
+        # PIC is the default on this platform
+        # Common symbols not allowed in MH_DYLIB files
+       case $cc_basename in
+         xlc*)
+         lt_prog_compiler_pic_GCJ='-qnocommon'
+         lt_prog_compiler_wl_GCJ='-Wl,'
+         ;;
+       esac
+       ;;
+
+    mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+        # +Z the default
+        ;
+      *)
+        lt_prog_compiler_pic_GCJ='+Z'
+        ;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      # PIC (with -KPIC) is the default.
+      lt_prog_compiler_static_GCJ='-non_shared'
+      ;;
+
+    newsos6)
+      lt_prog_compiler_pic_GCJ='-KPIC'
+      lt_prog_compiler_static_GCJ='-Bstatic'
+      ;;
+
+    linux*)
+      case $cc_basename in
+      icc* | ecc*)
+        lt_prog_compiler_wl_GCJ='-Wl,'
+        lt_prog_compiler_pic_GCJ='-KPIC'
+        lt_prog_compiler_static_GCJ='-static'
+        ;;
+      pgcc* | pgf77* | pgf90* | pgf95*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+        # which looks to be a dead project)
+        lt_prog_compiler_wl_GCJ='-Wl,'
+        lt_prog_compiler_pic_GCJ='-fpic'
+        lt_prog_compiler_static_GCJ='-Bstatic'
+        ;;
+      ccc*)
+        lt_prog_compiler_wl_GCJ='-Wl,'
+        # All Alpha code is PIC.
+        lt_prog_compiler_static_GCJ='-non_shared'
+        ;;
+      esac
+      ;;
+
+    osf3* | osf4* | osf5*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      # All OSF/1 code is PIC.
+      lt_prog_compiler_static_GCJ='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      lt_prog_compiler_pic_GCJ='-Kpic'
+      lt_prog_compiler_static_GCJ='-dn'
+      ;;
+
+    solaris*)
+      lt_prog_compiler_pic_GCJ='-KPIC'
+      lt_prog_compiler_static_GCJ='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95*)
+        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
+      *)
+        lt_prog_compiler_wl_GCJ='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      lt_prog_compiler_wl_GCJ='-Qoption ld '
+      lt_prog_compiler_pic_GCJ='-PIC'
+      lt_prog_compiler_static_GCJ='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      lt_prog_compiler_pic_GCJ='-KPIC'
+      lt_prog_compiler_static_GCJ='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+        lt_prog_compiler_pic_GCJ='-Kconform_pic'
+        lt_prog_compiler_static_GCJ='-Bstatic'
+      fi
+      ;;
+
+    unicos*)
+      lt_prog_compiler_wl_GCJ='-Wl,'
+      lt_prog_compiler_can_build_shared_GCJ=no
+      ;;
+
+    uts4*)
+      lt_prog_compiler_pic_GCJ='-pic'
+      lt_prog_compiler_static_GCJ='-Bstatic'
+      ;;
+
+    *)
+      lt_prog_compiler_can_build_shared_GCJ=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_GCJ&quot; &gt;&amp;6
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n &quot;$lt_prog_compiler_pic_GCJ&quot;; then
+
+echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_prog_compiler_pic_works_GCJ+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_prog_compiler_pic_works_GCJ=no
+  ac_outfile=conftest.$ac_objext
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+   lt_compiler_flag=&quot;$lt_prog_compiler_pic_GCJ&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:16229: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
+   ac_status=$?
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:16233: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
+     $SED '/^$/d' conftest.err &gt;conftest.er2
+     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
+       lt_prog_compiler_pic_works_GCJ=yes
+     fi
+   fi
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_GCJ&quot; &gt;&amp;6
+
+if test x&quot;$lt_prog_compiler_pic_works_GCJ&quot; = xyes; then
+    case $lt_prog_compiler_pic_GCJ in
+     &quot;&quot; | &quot; &quot;*) ;;
+     *) lt_prog_compiler_pic_GCJ=&quot; $lt_prog_compiler_pic_GCJ&quot; ;;
+     esac
+else
+    lt_prog_compiler_pic_GCJ=
+     lt_prog_compiler_can_build_shared_GCJ=no
+fi
+
+fi
+case $host_os in
+  # For platforms which do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic_GCJ=
+    ;;
+  *)
+    lt_prog_compiler_pic_GCJ=&quot;$lt_prog_compiler_pic_GCJ&quot;
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_prog_compiler_c_o_GCJ+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  lt_cv_prog_compiler_c_o_GCJ=no
+   $rm -r conftest 2&gt;/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo &quot;\&quot;\$as_me:16291: $lt_compile\&quot;&quot; &gt;&amp;5)
+   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err &gt;&amp;5
+   echo &quot;$as_me:16295: \$? = $ac_status&quot; &gt;&amp;5
+   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
+     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
+     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
+       lt_cv_prog_compiler_c_o_GCJ=yes
+     fi
+   fi
+   chmod u+w . 2&gt;&amp;5
+   $rm conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
+   $rm out/* &amp;&amp; rmdir out
+   cd ..
+   rmdir conftest
+   $rm conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ&quot; &gt;&amp;6
+
+
+hard_links=&quot;nottested&quot;
+if test &quot;$lt_cv_prog_compiler_c_o_GCJ&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
+  if test &quot;$hard_links&quot; = no; then
+    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+
+  runpath_var=
+  allow_undefined_flag_GCJ=
+  enable_shared_with_static_runtimes_GCJ=no
+  archive_cmds_GCJ=
+  archive_expsym_cmds_GCJ=
+  old_archive_From_new_cmds_GCJ=
+  old_archive_from_expsyms_cmds_GCJ=
+  export_dynamic_flag_spec_GCJ=
+  whole_archive_flag_spec_GCJ=
+  thread_safe_flag_spec_GCJ=
+  hardcode_libdir_flag_spec_GCJ=
+  hardcode_libdir_flag_spec_ld_GCJ=
+  hardcode_libdir_separator_GCJ=
+  hardcode_direct_GCJ=no
+  hardcode_minus_L_GCJ=no
+  hardcode_shlibpath_var_GCJ=unsupported
+  link_all_deplibs_GCJ=unknown
+  hardcode_automatic_GCJ=no
+  module_cmds_GCJ=
+  module_expsym_cmds_GCJ=
+  always_export_symbols_GCJ=no
+  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  include_expsyms_GCJ=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+  # as well as any symbol that contains `d'.
+  exclude_expsyms_GCJ=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  extract_expsyms_cmds=
+  # Just being paranoid about ensuring that cc_basename is set.
+  for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+  case $host_os in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test &quot;$GCC&quot; != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  ld_shlibs_GCJ=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='${wl}'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
+        whole_archive_flag_spec_GCJ=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+      else
+          whole_archive_flag_spec_GCJ=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v 2&gt;/dev/null` in
+      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test &quot;$host_cpu&quot; != ia64; then
+        ld_shlibs_GCJ=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_minus_L_GCJ=yes
+
+      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we can't use
+      # them.
+      ld_shlibs_GCJ=no
+      ;;
+
+    beos*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        allow_undefined_flag_GCJ=unsupported
+        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+        # support --undefined.  This deserves some investigation.  FIXME
+        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      else
+        ld_shlibs_GCJ=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
+      # as there is no search path for DLLs.
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      allow_undefined_flag_GCJ=unsupported
+      always_export_symbols_GCJ=no
+      enable_shared_with_static_runtimes_GCJ=yes
+      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
+
+      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
+        # If the export-symbols file already is a .def file (1st line
+        # is EXPORTS), use it as is; otherwise, prepend...
+        archive_expsym_cmds_GCJ='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS &gt; $output_objdir/$soname.def;
+          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
+      else
+        ld_shlibs_GCJ=no
+      fi
+      ;;
+
+    linux*)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        tmp_addflag=
+        case $cc_basename,$host_cpu in
+        pgcc*)                                # Portland Group C compiler
+          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag'
+          ;;
+        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
+          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
+          tmp_addflag=' $pic_flag -Mnomain' ;;
+        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
+          tmp_addflag=' -i_dynamic' ;;
+        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
+          tmp_addflag=' -i_dynamic -nofor_main' ;;
+        ifc* | ifort*)                        # Intel Fortran compiler
+          tmp_addflag=' -nofor_main' ;;
+        esac
+        archive_cmds_GCJ='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+        if test $supports_anon_versioning = yes; then
+          archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
+  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
+  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
+          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+        fi
+        link_all_deplibs_GCJ=no
+      else
+        ld_shlibs_GCJ=no
+      fi
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+        wlarc=
+      else
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris* | sysv5*)
+      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
+        ld_shlibs_GCJ=no
+        cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs_GCJ=no
+      fi
+      ;;
+
+    sunos4*)
+      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      hardcode_direct_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    *)
+      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+        ld_shlibs_GCJ=no
+      fi
+      ;;
+    esac
+
+    if test &quot;$ld_shlibs_GCJ&quot; = no; then
+      runpath_var=
+      hardcode_libdir_flag_spec_GCJ=
+      export_dynamic_flag_spec_GCJ=
+      whole_archive_flag_spec_GCJ=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      allow_undefined_flag_GCJ=unsupported
+      always_export_symbols_GCJ=yes
+      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L_GCJ=yes
+      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        hardcode_direct_GCJ=unsupported
+      fi
+      ;;
+
+    aix4* | aix5*)
+      if test &quot;$host_cpu&quot; = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+        exp_sym_flag='-Bexport'
+        no_entry_flag=&quot;&quot;
+      else
+        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
+        # -C means demangle to AIX nm, but means don't demangle with GNU nm
+        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
+          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        else
+          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
+        fi
+        aix_use_runtimelinking=no
+
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+        esac
+
+        exp_sym_flag='-bexport'
+        no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      archive_cmds_GCJ=''
+      hardcode_direct_GCJ=yes
+      hardcode_libdir_separator_GCJ=':'
+      link_all_deplibs_GCJ=yes
+
+      if test &quot;$GCC&quot; = yes; then
+        case $host_os in aix4.[012]|aix4.[012].*)
+        # We only want to do this on AIX 4.2 and lower, the check
+        # below for broken collect2 doesn't work under 4.3+
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f &quot;$collect2name&quot; &amp;&amp; \
+             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+          then
+            # We have reworked collect2
+            hardcode_direct_GCJ=yes
+          else
+            # We have old collect2
+            hardcode_direct_GCJ=unsupported
+            # It fails to find uninstalled libraries when the uninstalled
+            # path is not listed in the libpath.  Setting hardcode_minus_L
+            # to unsupported forces relinking
+            hardcode_minus_L_GCJ=yes
+            hardcode_libdir_flag_spec_GCJ='-L$libdir'
+            hardcode_libdir_separator_GCJ=
+          fi
+        esac
+        shared_flag='-shared'
+        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
+        fi
+      else
+        # not using gcc
+        if test &quot;$host_cpu&quot; = ia64; then
+          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+          # chokes on -Wl,-G. The following line is correct:
+          shared_flag='-G'
+        else
+          if test &quot;$aix_use_runtimelinking&quot; = yes; then
+            shared_flag='${wl}-G'
+          else
+            shared_flag='${wl}-bM:SRE'
+          fi
+        fi
+      fi
+
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      always_export_symbols_GCJ=yes
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        # Warning - without using the other runtime loading flags (-brtl),
+        # -berok will link without error, but may produce a broken library.
+        allow_undefined_flag_GCJ='-berok'
+       # Determine the default libpath from the value encoded in an empty executable.
+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+        archive_expsym_cmds_GCJ=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+       else
+        if test &quot;$host_cpu&quot; = ia64; then
+          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
+          allow_undefined_flag_GCJ=&quot;-z nodefs&quot;
+          archive_expsym_cmds_GCJ=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+        else
+         # Determine the default libpath from the value encoded in an empty executable.
+         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+
+aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`
+# Check for a 64-bit object if we didn't find anything.
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
+}'`; fi
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
+
+         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
+          # Warning - without using the other run time loading flags,
+          # -berok will link without error, but may produce a broken library.
+          no_undefined_flag_GCJ=' ${wl}-bernotok'
+          allow_undefined_flag_GCJ=' ${wl}-berok'
+          # -bexpall does not export symbols beginning with underscore (_)
+          always_export_symbols_GCJ=yes
+          # Exported symbols can be pulled into shared objects from archives
+          whole_archive_flag_spec_GCJ=' '
+          archive_cmds_need_lc_GCJ=yes
+          # This is similar to how AIX traditionally builds its shared libraries.
+          archive_expsym_cmds_GCJ=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+        fi
+      fi
+      ;;
+
+    amigaos*)
+      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_minus_L_GCJ=yes
+      # see comment about different semantics on the GNU ld section
+      ld_shlibs_GCJ=no
+      ;;
+
+    bsdi[45]*)
+      export_dynamic_flag_spec_GCJ=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec_GCJ=' '
+      allow_undefined_flag_GCJ=unsupported
+      # Tell ltmain to make .lib files, not .a files.
+      libext=lib
+      # Tell ltmain to make .dll files, not .so files.
+      shrext_cmds=&quot;.dll&quot;
+      # FIXME: Setting linknames here is a bad hack.
+      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+      # The linker will automatically build a .lib file if we build a DLL.
+      old_archive_From_new_cmds_GCJ='true'
+      # FIXME: Should let the user specify the lib program.
+      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
+      fix_srcfile_path_GCJ='`cygpath -w &quot;$srcfile&quot;`'
+      enable_shared_with_static_runtimes_GCJ=yes
+      ;;
+
+    darwin* | rhapsody*)
+      case $host_os in
+        rhapsody* | darwin1.[012])
+         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
+         ;;
+       *) # Darwin 1.3 on
+         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+         else
+           case ${MACOSX_DEPLOYMENT_TARGET} in
+             10.[012])
+               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+               ;;
+             10.*)
+               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
+               ;;
+           esac
+         fi
+         ;;
+      esac
+      archive_cmds_need_lc_GCJ=no
+      hardcode_direct_GCJ=no
+      hardcode_automatic_GCJ=yes
+      hardcode_shlibpath_var_GCJ=unsupported
+      whole_archive_flag_spec_GCJ=''
+      link_all_deplibs_GCJ=yes
+    if test &quot;$GCC&quot; = yes ; then
+            output_verbose_link_cmd='echo'
+        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
+      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+      archive_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+      module_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+    else
+      case $cc_basename in
+        xlc*)
+         output_verbose_link_cmd='echo'
+         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
+         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+         archive_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          module_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+          ;;
+       *)
+         ld_shlibs_GCJ=no
+          ;;
+      esac
+    fi
+      ;;
+
+    dgux*)
+      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    freebsd1*)
+      ld_shlibs_GCJ=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      hardcode_libdir_flag_spec_GCJ='-R$libdir'
+      hardcode_direct_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2*)
+      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_GCJ=yes
+      hardcode_minus_L_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | kfreebsd*-gnu | dragonfly*)
+      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec_GCJ='-R$libdir'
+      hardcode_direct_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    hpux9*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      else
+        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+      fi
+      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator_GCJ=:
+      hardcode_direct_GCJ=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      hardcode_minus_L_GCJ=yes
+      export_dynamic_flag_spec_GCJ='${wl}-E'
+      ;;
+
+    hpux10* | hpux11*)
+      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        *)
+          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+          ;;
+        esac
+      else
+        case $host_cpu in
+        hppa*64*|ia64*)
+          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        *)
+          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+          ;;
+        esac
+      fi
+      if test &quot;$with_gnu_ld&quot; = no; then
+        case $host_cpu in
+        hppa*64*)
+          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
+          hardcode_libdir_separator_GCJ=:
+          hardcode_direct_GCJ=no
+          hardcode_shlibpath_var_GCJ=no
+          ;;
+        ia64*)
+          hardcode_libdir_flag_spec_GCJ='-L$libdir'
+          hardcode_direct_GCJ=no
+          hardcode_shlibpath_var_GCJ=no
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L_GCJ=yes
+          ;;
+        *)
+          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
+          hardcode_libdir_separator_GCJ=:
+          hardcode_direct_GCJ=yes
+          export_dynamic_flag_spec_GCJ='${wl}-E'
+
+          # hardcode_minus_L: Not really in the search PATH,
+          # but as the default location of the library.
+          hardcode_minus_L_GCJ=yes
+          ;;
+        esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
+      fi
+      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_GCJ=:
+      link_all_deplibs_GCJ=yes
+      ;;
+
+    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      hardcode_libdir_flag_spec_GCJ='-R$libdir'
+      hardcode_direct_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    newsos6)
+      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_GCJ=yes
+      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_GCJ=:
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    openbsd*)
+      hardcode_direct_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
+        export_dynamic_flag_spec_GCJ='${wl}-E'
+      else
+       case $host_os in
+         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+           hardcode_libdir_flag_spec_GCJ='-R$libdir'
+           ;;
+         *)
+           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
+           ;;
+       esac
+      fi
+      ;;
+
+    os2*)
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_minus_L_GCJ=yes
+      allow_undefined_flag_GCJ=unsupported
+      archive_cmds_GCJ='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      else
+        allow_undefined_flag_GCJ=' -expect_unresolved \*'
+        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      fi
+      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator_GCJ=:
+      ;;
+
+    osf4* | osf5*)        # as osf3* with the addition of -msym flag
+      if test &quot;$GCC&quot; = yes; then
+        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
+        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
+      else
+        allow_undefined_flag_GCJ=' -expect_unresolved \*'
+        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+        # Both c and cxx compiler support -rpath directly
+        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
+      fi
+      hardcode_libdir_separator_GCJ=:
+      ;;
+
+    sco3.2v5*)
+      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var_GCJ=no
+      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ;;
+
+    solaris*)
+      no_undefined_flag_GCJ=' -z text'
+      if test &quot;$GCC&quot; = yes; then
+        wlarc='${wl}'
+        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+        archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+      else
+        wlarc=''
+        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      fi
+      hardcode_libdir_flag_spec_GCJ='-R$libdir'
+      hardcode_shlibpath_var_GCJ=no
+      case $host_os in
+      solaris2.[0-5] | solaris2.[0-5].*) ;;
+      *)
+         # The compiler driver will combine linker options so we
+         # cannot just pass the convience library names through
+         # without $wl, iff we do not link with $LD.
+         # Luckily, gcc supports the same syntax we need for Sun Studio.
+         # Supported since Solaris 2.6 (maybe 2.5.1?)
+         case $wlarc in
+         '')
+           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
+         *)
+           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
+         esac ;;
+      esac
+      link_all_deplibs_GCJ=yes
+      ;;
+
+    sunos4*)
+      if test &quot;x$host_vendor&quot; = xsequent; then
+        # Use $CC to link under sequent, because it throws in some extra .o
+        # files that make .init and .fini sections work.
+        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_direct_GCJ=yes
+      hardcode_minus_L_GCJ=yes
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+        sni)
+          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct_GCJ=yes # is this really true???
+        ;
+        siemens)
+          ## LD is ld it makes a PLAMLIB
+          ## CC just makes a GrossModule.
+          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
+          hardcode_direct_GCJ=no
+        ;;
+        motorola)
+          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
+        ;
+      esac
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    sysv4.3*)
+      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var_GCJ=no
+      export_dynamic_flag_spec_GCJ='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_shlibpath_var_GCJ=no
+        runpath_var=LD_RUN_PATH
+        hardcode_runpath_var=yes
+        ld_shlibs_GCJ=yes
+      fi
+      ;;
+
+    sysv4.2uw2*)
+      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct_GCJ=yes
+      hardcode_minus_L_GCJ=no
+      hardcode_shlibpath_var_GCJ=no
+      hardcode_runpath_var=yes
+      runpath_var=LD_RUN_PATH
+      ;;
+
+   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
+      no_undefined_flag_GCJ='${wl}-z ${wl}text'
+      if test &quot;$GCC&quot; = yes; then
+        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    sysv5*)
+      no_undefined_flag_GCJ=' -z text'
+      # $CC -shared without GNU ld will not create a library from C++
+      # object files and a static libstdc++, better avoid it by now
+      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+      hardcode_libdir_flag_spec_GCJ=
+      hardcode_shlibpath_var_GCJ=no
+      runpath_var='LD_RUN_PATH'
+      ;;
+
+    uts4*)
+      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec_GCJ='-L$libdir'
+      hardcode_shlibpath_var_GCJ=no
+      ;;
+
+    *)
+      ld_shlibs_GCJ=no
+      ;;
+    esac
+  fi
+
+echo &quot;$as_me:$LINENO: result: $ld_shlibs_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ld_shlibs_GCJ&quot; &gt;&amp;6
+test &quot;$ld_shlibs_GCJ&quot; = no &amp;&amp; can_build_shared=no
+
+variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+if test &quot;$GCC&quot; = yes; then
+  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+fi
+
+#
+# Do we need to explicitly link libc?
+#
+case &quot;x$archive_cmds_need_lc_GCJ&quot; in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc_GCJ=yes
+
+  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+    case $archive_cmds_GCJ in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
+      $rm conftest*
+      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
+
+      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } 2&gt;conftest.err; then
+        soname=conftest
+        lib=conftest
+        libobjs=conftest.$ac_objext
+        deplibs=
+        wl=$lt_prog_compiler_wl_GCJ
+        compiler_flags=-v
+        linker_flags=-v
+        verstring=
+        output_objdir=.
+        libname=conftest
+        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
+        allow_undefined_flag_GCJ=
+        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_GCJ 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
+  (eval $archive_cmds_GCJ 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+        then
+          archive_cmds_need_lc_GCJ=no
+        else
+          archive_cmds_need_lc_GCJ=yes
+        fi
+        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
+      else
+        cat conftest.err 1&gt;&amp;5
+      fi
+      $rm conftest*
+      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$archive_cmds_need_lc_GCJ&quot; &gt;&amp;6
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=&quot;.so&quot;
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+if test &quot;$GCC&quot; = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
+    # if the path contains &quot;;&quot; then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
+    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
+    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+  else
+    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+  fi
+else
+  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}${shared_ext}$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test &quot;$host_cpu&quot; = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+           echo ' yes '
+           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+        :
+      else
+        can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+      # instead of lib&lt;name&gt;.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}${shared_ext}$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}${shared_ext}'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  shrext_cmds=&quot;.dll&quot;
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$host_os in
+  yes,cygwin* | yes,mingw* | yes,pw32*)
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \${file}`~
+      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
+      ;;
+    mingw*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
+      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
+        # It is most probably a Windows format PATH printed by
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
+        # path with ; separators, and with drive letters. We can handle the
+        # drive letters (cygwin fileutils understands them), so leave them,
+        # especially as we might pass files found there to a mingw objdump,
+        # which wouldn't understand a cygwinified path. Ahh.
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
+      fi
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+      ;;
+    esac
+    ;;
+
+  *)
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker=&quot;$host_os dyld&quot;
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+  soname_spec='${libname}${release}${major}$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
+  if test &quot;$GCC&quot; = yes; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
+  else
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
+  fi
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[123]*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker=&quot;$host_os dld.so&quot;
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
+    else
+      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+   hppa*64*)
+     shrext_cmds='.sl'
+     hardcode_into_libs=yes
+     dynamic_linker=&quot;$host_os dld.sl&quot;
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+     soname_spec='${libname}${release}${shared_ext}$major'
+     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+     ;;
+   *)
+    shrext_cmds='.sl'
+    dynamic_linker=&quot;$host_os dld.sl&quot;
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
+                version_type=linux
+        else
+                version_type=irix
+        fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsdelf*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='NetBSD ld.elf_so'
+  ;;
+
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+    soname_spec='${libname}${release}${shared_ext}$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+nto-qnx*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+  case $host_os in
+    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+    *)                         need_version=no  ;;
+  esac
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+    case $host_os in
+      openbsd2.[89] | openbsd2.[89].*)
+        shlibpath_overrides_runpath=no
+        ;
+      *)
+        shlibpath_overrides_runpath=yes
+        ;
+      esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=&quot;.dll&quot;
+  need_lib_prefix=no
+  library_names_spec='$libname${shared_ext} $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}${shared_ext}$major'
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+    soname_spec='$libname${shared_ext}.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+
+echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
+hardcode_action_GCJ=
+if test -n &quot;$hardcode_libdir_flag_spec_GCJ&quot; || \
+   test -n &quot;$runpath_var_GCJ&quot; || \
+   test &quot;X$hardcode_automatic_GCJ&quot; = &quot;Xyes&quot; ; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$hardcode_direct_GCJ&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)&quot; != no &amp;&amp;
+     test &quot;$hardcode_minus_L_GCJ&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action_GCJ=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action_GCJ=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action_GCJ=unsupported
+fi
+echo &quot;$as_me:$LINENO: result: $hardcode_action_GCJ&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$hardcode_action_GCJ&quot; &gt;&amp;6
+
+if test &quot;$hardcode_action_GCJ&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
+if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+   darwin*)
+       if test -n &quot;$STRIP&quot; ; then
+         striplib=&quot;$STRIP -x&quot;
+         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
+       else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+       ;;
+   *)
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+    ;;
+  esac
+fi
+
+if test &quot;x$enable_dlopen&quot; != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=&quot;load_add_on&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32*)
+    lt_cv_dlopen=&quot;LoadLibrary&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  cygwin*)
+    lt_cv_dlopen=&quot;dlopen&quot;
+    lt_cv_dlopen_libs=
+   ;;
+
+  darwin*)
+  # if libdl is installed we need to link against it
+    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+
+    lt_cv_dlopen=&quot;dyld&quot;
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+
+fi
+
+   ;;
+
+  *)
+    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef shl_load
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
+if test $ac_cv_func_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_shl_load = yes; then
+  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef dlopen
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != dlopen;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
+if test $ac_cv_func_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lsvld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
+if test $ac_cv_lib_svld_dlopen = yes; then
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
+else
+  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
+if test $ac_cv_lib_dld_dld_link = yes; then
+  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+    ;;
+  esac
+
+  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+
+    save_LDFLAGS=&quot;$LDFLAGS&quot;
+    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+
+    save_LIBS=&quot;$LIBS&quot;
+    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+
+    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 18543 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
+
+    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+            if test &quot;$cross_compiling&quot; = yes; then :
+  lt_cv_dlopen_self_static=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 18641 &quot;configure&quot;
+#include &quot;confdefs.h&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL                RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW                DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW        DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW        0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern &quot;C&quot; void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self_static=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
+    fi
+
+    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+    LDFLAGS=&quot;$save_LDFLAGS&quot;
+    LIBS=&quot;$save_LIBS&quot;
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    compiler_GCJ \
+    CC_GCJ \
+    LD_GCJ \
+    lt_prog_compiler_wl_GCJ \
+    lt_prog_compiler_pic_GCJ \
+    lt_prog_compiler_static_GCJ \
+    lt_prog_compiler_no_builtin_flag_GCJ \
+    export_dynamic_flag_spec_GCJ \
+    thread_safe_flag_spec_GCJ \
+    whole_archive_flag_spec_GCJ \
+    enable_shared_with_static_runtimes_GCJ \
+    old_archive_cmds_GCJ \
+    old_archive_from_new_cmds_GCJ \
+    predep_objects_GCJ \
+    postdep_objects_GCJ \
+    predeps_GCJ \
+    postdeps_GCJ \
+    compiler_lib_search_path_GCJ \
+    archive_cmds_GCJ \
+    archive_expsym_cmds_GCJ \
+    postinstall_cmds_GCJ \
+    postuninstall_cmds_GCJ \
+    old_archive_from_expsyms_cmds_GCJ \
+    allow_undefined_flag_GCJ \
+    no_undefined_flag_GCJ \
+    export_symbols_cmds_GCJ \
+    hardcode_libdir_flag_spec_GCJ \
+    hardcode_libdir_flag_spec_ld_GCJ \
+    hardcode_libdir_separator_GCJ \
+    hardcode_automatic_GCJ \
+    module_cmds_GCJ \
+    module_expsym_cmds_GCJ \
+    lt_cv_prog_compiler_c_o_GCJ \
+    exclude_expsyms_GCJ \
+    include_expsyms_GCJ; do
+
+    case $var in
+    old_archive_cmds_GCJ | \
+    old_archive_from_new_cmds_GCJ | \
+    archive_cmds_GCJ | \
+    archive_expsym_cmds_GCJ | \
+    module_cmds_GCJ | \
+    module_expsym_cmds_GCJ | \
+    old_archive_from_expsyms_cmds_GCJ | \
+    export_symbols_cmds_GCJ | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\$0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+cfgfile=&quot;$ofile&quot;
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_GCJ
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_GCJ
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_GCJ
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_GCJ
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_GCJ
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_GCJ
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_GCJ
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_GCJ
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_GCJ
+archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_GCJ
+module_expsym_cmds=$lt_module_expsym_cmds_GCJ
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_GCJ
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_GCJ
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_GCJ
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_GCJ
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_GCJ
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_GCJ
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_GCJ
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_GCJ
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_GCJ
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_GCJ
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_GCJ
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path_GCJ&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_GCJ
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_GCJ
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_GCJ
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_GCJ
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=&quot;$lt_save_CC&quot;
+
+        else
+          tagname=&quot;&quot;
+        fi
+        ;
+
+      RC)
+
+
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+objext_RC=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM &quot;&amp;Soup&quot;, 100, CHECKED }\n'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=&quot;$lt_simple_compile_test_code&quot;
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-&quot;$CC&quot;}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
+eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm conftest*
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=&quot;$CC&quot;
+CC=${RC-&quot;windres&quot;}
+compiler=$CC
+compiler_RC=$CC
+for cc_temp in $compiler&quot;&quot;; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
+
+lt_cv_prog_compiler_c_o_RC=yes
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f &quot;$ltmain&quot;; then
+  # See if we are running on zsh, and set the options which allow our commands through
+  # without removal of \ escapes.
+  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+    setopt NO_GLOB_SUBST
+  fi
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
+    SED SHELL STRIP \
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+    deplibs_check_method reload_flag reload_cmds need_locks \
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+    lt_cv_sys_global_symbol_to_c_name_address \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    old_postinstall_cmds old_postuninstall_cmds \
+    compiler_RC \
+    CC_RC \
+    LD_RC \
+    lt_prog_compiler_wl_RC \
+    lt_prog_compiler_pic_RC \
+    lt_prog_compiler_static_RC \
+    lt_prog_compiler_no_builtin_flag_RC \
+    export_dynamic_flag_spec_RC \
+    thread_safe_flag_spec_RC \
+    whole_archive_flag_spec_RC \
+    enable_shared_with_static_runtimes_RC \
+    old_archive_cmds_RC \
+    old_archive_from_new_cmds_RC \
+    predep_objects_RC \
+    postdep_objects_RC \
+    predeps_RC \
+    postdeps_RC \
+    compiler_lib_search_path_RC \
+    archive_cmds_RC \
+    archive_expsym_cmds_RC \
+    postinstall_cmds_RC \
+    postuninstall_cmds_RC \
+    old_archive_from_expsyms_cmds_RC \
+    allow_undefined_flag_RC \
+    no_undefined_flag_RC \
+    export_symbols_cmds_RC \
+    hardcode_libdir_flag_spec_RC \
+    hardcode_libdir_flag_spec_ld_RC \
+    hardcode_libdir_separator_RC \
+    hardcode_automatic_RC \
+    module_cmds_RC \
+    module_expsym_cmds_RC \
+    lt_cv_prog_compiler_c_o_RC \
+    exclude_expsyms_RC \
+    include_expsyms_RC; do
+
+    case $var in
+    old_archive_cmds_RC | \
+    old_archive_from_new_cmds_RC | \
+    archive_cmds_RC | \
+    archive_expsym_cmds_RC | \
+    module_cmds_RC | \
+    module_expsym_cmds_RC | \
+    old_archive_from_expsyms_cmds_RC | \
+    export_symbols_cmds_RC | \
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case $lt_echo in
+  *'\$0 --fallback-echo&quot;')
+    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+cfgfile=&quot;$ofile&quot;
+
+  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_RC
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# A language-specific compiler.
+CC=$lt_compiler_RC
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_RC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_RC
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_RC
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$ac_objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;.so&quot;).
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_RC
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_RC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_RC
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_RC
+archive_expsym_cmds=$lt_archive_expsym_cmds_RC
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_RC
+module_expsym_cmds=$lt_module_expsym_cmds_RC
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_RC
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_RC
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_RC
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_RC
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_RC
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_RC
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_RC
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_RC
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_RC
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_RC
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path_RC&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_RC
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_RC
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_RC
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_RC
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+  if test -f &quot;$ltmain_in&quot;; then
+    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+  fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=&quot;$lt_save_CC&quot;
+
+        ;
+
+      *)
+        { { echo &quot;$as_me:$LINENO: error: Unsupported tag name: $tagname&quot; &gt;&amp;5
+echo &quot;$as_me: error: Unsupported tag name: $tagname&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+        ;
+      esac
+
+      # Append the new tag name to the list of available tags.
+      if test -n &quot;$tagname&quot; ; then
+      available_tags=&quot;$available_tags $tagname&quot;
+    fi
+    fi
+  done
+  IFS=&quot;$lt_save_ifs&quot;
+
+  # Now substitute the updated list of available tags.
+  if eval &quot;sed -e 's/^available_tags=.*\$/available_tags=\&quot;$available_tags\&quot;/' \&quot;$ofile\&quot; &gt; \&quot;${ofile}T\&quot;&quot;; then
+    mv &quot;${ofile}T&quot; &quot;$ofile&quot;
+    chmod +x &quot;$ofile&quot;
+  else
+    rm -f &quot;${ofile}T&quot;
+    { { echo &quot;$as_me:$LINENO: error: unable to update list of available tagged configurations.&quot; &gt;&amp;5
+echo &quot;$as_me: error: unable to update list of available tagged configurations.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+  fi
+fi
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+# Prevent multiple expansion
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo &quot;$as_me:$LINENO: checking how to run the C preprocessor&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to run the C preprocessor... $ECHO_C&quot; &gt;&amp;6
+# On Suns, sometimes $CPP names a directory.
+if test -n &quot;$CPP&quot; &amp;&amp; test -d &quot;$CPP&quot;; then
+  CPP=
+fi
+if test -z &quot;$CPP&quot;; then
+  if test &quot;${ac_cv_prog_CPP+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in &quot;$CC -E&quot; &quot;$CC -E -traditional-cpp&quot; &quot;/lib/cpp&quot;
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+echo &quot;$as_me:$LINENO: result: $CPP&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CPP&quot; &gt;&amp;6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+  # &lt;limits.h&gt; exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;ac_nonexistent.h&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  # Broken: success on invalid input.
+continue
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -n &quot;$ac_tool_prefix&quot;; then
+  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+  do
+    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$CXX&quot;; then
+  ac_cv_prog_CXX=&quot;$CXX&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_CXX=&quot;$ac_tool_prefix$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n &quot;$CXX&quot;; then
+  echo &quot;$as_me:$LINENO: result: $CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$CXX&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+    test -n &quot;$CXX&quot; &amp;&amp; break
+  done
+fi
+if test -z &quot;$CXX&quot;; then
+  ac_ct_CXX=$CXX
+  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_CXX+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_CXX&quot;; then
+  ac_cv_prog_ac_ct_CXX=&quot;$ac_ct_CXX&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_CXX=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n &quot;$ac_ct_CXX&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_CXX&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_CXX&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$ac_ct_CXX&quot; &amp;&amp; break
+done
+test -n &quot;$ac_ct_CXX&quot; || ac_ct_CXX=&quot;g++&quot;
+
+  CXX=$ac_ct_CXX
+fi
+
+
+# Provide some information about the compiler.
+echo &quot;$as_me:$LINENO:&quot; \
+     &quot;checking for C++ compiler version&quot; &gt;&amp;5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }
+
+echo &quot;$as_me:$LINENO: checking whether we are using the GNU C++ compiler&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU C++ compiler... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_cxx_compiler_gnu+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_cxx_compiler_gnu&quot; &gt;&amp;6
+GXX=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+CXXFLAGS=&quot;-g&quot;
+echo &quot;$as_me:$LINENO: checking whether $CXX accepts -g&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether $CXX accepts -g... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_cxx_g+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cxx_g=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cxx_g&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_prog_cxx_g&quot; &gt;&amp;6
+if test &quot;$ac_test_CXXFLAGS&quot; = set; then
+  CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+  if test &quot;$GXX&quot; = yes; then
+    CXXFLAGS=&quot;-g -O2&quot;
+  else
+    CXXFLAGS=&quot;-g&quot;
+  fi
+else
+  if test &quot;$GXX&quot; = yes; then
+    CXXFLAGS=&quot;-O2&quot;
+  else
+    CXXFLAGS=
+  fi
+fi
+for ac_declaration in \
+   '' \
+   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
+   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
+   'extern &quot;C&quot; void exit (int) throw ();' \
+   'extern &quot;C&quot; void exit (int);' \
+   'void exit (int);'
+do
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n &quot;$ac_declaration&quot;; then
+  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
+  echo $ac_declaration      &gt;&gt;confdefs.h
+  echo '#endif'             &gt;&gt;confdefs.h
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc=&quot;$CXX&quot;  am_compiler_list=
+
+echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${am_cv_CXX_dependencies_compiler_type+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp &quot;$am_depcomp&quot; conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CXX_dependencies_compiler_type=none
+  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : &gt; sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
+      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+        continue
+      else
+        break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
+       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
+        am_cv_CXX_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CXX_dependencies_compiler_type=none
+fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;6
+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
+
+
+
+if
+  test &quot;x$enable_dependency_tracking&quot; != xno \
+  &amp;&amp; test &quot;$am_cv_CXX_dependencies_compiler_type&quot; = gcc3; then
+  am__fastdepCXX_TRUE=
+  am__fastdepCXX_FALSE='#'
+else
+  am__fastdepCXX_TRUE='#'
+  am__fastdepCXX_FALSE=
+fi
+
+
+
+if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;unistd.h&gt;
+main()
+{
+#if defined(__GNUC__) &amp;&amp; \
+    ! (__GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 95))
+    return 1;
+#endif
+  return 0;
+}
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+echo &quot;need at least gcc 2.95 to compile correctly&quot;
+exit 1
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+# for constant arguments.  Useless!
+echo &quot;$as_me:$LINENO: checking for working alloca.h&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for working alloca.h... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_working_alloca_h+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;alloca.h&gt;
+int
+main ()
+{
+char *p = (char *) alloca (2 * sizeof (int));
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_working_alloca_h=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_working_alloca_h=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_working_alloca_h&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_working_alloca_h&quot; &gt;&amp;6
+if test $ac_cv_working_alloca_h = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_ALLOCA_H 1
+_ACEOF
+
+fi
+
+echo &quot;$as_me:$LINENO: checking for alloca&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for alloca... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_alloca_works+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+#else
+# ifdef _MSC_VER
+#  include &lt;malloc.h&gt;
+#  define alloca _alloca
+# else
+#  if HAVE_ALLOCA_H
+#   include &lt;alloca.h&gt;
+#  else
+#   ifdef _AIX
+ #pragma alloca
+#   else
+#    ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+#    endif
+#   endif
+#  endif
+# endif
+#endif
+
+int
+main ()
+{
+char *p = (char *) alloca (1);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_alloca_works=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_func_alloca_works=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_alloca_works&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_alloca_works&quot; &gt;&amp;6
+
+if test $ac_cv_func_alloca_works = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_ALLOCA 1
+_ACEOF
+
+else
+  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+# that cause trouble.  Some versions do not even contain alloca or
+# contain a buggy version.  If you still want to use their alloca,
+# use ar to extract alloca.o from them instead of compiling alloca.c.
+
+ALLOCA=alloca.$ac_objext
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define C_ALLOCA 1
+_ACEOF
+
+
+echo &quot;$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether \`alloca.c' needs Cray hooks... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_os_cray+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#if defined(CRAY) &amp;&amp; ! defined(CRAY2)
+webecray
+#else
+wenotbecray
+#endif
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;webecray&quot; &gt;/dev/null 2&gt;&amp;1; then
+  ac_cv_os_cray=yes
+else
+  ac_cv_os_cray=no
+fi
+rm -f conftest*
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_os_cray&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_os_cray&quot; &gt;&amp;6
+if test $ac_cv_os_cray = yes; then
+  for ac_func in _getb67 GETB67 getb67; do
+    as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef $ac_func
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  eval &quot;$as_ac_var=yes&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+eval &quot;$as_ac_var=no&quot;
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define CRAY_STACKSEG_END $ac_func
+_ACEOF
+
+    break
+fi
+
+  done
+fi
+
+echo &quot;$as_me:$LINENO: checking stack direction for C alloca&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking stack direction for C alloca... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_c_stack_direction+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  ac_cv_c_stack_direction=0
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+int
+find_stack_direction ()
+{
+  static char *addr = 0;
+  auto char dummy;
+  if (addr == 0)
+    {
+      addr = &amp;dummy;
+      return find_stack_direction ();
+    }
+  else
+    return (&amp;dummy &gt; addr) ? 1 : -1;
+}
+
+int
+main ()
+{
+  exit (find_stack_direction () &lt; 0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_c_stack_direction=1
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+ac_cv_c_stack_direction=-1
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_c_stack_direction&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_c_stack_direction&quot; &gt;&amp;6
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define STACK_DIRECTION $ac_cv_c_stack_direction
+_ACEOF
+
+
+fi
+
+
+echo &quot;$as_me:$LINENO: checking for getopt_long in -lc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for getopt_long in -lc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_c_getopt_long+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lc  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char getopt_long ();
+int
+main ()
+{
+getopt_long ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_c_getopt_long=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_c_getopt_long=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_c_getopt_long&quot; &gt;&amp;6
+if test $ac_cv_lib_c_getopt_long = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_GETOPT_LONG 1
+_ACEOF
+
+fi
+
+
+echo &quot;$as_me:$LINENO: checking for alarm in -lc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for alarm in -lc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_lib_c_alarm+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS=&quot;-lc  $LIBS&quot;
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char alarm ();
+int
+main ()
+{
+alarm ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_c_alarm=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_lib_c_alarm=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_alarm&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_lib_c_alarm&quot; &gt;&amp;6
+if test $ac_cv_lib_c_alarm = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_ALARM 1
+_ACEOF
+
+fi
+
+
+
+for ac_header in netinet/in.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+for ac_header in string.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+for ac_header in libintl.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+echo &quot;$as_me:$LINENO: checking for an ANSI C-conforming const&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for an ANSI C-conforming const... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_c_const+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+  /* Ultrix mips cc rejects this.  */
+  typedef int charset[2];
+  const charset x;
+  /* SunOS 4.1.1 cc rejects this.  */
+  char const *const *ccp;
+  char **p;
+  /* NEC SVR4.0.2 mips cc rejects this.  */
+  struct point {int x, y;};
+  static struct point const zero = {0,0};
+  /* AIX XL C 1.02.0.0 rejects this.
+     It does not let you subtract one const X* pointer from another in
+     an arm of an if-expression whose if-part is not a constant
+     expression */
+  const char *g = &quot;string&quot;;
+  ccp = &amp;g + (g ? g-g : 0);
+  /* HPUX 7.0 cc rejects these. */
+  ++ccp;
+  p = (char**) ccp;
+  ccp = (char const *const *) p;
+  { /* SCO 3.2v4 cc rejects this.  */
+    char *t;
+    char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+    *t++ = 0;
+  }
+  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
+    int x[] = {25, 17};
+    const int *foo = &amp;x[0];
+    ++foo;
+  }
+  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+    typedef const int *iptr;
+    iptr p = 0;
+    ++p;
+  }
+  { /* AIX XL C 1.02.0.0 rejects this saying
+       &quot;k.c&quot;, line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+    struct s { int j; const int *ap[3]; };
+    struct s *b; b-&gt;j = 5;
+  }
+  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+    const int foo = 10;
+  }
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_c_const=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_c_const=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_c_const&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_c_const&quot; &gt;&amp;6
+if test $ac_cv_c_const = no; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define const
+_ACEOF
+
+fi
+
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;vsnprintf&quot; &gt;/dev/null 2&gt;&amp;1; then
+  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_VSNPRINTF 1
+_ACEOF
+
+fi
+rm -f conftest*
+
+
+echo &quot;$as_me:$LINENO: checking for unsigned short int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for unsigned short int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_unsigned_short_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((unsigned short int *) 0)
+  return 0;
+if (sizeof (unsigned short int))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_unsigned_short_int=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_unsigned_short_int=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_unsigned_short_int&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking size of unsigned short int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking size of unsigned short int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_sizeof_unsigned_short_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$ac_cv_type_unsigned_short_int&quot; = yes; then
+  # The cast to unsigned long works around a bug in the HP C Compiler
+  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+  # This bug is HP SR number 8606223364.
+  if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
+'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; } ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+long longval () { return (long) (sizeof (unsigned short int)); }
+unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if (((long) (sizeof (unsigned short int))) &lt; 0)
+    {
+      long i = longval ();
+      if (i != ((long) (sizeof (unsigned short int))))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != ((long) (sizeof (unsigned short int))))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+else
+  ac_cv_sizeof_unsigned_short_int=0
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;6
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
+_ACEOF
+
+
+echo &quot;$as_me:$LINENO: checking for unsigned long int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for unsigned long int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_unsigned_long_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((unsigned long int *) 0)
+  return 0;
+if (sizeof (unsigned long int))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_unsigned_long_int=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_unsigned_long_int=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_int&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking size of unsigned long int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking size of unsigned long int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_sizeof_unsigned_long_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$ac_cv_type_unsigned_long_int&quot; = yes; then
+  # The cast to unsigned long works around a bug in the HP C Compiler
+  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+  # This bug is HP SR number 8606223364.
+  if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
+'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; } ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+long longval () { return (long) (sizeof (unsigned long int)); }
+unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if (((long) (sizeof (unsigned long int))) &lt; 0)
+    {
+      long i = longval ();
+      if (i != ((long) (sizeof (unsigned long int))))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != ((long) (sizeof (unsigned long int))))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+else
+  ac_cv_sizeof_unsigned_long_int=0
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;6
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
+_ACEOF
+
+
+echo &quot;$as_me:$LINENO: checking for unsigned int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for unsigned int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_unsigned_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((unsigned int *) 0)
+  return 0;
+if (sizeof (unsigned int))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_unsigned_int=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_unsigned_int=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_unsigned_int&quot; &gt;&amp;6
+
+echo &quot;$as_me:$LINENO: checking size of unsigned int&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking size of unsigned int... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_sizeof_unsigned_int+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$ac_cv_type_unsigned_int&quot; = yes; then
+  # The cast to unsigned long works around a bug in the HP C Compiler
+  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+  # This bug is HP SR number 8606223364.
+  if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
+'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; } ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+long longval () { return (long) (sizeof (unsigned int)); }
+unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if (((long) (sizeof (unsigned int))) &lt; 0)
+    {
+      long i = longval ();
+      if (i != ((long) (sizeof (unsigned int))))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != ((long) (sizeof (unsigned int))))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_sizeof_unsigned_int=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
+See \`config.log' for more details.&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77
+See \`config.log' for more details.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+else
+  ac_cv_sizeof_unsigned_int=0
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_int&quot; &gt;&amp;6
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
+_ACEOF
+
+
+
+GSM_VERSION=&quot;1:4:0&quot;
+
+
+LINGUAS=&quot;de&quot;
+ALL_LINGUAS=$LINGUAS
+
+
+        MKINSTALLDIRS=
+  if test -n &quot;$ac_aux_dir&quot;; then
+    case &quot;$ac_aux_dir&quot; in
+      /*) MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot; ;;
+      *) MKINSTALLDIRS=&quot;\$(top_builddir)/$ac_aux_dir/mkinstalldirs&quot; ;;
+    esac
+  fi
+  if test -z &quot;$MKINSTALLDIRS&quot;; then
+    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
+  fi
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether NLS is requested&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether NLS is requested... $ECHO_C&quot; &gt;&amp;6
+    # Check whether --enable-nls or --disable-nls was given.
+if test &quot;${enable_nls+set}&quot; = set; then
+  enableval=&quot;$enable_nls&quot;
+  USE_NLS=$enableval
+else
+  USE_NLS=yes
+fi;
+  echo &quot;$as_me:$LINENO: result: $USE_NLS&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$USE_NLS&quot; &gt;&amp;6
+
+
+
+
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat &gt;conf$$.file &lt;&lt;_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
+  ac_executable_p=&quot;test -x&quot;
+else
+  ac_executable_p=&quot;test -f&quot;
+fi
+rm -f conf$$.file
+
+# Extract the first word of &quot;msgfmt&quot;, so it can be a program name with args.
+set dummy msgfmt; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_path_MSGFMT+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case &quot;$MSGFMT&quot; in
+  [\\/]* | ?:[\\/]*)
+    ac_cv_path_MSGFMT=&quot;$MSGFMT&quot; # Let the user override the test with a path.
+    ;;
+  *)
+    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+    for ac_dir in $PATH; do
+      IFS=&quot;$ac_save_IFS&quot;
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
+          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
+          if $ac_dir/$ac_word --statistics /dev/null &gt;&amp;5 2&gt;&amp;1 &amp;&amp;
+     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+            ac_cv_path_MSGFMT=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
+            break 2
+          fi
+        fi
+      done
+    done
+    IFS=&quot;$ac_save_IFS&quot;
+  test -z &quot;$ac_cv_path_MSGFMT&quot; &amp;&amp; ac_cv_path_MSGFMT=&quot;:&quot;
+    ;;
+esac
+fi
+MSGFMT=&quot;$ac_cv_path_MSGFMT&quot;
+if test &quot;$MSGFMT&quot; != &quot;:&quot;; then
+  echo &quot;$as_me:$LINENO: result: $MSGFMT&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$MSGFMT&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  # Extract the first word of &quot;gmsgfmt&quot;, so it can be a program name with args.
+set dummy gmsgfmt; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_path_GMSGFMT+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case $GMSGFMT in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_GMSGFMT=&quot;$GMSGFMT&quot; # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_path_GMSGFMT=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_path_GMSGFMT&quot; &amp;&amp; ac_cv_path_GMSGFMT=&quot;$MSGFMT&quot;
+  ;;
+esac
+fi
+GMSGFMT=$ac_cv_path_GMSGFMT
+
+if test -n &quot;$GMSGFMT&quot;; then
+  echo &quot;$as_me:$LINENO: result: $GMSGFMT&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$GMSGFMT&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat &gt;conf$$.file &lt;&lt;_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
+  ac_executable_p=&quot;test -x&quot;
+else
+  ac_executable_p=&quot;test -f&quot;
+fi
+rm -f conf$$.file
+
+# Extract the first word of &quot;xgettext&quot;, so it can be a program name with args.
+set dummy xgettext; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_path_XGETTEXT+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case &quot;$XGETTEXT&quot; in
+  [\\/]* | ?:[\\/]*)
+    ac_cv_path_XGETTEXT=&quot;$XGETTEXT&quot; # Let the user override the test with a path.
+    ;;
+  *)
+    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+    for ac_dir in $PATH; do
+      IFS=&quot;$ac_save_IFS&quot;
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
+          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
+          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;&amp;5 2&gt;&amp;1 &amp;&amp;
+     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+            ac_cv_path_XGETTEXT=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
+            break 2
+          fi
+        fi
+      done
+    done
+    IFS=&quot;$ac_save_IFS&quot;
+  test -z &quot;$ac_cv_path_XGETTEXT&quot; &amp;&amp; ac_cv_path_XGETTEXT=&quot;:&quot;
+    ;;
+esac
+fi
+XGETTEXT=&quot;$ac_cv_path_XGETTEXT&quot;
+if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+  echo &quot;$as_me:$LINENO: result: $XGETTEXT&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$XGETTEXT&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+    rm -f messages.po
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat &gt;conf$$.file &lt;&lt;_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
+  ac_executable_p=&quot;test -x&quot;
+else
+  ac_executable_p=&quot;test -f&quot;
+fi
+rm -f conf$$.file
+
+# Extract the first word of &quot;msgmerge&quot;, so it can be a program name with args.
+set dummy msgmerge; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_path_MSGMERGE+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  case &quot;$MSGMERGE&quot; in
+  [\\/]* | ?:[\\/]*)
+    ac_cv_path_MSGMERGE=&quot;$MSGMERGE&quot; # Let the user override the test with a path.
+    ;;
+  *)
+    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+    for ac_dir in $PATH; do
+      IFS=&quot;$ac_save_IFS&quot;
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
+          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
+          if $ac_dir/$ac_word --update -q /dev/null /dev/null &gt;&amp;5 2&gt;&amp;1; then
+            ac_cv_path_MSGMERGE=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
+            break 2
+          fi
+        fi
+      done
+    done
+    IFS=&quot;$ac_save_IFS&quot;
+  test -z &quot;$ac_cv_path_MSGMERGE&quot; &amp;&amp; ac_cv_path_MSGMERGE=&quot;:&quot;
+    ;;
+esac
+fi
+MSGMERGE=&quot;$ac_cv_path_MSGMERGE&quot;
+if test &quot;$MSGMERGE&quot; != &quot;:&quot;; then
+  echo &quot;$as_me:$LINENO: result: $MSGMERGE&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$MSGMERGE&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+
+      if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
+            if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+      : ;
+    else
+      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
+      echo &quot;$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;5
+echo &quot;${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;6
+      GMSGFMT=&quot;:&quot;
+    fi
+  fi
+
+      if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+      : ;
+    else
+      echo &quot;$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;5
+echo &quot;${ECHO_T}found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;6
+      XGETTEXT=&quot;:&quot;
+    fi
+        rm -f messages.po
+  fi
+
+            ac_config_commands=&quot;$ac_config_commands default-1&quot;
+
+
+
+    echo &quot;$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU C Library 2 or newer... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_gnu_library_2+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;features.h&gt;
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ &gt;= 2)
+  Lucky GNU user
+ #endif
+#endif
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;Lucky GNU user&quot; &gt;/dev/null 2&gt;&amp;1; then
+  ac_cv_gnu_library_2=yes
+else
+  ac_cv_gnu_library_2=no
+fi
+rm -f conftest*
+
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_gnu_library_2&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_gnu_library_2&quot; &gt;&amp;6
+
+    GLIBC2=&quot;$ac_cv_gnu_library_2&quot;
+
+
+if test -n &quot;$ac_tool_prefix&quot;; then
+  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$RANLIB&quot;; then
+  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n &quot;$RANLIB&quot;; then
+  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+fi
+if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$ac_ct_RANLIB&quot;; then
+  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n &quot;$ac_ct_RANLIB&quot;; then
+  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  RANLIB=$ac_ct_RANLIB
+else
+  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
+fi
+
+echo &quot;$as_me:$LINENO: checking for library containing strerror&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for library containing strerror... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_search_strerror+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_func_search_save_LIBS=$LIBS
+ac_cv_search_strerror=no
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char strerror ();
+int
+main ()
+{
+strerror ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_search_strerror=&quot;none required&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+if test &quot;$ac_cv_search_strerror&quot; = no; then
+  for ac_lib in cposix; do
+    LIBS=&quot;-l$ac_lib  $ac_func_search_save_LIBS&quot;
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char strerror ();
+int
+main ()
+{
+strerror ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_search_strerror=&quot;-l$ac_lib&quot;
+break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+  done
+fi
+LIBS=$ac_func_search_save_LIBS
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_search_strerror&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_search_strerror&quot; &gt;&amp;6
+if test &quot;$ac_cv_search_strerror&quot; != no; then
+  test &quot;$ac_cv_search_strerror&quot; = &quot;none required&quot; || LIBS=&quot;$ac_cv_search_strerror $LIBS&quot;
+
+fi
+
+
+  echo &quot;$as_me:$LINENO: checking for signed&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for signed... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${bh_cv_c_signed+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+signed char x;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  bh_cv_c_signed=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+bh_cv_c_signed=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $bh_cv_c_signed&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$bh_cv_c_signed&quot; &gt;&amp;6
+  if test $bh_cv_c_signed = no; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define signed
+_ACEOF
+
+  fi
+
+echo &quot;$as_me:$LINENO: checking for inline&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for inline... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_c_inline+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_c_inline=$ac_kw; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_c_inline&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_c_inline&quot; &gt;&amp;6
+
+
+case $ac_cv_c_inline in
+  inline | yes) ;;
+  *)
+    case $ac_cv_c_inline in
+      no) ac_val=;;
+      *) ac_val=$ac_cv_c_inline;;
+    esac
+    cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+    ;;
+esac
+
+echo &quot;$as_me:$LINENO: checking for off_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for off_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_off_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((off_t *) 0)
+  return 0;
+if (sizeof (off_t))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_off_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_off_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_off_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_off_t&quot; &gt;&amp;6
+if test $ac_cv_type_off_t = yes; then
+  :
+else
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define off_t long
+_ACEOF
+
+fi
+
+echo &quot;$as_me:$LINENO: checking for size_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for size_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_size_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((size_t *) 0)
+  return 0;
+if (sizeof (size_t))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_size_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_size_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_size_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_size_t&quot; &gt;&amp;6
+if test $ac_cv_type_size_t = yes; then
+  :
+else
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define size_t unsigned
+_ACEOF
+
+fi
+
+
+  echo &quot;$as_me:$LINENO: checking for long long&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for long long... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_long_long+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+long long ll = 1LL; int i = 63;
+int
+main ()
+{
+long long llmax = (long long) -1;
+     return ll &lt;&lt; i | ll &gt;&gt; i | llmax / ll | llmax % ll;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_long_long=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_long_long=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_long_long&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_long_long&quot; &gt;&amp;6
+  if test $ac_cv_type_long_long = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_LONG_LONG 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for long double&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for long double... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_c_long_double+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$GCC&quot; = yes; then
+       gt_cv_c_long_double=yes
+     else
+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
+         long double foo = 0.0;
+         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
+         int array [2*(sizeof(long double) &gt;= sizeof(double)) - 1];
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_c_long_double=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_c_long_double=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+     fi
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_c_long_double&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_c_long_double&quot; &gt;&amp;6
+  if test $gt_cv_c_long_double = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_LONG_DOUBLE 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for wchar_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for wchar_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_c_wchar_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+       wchar_t foo = (wchar_t)'\0';
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_c_wchar_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_c_wchar_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_c_wchar_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_c_wchar_t&quot; &gt;&amp;6
+  if test $gt_cv_c_wchar_t = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_WCHAR_T 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for wint_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for wint_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_c_wint_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;wchar.h&gt;
+       wint_t foo = (wchar_t)'\0';
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_c_wint_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_c_wint_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_c_wint_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_c_wint_t&quot; &gt;&amp;6
+  if test $gt_cv_c_wint_t = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_WINT_T 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gl_cv_header_inttypes_h+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;sys/types.h&gt;
+#include &lt;inttypes.h&gt;
+int
+main ()
+{
+uintmax_t i = (uintmax_t) -1;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gl_cv_header_inttypes_h=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gl_cv_header_inttypes_h=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gl_cv_header_inttypes_h&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gl_cv_header_inttypes_h&quot; &gt;&amp;6
+  if test $gl_cv_header_inttypes_h = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_INTTYPES_H_WITH_UINTMAX 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for stdint.h&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for stdint.h... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gl_cv_header_stdint_h+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;sys/types.h&gt;
+#include &lt;stdint.h&gt;
+int
+main ()
+{
+uintmax_t i = (uintmax_t) -1;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gl_cv_header_stdint_h=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gl_cv_header_stdint_h=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gl_cv_header_stdint_h&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gl_cv_header_stdint_h&quot; &gt;&amp;6
+  if test $gl_cv_header_stdint_h = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_STDINT_H_WITH_UINTMAX 1
+_ACEOF
+
+  fi
+
+
+
+
+  echo &quot;$as_me:$LINENO: checking for intmax_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for intmax_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_c_intmax_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;stddef.h&gt;
+#include &lt;stdlib.h&gt;
+#if HAVE_STDINT_H_WITH_UINTMAX
+#include &lt;stdint.h&gt;
+#endif
+#if HAVE_INTTYPES_H_WITH_UINTMAX
+#include &lt;inttypes.h&gt;
+#endif
+
+int
+main ()
+{
+intmax_t x = -1;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_c_intmax_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_c_intmax_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_c_intmax_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_c_intmax_t&quot; &gt;&amp;6
+  if test $gt_cv_c_intmax_t = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_INTMAX_T 1
+_ACEOF
+
+  fi
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether printf() supports POSIX/XSI format strings... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_printf_posix+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+      if test &quot;$cross_compiling&quot; = yes; then
+
+        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
+  notposix
+#endif
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;notposix&quot; &gt;/dev/null 2&gt;&amp;1; then
+  gt_cv_func_printf_posix=&quot;guessing no&quot;
+else
+  gt_cv_func_printf_posix=&quot;guessing yes&quot;
+fi
+rm -f conftest*
+
+
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;stdio.h&gt;
+#include &lt;string.h&gt;
+/* The string &quot;%2$d %1$d&quot;, with dollar characters protected from the shell's
+   dollar expansion (possibly an autoconf bug).  */
+static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
+static char buf[100];
+int main ()
+{
+  sprintf (buf, format, 33, 55);
+  return (strcmp (buf, &quot;55 33&quot;) != 0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_printf_posix=yes
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+gt_cv_func_printf_posix=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_printf_posix&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_printf_posix&quot; &gt;&amp;6
+  case $gt_cv_func_printf_posix in
+    *yes)
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_POSIX_PRINTF 1
+_ACEOF
+
+      ;;
+  esac
+
+
+
+for ac_header in stdlib.h unistd.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_func in getpagesize
+do
+as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef $ac_func
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  eval &quot;$as_ac_var=yes&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+eval &quot;$as_ac_var=no&quot;
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+echo &quot;$as_me:$LINENO: checking for working mmap&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for working mmap... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_func_mmap_fixed_mapped+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  ac_cv_func_mmap_fixed_mapped=no
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+/* malloc might have been renamed as rpl_malloc. */
+#undef malloc
+
+/* Thanks to Mike Haertel and Jim Avera for this test.
+   Here is a matrix of mmap possibilities:
+        mmap private not fixed
+        mmap private fixed at somewhere currently unmapped
+        mmap private fixed at somewhere already mapped
+        mmap shared not fixed
+        mmap shared fixed at somewhere currently unmapped
+        mmap shared fixed at somewhere already mapped
+   For private mappings, we should verify that changes cannot be read()
+   back from the file, nor mmap's back from the file at a different
+   address.  (There have been systems where private was not correctly
+   implemented like the infamous i386 svr4.0, and systems where the
+   VM page cache was not coherent with the file system buffer cache
+   like early versions of FreeBSD and possibly contemporary NetBSD.)
+   For shared mappings, we should conversely verify that changes get
+   propagated back to all the places they're supposed to be.
+
+   Grep wants private fixed already mapped.
+   The main things grep needs to know about mmap are:
+   * does it exist and is it safe to write into the mmap'd area
+   * how to use it (BSD variants)  */
+
+#include &lt;fcntl.h&gt;
+#include &lt;sys/mman.h&gt;
+
+#if !STDC_HEADERS &amp;&amp; !HAVE_STDLIB_H
+char *malloc ();
+#endif
+
+/* This mess was copied from the GNU getpagesize.h.  */
+#if !HAVE_GETPAGESIZE
+/* Assume that all systems that can run configure have sys/param.h.  */
+# if !HAVE_SYS_PARAM_H
+#  define HAVE_SYS_PARAM_H 1
+# endif
+
+# ifdef _SC_PAGESIZE
+#  define getpagesize() sysconf(_SC_PAGESIZE)
+# else /* no _SC_PAGESIZE */
+#  if HAVE_SYS_PARAM_H
+#   include &lt;sys/param.h&gt;
+#   ifdef EXEC_PAGESIZE
+#    define getpagesize() EXEC_PAGESIZE
+#   else /* no EXEC_PAGESIZE */
+#    ifdef NBPG
+#     define getpagesize() NBPG * CLSIZE
+#     ifndef CLSIZE
+#      define CLSIZE 1
+#     endif /* no CLSIZE */
+#    else /* no NBPG */
+#     ifdef NBPC
+#      define getpagesize() NBPC
+#     else /* no NBPC */
+#      ifdef PAGESIZE
+#       define getpagesize() PAGESIZE
+#      endif /* PAGESIZE */
+#     endif /* no NBPC */
+#    endif /* no NBPG */
+#   endif /* no EXEC_PAGESIZE */
+#  else /* no HAVE_SYS_PARAM_H */
+#   define getpagesize() 8192        /* punt totally */
+#  endif /* no HAVE_SYS_PARAM_H */
+# endif /* no _SC_PAGESIZE */
+
+#endif /* no HAVE_GETPAGESIZE */
+
+int
+main ()
+{
+  char *data, *data2, *data3;
+  int i, pagesize;
+  int fd;
+
+  pagesize = getpagesize ();
+
+  /* First, make a file with some known garbage in it. */
+  data = (char *) malloc (pagesize);
+  if (!data)
+    exit (1);
+  for (i = 0; i &lt; pagesize; ++i)
+    *(data + i) = rand ();
+  umask (0);
+  fd = creat (&quot;conftest.mmap&quot;, 0600);
+  if (fd &lt; 0)
+    exit (1);
+  if (write (fd, data, pagesize) != pagesize)
+    exit (1);
+  close (fd);
+
+  /* Next, try to mmap the file at a fixed address which already has
+     something else allocated at it.  If we can, also make sure that
+     we see the same garbage.  */
+  fd = open (&quot;conftest.mmap&quot;, O_RDWR);
+  if (fd &lt; 0)
+    exit (1);
+  data2 = (char *) malloc (2 * pagesize);
+  if (!data2)
+    exit (1);
+  data2 += (pagesize - ((long) data2 &amp; (pagesize - 1))) &amp; (pagesize - 1);
+  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
+                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
+    exit (1);
+  for (i = 0; i &lt; pagesize; ++i)
+    if (*(data + i) != *(data2 + i))
+      exit (1);
+
+  /* Finally, make sure that changes to the mapped area do not
+     percolate back to the file as seen by read().  (This is a bug on
+     some variants of i386 svr4.0.)  */
+  for (i = 0; i &lt; pagesize; ++i)
+    *(data2 + i) = *(data2 + i) + 1;
+  data3 = (char *) malloc (pagesize);
+  if (!data3)
+    exit (1);
+  if (read (fd, data3, pagesize) != pagesize)
+    exit (1);
+  for (i = 0; i &lt; pagesize; ++i)
+    if (*(data + i) != *(data3 + i))
+      exit (1);
+  close (fd);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_func_mmap_fixed_mapped=yes
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+ac_cv_func_mmap_fixed_mapped=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;6
+if test $ac_cv_func_mmap_fixed_mapped = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_MMAP 1
+_ACEOF
+
+fi
+rm -f conftest.mmap
+
+
+    echo &quot;$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_gnu_library_2_1+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;features.h&gt;
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
+  Lucky GNU user
+ #endif
+#endif
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;Lucky GNU user&quot; &gt;/dev/null 2&gt;&amp;1; then
+  ac_cv_gnu_library_2_1=yes
+else
+  ac_cv_gnu_library_2_1=no
+fi
+rm -f conftest*
+
+
+
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_gnu_library_2_1&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_gnu_library_2_1&quot; &gt;&amp;6
+
+    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
+
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether integer division by zero raises SIGFPE&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether integer division by zero raises SIGFPE... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_int_divbyzero_sigfpe+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+      if test &quot;$cross_compiling&quot; = yes; then
+
+          # Guess based on the CPU.
+          case &quot;$host_cpu&quot; in
+            alpha* | i3456786 | m68k | s390*)
+              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
+            *)
+              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
+          esac
+
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;stdlib.h&gt;
+#include &lt;signal.h&gt;
+
+static void
+#ifdef __cplusplus
+sigfpe_handler (int sig)
+#else
+sigfpe_handler (sig) int sig;
+#endif
+{
+  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
+  exit (sig != SIGFPE);
+}
+
+int x = 1;
+int y = 0;
+int z;
+int nan;
+
+int main ()
+{
+  signal (SIGFPE, sigfpe_handler);
+/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
+#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
+  signal (SIGTRAP, sigfpe_handler);
+#endif
+/* Linux/SPARC yields signal SIGILL.  */
+#if defined (__sparc__) &amp;&amp; defined (__linux__)
+  signal (SIGILL, sigfpe_handler);
+#endif
+
+  z = x / y;
+  nan = y / y;
+  exit (1);
+}
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_int_divbyzero_sigfpe=yes
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+gt_cv_int_divbyzero_sigfpe=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;6
+  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
+    *yes) value=1;;
+    *) value=0;;
+  esac
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define INTDIV0_RAISES_SIGFPE $value
+_ACEOF
+
+
+
+  echo &quot;$as_me:$LINENO: checking for unsigned long long&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for unsigned long long... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_unsigned_long_long+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+unsigned long long ull = 1ULL; int i = 63;
+int
+main ()
+{
+unsigned long long ullmax = (unsigned long long) -1;
+     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_unsigned_long_long=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_unsigned_long_long=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_long&quot; &gt;&amp;6
+  if test $ac_cv_type_unsigned_long_long = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_UNSIGNED_LONG_LONG 1
+_ACEOF
+
+  fi
+
+
+
+
+  if test $gl_cv_header_inttypes_h = no &amp;&amp; test $gl_cv_header_stdint_h = no; then
+
+    test $ac_cv_type_unsigned_long_long = yes \
+      &amp;&amp; ac_type='unsigned long long' \
+      || ac_type='unsigned long'
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define uintmax_t $ac_type
+_ACEOF
+
+  else
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_UINTMAX_T 1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_header_inttypes_h+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;sys/types.h&gt;
+#include &lt;inttypes.h&gt;
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_header_inttypes_h=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_header_inttypes_h=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_header_inttypes_h&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_header_inttypes_h&quot; &gt;&amp;6
+  if test $gt_cv_header_inttypes_h = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_INTTYPES_H 1
+_ACEOF
+
+  fi
+
+
+
+  if test $gt_cv_header_inttypes_h = yes; then
+    echo &quot;$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_inttypes_pri_broken+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;inttypes.h&gt;
+#ifdef PRId32
+char *p = PRId32;
+#endif
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_inttypes_pri_broken=no
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_inttypes_pri_broken=yes
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_inttypes_pri_broken&quot; &gt;&amp;6
+  fi
+  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define PRI_MACROS_BROKEN 1
+_ACEOF
+
+  fi
+
+
+
+for ac_header in stdint.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+    echo &quot;$as_me:$LINENO: checking for SIZE_MAX&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for SIZE_MAX... $ECHO_C&quot; &gt;&amp;6
+  result=
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;limits.h&gt;
+#if HAVE_STDINT_H
+#include &lt;stdint.h&gt;
+#endif
+#ifdef SIZE_MAX
+Found it
+#endif
+
+_ACEOF
+if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+  $EGREP &quot;Found it&quot; &gt;/dev/null 2&gt;&amp;1; then
+  result=yes
+fi
+rm -f conftest*
+
+  if test -z &quot;$result&quot;; then
+                    if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 / 10) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 / 10) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) res_hi=$ac_lo;;
+'') result=? ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+long longval () { return ~(size_t)0 / 10; }
+unsigned long ulongval () { return ~(size_t)0 / 10; }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if ((~(size_t)0 / 10) &lt; 0)
+    {
+      long i = longval ();
+      if (i != (~(size_t)0 / 10))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != (~(size_t)0 / 10))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  res_hi=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+result=?
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+    if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 % 10) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 % 10) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) res_lo=$ac_lo;;
+'') result=? ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+long longval () { return ~(size_t)0 % 10; }
+unsigned long ulongval () { return ~(size_t)0 % 10; }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if ((~(size_t)0 % 10) &lt; 0)
+    {
+      long i = longval ();
+      if (i != (~(size_t)0 % 10))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != (~(size_t)0 % 10))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  res_lo=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+result=?
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+    if test &quot;$cross_compiling&quot; = yes; then
+  # Depending upon the size, compute the lo and hi bounds.
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &gt;= 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr $ac_mid + 1`
+                    if test $ac_lo -le $ac_mid; then
+                      ac_lo= ac_hi=
+                      break
+                    fi
+                    ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt; 0)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &gt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_lo=$ac_mid; break
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_hi=`expr '(' $ac_mid ')' - 1`
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       ac_mid=`expr 2 '*' $ac_mid`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo= ac_hi=
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+int
+main ()
+{
+static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt;= $ac_mid)];
+test_array [0] = 0
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_hi=$ac_mid
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) fits_in_uint=$ac_lo;;
+'') result=? ;;
+esac
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
+echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+long longval () { return sizeof (size_t) &lt;= sizeof (unsigned int); }
+unsigned long ulongval () { return sizeof (size_t) &lt;= sizeof (unsigned int); }
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+int
+main ()
+{
+
+  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+  if (! f)
+    exit (1);
+  if ((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt; 0)
+    {
+      long i = longval ();
+      if (i != (sizeof (size_t) &lt;= sizeof (unsigned int)))
+        exit (1);
+      fprintf (f, &quot;%ld\n&quot;, i);
+    }
+  else
+    {
+      unsigned long i = ulongval ();
+      if (i != (sizeof (size_t) &lt;= sizeof (unsigned int)))
+        exit (1);
+      fprintf (f, &quot;%lu\n&quot;, i);
+    }
+  exit (ferror (f) || fclose (f) != 0);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  fits_in_uint=`cat conftest.val`
+else
+  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+( exit $ac_status )
+result=?
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+rm -f conftest.val
+    if test &quot;$fits_in_uint&quot; = 1; then
+                  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stddef.h&gt;
+        extern size_t foo;
+        extern unsigned long foo;
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  fits_in_uint=0
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+    fi
+    if test -z &quot;$result&quot;; then
+      if test &quot;$fits_in_uint&quot; = 1; then
+        result=&quot;$res_hi$res_lo&quot;U
+      else
+        result=&quot;$res_hi$res_lo&quot;UL
+      fi
+    else
+            result='~(size_t)0'
+    fi
+  fi
+  echo &quot;$as_me:$LINENO: result: $result&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$result&quot; &gt;&amp;6
+  if test &quot;$result&quot; != yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define SIZE_MAX $result
+_ACEOF
+
+  fi
+
+
+
+
+
+for ac_header in stdint.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+    echo &quot;$as_me:$LINENO: checking for CFPreferencesCopyAppValue&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for CFPreferencesCopyAppValue... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_CFPreferencesCopyAppValue+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;CFPreferences.h&gt;
+int
+main ()
+{
+CFPreferencesCopyAppValue(NULL, NULL)
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_CFPreferencesCopyAppValue=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_CFPreferencesCopyAppValue=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;6
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
+_ACEOF
+
+  fi
+    echo &quot;$as_me:$LINENO: checking for CFLocaleCopyCurrent&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for CFLocaleCopyCurrent... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_CFLocaleCopyCurrent+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;CFLocale.h&gt;
+int
+main ()
+{
+CFLocaleCopyCurrent();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_CFLocaleCopyCurrent=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_CFLocaleCopyCurrent=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;6
+  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_CFLOCALECOPYCURRENT 1
+_ACEOF
+
+  fi
+  INTL_MACOSX_LIBS=
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
+  fi
+
+
+
+      if test &quot;X$prefix&quot; = &quot;XNONE&quot;; then
+    acl_final_prefix=&quot;$ac_default_prefix&quot;
+  else
+    acl_final_prefix=&quot;$prefix&quot;
+  fi
+  if test &quot;X$exec_prefix&quot; = &quot;XNONE&quot;; then
+    acl_final_exec_prefix='${prefix}'
+  else
+    acl_final_exec_prefix=&quot;$exec_prefix&quot;
+  fi
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  eval acl_final_exec_prefix=\&quot;$acl_final_exec_prefix\&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test &quot;${with_gnu_ld+set}&quot; = set; then
+  withval=&quot;$with_gnu_ld&quot;
+  test &quot;$withval&quot; = no || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi;
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+ac_prog=ld
+if test &quot;$GCC&quot; = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  echo &quot;$as_me:$LINENO: checking for ld used by GCC&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ld used by GCC... $ECHO_C&quot; &gt;&amp;6
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | [A-Za-z]:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+  &quot;&quot;)
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test &quot;$with_gnu_ld&quot; = yes; then
+  echo &quot;$as_me:$LINENO: checking for GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for GNU ld... $ECHO_C&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: checking for non-GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for non-GNU ld... $ECHO_C&quot; &gt;&amp;6
+fi
+if test &quot;${acl_cv_path_LD+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -z &quot;$LD&quot;; then
+  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR-:}&quot;
+  for ac_dir in $PATH; do
+    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+      acl_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some GNU ld's only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `&quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null` in
+      *GNU* | *'with BFD'*)
+        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break ;;
+      *)
+        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break ;;
+      esac
+    fi
+  done
+  IFS=&quot;$ac_save_ifs&quot;
+else
+  acl_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+fi
+fi
+
+LD=&quot;$acl_cv_path_LD&quot;
+if test -n &quot;$LD&quot;; then
+  echo &quot;$as_me:$LINENO: result: $LD&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$LD&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+test -z &quot;$LD&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable ld found in \$PATH&quot; &gt;&amp;5
+echo &quot;$as_me: error: no acceptable ld found in \$PATH&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+echo &quot;$as_me:$LINENO: checking if the linker ($LD) is GNU ld&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking if the linker ($LD) is GNU ld... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${acl_cv_prog_gnu_ld+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
+*GNU* | *'with BFD'*)
+  acl_cv_prog_gnu_ld=yes ;;
+*)
+  acl_cv_prog_gnu_ld=no ;;
+esac
+fi
+echo &quot;$as_me:$LINENO: result: $acl_cv_prog_gnu_ld&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$acl_cv_prog_gnu_ld&quot; &gt;&amp;6
+with_gnu_ld=$acl_cv_prog_gnu_ld
+
+
+
+
+                                                echo &quot;$as_me:$LINENO: checking for shared library run path origin&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for shared library run path origin... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${acl_cv_rpath+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+    CC=&quot;$CC&quot; GCC=&quot;$GCC&quot; LDFLAGS=&quot;$LDFLAGS&quot; LD=&quot;$LD&quot; with_gnu_ld=&quot;$with_gnu_ld&quot; \
+    ${CONFIG_SHELL-/bin/sh} &quot;$ac_aux_dir/config.rpath&quot; &quot;$host&quot; &gt; conftest.sh
+    . ./conftest.sh
+    rm -f ./conftest.sh
+    acl_cv_rpath=done
+
+fi
+echo &quot;$as_me:$LINENO: result: $acl_cv_rpath&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$acl_cv_rpath&quot; &gt;&amp;6
+  wl=&quot;$acl_cv_wl&quot;
+  libext=&quot;$acl_cv_libext&quot;
+  shlibext=&quot;$acl_cv_shlibext&quot;
+  hardcode_libdir_flag_spec=&quot;$acl_cv_hardcode_libdir_flag_spec&quot;
+  hardcode_libdir_separator=&quot;$acl_cv_hardcode_libdir_separator&quot;
+  hardcode_direct=&quot;$acl_cv_hardcode_direct&quot;
+  hardcode_minus_L=&quot;$acl_cv_hardcode_minus_L&quot;
+    # Check whether --enable-rpath or --disable-rpath was given.
+if test &quot;${enable_rpath+set}&quot; = set; then
+  enableval=&quot;$enable_rpath&quot;
+  :
+else
+  enable_rpath=yes
+fi;
+
+
+
+
+
+
+
+    use_additional=yes
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+
+    eval additional_includedir=\&quot;$includedir\&quot;
+    eval additional_libdir=\&quot;$libdir\&quot;
+
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+
+# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
+if test &quot;${with_libiconv_prefix+set}&quot; = set; then
+  withval=&quot;$with_libiconv_prefix&quot;
+
+    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+      use_additional=no
+    else
+      if test &quot;X$withval&quot; = &quot;X&quot;; then
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+
+          eval additional_includedir=\&quot;$includedir\&quot;
+          eval additional_libdir=\&quot;$libdir\&quot;
+
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+      else
+        additional_includedir=&quot;$withval/include&quot;
+        additional_libdir=&quot;$withval/lib&quot;
+      fi
+    fi
+
+fi;
+      LIBICONV=
+  LTLIBICONV=
+  INCICONV=
+  rpathdirs=
+  ltrpathdirs=
+  names_already_handled=
+  names_next_round='iconv '
+  while test -n &quot;$names_next_round&quot;; do
+    names_this_round=&quot;$names_next_round&quot;
+    names_next_round=
+    for name in $names_this_round; do
+      already_handled=
+      for n in $names_already_handled; do
+        if test &quot;$n&quot; = &quot;$name&quot;; then
+          already_handled=yes
+          break
+        fi
+      done
+      if test -z &quot;$already_handled&quot;; then
+        names_already_handled=&quot;$names_already_handled $name&quot;
+                        uppername=`echo &quot;$name&quot; | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+        eval value=\&quot;\$HAVE_LIB$uppername\&quot;
+        if test -n &quot;$value&quot;; then
+          if test &quot;$value&quot; = yes; then
+            eval value=\&quot;\$LIB$uppername\&quot;
+            test -z &quot;$value&quot; || LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$value&quot;
+            eval value=\&quot;\$LTLIB$uppername\&quot;
+            test -z &quot;$value&quot; || LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }$value&quot;
+          else
+                                    :
+          fi
+        else
+                              found_dir=
+          found_la=
+          found_so=
+          found_a=
+          if test $use_additional = yes; then
+            if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$additional_libdir/lib$name.$shlibext&quot;; then
+              found_dir=&quot;$additional_libdir&quot;
+              found_so=&quot;$additional_libdir/lib$name.$shlibext&quot;
+              if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                found_la=&quot;$additional_libdir/lib$name.la&quot;
+              fi
+            else
+              if test -f &quot;$additional_libdir/lib$name.$libext&quot;; then
+                found_dir=&quot;$additional_libdir&quot;
+                found_a=&quot;$additional_libdir/lib$name.$libext&quot;
+                if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                  found_la=&quot;$additional_libdir/lib$name.la&quot;
+                fi
+              fi
+            fi
+          fi
+          if test &quot;X$found_dir&quot; = &quot;X&quot;; then
+            for x in $LDFLAGS $LTLIBICONV; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+              case &quot;$x&quot; in
+                -L*)
+                  dir=`echo &quot;X$x&quot; | sed -e 's/^X-L//'`
+                  if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$dir/lib$name.$shlibext&quot;; then
+                    found_dir=&quot;$dir&quot;
+                    found_so=&quot;$dir/lib$name.$shlibext&quot;
+                    if test -f &quot;$dir/lib$name.la&quot;; then
+                      found_la=&quot;$dir/lib$name.la&quot;
+                    fi
+                  else
+                    if test -f &quot;$dir/lib$name.$libext&quot;; then
+                      found_dir=&quot;$dir&quot;
+                      found_a=&quot;$dir/lib$name.$libext&quot;
+                      if test -f &quot;$dir/lib$name.la&quot;; then
+                        found_la=&quot;$dir/lib$name.la&quot;
+                      fi
+                    fi
+                  fi
+                  ;;
+              esac
+              if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+                break
+              fi
+            done
+          fi
+          if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+                        LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name&quot;
+            if test &quot;X$found_so&quot; != &quot;X&quot;; then
+                                                        if test &quot;$enable_rpath&quot; = no || test &quot;X$found_dir&quot; = &quot;X/usr/lib&quot;; then
+                                LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$found_so&quot;
+              else
+                                                                                haveit=
+                for x in $ltrpathdirs; do
+                  if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                    haveit=yes
+                    break
+                  fi
+                done
+                if test -z &quot;$haveit&quot;; then
+                  ltrpathdirs=&quot;$ltrpathdirs $found_dir&quot;
+                fi
+                                if test &quot;$hardcode_direct&quot; = yes; then
+                                                      LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$found_so&quot;
+                else
+                  if test -n &quot;$hardcode_libdir_flag_spec&quot; &amp;&amp; test &quot;$hardcode_minus_L&quot; = no; then
+                                                            LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$found_so&quot;
+                                                            haveit=
+                    for x in $rpathdirs; do
+                      if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      rpathdirs=&quot;$rpathdirs $found_dir&quot;
+                    fi
+                  else
+                                                                                haveit=
+                    for x in $LDFLAGS $LIBICONV; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                      if test &quot;X$x&quot; = &quot;X-L$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }-L$found_dir&quot;
+                    fi
+                    if test &quot;$hardcode_minus_L&quot; != no; then
+                                                                                        LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$found_so&quot;
+                    else
+                                                                                                                                                                                LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }-l$name&quot;
+                    fi
+                  fi
+                fi
+              fi
+            else
+              if test &quot;X$found_a&quot; != &quot;X&quot;; then
+                                LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$found_a&quot;
+              else
+                                                LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name&quot;
+              fi
+            fi
+                        additional_includedir=
+            case &quot;$found_dir&quot; in
+              */lib | */lib/)
+                basedir=`echo &quot;X$found_dir&quot; | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+                additional_includedir=&quot;$basedir/include&quot;
+                ;;
+            esac
+            if test &quot;X$additional_includedir&quot; != &quot;X&quot;; then
+                                                                                                                if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
+                haveit=
+                if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                  if test -n &quot;$GCC&quot;; then
+                    case $host_os in
+                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                    esac
+                  fi
+                fi
+                if test -z &quot;$haveit&quot;; then
+                  for x in $CPPFLAGS $INCICONV; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                    if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
+                      haveit=yes
+                      break
+                    fi
+                  done
+                  if test -z &quot;$haveit&quot;; then
+                    if test -d &quot;$additional_includedir&quot;; then
+                                            INCICONV=&quot;${INCICONV}${INCICONV:+ }-I$additional_includedir&quot;
+                    fi
+                  fi
+                fi
+              fi
+            fi
+                        if test -n &quot;$found_la&quot;; then
+                                                        save_libdir=&quot;$libdir&quot;
+              case &quot;$found_la&quot; in
+                */* | *\\*) . &quot;$found_la&quot; ;;
+                *) . &quot;./$found_la&quot; ;;
+              esac
+              libdir=&quot;$save_libdir&quot;
+                            for dep in $dependency_libs; do
+                case &quot;$dep&quot; in
+                  -L*)
+                    additional_libdir=`echo &quot;X$dep&quot; | sed -e 's/^X-L//'`
+                                                                                                                                                                if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
+                      haveit=
+                      if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                        if test -n &quot;$GCC&quot;; then
+                          case $host_os in
+                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                          esac
+                        fi
+                      fi
+                      if test -z &quot;$haveit&quot;; then
+                        haveit=
+                        for x in $LDFLAGS $LIBICONV; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                                                        LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                        haveit=
+                        for x in $LDFLAGS $LTLIBICONV; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                                                        LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                      fi
+                    fi
+                    ;;
+                  -R*)
+                    dir=`echo &quot;X$dep&quot; | sed -e 's/^X-R//'`
+                    if test &quot;$enable_rpath&quot; != no; then
+                                                                  haveit=
+                      for x in $rpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        rpathdirs=&quot;$rpathdirs $dir&quot;
+                      fi
+                                                                  haveit=
+                      for x in $ltrpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        ltrpathdirs=&quot;$ltrpathdirs $dir&quot;
+                      fi
+                    fi
+                    ;;
+                  -l*)
+                                        names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's/^X-l//'`
+                    ;;
+                  *.la)
+                                                                                names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+                    ;;
+                  *)
+                                        LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$dep&quot;
+                    LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }$dep&quot;
+                    ;;
+                esac
+              done
+            fi
+          else
+                                                            LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }-l$name&quot;
+            LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }-l$name&quot;
+          fi
+        fi
+      fi
+    done
+  done
+  if test &quot;X$rpathdirs&quot; != &quot;X&quot;; then
+    if test -n &quot;$hardcode_libdir_separator&quot;; then
+                        alldirs=
+      for found_dir in $rpathdirs; do
+        alldirs=&quot;${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir&quot;
+      done
+            acl_save_libdir=&quot;$libdir&quot;
+      libdir=&quot;$alldirs&quot;
+      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+      libdir=&quot;$acl_save_libdir&quot;
+      LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$flag&quot;
+    else
+            for found_dir in $rpathdirs; do
+        acl_save_libdir=&quot;$libdir&quot;
+        libdir=&quot;$found_dir&quot;
+        eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+        libdir=&quot;$acl_save_libdir&quot;
+        LIBICONV=&quot;${LIBICONV}${LIBICONV:+ }$flag&quot;
+      done
+    fi
+  fi
+  if test &quot;X$ltrpathdirs&quot; != &quot;X&quot;; then
+            for found_dir in $ltrpathdirs; do
+      LTLIBICONV=&quot;${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir&quot;
+    done
+  fi
+
+
+
+
+
+
+
+
+  echo &quot;$as_me:$LINENO: checking for ptrdiff_t&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for ptrdiff_t... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_type_ptrdiff_t+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((ptrdiff_t *) 0)
+  return 0;
+if (sizeof (ptrdiff_t))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_type_ptrdiff_t=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_type_ptrdiff_t=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_type_ptrdiff_t&quot; &gt;&amp;6
+if test $ac_cv_type_ptrdiff_t = yes; then
+  :
+else
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define ptrdiff_t long
+_ACEOF
+
+
+fi
+
+
+
+
+
+
+
+
+
+
+
+for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
+stdlib.h string.h unistd.h sys/param.h
+do
+as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+else
+  # Is the header compilable?
+echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include &lt;$ac_header&gt;
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_header_compiler=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+
+# Is the header present?
+echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;$ac_header&gt;
+_ACEOF
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &gt;/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z &quot;$ac_cpp_err&quot;; then
+  ac_header_preproc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
+    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
+echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
+    (
+      cat &lt;&lt;\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists.  ##
+## ------------------------------------------ ##
+_ASBOX
+    ) |
+      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
+    ;;
+esac
+echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
+mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
+strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
+__fsetlocking
+do
+as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
+   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
+    &lt;limits.h&gt; exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include &lt;limits.h&gt;
+#else
+# include &lt;assert.h&gt;
+#endif
+
+#undef $ac_func
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  eval &quot;$as_ac_var=yes&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+eval &quot;$as_ac_var=no&quot;
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether _snprintf is declared&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether _snprintf is declared... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_have_decl__snprintf+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+int
+main ()
+{
+
+#ifndef _snprintf
+  char *p = (char *) _snprintf;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl__snprintf=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_have_decl__snprintf=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl__snprintf&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_have_decl__snprintf&quot; &gt;&amp;6
+  if test $ac_cv_have_decl__snprintf = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_DECL__SNPRINTF $gt_value
+_ACEOF
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether _snwprintf is declared&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether _snwprintf is declared... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_have_decl__snwprintf+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+int
+main ()
+{
+
+#ifndef _snwprintf
+  char *p = (char *) _snwprintf;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl__snwprintf=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_have_decl__snwprintf=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_have_decl__snwprintf&quot; &gt;&amp;6
+  if test $ac_cv_have_decl__snwprintf = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_DECL__SNWPRINTF $gt_value
+_ACEOF
+
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether feof_unlocked is declared&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether feof_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_have_decl_feof_unlocked+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+int
+main ()
+{
+
+#ifndef feof_unlocked
+  char *p = (char *) feof_unlocked;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl_feof_unlocked=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_have_decl_feof_unlocked=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_have_decl_feof_unlocked&quot; &gt;&amp;6
+  if test $ac_cv_have_decl_feof_unlocked = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_DECL_FEOF_UNLOCKED $gt_value
+_ACEOF
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether fgets_unlocked is declared&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether fgets_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_have_decl_fgets_unlocked+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+int
+main ()
+{
+
+#ifndef fgets_unlocked
+  char *p = (char *) fgets_unlocked;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl_fgets_unlocked=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_have_decl_fgets_unlocked=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_have_decl_fgets_unlocked&quot; &gt;&amp;6
+  if test $ac_cv_have_decl_fgets_unlocked = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_DECL_FGETS_UNLOCKED $gt_value
+_ACEOF
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether getc_unlocked is declared&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether getc_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_have_decl_getc_unlocked+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdio.h&gt;
+int
+main ()
+{
+
+#ifndef getc_unlocked
+  char *p = (char *) getc_unlocked;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl_getc_unlocked=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+ac_cv_have_decl_getc_unlocked=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_cv_have_decl_getc_unlocked&quot; &gt;&amp;6
+  if test $ac_cv_have_decl_getc_unlocked = yes; then
+    gt_value=1
+  else
+    gt_value=0
+  fi
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define HAVE_DECL_GETC_UNLOCKED $gt_value
+_ACEOF
+
+
+
+  case $gt_cv_func_printf_posix in
+    *yes) HAVE_POSIX_PRINTF=1 ;;
+    *) HAVE_POSIX_PRINTF=0 ;;
+  esac
+
+  if test &quot;$ac_cv_func_asprintf&quot; = yes; then
+    HAVE_ASPRINTF=1
+  else
+    HAVE_ASPRINTF=0
+  fi
+
+  if test &quot;$ac_cv_func_snprintf&quot; = yes; then
+    HAVE_SNPRINTF=1
+  else
+    HAVE_SNPRINTF=0
+  fi
+
+  if test &quot;$ac_cv_func_wprintf&quot; = yes; then
+    HAVE_WPRINTF=1
+  else
+    HAVE_WPRINTF=0
+  fi
+
+
+
+
+
+
+
+          am_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+
+  for element in $INCICONV; do
+    haveit=
+    for x in $CPPFLAGS; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+      if test &quot;X$x&quot; = &quot;X$element&quot;; then
+        haveit=yes
+        break
+      fi
+    done
+    if test -z &quot;$haveit&quot;; then
+      CPPFLAGS=&quot;${CPPFLAGS}${CPPFLAGS:+ }$element&quot;
+    fi
+  done
+
+
+  echo &quot;$as_me:$LINENO: checking for iconv&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for iconv... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${am_cv_func_iconv+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+    am_cv_func_iconv=&quot;no, consider installing GNU libiconv&quot;
+    am_cv_lib_iconv=no
+    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;
+int
+main ()
+{
+iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+       iconv(cd,NULL,NULL,NULL,NULL);
+       iconv_close(cd);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  am_cv_func_iconv=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+    if test &quot;$am_cv_func_iconv&quot; != yes; then
+      am_save_LIBS=&quot;$LIBS&quot;
+      LIBS=&quot;$LIBS $LIBICONV&quot;
+      cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;
+int
+main ()
+{
+iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+         iconv(cd,NULL,NULL,NULL,NULL);
+         iconv_close(cd);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  am_cv_lib_iconv=yes
+        am_cv_func_iconv=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+      LIBS=&quot;$am_save_LIBS&quot;
+    fi
+
+fi
+echo &quot;$as_me:$LINENO: result: $am_cv_func_iconv&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$am_cv_func_iconv&quot; &gt;&amp;6
+  if test &quot;$am_cv_func_iconv&quot; = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_ICONV 1
+_ACEOF
+
+  fi
+  if test &quot;$am_cv_lib_iconv&quot; = yes; then
+    echo &quot;$as_me:$LINENO: checking how to link with libiconv&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to link with libiconv... $ECHO_C&quot; &gt;&amp;6
+    echo &quot;$as_me:$LINENO: result: $LIBICONV&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$LIBICONV&quot; &gt;&amp;6
+  else
+            CPPFLAGS=&quot;$am_save_CPPFLAGS&quot;
+    LIBICONV=
+    LTLIBICONV=
+  fi
+
+
+
+  if test &quot;$am_cv_func_iconv&quot; = yes; then
+    echo &quot;$as_me:$LINENO: checking for iconv declaration&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for iconv declaration... $ECHO_C&quot; &gt;&amp;6
+    if test &quot;${am_cv_proto_iconv+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+
+      cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+
+#include &lt;stdlib.h&gt;
+#include &lt;iconv.h&gt;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+#if defined(__STDC__) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+  (eval $ac_compile) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  am_cv_proto_iconv_arg1=&quot;&quot;
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+am_cv_proto_iconv_arg1=&quot;const&quot;
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+      am_cv_proto_iconv=&quot;extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);&quot;
+fi
+
+    am_cv_proto_iconv=`echo &quot;$am_cv_proto_iconv&quot; | tr -s ' ' | sed -e 's/( /(/'`
+    echo &quot;$as_me:$LINENO: result: ${ac_t:-
+         }$am_cv_proto_iconv&quot; &gt;&amp;5
+echo &quot;${ECHO_T}${ac_t:-
+         }$am_cv_proto_iconv&quot; &gt;&amp;6
+
+cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define ICONV_CONST $am_cv_proto_iconv_arg1
+_ACEOF
+
+  fi
+
+
+  echo &quot;$as_me:$LINENO: checking for nl_langinfo and CODESET&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for nl_langinfo and CODESET... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${am_cv_langinfo_codeset+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;langinfo.h&gt;
+int
+main ()
+{
+char* cs = nl_langinfo(CODESET);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  am_cv_langinfo_codeset=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+am_cv_langinfo_codeset=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+
+fi
+echo &quot;$as_me:$LINENO: result: $am_cv_langinfo_codeset&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$am_cv_langinfo_codeset&quot; &gt;&amp;6
+  if test $am_cv_langinfo_codeset = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_LANGINFO_CODESET 1
+_ACEOF
+
+  fi
+
+  if test $ac_cv_header_locale_h = yes; then
+
+  echo &quot;$as_me:$LINENO: checking for LC_MESSAGES&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for LC_MESSAGES... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_val_LC_MESSAGES+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;locale.h&gt;
+int
+main ()
+{
+return LC_MESSAGES
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_val_LC_MESSAGES=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_val_LC_MESSAGES=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_val_LC_MESSAGES&quot; &gt;&amp;6
+  if test $gt_cv_val_LC_MESSAGES = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_LC_MESSAGES 1
+_ACEOF
+
+  fi
+
+  fi
+
+  if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
+    CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+  fi
+
+                      for ac_prog in bison
+do
+  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${ac_cv_prog_INTLBISON+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  if test -n &quot;$INTLBISON&quot;; then
+  ac_cv_prog_INTLBISON=&quot;$INTLBISON&quot; # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+    ac_cv_prog_INTLBISON=&quot;$ac_prog&quot;
+    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+INTLBISON=$ac_cv_prog_INTLBISON
+if test -n &quot;$INTLBISON&quot;; then
+  echo &quot;$as_me:$LINENO: result: $INTLBISON&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$INTLBISON&quot; &gt;&amp;6
+else
+  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+fi
+
+  test -n &quot;$INTLBISON&quot; &amp;&amp; break
+done
+
+  if test -z &quot;$INTLBISON&quot;; then
+    ac_verc_fail=yes
+  else
+        echo &quot;$as_me:$LINENO: checking version of bison&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking version of bison... $ECHO_C&quot; &gt;&amp;6
+    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+    case $ac_prog_version in
+      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
+      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
+      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
+    esac
+    echo &quot;$as_me:$LINENO: result: $ac_prog_version&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$ac_prog_version&quot; &gt;&amp;6
+  fi
+  if test $ac_verc_fail = yes; then
+    INTLBISON=:
+  fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+    echo &quot;$as_me:$LINENO: checking for CFPreferencesCopyAppValue&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for CFPreferencesCopyAppValue... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_CFPreferencesCopyAppValue+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;CFPreferences.h&gt;
+int
+main ()
+{
+CFPreferencesCopyAppValue(NULL, NULL)
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_CFPreferencesCopyAppValue=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_CFPreferencesCopyAppValue=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;6
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
+_ACEOF
+
+  fi
+    echo &quot;$as_me:$LINENO: checking for CFLocaleCopyCurrent&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for CFLocaleCopyCurrent... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_CFLocaleCopyCurrent+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
+     gt_save_LIBS=&quot;$LIBS&quot;
+     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;CFLocale.h&gt;
+int
+main ()
+{
+CFLocaleCopyCurrent();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_CFLocaleCopyCurrent=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_CFLocaleCopyCurrent=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+     LIBS=&quot;$gt_save_LIBS&quot;
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;6
+  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_CFLOCALECOPYCURRENT 1
+_ACEOF
+
+  fi
+  INTL_MACOSX_LIBS=
+  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
+    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
+  fi
+
+
+
+
+  echo &quot;$as_me:$LINENO: checking whether NLS is requested&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether NLS is requested... $ECHO_C&quot; &gt;&amp;6
+    # Check whether --enable-nls or --disable-nls was given.
+if test &quot;${enable_nls+set}&quot; = set; then
+  enableval=&quot;$enable_nls&quot;
+  USE_NLS=$enableval
+else
+  USE_NLS=yes
+fi;
+  echo &quot;$as_me:$LINENO: result: $USE_NLS&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$USE_NLS&quot; &gt;&amp;6
+
+
+
+
+    BUILD_INCLUDED_LIBINTL=no
+    USE_INCLUDED_LIBINTL=no
+
+  LIBINTL=
+  LTLIBINTL=
+  POSUB=
+
+    if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+    gt_use_preinstalled_gnugettext=no
+
+      echo &quot;$as_me:$LINENO: checking whether included gettext is requested&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether included gettext is requested... $ECHO_C&quot; &gt;&amp;6
+
+# Check whether --with-included-gettext or --without-included-gettext was given.
+if test &quot;${with_included_gettext+set}&quot; = set; then
+  withval=&quot;$with_included_gettext&quot;
+  nls_cv_force_use_gnu_gettext=$withval
+else
+  nls_cv_force_use_gnu_gettext=no
+fi;
+      echo &quot;$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$nls_cv_force_use_gnu_gettext&quot; &gt;&amp;6
+
+      nls_cv_use_gnu_gettext=&quot;$nls_cv_force_use_gnu_gettext&quot;
+      if test &quot;$nls_cv_force_use_gnu_gettext&quot; != &quot;yes&quot;; then
+
+
+
+
+
+
+        echo &quot;$as_me:$LINENO: checking for GNU gettext in libc&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for GNU gettext in libc... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_gnugettext1_libc+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;libintl.h&gt;
+extern int _nl_msg_cat_cntr;
+extern int *_nl_domain_bindings;
+int
+main ()
+{
+bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_domain_bindings
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_gnugettext1_libc=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_gnugettext1_libc=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_gnugettext1_libc&quot; &gt;&amp;6
+
+        if test &quot;$gt_cv_func_gnugettext1_libc&quot; != &quot;yes&quot;; then
+
+
+
+    use_additional=yes
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+
+    eval additional_includedir=\&quot;$includedir\&quot;
+    eval additional_libdir=\&quot;$libdir\&quot;
+
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+
+# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
+if test &quot;${with_libintl_prefix+set}&quot; = set; then
+  withval=&quot;$with_libintl_prefix&quot;
+
+    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+      use_additional=no
+    else
+      if test &quot;X$withval&quot; = &quot;X&quot;; then
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+
+          eval additional_includedir=\&quot;$includedir\&quot;
+          eval additional_libdir=\&quot;$libdir\&quot;
+
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+      else
+        additional_includedir=&quot;$withval/include&quot;
+        additional_libdir=&quot;$withval/lib&quot;
+      fi
+    fi
+
+fi;
+      LIBINTL=
+  LTLIBINTL=
+  INCINTL=
+  rpathdirs=
+  ltrpathdirs=
+  names_already_handled=
+  names_next_round='intl '
+  while test -n &quot;$names_next_round&quot;; do
+    names_this_round=&quot;$names_next_round&quot;
+    names_next_round=
+    for name in $names_this_round; do
+      already_handled=
+      for n in $names_already_handled; do
+        if test &quot;$n&quot; = &quot;$name&quot;; then
+          already_handled=yes
+          break
+        fi
+      done
+      if test -z &quot;$already_handled&quot;; then
+        names_already_handled=&quot;$names_already_handled $name&quot;
+                        uppername=`echo &quot;$name&quot; | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+        eval value=\&quot;\$HAVE_LIB$uppername\&quot;
+        if test -n &quot;$value&quot;; then
+          if test &quot;$value&quot; = yes; then
+            eval value=\&quot;\$LIB$uppername\&quot;
+            test -z &quot;$value&quot; || LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$value&quot;
+            eval value=\&quot;\$LTLIB$uppername\&quot;
+            test -z &quot;$value&quot; || LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }$value&quot;
+          else
+                                    :
+          fi
+        else
+                              found_dir=
+          found_la=
+          found_so=
+          found_a=
+          if test $use_additional = yes; then
+            if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$additional_libdir/lib$name.$shlibext&quot;; then
+              found_dir=&quot;$additional_libdir&quot;
+              found_so=&quot;$additional_libdir/lib$name.$shlibext&quot;
+              if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                found_la=&quot;$additional_libdir/lib$name.la&quot;
+              fi
+            else
+              if test -f &quot;$additional_libdir/lib$name.$libext&quot;; then
+                found_dir=&quot;$additional_libdir&quot;
+                found_a=&quot;$additional_libdir/lib$name.$libext&quot;
+                if test -f &quot;$additional_libdir/lib$name.la&quot;; then
+                  found_la=&quot;$additional_libdir/lib$name.la&quot;
+                fi
+              fi
+            fi
+          fi
+          if test &quot;X$found_dir&quot; = &quot;X&quot;; then
+            for x in $LDFLAGS $LTLIBINTL; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+              case &quot;$x&quot; in
+                -L*)
+                  dir=`echo &quot;X$x&quot; | sed -e 's/^X-L//'`
+                  if test -n &quot;$shlibext&quot; &amp;&amp; test -f &quot;$dir/lib$name.$shlibext&quot;; then
+                    found_dir=&quot;$dir&quot;
+                    found_so=&quot;$dir/lib$name.$shlibext&quot;
+                    if test -f &quot;$dir/lib$name.la&quot;; then
+                      found_la=&quot;$dir/lib$name.la&quot;
+                    fi
+                  else
+                    if test -f &quot;$dir/lib$name.$libext&quot;; then
+                      found_dir=&quot;$dir&quot;
+                      found_a=&quot;$dir/lib$name.$libext&quot;
+                      if test -f &quot;$dir/lib$name.la&quot;; then
+                        found_la=&quot;$dir/lib$name.la&quot;
+                      fi
+                    fi
+                  fi
+                  ;;
+              esac
+              if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+                break
+              fi
+            done
+          fi
+          if test &quot;X$found_dir&quot; != &quot;X&quot;; then
+                        LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name&quot;
+            if test &quot;X$found_so&quot; != &quot;X&quot;; then
+                                                        if test &quot;$enable_rpath&quot; = no || test &quot;X$found_dir&quot; = &quot;X/usr/lib&quot;; then
+                                LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$found_so&quot;
+              else
+                                                                                haveit=
+                for x in $ltrpathdirs; do
+                  if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                    haveit=yes
+                    break
+                  fi
+                done
+                if test -z &quot;$haveit&quot;; then
+                  ltrpathdirs=&quot;$ltrpathdirs $found_dir&quot;
+                fi
+                                if test &quot;$hardcode_direct&quot; = yes; then
+                                                      LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$found_so&quot;
+                else
+                  if test -n &quot;$hardcode_libdir_flag_spec&quot; &amp;&amp; test &quot;$hardcode_minus_L&quot; = no; then
+                                                            LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$found_so&quot;
+                                                            haveit=
+                    for x in $rpathdirs; do
+                      if test &quot;X$x&quot; = &quot;X$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      rpathdirs=&quot;$rpathdirs $found_dir&quot;
+                    fi
+                  else
+                                                                                haveit=
+                    for x in $LDFLAGS $LIBINTL; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                      if test &quot;X$x&quot; = &quot;X-L$found_dir&quot;; then
+                        haveit=yes
+                        break
+                      fi
+                    done
+                    if test -z &quot;$haveit&quot;; then
+                      LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }-L$found_dir&quot;
+                    fi
+                    if test &quot;$hardcode_minus_L&quot; != no; then
+                                                                                        LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$found_so&quot;
+                    else
+                                                                                                                                                                                LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }-l$name&quot;
+                    fi
+                  fi
+                fi
+              fi
+            else
+              if test &quot;X$found_a&quot; != &quot;X&quot;; then
+                                LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$found_a&quot;
+              else
+                                                LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name&quot;
+              fi
+            fi
+                        additional_includedir=
+            case &quot;$found_dir&quot; in
+              */lib | */lib/)
+                basedir=`echo &quot;X$found_dir&quot; | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+                additional_includedir=&quot;$basedir/include&quot;
+                ;;
+            esac
+            if test &quot;X$additional_includedir&quot; != &quot;X&quot;; then
+                                                                                                                if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
+                haveit=
+                if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                  if test -n &quot;$GCC&quot;; then
+                    case $host_os in
+                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                    esac
+                  fi
+                fi
+                if test -z &quot;$haveit&quot;; then
+                  for x in $CPPFLAGS $INCINTL; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                    if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
+                      haveit=yes
+                      break
+                    fi
+                  done
+                  if test -z &quot;$haveit&quot;; then
+                    if test -d &quot;$additional_includedir&quot;; then
+                                            INCINTL=&quot;${INCINTL}${INCINTL:+ }-I$additional_includedir&quot;
+                    fi
+                  fi
+                fi
+              fi
+            fi
+                        if test -n &quot;$found_la&quot;; then
+                                                        save_libdir=&quot;$libdir&quot;
+              case &quot;$found_la&quot; in
+                */* | *\\*) . &quot;$found_la&quot; ;;
+                *) . &quot;./$found_la&quot; ;;
+              esac
+              libdir=&quot;$save_libdir&quot;
+                            for dep in $dependency_libs; do
+                case &quot;$dep&quot; in
+                  -L*)
+                    additional_libdir=`echo &quot;X$dep&quot; | sed -e 's/^X-L//'`
+                                                                                                                                                                if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
+                      haveit=
+                      if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                        if test -n &quot;$GCC&quot;; then
+                          case $host_os in
+                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                          esac
+                        fi
+                      fi
+                      if test -z &quot;$haveit&quot;; then
+                        haveit=
+                        for x in $LDFLAGS $LIBINTL; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                                                        LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                        haveit=
+                        for x in $LDFLAGS $LTLIBINTL; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+                          if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+                            haveit=yes
+                            break
+                          fi
+                        done
+                        if test -z &quot;$haveit&quot;; then
+                          if test -d &quot;$additional_libdir&quot;; then
+                                                        LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir&quot;
+                          fi
+                        fi
+                      fi
+                    fi
+                    ;;
+                  -R*)
+                    dir=`echo &quot;X$dep&quot; | sed -e 's/^X-R//'`
+                    if test &quot;$enable_rpath&quot; != no; then
+                                                                  haveit=
+                      for x in $rpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        rpathdirs=&quot;$rpathdirs $dir&quot;
+                      fi
+                                                                  haveit=
+                      for x in $ltrpathdirs; do
+                        if test &quot;X$x&quot; = &quot;X$dir&quot;; then
+                          haveit=yes
+                          break
+                        fi
+                      done
+                      if test -z &quot;$haveit&quot;; then
+                        ltrpathdirs=&quot;$ltrpathdirs $dir&quot;
+                      fi
+                    fi
+                    ;;
+                  -l*)
+                                        names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's/^X-l//'`
+                    ;;
+                  *.la)
+                                                                                names_next_round=&quot;$names_next_round &quot;`echo &quot;X$dep&quot; | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+                    ;;
+                  *)
+                                        LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$dep&quot;
+                    LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }$dep&quot;
+                    ;;
+                esac
+              done
+            fi
+          else
+                                                            LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }-l$name&quot;
+            LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }-l$name&quot;
+          fi
+        fi
+      fi
+    done
+  done
+  if test &quot;X$rpathdirs&quot; != &quot;X&quot;; then
+    if test -n &quot;$hardcode_libdir_separator&quot;; then
+                        alldirs=
+      for found_dir in $rpathdirs; do
+        alldirs=&quot;${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir&quot;
+      done
+            acl_save_libdir=&quot;$libdir&quot;
+      libdir=&quot;$alldirs&quot;
+      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+      libdir=&quot;$acl_save_libdir&quot;
+      LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$flag&quot;
+    else
+            for found_dir in $rpathdirs; do
+        acl_save_libdir=&quot;$libdir&quot;
+        libdir=&quot;$found_dir&quot;
+        eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+        libdir=&quot;$acl_save_libdir&quot;
+        LIBINTL=&quot;${LIBINTL}${LIBINTL:+ }$flag&quot;
+      done
+    fi
+  fi
+  if test &quot;X$ltrpathdirs&quot; != &quot;X&quot;; then
+            for found_dir in $ltrpathdirs; do
+      LTLIBINTL=&quot;${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir&quot;
+    done
+  fi
+
+          echo &quot;$as_me:$LINENO: checking for GNU gettext in libintl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking for GNU gettext in libintl... $ECHO_C&quot; &gt;&amp;6
+if test &quot;${gt_cv_func_gnugettext1_libintl+set}&quot; = set; then
+  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+else
+  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+            CPPFLAGS=&quot;$CPPFLAGS $INCINTL&quot;
+            gt_save_LIBS=&quot;$LIBS&quot;
+            LIBS=&quot;$LIBS $LIBINTL&quot;
+                        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;libintl.h&gt;
+extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+const char *_nl_expand_alias (const char *);
+int
+main ()
+{
+bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  gt_cv_func_gnugettext1_libintl=yes
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+gt_cv_func_gnugettext1_libintl=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+                        if test &quot;$gt_cv_func_gnugettext1_libintl&quot; != yes &amp;&amp; test -n &quot;$LIBICONV&quot;; then
+              LIBS=&quot;$LIBS $LIBICONV&quot;
+              cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h &gt;&gt;conftest.$ac_ext
+cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
+/* end confdefs.h.  */
+#include &lt;libintl.h&gt;
+extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+&quot;C&quot;
+#endif
+const char *_nl_expand_alias (const char *);
+int
+main ()
+{
+bindtextdomain (&quot;&quot;, &quot;&quot;);
+return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+  (eval $ac_link) 2&gt;conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 &gt;conftest.err
+  rm -f conftest.er1
+  cat conftest.err &gt;&amp;5
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); } &amp;&amp;
+         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; } &amp;&amp;
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+  (eval $ac_try) 2&gt;&amp;5
+  ac_status=$?
+  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+  (exit $ac_status); }; }; then
+  LIBINTL=&quot;$LIBINTL $LIBICONV&quot;
+                LTLIBINTL=&quot;$LTLIBINTL $LTLIBICONV&quot;
+                gt_cv_func_gnugettext1_libintl=yes
+
+else
+  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
+
+fi
+rm -f conftest.err conftest.$ac_objext \
+      conftest$ac_exeext conftest.$ac_ext
+            fi
+            CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+            LIBS=&quot;$gt_save_LIBS&quot;
+fi
+echo &quot;$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_cv_func_gnugettext1_libintl&quot; &gt;&amp;6
+        fi
+
+                                        if test &quot;$gt_cv_func_gnugettext1_libc&quot; = &quot;yes&quot; \
+           || { test &quot;$gt_cv_func_gnugettext1_libintl&quot; = &quot;yes&quot; \
+                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-runtime \
+                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-tools; }; then
+          gt_use_preinstalled_gnugettext=yes
+        else
+                    LIBINTL=
+          LTLIBINTL=
+          INCINTL=
+        fi
+
+
+        if test &quot;$gt_use_preinstalled_gnugettext&quot; != &quot;yes&quot;; then
+                              nls_cv_use_gnu_gettext=yes
+        fi
+      fi
+
+      if test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+                BUILD_INCLUDED_LIBINTL=yes
+        USE_INCLUDED_LIBINTL=yes
+        LIBINTL=&quot;\${top_builddir}/intl/libintl.a $LIBICONV&quot;
+        LTLIBINTL=&quot;\${top_builddir}/intl/libintl.a $LTLIBICONV&quot;
+        LIBS=`echo &quot; $LIBS &quot; | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+      fi
+
+      CATOBJEXT=
+      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+                CATOBJEXT=.gmo
+      fi
+
+
+    if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
+      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+                LIBINTL=&quot;$LIBINTL $INTL_MACOSX_LIBS&quot;
+        LTLIBINTL=&quot;$LTLIBINTL $INTL_MACOSX_LIBS&quot;
+      fi
+    fi
+
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+       || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define ENABLE_NLS 1
+_ACEOF
+
+    else
+      USE_NLS=no
+    fi
+  fi
+
+  echo &quot;$as_me:$LINENO: checking whether to use NLS&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking whether to use NLS... $ECHO_C&quot; &gt;&amp;6
+  echo &quot;$as_me:$LINENO: result: $USE_NLS&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$USE_NLS&quot; &gt;&amp;6
+  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+    echo &quot;$as_me:$LINENO: checking where the gettext function comes from&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking where the gettext function comes from... $ECHO_C&quot; &gt;&amp;6
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+      if test &quot;$gt_cv_func_gnugettext1_libintl&quot; = &quot;yes&quot;; then
+        gt_source=&quot;external libintl&quot;
+      else
+        gt_source=&quot;libc&quot;
+      fi
+    else
+      gt_source=&quot;included intl directory&quot;
+    fi
+    echo &quot;$as_me:$LINENO: result: $gt_source&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$gt_source&quot; &gt;&amp;6
+  fi
+
+  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+
+    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+      if test &quot;$gt_cv_func_gnugettext1_libintl&quot; = &quot;yes&quot;; then
+        echo &quot;$as_me:$LINENO: checking how to link with libintl&quot; &gt;&amp;5
+echo $ECHO_N &quot;checking how to link with libintl... $ECHO_C&quot; &gt;&amp;6
+        echo &quot;$as_me:$LINENO: result: $LIBINTL&quot; &gt;&amp;5
+echo &quot;${ECHO_T}$LIBINTL&quot; &gt;&amp;6
+
+  for element in $INCINTL; do
+    haveit=
+    for x in $CPPFLAGS; do
+
+  acl_save_prefix=&quot;$prefix&quot;
+  prefix=&quot;$acl_final_prefix&quot;
+  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+  eval x=\&quot;$x\&quot;
+  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+  prefix=&quot;$acl_save_prefix&quot;
+
+      if test &quot;X$x&quot; = &quot;X$element&quot;; then
+        haveit=yes
+        break
+      fi
+    done
+    if test -z &quot;$haveit&quot;; then
+      CPPFLAGS=&quot;${CPPFLAGS}${CPPFLAGS:+ }$element&quot;
+    fi
+  done
+
+      fi
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_GETTEXT 1
+_ACEOF
+
+
+cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+#define HAVE_DCGETTEXT 1
+_ACEOF
+
+    fi
+
+        POSUB=po
+  fi
+
+
+            if test &quot;$PACKAGE&quot; = gettext-runtime || test &quot;$PACKAGE&quot; = gettext-tools; then
+      BUILD_INCLUDED_LIBINTL=yes
+    fi
+
+
+
+
+
+        nls_cv_header_intl=
+    nls_cv_header_libgt=
+
+        DATADIRNAME=share
+
+
+        INSTOBJEXT=.mo
+
+
+        GENCAT=gencat
+
+
+        INTLOBJS=
+    if test &quot;$USE_INCLUDED_LIBINTL&quot; = yes; then
+      INTLOBJS=&quot;\$(GETTOBJS)&quot;
+    fi
+
+
+        INTL_LIBTOOL_SUFFIX_PREFIX=
+
+
+
+    INTLLIBS=&quot;$LIBINTL&quot;
+
+
+
+
+
+
+
+_localedir=`eval &quot;echo $datadir/locale&quot;`
+if test &quot;$_localedir&quot; = &quot;NONE/share/locale&quot;; then
+   cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define LOCALEDIR &quot;/usr/local/share/locale&quot;
+_ACEOF
+
+else
+   _localedir=`echo \&quot;$_localedir\&quot;`
+   cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+#define LOCALEDIR $_localedir
+_ACEOF
+
+fi
+
+
+
+if test x$USE_INCLUDED_LIBINTL = xyes; then
+  COMPILE_INTL_TRUE=
+  COMPILE_INTL_FALSE='#'
+else
+  COMPILE_INTL_TRUE='#'
+  COMPILE_INTL_FALSE=
+fi
+
+
+                                                                                                    ac_config_files=&quot;$ac_config_files Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in ext/Makefile&quot;
+          ac_config_commands=&quot;$ac_config_commands default&quot;
+cat &gt;confcache &lt;&lt;\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+  (set) 2&gt;&amp;1 |
+    case `(ac_space=' '; set | grep ac_space) 2&gt;&amp;1` in
+    *ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+        &quot;s/'/'\\\\''/g;
+          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p&quot;
+      ;;
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n \
+        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test &quot;${\1+set}&quot; = set || &amp;/
+     t end
+     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     : end' &gt;&gt;confcache
+if diff $cache_file confcache &gt;/dev/null 2&gt;&amp;1; then :; else
+  if test -w $cache_file; then
+    test &quot;x$cache_file&quot; != &quot;x/dev/null&quot; &amp;&amp; echo &quot;updating cache $cache_file&quot;
+    cat confcache &gt;$cache_file
+  else
+    echo &quot;not updating unwritable cache $cache_file&quot;
+  fi
+fi
+rm -f confcache
+
+test &quot;x$prefix&quot; = xNONE &amp;&amp; prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test &quot;x$exec_prefix&quot; = xNONE &amp;&amp; exec_prefix='${prefix}'
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is &quot;.&quot;, strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test &quot;x$srcdir&quot; = x.; then
+  ac_vpsub='/^[         ]*VPATH[         ]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[         ]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[         ]*$//;
+}'
+fi
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test &quot;x$ac_i&quot; = x: &amp;&amp; continue
+  # 1. Remove the extension, and $U if already installed.
+  ac_i=`echo &quot;$ac_i&quot; |
+         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+  # 2. Add them.
+  ac_libobjs=&quot;$ac_libobjs $ac_i\$U.$ac_objext&quot;
+  ac_ltlibobjs=&quot;$ac_ltlibobjs $ac_i&quot;'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+if test -z &quot;${AMDEP_TRUE}&quot; &amp;&amp; test -z &quot;${AMDEP_FALSE}&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;AMDEP\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+echo &quot;$as_me: error: conditional \&quot;AMDEP\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z &quot;${am__fastdepCC_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCC_FALSE}&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCC\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+echo &quot;$as_me: error: conditional \&quot;am__fastdepCC\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z &quot;${am__fastdepCXX_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCXX_FALSE}&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+echo &quot;$as_me: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z &quot;${am__fastdepCXX_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCXX_FALSE}&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+echo &quot;$as_me: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z &quot;${COMPILE_INTL_TRUE}&quot; &amp;&amp; test -z &quot;${COMPILE_INTL_FALSE}&quot;; then
+  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;COMPILE_INTL\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+echo &quot;$as_me: error: conditional \&quot;COMPILE_INTL\&quot; was never defined.
+Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+fi
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files=&quot;$ac_clean_files $CONFIG_STATUS&quot;
+{ echo &quot;$as_me:$LINENO: creating $CONFIG_STATUS&quot; &gt;&amp;5
+echo &quot;$as_me: creating $CONFIG_STATUS&quot; &gt;&amp;6;}
+cat &gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n &quot;${ZSH_VERSION+set}&quot; &amp;&amp; (emulate sh) &gt;/dev/null 2&gt;&amp;1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+&quot;$@&quot;}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+&quot;$@&quot;}'='&quot;$@&quot;'
+elif test -n &quot;${BASH_VERSION+set}&quot; &amp;&amp; (set -o posix) &gt;/dev/null 2&gt;&amp;1; then
+  set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) &gt;/dev/null 2&gt;&amp;1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='&gt; '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -z &quot;`(eval $as_var=C; export $as_var) 2&gt;&amp;1`&quot;); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename /) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test &quot;X`basename / 2&gt;&amp;1`&quot; = &quot;X/&quot;; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename &quot;$0&quot; ||
+$as_expr X/&quot;$0&quot; : '.*/\([^/][^/]*\)/*$' \| \
+         X&quot;$0&quot; : 'X\(//\)$' \| \
+         X&quot;$0&quot; : 'X\(/\)$' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X/&quot;$0&quot; |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+            /^X\/\(\/\/\)$/{ s//\1/; q; }
+            /^X\/\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
+  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+  test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+  test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot;  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  case $0 in
+    *[\\/]* ) as_myself=$0 ;;
+    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  test -r &quot;$as_dir/$0&quot; &amp;&amp; as_myself=$as_dir/$0 &amp;&amp; break
+done
+
+       ;;
+  esac
+  # We did not find ourselves, most probably we were run as `sh COMMAND'
+  # in which case we are not to be found in the path.
+  if test &quot;x$as_myself&quot; = x; then
+    as_myself=$0
+  fi
+  if test ! -f &quot;$as_myself&quot;; then
+    { { echo &quot;$as_me:$LINENO: error: cannot find myself; rerun with an absolute path&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find myself; rerun with an absolute path&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for as_base in sh bash ksh sh5; do
+         case $as_dir in
+         /*)
+           if (&quot;$as_dir/$as_base&quot; -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+  test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+  test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot; ') 2&gt;/dev/null; then
+             $as_unset BASH_ENV || test &quot;${BASH_ENV+set}&quot; != set || { BASH_ENV=; export BASH_ENV; }
+             $as_unset ENV || test &quot;${ENV+set}&quot; != set || { ENV=; export ENV; }
+             CONFIG_SHELL=$as_dir/$as_base
+             export CONFIG_SHELL
+             exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; ${1+&quot;$@&quot;}
+           fi;;
+         esac
+       done
+done
+;;
+  esac
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, and appends trailing '-' during
+  # substitution so that $LINENO is not a special case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' &lt;$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' &gt;$as_me.lineno &amp;&amp;
+  chmod +x $as_me.lineno ||
+    { { echo &quot;$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo &quot;testing\c&quot;; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='        ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo &gt;conf$$.file
+if ln -s conf$$.file conf$$ 2&gt;/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2&gt;/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2&gt;/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p &amp;&amp; rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_executable_p=&quot;test -f&quot;
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp=&quot;eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'&quot;
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh=&quot;eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'&quot;
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=&quot;         $as_nl&quot;
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6&gt;&amp;1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.  Logging --version etc. is OK.
+exec 5&gt;&gt;config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' &lt;&lt;_ASBOX
+## Running $as_me. ##
+_ASBOX
+} &gt;&amp;5
+cat &gt;&amp;5 &lt;&lt;_CSEOF
+
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+_CSEOF
+echo &quot;on `(hostname || uname -n) 2&gt;/dev/null | sed 1q`&quot; &gt;&amp;5
+echo &gt;&amp;5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n &quot;$ac_config_files&quot;; then
+  echo &quot;config_files=\&quot;$ac_config_files\&quot;&quot; &gt;&gt;$CONFIG_STATUS
+fi
+
+if test -n &quot;$ac_config_headers&quot;; then
+  echo &quot;config_headers=\&quot;$ac_config_headers\&quot;&quot; &gt;&gt;$CONFIG_STATUS
+fi
+
+if test -n &quot;$ac_config_links&quot;; then
+  echo &quot;config_links=\&quot;$ac_config_links\&quot;&quot; &gt;&gt;$CONFIG_STATUS
+fi
+
+if test -n &quot;$ac_config_commands&quot;; then
+  echo &quot;config_commands=\&quot;$ac_config_commands\&quot;&quot; &gt;&gt;$CONFIG_STATUS
+fi
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+
+ac_cs_usage=&quot;\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number, then exit
+  -q, --quiet      do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+                   instantiate the configuration file FILE
+  --header=FILE[:TEMPLATE]
+                   instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to &lt;bug-autoconf@gnu.org&gt;.&quot;
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+ac_cs_version=&quot;\\
+config.status
+configured by $0, generated by GNU Autoconf 2.59,
+  with options \\&quot;`echo &quot;$ac_configure_args&quot; | sed 's/[\\&quot;&quot;\`\$]/\\\\&amp;/g'`\\&quot;
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.&quot;
+srcdir=$srcdir
+INSTALL=&quot;$INSTALL&quot;
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+# If no file are specified by the user, then we need to provide default
+# value.  By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=*)
+    ac_option=`expr &quot;x$1&quot; : 'x\([^=]*\)='`
+    ac_optarg=`expr &quot;x$1&quot; : 'x[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  -*)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_option=$1
+     ac_need_defaults=false;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --vers* | -V )
+    echo &quot;$ac_cs_version&quot;; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo &quot;$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information.&quot; &gt;&amp;5
+echo &quot;$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; };;
+  --help | --hel | -h )
+    echo &quot;$ac_cs_usage&quot;; exit 0 ;;
+  --debug | --d* | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    CONFIG_FILES=&quot;$CONFIG_FILES $ac_optarg&quot;
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    CONFIG_HEADERS=&quot;$CONFIG_HEADERS $ac_optarg&quot;
+    ac_need_defaults=false;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { { echo &quot;$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information.&quot; &gt;&amp;5
+echo &quot;$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information.&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets=&quot;$ac_config_targets $1&quot; ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6&gt;/dev/null
+  ac_configure_extra_args=&quot;$ac_configure_extra_args --silent&quot;
+fi
+
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+if \$ac_cs_recheck; then
+  echo &quot;running $SHELL $0 &quot; $ac_configure_args \$ac_configure_extra_args &quot; --no-create --no-recursion&quot; &gt;&amp;6
+  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+#
+# INIT-COMMANDS section.
+#
+
+AMDEP_TRUE=&quot;$AMDEP_TRUE&quot; ac_aux_dir=&quot;$ac_aux_dir&quot;
+# Capture the value of obsolete ALL_LINGUAS because we need it to compute
+    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
+    # from automake.
+    eval 'OBSOLETE_ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
+    # Capture the value of LINGUAS because we need it to compute CATALOGS.
+    LINGUAS=&quot;${LINGUAS-%UNSET%}&quot;
+
+
+_ACEOF
+
+
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+  case &quot;$ac_config_target&quot; in
+  # Handling of arguments.
+  &quot;Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES Makefile&quot; ;;
+  &quot;gsmlib/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES gsmlib/Makefile&quot; ;;
+  &quot;tests/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES tests/Makefile&quot; ;;
+  &quot;apps/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES apps/Makefile&quot; ;;
+  &quot;win32/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES win32/Makefile&quot; ;;
+  &quot;doc/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES doc/Makefile&quot; ;;
+  &quot;scripts/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES scripts/Makefile&quot; ;;
+  &quot;intl/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES intl/Makefile&quot; ;;
+  &quot;po/Makefile.in&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES po/Makefile.in&quot; ;;
+  &quot;ext/Makefile&quot; ) CONFIG_FILES=&quot;$CONFIG_FILES ext/Makefile&quot; ;;
+  &quot;depfiles&quot; ) CONFIG_COMMANDS=&quot;$CONFIG_COMMANDS depfiles&quot; ;;
+  &quot;default-1&quot; ) CONFIG_COMMANDS=&quot;$CONFIG_COMMANDS default-1&quot; ;;
+  &quot;default&quot; ) CONFIG_COMMANDS=&quot;$CONFIG_COMMANDS default&quot; ;;
+  &quot;gsm_config.h&quot; ) CONFIG_HEADERS=&quot;$CONFIG_HEADERS gsm_config.h&quot; ;;
+  *) { { echo &quot;$as_me:$LINENO: error: invalid argument: $ac_config_target&quot; &gt;&amp;5
+echo &quot;$as_me: error: invalid argument: $ac_config_target&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test &quot;${CONFIG_FILES+set}&quot; = set || CONFIG_FILES=$config_files
+  test &quot;${CONFIG_HEADERS+set}&quot; = set || CONFIG_HEADERS=$config_headers
+  test &quot;${CONFIG_COMMANDS+set}&quot; = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp &amp;&amp; exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 &amp;&amp; mktemp -d -q &quot;./confstatXXXXXX&quot;) 2&gt;/dev/null` &amp;&amp;
+  test -n &quot;$tmp&quot; &amp;&amp; test -d &quot;$tmp&quot;
+}  ||
+{
+  tmp=./confstat$$-$RANDOM
+  (umask 077 &amp;&amp; mkdir $tmp)
+} ||
+{
+   echo &quot;$me: cannot create a temporary directory in .&quot; &gt;&amp;2
+   { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n &quot;\$CONFIG_FILES&quot;; then
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&amp;,]/\\\\&amp;/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' &gt;\$tmp/subs.sed &lt;&lt;\\CEOF
+s,@SHELL@,$SHELL,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@DEFS@,$DEFS,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@LIBS@,$LIBS,;t t
+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+s,@INSTALL_DATA@,$INSTALL_DATA,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@CYGPATH_W@,$CYGPATH_W,;t t
+s,@PACKAGE@,$PACKAGE,;t t
+s,@VERSION@,$VERSION,;t t
+s,@ACLOCAL@,$ACLOCAL,;t t
+s,@AUTOCONF@,$AUTOCONF,;t t
+s,@AUTOMAKE@,$AUTOMAKE,;t t
+s,@AUTOHEADER@,$AUTOHEADER,;t t
+s,@MAKEINFO@,$MAKEINFO,;t t
+s,@install_sh@,$install_sh,;t t
+s,@STRIP@,$STRIP,;t t
+s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
+s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
+s,@mkdir_p@,$mkdir_p,;t t
+s,@AWK@,$AWK,;t t
+s,@SET_MAKE@,$SET_MAKE,;t t
+s,@am__leading_dot@,$am__leading_dot,;t t
+s,@AMTAR@,$AMTAR,;t t
+s,@am__tar@,$am__tar,;t t
+s,@am__untar@,$am__untar,;t t
+s,@DEPDIR@,$DEPDIR,;t t
+s,@am__include@,$am__include,;t t
+s,@am__quote@,$am__quote,;t t
+s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
+s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
+s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
+s,@CCDEPMODE@,$CCDEPMODE,;t t
+s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
+s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
+s,@build@,$build,;t t
+s,@build_cpu@,$build_cpu,;t t
+s,@build_vendor@,$build_vendor,;t t
+s,@build_os@,$build_os,;t t
+s,@host@,$host,;t t
+s,@host_cpu@,$host_cpu,;t t
+s,@host_vendor@,$host_vendor,;t t
+s,@host_os@,$host_os,;t t
+s,@EGREP@,$EGREP,;t t
+s,@LN_S@,$LN_S,;t t
+s,@ECHO@,$ECHO,;t t
+s,@AR@,$AR,;t t
+s,@ac_ct_AR@,$ac_ct_AR,;t t
+s,@RANLIB@,$RANLIB,;t t
+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+s,@CPP@,$CPP,;t t
+s,@CXX@,$CXX,;t t
+s,@CXXFLAGS@,$CXXFLAGS,;t t
+s,@ac_ct_CXX@,$ac_ct_CXX,;t t
+s,@CXXDEPMODE@,$CXXDEPMODE,;t t
+s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
+s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
+s,@CXXCPP@,$CXXCPP,;t t
+s,@F77@,$F77,;t t
+s,@FFLAGS@,$FFLAGS,;t t
+s,@ac_ct_F77@,$ac_ct_F77,;t t
+s,@LIBTOOL@,$LIBTOOL,;t t
+s,@ALLOCA@,$ALLOCA,;t t
+s,@GSM_VERSION@,$GSM_VERSION,;t t
+s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
+s,@USE_NLS@,$USE_NLS,;t t
+s,@MSGFMT@,$MSGFMT,;t t
+s,@GMSGFMT@,$GMSGFMT,;t t
+s,@XGETTEXT@,$XGETTEXT,;t t
+s,@MSGMERGE@,$MSGMERGE,;t t
+s,@GLIBC2@,$GLIBC2,;t t
+s,@GLIBC21@,$GLIBC21,;t t
+s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
+s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
+s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
+s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
+s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
+s,@LIBICONV@,$LIBICONV,;t t
+s,@LTLIBICONV@,$LTLIBICONV,;t t
+s,@INTLBISON@,$INTLBISON,;t t
+s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
+s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
+s,@CATOBJEXT@,$CATOBJEXT,;t t
+s,@DATADIRNAME@,$DATADIRNAME,;t t
+s,@INSTOBJEXT@,$INSTOBJEXT,;t t
+s,@GENCAT@,$GENCAT,;t t
+s,@INTLOBJS@,$INTLOBJS,;t t
+s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
+s,@INTLLIBS@,$INTLLIBS,;t t
+s,@LIBINTL@,$LIBINTL,;t t
+s,@LTLIBINTL@,$LTLIBINTL,;t t
+s,@POSUB@,$POSUB,;t t
+s,@COMPILE_INTL_TRUE@,$COMPILE_INTL_TRUE,;t t
+s,@COMPILE_INTL_FALSE@,$COMPILE_INTL_FALSE,;t t
+s,@LIBOBJS@,$LIBOBJS,;t t
+s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+CEOF
+
+_ACEOF
+
+  cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed &quot;1,${ac_beg}d; ${ac_end}q&quot; $tmp/subs.sed &gt;$tmp/subs.frag
+    else
+      sed &quot;${ac_end}q&quot; $tmp/subs.sed &gt;$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
+    else
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' &amp;&amp; cat $tmp/subs.frag) &gt;$tmp/subs-$ac_sed_frag.sed
+      if test -z &quot;$ac_sed_cmds&quot;; then
+        ac_sed_cmds=&quot;sed -f $tmp/subs-$ac_sed_frag.sed&quot;
+      else
+        ac_sed_cmds=&quot;$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed&quot;
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
+    fi
+  done
+  if test -z &quot;$ac_sed_cmds&quot;; then
+    ac_sed_cmds=cat
+  fi
+fi # test -n &quot;$CONFIG_FILES&quot;
+
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+for ac_file in : $CONFIG_FILES; do test &quot;x$ac_file&quot; = x: &amp;&amp; continue
+  # Support &quot;outfile[:infile[:infile...]]&quot;, defaulting infile=&quot;outfile.in&quot;.
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat &gt;$tmp/stdin
+        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`(dirname &quot;$ac_file&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$ac_file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
+         X&quot;$ac_file&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$ac_file&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+  { if $as_mkdir_p; then
+    mkdir -p &quot;$ac_dir&quot;
+  else
+    as_dir=&quot;$ac_dir&quot;
+    as_dirs=
+    while test ! -d &quot;$as_dir&quot;; do
+      as_dirs=&quot;$as_dir $as_dirs&quot;
+      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
+         X&quot;$as_dir&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$as_dir&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+    done
+    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
+  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test &quot;$ac_dir&quot; != .; then
+  ac_dir_suffix=/`echo &quot;$ac_dir&quot; | sed 's,^\.[\\/],,'`
+  # A &quot;../&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo &quot;$ac_dir_suffix&quot; | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z &quot;$ac_top_builddir&quot;; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir=&quot;$ac_dir&quot;;;
+*)
+  case &quot;$ac_dir&quot; in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
+  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+  esac
+
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x&quot;$ac_file&quot; = x-; then
+    configure_input=
+  else
+    configure_input=&quot;$ac_file.  &quot;
+  fi
+  configure_input=$configure_input&quot;Generated from `echo $ac_file_in |
+                                     sed 's,.*/,,'` by configure.&quot;
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+         echo &quot;$f&quot;;;
+      *) # Relative
+         if test -f &quot;$f&quot;; then
+           # Build tree
+           echo &quot;$f&quot;
+         elif test -f &quot;$srcdir/$f&quot;; then
+           # Source tree
+           echo &quot;$srcdir/$f&quot;
+         else
+           # /dev/null tree
+           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+
+  if test x&quot;$ac_file&quot; != x-; then
+    { echo &quot;$as_me:$LINENO: creating $ac_file&quot; &gt;&amp;5
+echo &quot;$as_me: creating $ac_file&quot; &gt;&amp;6;}
+    rm -f &quot;$ac_file&quot;
+  fi
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+  sed &quot;$ac_vpsub
+$extrasub
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@abs_srcdir@,$ac_abs_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@abs_builddir@,$ac_abs_builddir,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+s,@INSTALL@,$ac_INSTALL,;t t
+&quot; $ac_file_inputs | (eval &quot;$ac_sed_cmds&quot;) &gt;$tmp/out
+  rm -f $tmp/stdin
+  if test x&quot;$ac_file&quot; != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+
+#
+# CONFIG_HEADER section.
+#
+
+# These sed commands are passed to sed as &quot;A NAME B NAME C VALUE D&quot;, where
+# NAME is the cpp macro being defined and VALUE is the value it is being given.
+#
+# ac_d sets the value in &quot;#define NAME VALUE&quot; lines.
+ac_dA='s,^\([         ]*\)#\([         ]*define[         ][         ]*\)'
+ac_dB='[         ].*$,\1#\2'
+ac_dC=' '
+ac_dD=',;t'
+# ac_u turns &quot;#undef NAME&quot; without trailing blanks into &quot;#define NAME VALUE&quot;.
+ac_uA='s,^\([         ]*\)#\([         ]*\)undef\([         ][         ]*\)'
+ac_uB='$,\1#\2define\3'
+ac_uC=' '
+ac_uD=',;t'
+
+for ac_file in : $CONFIG_HEADERS; do test &quot;x$ac_file&quot; = x: &amp;&amp; continue
+  # Support &quot;outfile[:infile[:infile...]]&quot;, defaulting infile=&quot;outfile.in&quot;.
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat &gt;$tmp/stdin
+        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  test x&quot;$ac_file&quot; != x- &amp;&amp; { echo &quot;$as_me:$LINENO: creating $ac_file&quot; &gt;&amp;5
+echo &quot;$as_me: creating $ac_file&quot; &gt;&amp;6;}
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+         # Do quote $f, to prevent DOS paths from being IFS'd.
+         echo &quot;$f&quot;;;
+      *) # Relative
+         if test -f &quot;$f&quot;; then
+           # Build tree
+           echo &quot;$f&quot;
+         elif test -f &quot;$srcdir/$f&quot;; then
+           # Source tree
+           echo &quot;$srcdir/$f&quot;
+         else
+           # /dev/null tree
+           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+  # Remove the trailing spaces.
+  sed 's/[         ]*$//' $ac_file_inputs &gt;$tmp/in
+
+_ACEOF
+
+# Transform confdefs.h into two sed scripts, `conftest.defines' and
+# `conftest.undefs', that substitutes the proper values into
+# config.h.in to produce config.h.  The first handles `#define'
+# templates, and the second `#undef' templates.
+# And first: Protect against being on the right side of a sed subst in
+# config.status.  Protect against being in an unquoted here document
+# in config.status.
+rm -f conftest.defines conftest.undefs
+# Using a here document instead of a string reduces the quoting nightmare.
+# Putting comments in sed scripts is not portable.
+#
+# `end' is used to avoid that the second main sed command (meant for
+# 0-ary CPP macros) applies to n-ary macro definitions.
+# See the Autoconf documentation for `clear'.
+cat &gt;confdef2sed.sed &lt;&lt;\_ACEOF
+s/[\\&amp;,]/\\&amp;/g
+s,[\\$`],\\&amp;,g
+t clear
+: clear
+s,^[         ]*#[         ]*define[         ][         ]*\([^         (][^         (]*\)\(([^)]*)\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+t end
+s,^[         ]*#[         ]*define[         ][         ]*\([^         ][^         ]*\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+: end
+_ACEOF
+# If some macros were called several times there might be several times
+# the same #defines, which is useless.  Nevertheless, we may not want to
+# sort them, since we want the *last* AC-DEFINE to be honored.
+uniq confdefs.h | sed -n -f confdef2sed.sed &gt;conftest.defines
+sed 's/ac_d/ac_u/g' conftest.defines &gt;conftest.undefs
+rm -f confdef2sed.sed
+
+# This sed command replaces #undef with comments.  This is necessary, for
+# example, in the case of _POSIX_SOURCE, which is predefined and required
+# on some systems where configure will not decide to define it.
+cat &gt;&gt;conftest.undefs &lt;&lt;\_ACEOF
+s,^[         ]*#[         ]*undef[         ][         ]*[a-zA-Z_][a-zA-Z_0-9]*,/* &amp; */,
+_ACEOF
+
+# Break up conftest.defines because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #define templates only if necessary.' &gt;&gt;$CONFIG_STATUS
+echo '  if grep &quot;^[         ]*#[         ]*define&quot; $tmp/in &gt;/dev/null; then' &gt;&gt;$CONFIG_STATUS
+echo '  # If there are no defines, we may have an empty if/fi' &gt;&gt;$CONFIG_STATUS
+echo '  :' &gt;&gt;$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.defines &gt;/dev/null
+do
+  # Write a limited-size here document to $tmp/defines.sed.
+  echo '  cat &gt;$tmp/defines.sed &lt;&lt;CEOF' &gt;&gt;$CONFIG_STATUS
+  # Speed up: don't consider the non `#define' lines.
+  echo '/^[         ]*#[         ]*define/!b' &gt;&gt;$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' &gt;&gt;$CONFIG_STATUS
+  echo ': clr' &gt;&gt;$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.defines &gt;&gt;$CONFIG_STATUS
+  echo 'CEOF
+  sed -f $tmp/defines.sed $tmp/in &gt;$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' &gt;&gt;$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.defines &gt;conftest.tail
+  rm -f conftest.defines
+  mv conftest.tail conftest.defines
+done
+rm -f conftest.defines
+echo '  fi # grep' &gt;&gt;$CONFIG_STATUS
+echo &gt;&gt;$CONFIG_STATUS
+
+# Break up conftest.undefs because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #undef templates' &gt;&gt;$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.undefs &gt;/dev/null
+do
+  # Write a limited-size here document to $tmp/undefs.sed.
+  echo '  cat &gt;$tmp/undefs.sed &lt;&lt;CEOF' &gt;&gt;$CONFIG_STATUS
+  # Speed up: don't consider the non `#undef'
+  echo '/^[         ]*#[         ]*undef/!b' &gt;&gt;$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' &gt;&gt;$CONFIG_STATUS
+  echo ': clr' &gt;&gt;$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.undefs &gt;&gt;$CONFIG_STATUS
+  echo 'CEOF
+  sed -f $tmp/undefs.sed $tmp/in &gt;$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' &gt;&gt;$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.undefs &gt;conftest.tail
+  rm -f conftest.undefs
+  mv conftest.tail conftest.undefs
+done
+rm -f conftest.undefs
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x&quot;$ac_file&quot; = x-; then
+    echo &quot;/* Generated by configure.  */&quot; &gt;$tmp/config.h
+  else
+    echo &quot;/* $ac_file.  Generated by configure.  */&quot; &gt;$tmp/config.h
+  fi
+  cat $tmp/in &gt;&gt;$tmp/config.h
+  rm -f $tmp/in
+  if test x&quot;$ac_file&quot; != x-; then
+    if diff $ac_file $tmp/config.h &gt;/dev/null 2&gt;&amp;1; then
+      { echo &quot;$as_me:$LINENO: $ac_file is unchanged&quot; &gt;&amp;5
+echo &quot;$as_me: $ac_file is unchanged&quot; &gt;&amp;6;}
+    else
+      ac_dir=`(dirname &quot;$ac_file&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$ac_file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
+         X&quot;$ac_file&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$ac_file&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+      { if $as_mkdir_p; then
+    mkdir -p &quot;$ac_dir&quot;
+  else
+    as_dir=&quot;$ac_dir&quot;
+    as_dirs=
+    while test ! -d &quot;$as_dir&quot;; do
+      as_dirs=&quot;$as_dir $as_dirs&quot;
+      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
+         X&quot;$as_dir&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$as_dir&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+    done
+    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
+  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }; }
+
+      rm -f $ac_file
+      mv $tmp/config.h $ac_file
+    fi
+  else
+    cat $tmp/config.h
+    rm -f $tmp/config.h
+  fi
+# Compute $ac_file's index in $config_headers.
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+  case $_am_header in
+    $ac_file | $ac_file:* )
+      break ;;
+    * )
+      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+  esac
+done
+echo &quot;timestamp for $ac_file&quot; &gt;`(dirname $ac_file) 2&gt;/dev/null ||
+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X$ac_file : 'X\(//\)[^/]' \| \
+         X$ac_file : 'X\(//\)$' \| \
+         X$ac_file : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X$ac_file |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`/stamp-h$_am_stamp_count
+done
+_ACEOF
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+
+#
+# CONFIG_COMMANDS section.
+#
+for ac_file in : $CONFIG_COMMANDS; do test &quot;x$ac_file&quot; = x: &amp;&amp; continue
+  ac_dest=`echo &quot;$ac_file&quot; | sed 's,:.*,,'`
+  ac_source=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+  ac_dir=`(dirname &quot;$ac_dest&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$ac_dest&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$ac_dest&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$ac_dest&quot; : 'X\(//\)$' \| \
+         X&quot;$ac_dest&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$ac_dest&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+  { if $as_mkdir_p; then
+    mkdir -p &quot;$ac_dir&quot;
+  else
+    as_dir=&quot;$ac_dir&quot;
+    as_dirs=
+    while test ! -d &quot;$as_dir&quot;; do
+      as_dirs=&quot;$as_dir $as_dirs&quot;
+      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
+         X&quot;$as_dir&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$as_dir&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+    done
+    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
+  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test &quot;$ac_dir&quot; != .; then
+  ac_dir_suffix=/`echo &quot;$ac_dir&quot; | sed 's,^\.[\\/],,'`
+  # A &quot;../&quot; for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo &quot;$ac_dir_suffix&quot; | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z &quot;$ac_top_builddir&quot;; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir=&quot;$ac_dir&quot;;;
+*)
+  case &quot;$ac_dir&quot; in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
+  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+
+  { echo &quot;$as_me:$LINENO: executing $ac_dest commands&quot; &gt;&amp;5
+echo &quot;$as_me: executing $ac_dest commands&quot; &gt;&amp;6;}
+  case $ac_dest in
+    depfiles ) test x&quot;$AMDEP_TRUE&quot; != x&quot;&quot; || for mf in $CONFIG_FILES; do
+  # Strip MF so we end up with the name of the file.
+  mf=`echo &quot;$mf&quot; | sed -e 's/:.*$//'`
+  # Check whether this is an Automake generated Makefile or not.
+  # We used to match only the files named `Makefile.in', but
+  # some people rename them; so instead we look at the file content.
+  # Grep'ing the first line is not enough: some people post-process
+  # each Makefile.in and add a new line on top of each file to say so.
+  # So let's grep whole file.
+  if grep '^#.*generated by automake' $mf &gt; /dev/null 2&gt;&amp;1; then
+    dirpart=`(dirname &quot;$mf&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$mf&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$mf&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$mf&quot; : 'X\(//\)$' \| \
+         X&quot;$mf&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$mf&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+  else
+    continue
+  fi
+  # Extract the definition of DEPDIR, am__include, and am__quote
+  # from the Makefile without running `make'.
+  DEPDIR=`sed -n 's/^DEPDIR = //p' &lt; &quot;$mf&quot;`
+  test -z &quot;$DEPDIR&quot; &amp;&amp; continue
+  am__include=`sed -n 's/^am__include = //p' &lt; &quot;$mf&quot;`
+  test -z &quot;am__include&quot; &amp;&amp; continue
+  am__quote=`sed -n 's/^am__quote = //p' &lt; &quot;$mf&quot;`
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n 's/^U = //p' &lt; &quot;$mf&quot;`
+  # Find all dependency output files, they are included files with
+  # $(DEPDIR) in their names.  We invoke sed twice because it is the
+  # simplest approach to changing $(DEPDIR) to its actual value in the
+  # expansion.
+  for file in `sed -n &quot;
+    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote&quot;'$/\1/p' &lt;&quot;$mf&quot; | \
+       sed -e 's/\$(DEPDIR)/'&quot;$DEPDIR&quot;'/g' -e 's/\$U/'&quot;$U&quot;'/g'`; do
+    # Make sure the directory exists.
+    test -f &quot;$dirpart/$file&quot; &amp;&amp; continue
+    fdir=`(dirname &quot;$file&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$file&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$file&quot; : 'X\(//\)$' \| \
+         X&quot;$file&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$file&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+    { if $as_mkdir_p; then
+    mkdir -p $dirpart/$fdir
+  else
+    as_dir=$dirpart/$fdir
+    as_dirs=
+    while test ! -d &quot;$as_dir&quot;; do
+      as_dirs=&quot;$as_dir $as_dirs&quot;
+      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
+$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
+         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
+         X&quot;$as_dir&quot; : 'X\(/\)' \| \
+         .     : '\(.\)' 2&gt;/dev/null ||
+echo X&quot;$as_dir&quot; |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+            /^X\(\/\/\)$/{ s//\1/; q; }
+            /^X\(\/\).*/{ s//\1/; q; }
+            s/.*/./; q'`
+    done
+    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
+  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory $dirpart/$fdir&quot; &gt;&amp;5
+echo &quot;$as_me: error: cannot create directory $dirpart/$fdir&quot; &gt;&amp;2;}
+   { (exit 1); exit 1; }; }; }
+
+    # echo &quot;creating $dirpart/$file&quot;
+    echo '# dummy' &gt; &quot;$dirpart/$file&quot;
+  done
+done
+ ;;
+    default-1 )
+    for ac_file in $CONFIG_FILES; do
+      # Support &quot;outfile[:infile[:infile...]]&quot;
+      case &quot;$ac_file&quot; in
+        *:*) ac_file=`echo &quot;$ac_file&quot;|sed 's%:.*%%'` ;;
+      esac
+      # PO directories have a Makefile.in generated from Makefile.in.in.
+      case &quot;$ac_file&quot; in */Makefile.in)
+        # Adjust a relative srcdir.
+        ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
+        ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
+        ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
+        # In autoconf-2.13 it is called $ac_given_srcdir.
+        # In autoconf-2.50 it is called $srcdir.
+        test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
+        case &quot;$ac_given_srcdir&quot; in
+          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+          /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
+          *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
+        esac
+        # Treat a directory as a PO directory if and only if it has a
+        # POTFILES.in file. This allows packages to have multiple PO
+        # directories under different names or in different locations.
+        if test -f &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot;; then
+          rm -f &quot;$ac_dir/POTFILES&quot;
+          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/POTFILES&quot; || echo &quot;creating $ac_dir/POTFILES&quot;
+          cat &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot; | sed -e &quot;/^#/d&quot; -e &quot;/^[         ]*\$/d&quot; -e &quot;s,.*,     $top_srcdir/&amp; \\\\,&quot; | sed -e &quot;\$s/\(.*\) \\\\/\1/&quot; &gt; &quot;$ac_dir/POTFILES&quot;
+          POMAKEFILEDEPS=&quot;POTFILES.in&quot;
+          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
+          # on $ac_dir but don't depend on user-specified configuration
+          # parameters.
+          if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
+            # The LINGUAS file contains the set of available languages.
+            if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
+              test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
+            fi
+            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
+            # Hide the ALL_LINGUAS assigment from automake.
+            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+            POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
+          else
+            # The set of available languages was given in configure.in.
+            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
+          fi
+          # Compute POFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
+          # Compute UPDATEPOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
+          # Compute DUMMYPOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
+          # Compute GMOFILES
+          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
+          case &quot;$ac_given_srcdir&quot; in
+            .) srcdirpre= ;;
+            *) srcdirpre='$(srcdir)/' ;;
+          esac
+          POFILES=
+          UPDATEPOFILES=
+          DUMMYPOFILES=
+          GMOFILES=
+          for lang in $ALL_LINGUAS; do
+            POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
+            UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
+            DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
+            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+          done
+          # CATALOGS depends on both $ac_dir and the user's LINGUAS
+          # environment variable.
+          INST_LINGUAS=
+          if test -n &quot;$ALL_LINGUAS&quot;; then
+            for presentlang in $ALL_LINGUAS; do
+              useit=no
+              if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
+                desiredlanguages=&quot;$LINGUAS&quot;
+              else
+                desiredlanguages=&quot;$ALL_LINGUAS&quot;
+              fi
+              for desiredlang in $desiredlanguages; do
+                # Use the presentlang catalog if desiredlang is
+                #   a. equal to presentlang, or
+                #   b. a variant of presentlang (because in this case,
+                #      presentlang can be used as a fallback for messages
+                #      which are not translated in the desiredlang catalog).
+                case &quot;$desiredlang&quot; in
+                  &quot;$presentlang&quot;*) useit=yes;;
+                esac
+              done
+              if test $useit = yes; then
+                INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
+              fi
+            done
+          fi
+          CATALOGS=
+          if test -n &quot;$INST_LINGUAS&quot;; then
+            for lang in $INST_LINGUAS; do
+              CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
+            done
+          fi
+          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/Makefile&quot; || echo &quot;creating $ac_dir/Makefile&quot;
+          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
+          for f in &quot;$ac_given_srcdir/$ac_dir&quot;/Rules-*; do
+            if test -f &quot;$f&quot;; then
+              case &quot;$f&quot; in
+                *.orig | *.bak | *~) ;;
+                *) cat &quot;$f&quot; &gt;&gt; &quot;$ac_dir/Makefile&quot; ;;
+              esac
+            fi
+          done
+        fi
+        ;;
+      esac
+    done ;;
+    default ) echo timestamp &gt; stamp-h ;;
+  esac
+done
+_ACEOF
+
+cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+
+{ (exit 0); exit 0; }
+_ACEOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded.  So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status.  When coming back to configure, we
+# need to make the FD available again.
+if test &quot;$no_create&quot; != yes; then
+  ac_cs_success=:
+  ac_config_status_args=
+  test &quot;$silent&quot; = yes &amp;&amp;
+    ac_config_status_args=&quot;$ac_config_status_args --quiet&quot;
+  exec 5&gt;/dev/null
+  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+  exec 5&gt;&gt;config.log
+  # Use ||, not &amp;&amp;, to avoid exiting from the if with $? = 1, which
+  # would make configure fail if this is the last instruction.
+  $ac_cs_success || { (exit 1); exit 1; }
+fi
+
+
</ins><span class="cx">Property changes on: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1configurein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/configure.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,131 @@
</span><ins>+dnl *************************************************************************
+dnl * GSM TA/ME library
+dnl *
+dnl * File:    configure.in
+dnl *
+dnl * Purpose: autoconf configure script template
+dnl *
+dnl * Author:  Peter Hofmann (software@pxh.de)
+dnl *
+dnl * Created: 11.11.1999
+dnl *************************************************************************
+
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(gsmlib/gsm_error.h)
+
+dnl Other
+AC_CONFIG_AUX_DIR(scripts)
+AC_PROG_INSTALL
+
+dnl check for libintl
+AC_CHECK_LIB(intl, textdomain)
+
+dnl use config header
+AM_CONFIG_HEADER(gsm_config.h)
+
+dnl use automake
+AM_INIT_AUTOMAKE(gsmlib, 1.10)
+
+dnl change to no if you want no shared libraries for debugging purposes
+AM_ENABLE_SHARED(yes)
+
+dnl use -O2 optimization by default
+if test &quot;$CXXFLAGS&quot; = &quot;&quot;; then
+   CXXFLAGS=&quot;-O2&quot;
+fi
+
+dnl comment out this line to get extensive debugging output and asserts
+dnl CXXFLAGS=&quot;-DNDEBUG $CXXFLAGS&quot;
+
+dnl uncomment to get translations without installing gsmlib
+dnl CXXFLAGS=&quot;-DLOCAL_TRANSLATIONS $CXXFLAGS&quot;
+
+dnl check _REENTRANT in header files
+if test x&quot;`egrep _REENTRANT /usr/include/features.h`&quot; != x; then
+  CXXFLAGS=&quot;-D_REENTRANT $CXXFLAGS&quot;
+  CFLAGS=&quot;-D_REENTRANT $CFLAGS&quot;
+fi
+
+dnl output all warnings
+CXXFLAGS=&quot;-Wall $CXXFLAGS&quot;
+
+dnl use libtool
+AM_PROG_LIBTOOL
+
+dnl Checks for programs.
+AC_PROG_CPP
+AC_PROG_CXX
+
+dnl check for gcc 2.95.x
+AC_TRY_RUN([
+#include &lt;unistd.h&gt;
+main()
+{
+#if defined(__GNUC__) &amp;&amp; \
+    ! (__GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 95))
+    return 1;
+#endif
+  return 0;
+}
+],,
+[echo &quot;need at least gcc 2.95 to compile correctly&quot;
+exit 1])
+
+dnl check for alloca
+AC_FUNC_ALLOCA
+
+dnl check for getopt_long in the C library
+AC_CHECK_LIB(c, getopt_long, AC_DEFINE(HAVE_GETOPT_LONG))
+
+dnl check for alarm in the C library
+AC_CHECK_LIB(c, alarm, AC_DEFINE(HAVE_ALARM))
+
+dnl check for netinet/in.h header
+AC_CHECK_HEADERS(netinet/in.h)
+
+dnl check for string.h header
+AC_CHECK_HEADERS(string.h)
+
+dnl check for libintl.h header
+AC_CHECK_HEADERS(libintl.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+dnl check for vsnprintf()
+dnl AC_FUNC_VPRINTF
+AC_EGREP_HEADER(vsnprintf, stdio.h, AC_DEFINE(HAVE_VSNPRINTF))
+
+dnl checks for builtin data type sizes
+AC_CHECK_SIZEOF(unsigned short int, 2)
+AC_CHECK_SIZEOF(unsigned long int, 4)
+AC_CHECK_SIZEOF(unsigned int, 4)
+
+dnl Project-specific settings
+GSM_VERSION=&quot;1:4:0&quot;
+AC_SUBST(GSM_VERSION)
+
+dnl national language support (NLS)
+LINGUAS=&quot;de&quot;
+ALL_LINGUAS=$LINGUAS
+AM_GNU_GETTEXT
+
+dnl set locale dir (FIXME there must be a better way)
+_localedir=`eval &quot;echo $datadir/locale&quot;`
+if test &quot;$_localedir&quot; = &quot;NONE/share/locale&quot;; then
+   AC_DEFINE_UNQUOTED(LOCALEDIR, &quot;/usr/local/share/locale&quot;)
+else
+   _localedir=`echo \&quot;$_localedir\&quot;`
+   AC_DEFINE_UNQUOTED(LOCALEDIR, $_localedir)
+fi
+
+dnl whether to compile the intl directory
+AM_CONDITIONAL(COMPILE_INTL, test x$USE_INCLUDED_LIBINTL = xyes)
+
+AC_OUTPUT(Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile
+          doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in
+          ext/Makefile,
+          echo timestamp &gt; stamp-h)
+
+dnl repair Makefile in po subdir
+dnl sed -e &quot;/POTFILES =/r po/POTFILES&quot; po/Makefile.in &gt; po/Makefile
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilscrond"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.cron.d (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.cron.d                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.cron.d        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+# /etc/cron.d/gsm-utils: crontab fragment for gsm-utils
+
+*/5 * * * *        root        if [ -x /usr/bin/gsmsmsrequeue ]; then /usr/bin/gsmsmsrequeue; fi
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilsdefault"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.default (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.default                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.default        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
+BAUDRATE=9600
+PIN=&quot;&quot;  # or 1234
+
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+
+SMSADMIN=root
+SUBJECT=&quot;SMS delivery report:&quot;
+
+SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
+
+function do_accounting { true; }  # it's your turn
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmutilsinit"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.init (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.init                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsm-utils.init        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+#! /bin/sh
+#
+# /etc/init.d/gsm-utils: Controls the GSM SMS send daemon
+#
+# written by Matthias Goebl &lt;matthias@goebl.net&gt;
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/gsmsmsd
+NAME=gsmsmsd
+DESC=&quot;GSM SMS send daemon&quot;
+
+test -x $DAEMON || exit 0
+
+PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
+BAUDRATE=9600
+PIN=&quot;&quot;  # or 1234
+SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+STARTOPTS=&quot;&quot;
+SMSUSER=&quot;gsmsms:gsmsms&quot;
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting some parameters
+
+OPTIONS=&quot;-d $PHONEDEV -b $BAUDRATE -L -P $PRIORITIES&quot;
+OPTIONS=&quot;$OPTIONS -s $SPOOLDIR/queue -S $SPOOLDIR/sent -F $SPOOLDIR/failed&quot;
+test -n &quot;$SMSPROCESSOR&quot; &amp;&amp; OPTIONS=&quot;$OPTIONS -a $SMSPROCESSOR&quot;
+test -n &quot;$SMSUSER&quot; &amp;&amp; STARTOPTS=&quot;$STARTOPTS --chuid $SMSUSER&quot;
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting OPTIONS
+
+case &quot;$1&quot; in
+  start)
+        echo -n &quot;Starting $DESC: &quot;
+        if [ -n &quot;$PIN&quot; ];then
+                echo -n &quot;entering PIN.. &quot;
+                (
+                # This is ugly.. But if the PIN is already entered, the ME returns
+                # &quot;ERROR&quot; and makes gsmctl retrying..
+                /usr/bin/gsmctl -d $PHONEDEV -b $BAUDRATE -I &quot;+cpin=$PIN&quot; &amp;
+                PID=$!
+                sleep 3
+                kill $PID 2&gt;/dev/null
+                ) &gt;/dev/null 2&gt;&amp;1
+        fi
+        echo -n &quot;$NAME&quot;
+        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
+        echo &quot;.&quot;
+        ;
+  stop)
+        echo -n &quot;Stopping $DESC: $NAME &quot;
+        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --exec $DAEMON
+        sleep 5
+        echo &quot;.&quot;
+        ;
+  restart|force-reload)
+        echo -n &quot;Restarting $DESC: $NAME&quot;
+        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
+        sleep 5
+        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background --exec $DAEMON -- $OPTIONS
+        echo &quot;.&quot;
+        ;
+  *)
+        N=/etc/init.d/gsm-utils
+        echo &quot;Usage: $N {start|stop|restart|force-reload}&quot; &gt;&amp;2
+        exit 1
+        ;
+esac
+
+exit 0
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmsmsrequeue"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsrequeue (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsrequeue                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsrequeue        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+#! /bin/sh
+#
+# /usr/bin/gsmsmsrequeue: Re-queues failed SMS
+#
+# written by Matthias Goebl &lt;matthias@goebl.net&gt;
+
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+SMSADMIN=root
+SUBJECT=&quot;SMS delivery report:&quot;
+
+function send_notify {
+  tmpfile=&quot;$SPOOLDIR/tmp/&quot;`basename &quot;$1&quot;`
+  status=&quot;$2&quot;
+  if mv &quot;$1&quot; &quot;$tmpfile&quot; 2&gt;/dev/null; then
+    # extract the first tab-separated field after the phone number as
+    # email-address to send the notification to
+    mailto=` cat &quot;$tmpfile&quot; | sed -ne '1s/^[^        ]*        \([^        ]*\).*/\1/p' `
+    test -z &quot;$mailto&quot; &amp;&amp; mailto=&quot;$SMSADMIN&quot;
+    cat &quot;$tmpfile&quot; | mail -s &quot;$SUBJECT $status&quot; &quot;$mailto&quot;
+    rm &quot;$tmpfile&quot;
+  fi
+}
+function do_accounting { true; }
+
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils
+
+for p in `seq 1 $PRIORITIES`; do
+  ls &quot;$SPOOLDIR/failed$p&quot; | while read file; do
+    if expr &quot;$file&quot; : &quot;.*rrrrrrrrrrrr&quot; &gt;/dev/null; then
+      send_notify &quot;$SPOOLDIR/failed$p/$file&quot; &quot;failed&quot;
+    else
+      # re-queue SMS
+      mv &quot;$SPOOLDIR/failed$p/$file&quot; &quot;$SPOOLDIR/queue$p/${file}r&quot; 2&gt;/dev/null
+    fi
+  done
+done
+
+for p in `seq 1 $PRIORITIES`; do
+  ls &quot;$SPOOLDIR/sent$p&quot; | while read file; do
+    do_accounting &quot;$SPOOLDIR/sent$p/$file&quot; &quot;sent&quot;
+    send_notify &quot;$SPOOLDIR/sent$p/$file&quot; &quot;sent&quot;
+  done
+done
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1contribgsmsmsspool"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsspool (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsspool                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/contrib/gsmsmsspool        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+#! /bin/sh
+#
+# /usr/bin/gsmsmsspool: Queues SMS for sending
+#
+# written by Matthias Goebl &lt;matthias@goebl.net&gt;
+
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils
+
+if [ -z &quot;$1&quot; ]; then
+  echo &quot;Usage: gsmsmsspool NUMBER [MESSAGE]&quot;
+  exit 1
+fi
+
+priority=$PRIORITIES  # default priority
+test -n &quot;$GSMSMS_PRIORITY&quot; &amp;&amp; priority=&quot;$GSMSMS_PRIORITY&quot;
+mailto=`id -un`
+test -n &quot;$GSMSMS_NOTIFY&quot; &amp;&amp; mailto=&quot;$GSMSMS_NOTIFY&quot;
+
+tmpfile=&quot;$SPOOLDIR/tmp/`date +%s`.$$&quot;
+umask 022
+echo &quot;$1        $mailto&quot; &gt; &quot;$tmpfile&quot;
+if [ -n &quot;$2&quot; ]; then
+  echo &quot;$2&quot; | head -c 160 &gt;&gt; &quot;$tmpfile&quot;
+else
+  head -c 160 &gt;&gt; &quot;$tmpfile&quot;
+fi
+
+if [ &quot;`id -un`&quot; = &quot;root&quot; ]; then
+  chown gsmsms:gsmsms &quot;$tmpfile&quot;
+fi
+
+mv &quot;$tmpfile&quot; &quot;$SPOOLDIR/queue$priority/&quot;
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianchangelog"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/changelog (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/changelog                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/changelog        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,244 @@
</span><ins>+gsmlib (1.10-12ubuntu1) hardy; urgency=low
+
+  * Merge from Debian unstable. Remaining Ubuntu changes:
+    - [debian/gsm-utils.postinst, debian/gsm-utils.init]
+      Create /var/run/gsm-utils if it does not exist
+    - Actually fix the init script (debian #377448)
+    - Set Ubuntu maintainer adress.
+
+ -- Albin Tonnerre &lt;lutin@ubuntu.com&gt;  Wed, 12 Dec 2007 00:45:00 +0100
+
+gsmlib (1.10-12) unstable; urgency=low
+
+  * addgroup --system gsmsms works better.  Thanks Jon
+  * only delete gsmsms on purge
+     - gsm-utils: deletes and recreates the gsmsms user on each upgrade
+     (Closes: #346238)
+     - gsm-utils fails installation / addgroup: The user gsmsms; does
+     not exist (Closes: #445404)
+  * lintian cleanup: debian-rules-ignores-make-clean-error substvar-
+    source-version-is-deprecated
+  * Scripts are installed +x
+    - gsm-utils: uselessly installs non-executable scripts into /usr/bin
+    (Closes: #346230)
+  * Remove bogus symlink
+    - gsm-utils: wrong symlink for manpage gsmsiectl.1 (Closes: #322382)
+    - gsm-utils: gsmsiectl.1 dangling symlink (Closes: #399582)
+  * debian/gsm-utils.init reload/restart was not calling --stop. Thanks
+    Barry
+    - init script calls --start twice (Closes: #377448)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Mon, 08 Oct 2007 21:44:00 +0100
+
+gsmlib (1.10-11) unstable; urgency=low
+
+  * Create system group gsmsms - Thanks Emmanuel
+     - gsm-utils: creates group in non-system gid range (Closes: #353967)
+     - gsm-utils: postinst should create system grp gsmsms (Closes:
+    #390266)
+  * Upgrade to compat 4
+  * Apply gcc-4.3 patch from Martin
+    - FTBFS with GCC 4.3: missing #includes (Closes: #417222)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 29 Sep 2007 18:22:56 +0100
+
+gsmlib (1.10-10ubuntu3) feisty; urgency=low
+
+  * Rebuild for ldbl128 change (powerpc, sparc).
+  * Set Ubuntu maintainer address.
+
+ -- Matthias Klose &lt;doko@ubuntu.com&gt;  Thu,  1 Mar 2007 22:37:57 +0000
+
+gsmlib (1.10-10ubuntu2) edgy; urgency=low
+
+  * [debian/gsm-utils.postinst, debian/gsm-utils.init]
+    Create /var/run/gsm-utils if it does not exist
+
+ -- Matt Zimmerman &lt;mdz@ubuntu.com&gt;  Tue, 11 Jul 2006 13:59:12 -0700
+
+gsmlib (1.10-10ubuntu1) edgy; urgency=low
+
+  * Re-sync with Debian
+  * debian/gsm-utils.init reload/restart was not calling --stop
+
+ -- Barry deFreese &lt;bddebian@comcast.net&gt;  Sat,  8 Jul 2006 22:52:23 -0400
+
+gsmlib (1.10-10) unstable; urgency=low
+
+  * FTBFS with G++ 4.1: extra qualifications (Closes: #356109)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 20 May 2006 21:54:42 +0100
+
+gsmlib (1.10-9) unstable; urgency=low
+
+  * library package needs to be renamed (libstdc++ allocator change)
+    (Closes: #339179)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Mon, 21 Nov 2005 21:19:51 +0000
+
+gsmlib (1.10-8) unstable; urgency=low
+
+  * removal of automake1.6 (Closes: #335123)
+  * fails with dash [bashisms in scripts] (Closes: #309834)
+  * Update libtool Fixes: gsmlib(GNU/k*BSD): FTBFS: out of date libtool scripts (Closes:
+    #319688)
+  * [INTL:de] German PO file corrections (Closes: #314060)
+  * Fix: old-fsf-address-in-copyright-file
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Thu,  3 Nov 2005 22:40:19 +0000
+
+gsmlib (1.10-7) unstable; urgency=low
+
+  * C++ 4.0 transition
+  * Closes: #315864: Missing manpages
+  * gsm-utils: maintainer-script-needs-depends-on-adduser postinst
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 23 Jul 2005 00:46:31 +1000
+
+gsmlib (1.10-6) unstable; urgency=low
+
+  * Rebuild for invalid dependancies
+  * Closes: #258056: libgsmme 99% cpu usage
+    - Patch from Emard
+  * Closes: #274382: FTBFS with gcc-3.4: template-id `operator&amp;lt;
+    &amp;lt;&amp;gt;' for `bool gsmlib::operator&amp;lt;(const
+    gsmlib::MapKey&amp;lt;gsmlib::SortedPhonebookBase&amp;gt;&amp;amp;, const
+    gsmlib::MapKey&amp;lt;gsmlib::SortedPhonebookBase&amp;gt;&amp;amp;)' does not
+    match any template declaration
+    - Patch from Andreas Jochens
+  * Closes: #294251: FTBFS (amd64/gcc-4.0): explicit qualification in
+    declaration of `bool gsmlib::operator&amp;lt;(const
+    gsmlib::MapKey&amp;lt;SortedStore&amp;gt;&amp;amp;, const
+    gsmlib::MapKey&amp;lt;SortedStore&amp;gt;&amp;amp;)'
+    - Patch from Andreas Jochens
+  * Closes: #200189: Patch and contribution 
+    +  Added multi-queue-priority-system and syslog patch (Matthias Goebl)
+    +  Included init, spool and requeue scripts for gsmsmsd (Matthias Goebl)
+    +  gsmsmsd runs with own user and group (gsmsms:gsmsms) (Matthias Goebl)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Tue, 17 May 2005 11:34:45 +0100
+
+gsmlib (1.10-5) unstable; urgency=low
+
+  * Change Section: libdevel
+  * gsm_unix_serial.cc patch from Daniel Schepler to fix g++-3.3
+    compliation. Thanks. (Closes: Bug#195151)
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 19 Jul 2003 15:57:28 +1000
+
+gsmlib (1.10-4) unstable; urgency=low
+
+  * Include file descriptor leak patch from Edd Dumbill (Closes:
+    Bug#168475)
+  * lintian cleanup: description-synopsis-might-not-be-phrased-properly
+  * lintian cleanup: configure-generated-file-in-source
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sun,  9 Feb 2003 14:04:54 +1100
+
+gsmlib (1.10-3) unstable; urgency=low
+
+  * New Maintainer (Closes: Bug#180061). Thanks Mikael for your work.
+
+ -- Mark Purcell &lt;msp@debian.org&gt;  Sat,  8 Feb 2003 16:55:26 +1100
+
+gsmlib (1.10-2) unstable; urgency=low
+
+  * Rebuild to use the new c++ ABI (GCC 3.2)
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 23 Jan 2003 20:57:50 +0100
+
+gsmlib (1.10-1) unstable; urgency=low
+
+  * New upstrem release.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Wed,  6 Nov 2002 17:44:17 +0100
+
+gsmlib (1.9-2) unstable; urgency=low
+
+  * Made new rules for the config.guess/sub update thing (closes: #146865,
+    #146867).
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Tue, 14 May 2002 09:28:03 +0200
+
+gsmlib (1.9-1) unstable; urgency=low
+
+  * New upstream version.
+  * Use chrpath to get rid of rpaths.
+  * Add mini-manpage for gsmsiexfer.
+  * Remove b-d on auto-stuff, we don't use them.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Mon, 13 May 2002 22:10:28 +0200
+
+gsmlib (1.8-2) unstable; urgency=low
+
+  * Removed b-d on gcc 3.0, as they are no longer nessecary.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 24 Jan 2002 12:59:07 +0100
+
+gsmlib (1.8-1) unstable; urgency=low
+
+  * New upstream version.
+  * Revert the arch hack, now it should compile with either g++.
+  * Include the new lib in libgsmme1.  Run dh_makeshlibs -V because of this.
+  * Added info for gsmsiectl in gsmctl(1).
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Wed,  9 Jan 2002 22:38:45 +0100
+
+gsmlib (1.7-2) unstable; urgency=low
+
+  * gsm-utils: Added shlibs:Depends (closes: #126127). 
+  * Spelling correction (closes: #124705, #124972)
+  * Rm libgsmme1.postins, and let dh_makeshlibs take care of ldconfig.
+  * Made explicit arch list without sparc and arm, they cannot use g++-3.0
+    right now.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Sat, 22 Dec 2001 20:27:54 +0100
+
+gsmlib (1.7-1) unstable; urgency=low
+
+  * New upstream
+  * Use gcc-3.0 and g++-3.0, 2.95 doesn't compile.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu,  1 Nov 2001 10:24:33 +0100
+
+gsmlib (1.6-5) unstable; urgency=low
+
+  * Updated manpage (closes: #110973)
+  * Corrected problem with OP status (closes: #110970)
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Sat,  8 Sep 2001 18:12:17 +0200
+
+gsmlib (1.6-4) unstable; urgency=low
+
+  * Support DEB_BUILD_OPTIONS
+  * Changed libgsmme-dev to section devel.
+  * Reran libtoolize.
+  * Lots of small patches to compile with g++-3.0. (Closes: #104411) 
+  * Removed dh_testversion.
+
+ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 12 Jul 2001 16:06:23 +0200
+
+gsmlib (1.6-3) unstable; urgency=low
+
+  * Various minor corrections.
+
+ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Thu,  8 Mar 2001 16:24:07 +0100
+
+gsmlib (1.6-2) unstable; urgency=low
+
+  * Dont install INSTALL.  Correct indentation for libgsmme1 description.
+
+ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Tue,  6 Mar 2001 14:55:05 +0100
+
+gsmlib (1.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Mon, 29 Jan 2001 17:57:21 +0100
+
+gsmlib (1.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Thu, 14 Dec 2000 01:06:40 +0100
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancompat"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/compat (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/compat                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/compat        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+4
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancontrol"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/control (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/control                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/control        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+Source: gsmlib
+Section: comm
+Priority: extra
+Maintainer: Ubuntu MOTU Developers &lt;ubuntu-motu@lists.ubuntu.com&gt;
+XSBC-Original-Maintainer: Mark Purcell &lt;msp@debian.org&gt;
+Build-Depends: debhelper (&gt;= 3.0.0), chrpath
+Standards-Version: 3.2.1
+
+Package: libgsmme-dev
+Section: libdevel
+Architecture: any
+Depends: libgsmme1c2a (= ${binary:Version}), libc6-dev
+Description: Header files and static libraries for gsmlib
+ Headers and static libraries for use when compiling programs with 
+ gsmlib.  
+ .
+ gsmlib is a library for access to a GSM mobile phone using the
+ standards ETSI GSM 07.07, ETSI GSM 07.05, and others. 
+ .
+ Website: http://www.pxh.de/fs/gsmlib/
+
+Package: libgsmme1c2a
+Conflicts: libgsmme1, libgsmme1c102, libgsmme1c2
+Replaces: libgsmme1c102, libgsmme1c2
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: GSM mobile phone access library
+ Library to access GSM mobile phones through GSM modems or IrDA devices. 
+ Features include:
+ .
+  * modification of phone books stored in the mobile phone or on the 
+   SIM card
+  * reading and writing of SMS messages stored in the mobile phone
+  * sending and reception of SMS messages
+ .
+ gsmlib uses standard ETSI GSM 07.07, ETSI GSM 07.05, and others.
+ .
+ Website: http://www.pxh.de/fs/gsmlib/
+
+Package: gsm-utils
+Section: comm
+Architecture: any
+Depends: ${shlibs:Depends}, adduser
+Description: GSM mobile phone access applications
+ Some simple command line programs to access a GSM mobile phone via
+ GSM modem or IrDA.  Functions include: modification of phone books and
+ reading, writing, sending and receiving SMS messages.  Uses the GSM
+ standards ETSI GSM 07.07, ETSI GSM 07.05, and others.  
+ .
+ Website: http://www.pxh.de/fs/gsmlib/
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiancopyright"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/copyright (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/copyright                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/copyright        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+This package was debianized by Mikael Hedin &lt;mikael.hedin@irf.se&gt; on
+Thu, 14 Dec 2000 01:06:40 +0100.
+
+It was downloaded from http://www.pxh.de/fs/gsmlib/index.html
+
+Upstream Author: Peter Hofmann &lt;software@pxh.de&gt;
+
+Copyright:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 dated June, 1991.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+   MA 02110-1301, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilscrond"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.cron.d (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.cron.d                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.cron.d        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+# /etc/cron.d/gsm-utils: crontab fragment for gsm-utils
+
+*/5 * * * *        root        if [ -x /usr/bin/gsmsmsrequeue ]; then /usr/bin/gsmsmsrequeue; fi
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdefault"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.default (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.default                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.default        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
+BAUDRATE=9600
+PIN=&quot;&quot;  # or 1234
+
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+
+SMSADMIN=root
+SUBJECT=&quot;SMS delivery report:&quot;
+
+SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
+
+function do_accounting { true; }  # it's your turn
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdirs"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.dirs (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.dirs                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.dirs        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+var/spool/sms/queue1
+var/spool/sms/queue2
+var/spool/sms/queue3
+var/spool/sms/sent1
+var/spool/sms/sent2
+var/spool/sms/sent3
+var/spool/sms/failed1
+var/spool/sms/failed2
+var/spool/sms/failed3
+var/spool/sms/tmp
+var/run/gsm-utils
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsdocs"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.docs (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.docs                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.docs        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+NEWS
+README
+TODO
+doc/FAQ
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsinit"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.init (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.init                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.init        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,77 @@
</span><ins>+#! /bin/sh
+#
+# /etc/init.d/gsm-utils: Controls the GSM SMS send daemon
+#
+# written by Matthias Goebl &lt;matthias@goebl.net&gt;
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/gsmsmsd
+NAME=gsmsmsd
+DESC=&quot;GSM SMS send daemon&quot;
+
+test -x $DAEMON || exit 0
+
+PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
+BAUDRATE=9600
+PIN=&quot;&quot;  # or 1234
+SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
+SPOOLDIR=/var/spool/sms
+PRIORITIES=3
+STARTOPTS=&quot;&quot;
+SMSUSER=&quot;gsmsms:gsmsms&quot;
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting some parameters
+
+OPTIONS=&quot;-d $PHONEDEV -b $BAUDRATE -L -P $PRIORITIES&quot;
+OPTIONS=&quot;$OPTIONS -s $SPOOLDIR/queue -S $SPOOLDIR/sent -F $SPOOLDIR/failed&quot;
+test -n &quot;$SMSPROCESSOR&quot; &amp;&amp; OPTIONS=&quot;$OPTIONS -a $SMSPROCESSOR&quot;
+test -n &quot;$SMSUSER&quot; &amp;&amp; STARTOPTS=&quot;$STARTOPTS --chuid $SMSUSER&quot;
+test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting OPTIONS
+
+if [ ! -d /var/run/gsm-utils ]; then
+  mkdir /var/run/gsm-utils
+  chown gsmsms:gsmsms /var/run/gsm-utils
+fi
+
+case &quot;$1&quot; in
+  start)
+        echo -n &quot;Starting $DESC: &quot;
+        if [ -n &quot;$PIN&quot; ];then
+                echo -n &quot;entering PIN.. &quot;
+                (
+                # This is ugly.. But if the PIN is already entered, the ME returns
+                # &quot;ERROR&quot; and makes gsmctl retrying..
+                /usr/bin/gsmctl -d $PHONEDEV -b $BAUDRATE -I &quot;+cpin=$PIN&quot; &amp;
+                PID=$!
+                sleep 3
+                kill $PID 2&gt;/dev/null
+                ) &gt;/dev/null 2&gt;&amp;1
+        fi
+        echo -n &quot;$NAME&quot;
+        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
+        echo &quot;.&quot;
+        ;
+  stop)
+        echo -n &quot;Stopping $DESC: $NAME &quot;
+        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --exec $DAEMON
+        sleep 5
+        echo &quot;.&quot;
+        ;
+  restart|force-reload)
+        echo -n &quot;Restarting $DESC: $NAME&quot;
+        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background --exec $DAEMON -- $OPTIONS
+        sleep 5
+        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
+                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
+        echo &quot;.&quot;
+        ;
+  *)
+        N=/etc/init.d/gsm-utils
+        echo &quot;Usage: $N {start|stop|restart|force-reload}&quot; &gt;&amp;2
+        exit 1
+        ;
+esac
+
+exit 0
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilspostinst"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postinst (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postinst                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postinst        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+#!/bin/sh -e
+
+# create gsmsms group if necessary.
+if ! grep -q ^gsmsms: /etc/group; then
+#      echo Adding system group: gsmsms.
+       addgroup --system gsmsms
+fi
+
+# create gsmsms user if necessary.
+if ! grep -q ^gsmsms: /etc/passwd; then
+#        echo Adding system user: gsmsms.
+        adduser --system --ingroup gsmsms \
+                --no-create-home --home /var/spool/sms gsmsms
+fi
+
+# allow gsmsms to use serial lines
+if ! groups gsmsms | grep -q dialout ; then
+        adduser gsmsms dialout
+fi
+
+# echo Updating spool directory structure: /var/spool/sms
+if [ ! -d /var/run/gsm-utils ]; then
+  mkdir /var/run/gsm-utils
+fi
+chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
+chmod 700 /var/spool/sms/*
+chmod 750 /var/spool/sms
+chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp
+
+# Add the rest automatically..
+#DEBHELPER#
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilspostrm"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postrm (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postrm                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.postrm        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+#!/bin/sh
+# postrm script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * &lt;postrm&gt; `remove'
+#        * &lt;postrm&gt; `purge'
+#        * &lt;old-postrm&gt; `upgrade' &lt;new-version&gt;
+#        * &lt;new-postrm&gt; `failed-upgrade' &lt;old-version&gt;
+#        * &lt;new-postrm&gt; `abort-install'
+#        * &lt;new-postrm&gt; `abort-install' &lt;old-version&gt;
+#        * &lt;new-postrm&gt; `abort-upgrade' &lt;old-version&gt;
+#        * &lt;disappearer's-postrm&gt; `disappear' &lt;overwriter&gt;
+#          &lt;overwriter-version&gt;
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case &quot;$1&quot; in
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    purge)
+       deluser gsmsms  
+    ;;
+
+    *)
+        echo &quot;postrm called with unknown argument \`$1'&quot; &gt;&amp;2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmutilsundocumented"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.undocumented (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.undocumented                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsm-utils.undocumented        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+gsmsmsspool.1  
+gsmsmsrequeue.8
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debiangsmsiexfer1"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsmsiexfer.1 (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsmsiexfer.1                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/gsmsiexfer.1        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMSIEXFER 1 &quot;&quot; &quot;gsmsiexfer&quot;
+.SH NAME
+gsmsiexfer \-  Siemens ME file transfer program for Siemens phones S25, S35, S45, ME45, SL45
+.SH SYNOPSIS
+.B gsmsiexfer --help
+.PP
+.SH DESCRIPTION
+\fIgsmsiexer\fP comes with no man page.  Try gsmsiexfer --help, or
+read the source.
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo(7),
+.BR gsmctl(1),
+.BR gsmsendsms(1),
+.BR gsmsmsd(8),
+.BR gsmsmsstore(1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianlibgsmmedevdocs"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/libgsmme-dev.docs (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/libgsmme-dev.docs                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/libgsmme-dev.docs        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+doc/README.developers
+doc/README.NLS
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianrules"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/rules (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/rules                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/rules        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,137 @@
</span><ins>+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# shared library versions, option 1
+#version=2.0.5
+#major=2
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+me_version=`ls gsmlib/.libs/libgsmme*.so.* | \
+ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+me_major=`ls gsmlib/.libs/libgsmme*.so.* | \
+ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+ex_version=`ls ext/.libs/libgsmext*.so.* | \
+ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+ex_major=`ls ext/.libs/libgsmext*.so.* | \
+ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+# FOR AUTOCONF 2.13 ONLY
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  confflags += $(DEB_HOST_GNU_TYPE)
+else
+  confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -g
+CXXFLAGS += -g
+endif
+
+configure: configure-stamp
+configure-stamp:
+        dh_testdir
+        # Add here commands to configure the package.
+        CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) INSTALL_PROGRAM=$(INSTALL_PROGRAM) \
+        ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man \
+        --infodir=\$${prefix}/share/info
+
+        touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+        dh_testdir
+
+        # Add here commands to compile the package.
+        $(MAKE)
+
+        touch build-stamp
+
+clean:
+        dh_testdir
+        dh_testroot
+
+        # Add here commands to clean up after the build process.
+        [ ! -f Makefile ] || $(MAKE) distclean
+        rm -f build-stamp configure-stamp config.log config.status po/de.gmo
+
+        -test -r /usr/share/misc/config.sub &amp;&amp; \
+           cp -f /usr/share/misc/config.sub scripts/config.sub
+        -test -r /usr/share/misc/config.guess &amp;&amp; \
+           cp -f /usr/share/misc/config.guess scripts/config.guess
+
+        dh_clean
+
+install: build
+        dh_testdir
+        dh_testroot
+        dh_clean -k
+        dh_installdirs
+        dh_installdirs -pgsm-utils
+
+        # Add here commands to install the package into debian/gsmlib.
+        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+        chrpath -d debian/tmp/usr/bin/*
+        cp contrib/gsmsmsspool contrib/gsmsmsrequeue debian/tmp/usr/bin
+        cp contrib/gsm-utils.init contrib/gsm-utils.default debian
+        cp contrib/gsm-utils.cron.d debian
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+        dh_testdir
+        dh_testroot
+        #
+        # build libgsmlib${major} package by moving files from gsmlib-dev
+        #
+        dh_movefiles -plibgsmme$(me_major)c2a  \
+        usr/lib/libgsmme.so.$(me_major)        \
+        usr/lib/libgsmme.so.$(me_version)    \
+        usr/lib/libgsmext.so.$(ex_major)        \
+        usr/lib/libgsmext.so.$(ex_version)    \
+        usr/share/locale
+
+        dh_movefiles -plibgsmme-dev     \
+        usr/include                   \
+        usr/lib
+
+        dh_movefiles -pgsm-utils \
+        usr/bin
+
+
+#        dh_installdebconf        
+        dh_installdocs
+        dh_installexamples
+        dh_installmenu
+#        dh_installemacsen
+#        dh_installpam
+        dh_installinit
+        dh_installcron
+        dh_installman -pgsm-utils debian/*.1 debian/tmp/usr/share/man/man*/*
+        dh_installinfo
+        dh_installchangelogs ChangeLog
+        dh_link
+        dh_strip
+        dh_compress
+        dh_fixperms
+        dh_makeshlibs -V
+        dh_installdeb
+#        dh_perl
+        dh_shlibdeps -ldebian/libgsmme1c2a/usr/lib
+        dh_gencontrol
+        dh_md5sums
+        dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1debianwatch"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/watch (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/watch                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/debian/watch        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+version=2
+http://www.pxh.de/fs/gsmlib/download/content.html gsmlib-(.*)\.tar\.gz
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docFAQ"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/FAQ (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/FAQ                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/FAQ        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,101 @@
</span><ins>+*** 1. I get the error
+       /usr/local/bin/gsmsmsd [ERROR]: cannot route status report message to TE
+
+Some phones/modems cannot route all kinds of SMS to the TE
+(computer). Please try
+
+  gsmsmsd no_stat
+
+This is documented in the gsmsmsd manual page.
+
+
+*** 2. Siemens M20T expects an initial PIN.
+
+For the Siemens M20T an initial PIN must be send once (probably when
+it is switched on or the computer is powered on). This PIN is used for
+all subsequent invocations of gsmlib-based programs. The trick is to
+issue the following program (eg. in the rc-scripts of the operating system):
+
+  gsmctl -I &quot;+cpin=&lt;MY PIN&gt;&quot;
+
+
+*** 3. Sending SMS with or retrieving SMS from my Ericsson SH888 does
+not work.
+
+Set the environment variable GSMLIB_SH888_FIX:
+
+export GSMLIB_SH888_FIX=1     (bash)
+setenv GSMLIB_SH888_FIX 1     (tcsh)
+
+If it works now, I need your model number. You could just enter
+&quot;AT+CGMM&quot; in a terminal program and send me the results. Alternatively 
+set the environment variable GSMLIB_DEBUG=2 and me the dump.
+
+*** 4. I get the error &quot;ME/TA error 'Unidentified subscriber' (code
+28)&quot; when trying to send SMS using gsmsendsms or gsmsmsd.
+
+The SMS service centre address (SCA, the phone number of the centre that is
+accepting SMS for delivery) is not set correctly in your phone. There
+are three ways to correct this:
+
+1. set the default SCA (example is for Germany T-D1):
+
+  gsmctl -o setsca &quot;+491710760000&quot;
+
+2. Use the menus of your phone to set the SMS SCA.
+
+3. Use the option &quot;--sca 1234567&quot; for the gsmsmsd, gsmsmsstore, and
+gsmsendsms programs. This tries to set the SCA in the SMS itself (does
+not change default SCA) and might not work with all phones.
+
+*** 5. gsmlib works unreliably with my phone.
+
+Try another baudrate, even higher baudrates sometimes work better then
+lower ones.
+
+*** 6. On Win32 accessing the COM device fails.
+
+Use COMx: (x is the number of the COM device) instead of the UNIX
+device name. If this doesn't work use &quot;\\.\COMx:&quot;.
+
+*** 7. Windows 2000 Does Not Support Mapping Virtual COM Ports to
+       Infrared Ports.
+
+Windows 2000 users should follow the instructions in
+support.microsoft.com article Q252795 in order to connect with their
+mobile.
+
+*** 8. gcc-compiled shared C++ libraries do not work properly on some
+       commercial UNIX systems and with older version of gcc.
+
+The symptoms may be that the program dumps core on exceptions (AIX) or that
+global constructors are not called (Solaris).
+
+Try to compile gsmlib with
+
+  ./configure --disable-shared --enable-static
+
+if you encounter strange problems.
+
+*** 9. How to support unicode? 
+
+You need 6 steps:
+
+1. set datacodingschema to DCS_SIXTEEN_BIT_ALPHABET
+
+2. set your locale correctly, for example, my locale, china. 
+    setlocale(LC_ALL, &quot;chs&quot;);
+
+3. translate MBCS(multiple byte character set) string to unicode string.
+    wchar_t wstr[ 1000 ];
+    memset(wstr, 0, 2000);
+    mbstowcs(wstr, data.c_str(), data.length());
+
+4. get unicode string length.
+    int wcs_len = wcslen(wstr);
+
+5. change unicode string to net order.
+    for (int i = 0; i &lt; wcs_len; i++)
+        wstr[ i ] = htons(wstr[ i ]);
+
+6. put unicode string into pdu.
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: doc Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 11.6.1999
+# *************************************************************************
+
+man_MANS =        gsmsmsd.8 gsmctl.1 gsmpb.1 gsmsendsms.1 gsmsmsstore.1 gsminfo.7
+
+EXTRA_DIST =        gsmsmsd.man gsmctl.man gsmpb.man gsmsendsms.man \
+                gsmsmsstore.man gsmlib.lsm gsminfo.man \
+                README.NLS README.developers FAQ
+
+%.1: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+%.7: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+%.8: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+clean-local:
+                rm -f *.1 *.7 *.8
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,412 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: doc Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 11.6.1999
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+man_MANS = gsmsmsd.8 gsmctl.1 gsmpb.1 gsmsendsms.1 gsmsmsstore.1 gsminfo.7
+
+EXTRA_DIST = gsmsmsd.man gsmctl.man gsmpb.man gsmsendsms.man \
+                gsmsmsstore.man gsmlib.lsm gsminfo.man \
+                README.NLS README.developers FAQ
+
+subdir = doc
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+
+NROFF = nroff
+MANS = $(man_MANS)
+DIST_COMMON = Makefile.am Makefile.in
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  doc/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+
+man1dir = $(mandir)/man1
+install-man1: $(man1_MANS) $(man_MANS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(man1dir)
+        @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.1*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+          else file=$$i; fi; \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          case &quot;$$ext&quot; in \
+            1*) ;; \
+            *) ext='1' ;; \
+          esac; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst&quot;; \
+          $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
+        done
+uninstall-man1:
+        @$(NORMAL_UNINSTALL)
+        @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.1*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; rm -f $(DESTDIR)$(man1dir)/$$inst&quot;; \
+          rm -f $(DESTDIR)$(man1dir)/$$inst; \
+        done
+
+man7dir = $(mandir)/man7
+install-man7: $(man7_MANS) $(man_MANS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(man7dir)
+        @list='$(man7_MANS) $(dist_man7_MANS) $(nodist_man7_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.7*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+          else file=$$i; fi; \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          case &quot;$$ext&quot; in \
+            7*) ;; \
+            *) ext='7' ;; \
+          esac; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; $(INSTALL_DATA) $$file $(DESTDIR)$(man7dir)/$$inst&quot;; \
+          $(INSTALL_DATA) $$file $(DESTDIR)$(man7dir)/$$inst; \
+        done
+uninstall-man7:
+        @$(NORMAL_UNINSTALL)
+        @list='$(man7_MANS) $(dist_man7_MANS) $(nodist_man7_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.7*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; rm -f $(DESTDIR)$(man7dir)/$$inst&quot;; \
+          rm -f $(DESTDIR)$(man7dir)/$$inst; \
+        done
+
+man8dir = $(mandir)/man8
+install-man8: $(man8_MANS) $(man_MANS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(man8dir)
+        @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.8*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+          else file=$$i; fi; \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          case &quot;$$ext&quot; in \
+            8*) ;; \
+            *) ext='8' ;; \
+          esac; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst&quot;; \
+          $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
+        done
+uninstall-man8:
+        @$(NORMAL_UNINSTALL)
+        @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
+        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+        for i in $$l2; do \
+          case &quot;$$i&quot; in \
+            *.8*) list=&quot;$$list $$i&quot; ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed -e 's/^.*\///'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo &quot; rm -f $(DESTDIR)$(man8dir)/$$inst&quot;; \
+          rm -f $(DESTDIR)$(man8dir)/$$inst; \
+        done
+tags: TAGS
+TAGS:
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile $(MANS)
+
+installdirs:
+        $(mkinstalldirs) $(DESTDIR)$(man1dir) $(DESTDIR)$(man7dir) $(DESTDIR)$(man8dir)
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-man
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man: install-man1 install-man7 install-man8
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+uninstall-am: uninstall-info-am uninstall-man
+
+uninstall-man: uninstall-man1 uninstall-man7 uninstall-man8
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+        clean-local distclean distclean-generic distclean-libtool \
+        distdir dvi dvi-am info info-am install install-am install-data \
+        install-data-am install-exec install-exec-am install-info \
+        install-info-am install-man install-man1 install-man7 \
+        install-man8 install-strip installcheck installcheck-am \
+        installdirs maintainer-clean maintainer-clean-generic \
+        mostlyclean mostlyclean-generic mostlyclean-libtool uninstall \
+        uninstall-am uninstall-info-am uninstall-man uninstall-man1 \
+        uninstall-man7 uninstall-man8
+
+
+%.1: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+%.7: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+%.8: %.man
+                sed -e &quot;s/##VERSION##/$(VERSION)/g;s/##DATE##/`date`/g&quot; \
+                $&lt; &gt; $@
+
+clean-local:
+                rm -f *.1 *.7 *.8
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docREADMENLS"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.NLS (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.NLS                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.NLS        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,72 @@
</span><ins>+0 Introduction
+--------------
+
+This version of gsmlib contains national language support (NLS) using
+the GNU (or OS-supplied) gettext library. gettext eases the handling
+of translations of (usually english) output messages to other
+languages by introducing the concept of message catalogs.
+
+Message catalogs can exist in various formats. The human-readable and
+-editable format is the PO file format. I have written a PO-file for
+the german language (de.po). These human-readable files are then
+translated to MO files which can be used by the gettext library.
+
+Please refer to the GNU gettext documentation (at the time of this
+writing gettext-0.10) for further details.
+
+
+1 Compiling gsmlib with localized messages
+------------------------------------------
+
+Gsmlib is compiled by default with NLS enabled. If you don't want
+NLS invoke configure with the option
+
+./configure --disable-nls
+
+
+2 Adding new message dialogs
+----------------------------
+
+1. Edit the ALL_LINGUAS line in &quot;source/configure.in&quot; and add your
+   language, eg. French:
+
+   ALL_LINGUAS=&quot;de fr&quot;
+
+2. Execute &quot;autoconf&quot; to create a new &quot;configure&quot; script (possible
+   problem: incompatible &quot;autoconf&quot;)
+
+3. Now issue &quot;./configure&quot; in the &quot;sources&quot; directory.
+
+4. go to the &quot;po&quot; subdirectory
+
+5. do a &quot;touch fr.po&quot; to create an initially empty PO-file.
+
+6. do a &quot;make update-po&quot;. This extracts all the strings from the files 
+   listed in &quot;POTFILES&quot; and puts them with empty translations into &quot;fr.po&quot;
+   (it also updates existing po-Files such as &quot;de.po&quot;).
+
+7. Now use the editor of your choice to provide translations in
+   &quot;fr.po&quot;. There is an emacs major mode (po-mode) that eases this
+   process.
+
+8. now issue &quot;make&quot;. This causes an &quot;fr.mo&quot; to be created.
+
+
+3 Adding new strings to gsmlib source code
+------------------------------------------
+
+1. If you add new strings to the gsmlib source code that need
+   translation enclose them with &quot;_(&quot; and &quot;)&quot; (see gettext documentation
+   for special cases).
+
+2. go to the &quot;po&quot; directory.
+
+3. do a &quot;make update-po&quot;. This updates all existing PO-files (removing 
+   obsolete translations, providing new, emptry entries).
+
+4. Provide translations for the new, empty entries (ideally using
+   emacs po-mode)
+
+5. now issue &quot;make&quot;. This causes up-to-date MO-files to be created.
+
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docREADMEdevelopers"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.developers (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.developers                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/README.developers        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,138 @@
</span><ins>+OVERVIEW
+
+     The GSM library is written in C++ and uses the latest C++
+     features: namespaces, exceptions, the standard template library.
+
+     The actual library source code is in the gsmlib subdirectory of
+     this distribution. The following modules are available:
+
+     gsm_alloca.h      OS-specific alloca defines
+     gsm_at.h          Utility classes for AT command sequence handling
+     gsm_error.h       Error codes and error handling functions
+     gsm_event.h       Event handler interface
+     gsm_me_ta.h       Mobile Equipment/Terminal Adapter and SMS functions
+                       (ETSI GSM 07.07 and 07.05)
+     gsm_parser.h      Parser to parse MA/TA result strings
+     gsm_phonebook.h   Phonebook management functions
+     gsm_port.h        Abstract port definition
+     gsm_sms.h         SMS functions (ETSI GSM 07.05)
+     gsm_sms_codec.h   Coder and Encoder for SMS TPDUs
+     gsm_sms_store.h   SMS functions, SMS store (ETSI GSM 07.05)
+     gsm_sorted_phonebook.h Alphabetically sorted phonebook
+                            (residing in files or in the ME)
+     gsm_sorted_sms_store.h Sorted SMS store
+                            (sorted by address, time or type)
+                            (residing in files or in the ME)
+     gsm_unix_serial.h UNIX serial port implementation
+     gsm_util.h        Various utilities
+
+
+REQUIREMENTS
+
+     I have used egcs-1.1.2 and libstdc++.so.2.8.0 for compiling the
+     library and all programs. Older probably don't work because of
+     missing features.
+
+
+AVAILABLE DOCUMENTATION
+
+     If you want to do your own programming using the GSM library please
+     refer to the extensively documented header files or to the example
+     programs in the test or apps subdirectory.
+
+     I have used the following documentation to develop this software:
+
+       gts_gsm_02.30_v5.2.0.pdf
+       gts_gsm_03.40_v5.3.0.pdf
+       gts_gsm_04.11_v5.1.0.pdf
+       gts_gsm_02.82_v5.0.0.pdf
+       gts_gsm_03.41_v5.2.0.pdf
+       gts_gsm_07.05_v5.3.0.pdf
+       gts_gsm_03.38_v5.3.0.pdf
+       gts_gsm_04.08_v5.1.0.pdf
+       gts_gsm_07.07_v5.0.0.pdf
+
+    Due to copyright reasons I cannot include this documentation in
+    this distribution. You can download it from the ETSI website
+    (www.etsi.org) for free, though.
+
+
+COMPILATION
+
+    The code is automatically compiled without debugging code enabled
+    (mostly assert()'s). 
+
+     If there are any problems you can generate a debug version
+     by issuing
+
+       CXXFLAGS=&quot;-g&quot; ./configure --disable-shared
+
+     To switch on asserts and additional debugging output change the line
+
+       CXXFLAGS=&quot;-DNEBUG $CXXFLAGS&quot;
+
+     in configure.in do
+
+       dnl CXXFLAGS=&quot;-DNEBUG $CXXFLAGS&quot;
+
+     Then regenerate configure by executing autoconf.
+
+     You must use at least gcc-2.95.2 to compile gsmlib successfully.
+
+
+TESTS
+
+    The tests directory contains a number of software tests. Two kinds 
+    of test programs are provided: Those, that run without a mobile
+    phone and those that require a mobile phone to be connected to a
+    serial port.
+
+    No access to mobile phone needed:
+    runparser.sh      Test the parser for AT responses
+    runsms.sh         Test SMS message encoding and decoding routines
+    runspb.sh         Test sorted phonebook module
+    runssms.sh        Test sorted SMS store module
+
+    Give mobile phone device as argument:
+    testsms2          Manipulate SMS store in the mobile phone (read/write)
+    testgsmlib        Test the gsm_me_ta module (readonly)
+    testpb            Dump all phonebooks in the mobile phone to the stdout
+                      (readonly)
+    testpb2           Manipulate phonebook in the mobile phone (read/write)
+
+    The tests that do not require a mobile phone can be executed by
+    issuing &quot;make check&quot; in the tests subdirectory. The others must be 
+    invoked manually. WARNING: These tests alter the contents of the
+    mobile phone's phonebook or SMS message memory!!! Make sure, that
+    you understand what the test does and be prepared for loss of data in
+    the mobile phone.
+
+HINTS
+
+    - By default gsmlib is compiled with NDEBUG set. There are lots
+      of assert()s all over the library that may help to find problems
+      in programs that use the library. Disable NDEBUG to get best
+      debugging support.
+
+CUSTOM BACKENDS
+
+    gsmlib now allows custom backends to be defined for sorted phonebooks
+    and sorted SMS stores. This can be used to store phonebook entries in
+    relational databases or LDAP servers. The interfaces are defined in
+    gsm_sorted_phonebook_base.h and gsm_sorted_sms_store_base.h,
+    respectively.
+
+    To register a custom backend (eg. for sorted phonebooks) follow
+    these steps:
+
+    1. Define a subclass of CustomPhonebookFactory.
+
+    2. Define a static initializer class in your module that uses the
+       interface CustomPhonebookRegistry::registerCustomPhonebookFactory()
+       to make your custom backend available.
+
+    3. Link your module to any application that should use your custom 
+       backend. The gsmpb and gsmsmsstore programs are prepared to use the
+       CustomPhonebookRegistry class to obtain your custom backend
+       objects.
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmctlman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmctl.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmctl.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmctl.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,683 @@
</span><ins>+.TH GSMCTL 8 &quot;##DATE##&quot; &quot;gsmctl v##VERSION##&quot;
+.SH NAME
+gsmctl, gsmsiectl \- GSM mobile phone control program
+.SH SYNOPSIS
+.B gsmctl
+.RB [\| \-b
+.IR  baudrate \|]
+.RB [\| \-\-baudrate
+.IR baudrate\| ]
+.RB [ \|\-d
+.IR device\| ]
+.RB [ \|\-\-device
+.IR device\fP ]
+.RB [ \|\-h\| ]
+.RB [ \|\-\-help\| ]
+.RB [ \|\-I
+.IR &quot;init string&quot; \|]
+.RB [ \|\-\-init
+.IR &quot;init string&quot; \|]
+.RB [ \|\-v\| ]
+.RB [ \|\-\-version\| ]
+.RB [ \|\-X\| ]
+.RB [ \|\-\-xonxoff\| ]
+.BI \-o \ operation
+.RB  | \ \-\-operation
+.IR operation \ |
+.I parameters
+.PP
+.B gsmsiectl
+.RB [\| \-b
+.IR  baudrate \|]
+.RB [\| \-\-baudrate
+.IR baudrate\| ]
+.RB [ \|\-d
+.IR device\| ]
+.RB [ \|\-\-device
+.IR device\fP ]
+.RB [ \|\-h\| ]
+.RB [ \|\-\-help\| ]
+.RB [ \|\-I
+.IR &quot;init string&quot; \|]
+.RB [ \|\-\-init
+.IR &quot;init string&quot; \|]
+.RB [ \|\-v\| ]
+.RB [ \|\-\-version\| ]
+.RB [ \|\-X\| ]
+.RB [ \|\-\-xonxoff\| ]
+.BI \-o \ operation
+.RB  | \ \-\-operation
+.IR operation \ |
+.I parameters
+.SH DESCRIPTION
+.B gsmctl
+can request information from or perform operations on an GSM mobile
+phone.
+.PP
+.B gsmctl 
+attaches itself to the 
+.I device
+given on the command line (usually an GSM modem) using the specified
+.IR baudrate .  
+If no
+.I device
+is given, the device
+.I/dev/mobilephone
+is used. If no 
+.I baudrate
+is given, a default baud rate of 38400 is used.
+.PP
+.B gsmctl
+can be used in to modes: If no 
+.B \-\-operation
+option is given the
+.I parameters
+specify the status information to be retrieved from
+the mobile phone. See the section 
+.B STATUS INFORMATION
+for more details. If an 
+.B \-\-operation
+option is given the requested
+.I operation
+is performed on the mobile using the
+.IR parameters . 
+See the section 
+.B OPERATIONS
+for more details.
+.PP
+.B gsmsiectl
+is the same program with some extension for Siemens mobile phones.
+Some extra 
+.B OPERATIONS
+are available in this case.
+.PP
+Error messages are printed to the standard error output.  If the
+program terminates on error the error code 1 is returned.
+.SH OPTIONS
+.TP
+.BI \-b\  baudrate ,\ \-\-baudrate\  baudrate
+The baud rate to use.  Defaults to 38400.
+.TP
+.BI \-d\  device ,\ \-\-device\  device
+The device to which the GSM modem is connected. The default is
+.IR /dev/mobilephone .
+.TP
+.B \-h,\ \-\-help
+Prints an option summary.
+.TP
+.BI \-I\  &quot;init string&quot; ,\ \-\-init\  &quot;init string&quot;
+Initialization string to send to the TA (default: &quot;E0&quot;). Note that the
+sequence &quot;ATZ&quot; is sent first.
+.TP
+.BI \-o\  operation ,\ \-\-operation\  operation
+This option is used to perform an operation on the mobile phone. Refer
+to the section 
+.B OPERATIONS
+for more information on the available
+operations and the 
+.I parameters
+required for each operation.
+.TP
+.B \-v,\ \-\-version
+Prints the program version.
+.TP
+.B \-X,\ \-\-xonxoff
+Uses software handshaking (XON/XOFF) for accessing the device.
+.SH STATUS INFORMATION
+If called without the 
+.B \-\-operation
+option 
+.B gsmctl
+prints out default mobile phone status information as specified by the
+.I parameters
+described below:
+.TP 7
+.B ALL
+Prints all available information.
+.TP 7
+.B BATT
+Prints out information about the current battery status. Two lines of
+the form &quot;&lt;BATT0&gt; text&quot; and &quot;&lt;BATT1&gt;  charge&quot; are printed. Text may be 
+of &quot;0 ME is powered by the battery&quot;, &quot;1 ME has a battery connected,
+but is not powered by it&quot;, &quot;2 ME does not have a battery connected&quot;,
+or  &quot;3 Recognized power fault, calls inhibited&quot;. Charge is a number in 
+the range 0..100 where 0 means that the battery is empty or not
+connected and 100 means full charge.
+.TP 7
+.B BITERR
+Prints information about the current bit error rate. The output is of
+form &quot;&lt;BITERR0&gt;  value&quot; where value can be of 0..7, 99 (99 means not
+available or not detectable).
+.TP 7
+.B CLIP
+This option prints a line of the form &quot;&lt;CLIP0&gt; on&quot; if caller line
+identification is turned on in the network, &quot;&lt;CLIP0&gt; off&quot; otherwise.
+.TP 7
+.B CSET
+Display info about charsets.  The output is in the form &quot;&lt;CSET0&gt;
+available&quot; and &quot;&lt;CSET1&gt; current&quot;, which describes the charsets
+available and which is current.
+.TP 7
+.B CURROP
+Prints information about the current operator. The output line has the
+form &quot;&lt;CURROP0&gt; Long name: \'xxxx\' Short name: \'yyyy\' Numeric Name: zzzz&quot;.
+.TP 7
+.B FLCAP
+Prints out the two-letter names of available facility locks. The
+meaning of standardized facility lock names is as follows:
+.RS
+.TP 3
+.I CS
+Lock control surface (eg. phone keyboard)
+.TP 3
+.I PS
+Lock phone to SIM card (mobile phone asks password when other than
+current SIM card inserted)
+.TP 3
+.I SC
+Lock SIM card (SIM asks password in mobile phone power-up and when
+this lock command issued)
+.TP 3
+.I AO
+Barr all outgoing calls
+.TP 3
+.I OI
+Barr outgoing international calls
+.TP 3
+.I OX
+Barr outgoing international calls except to home country
+.TP 3
+.I AI
+Barr all incoming calls
+.TP 3
+.I IR
+Barr incoming calls when roaming outside the home country
+.TP 3
+.I NT
+Barr incoming calls from numbers not stored to TA memory
+.TP 3
+.I NM
+Barr incoming calls from numbers not stored to mobile phone memory
+.TP 3
+.I NS
+Barr incoming calls from numbers not stored to SIM memory
+.TP 3
+.I NA
+Barr incoming calls from numbers not stored in Any memory
+.TP 3
+.I AB
+All Barring services (FIXME)
+.TP 3
+.I AG
+All outGoing barring services (FIXME)
+.TP 3
+.I AC
+All inComing barring services (FIXME)
+.TP 3
+.I FD
+SIM fixed dialling memory feature (if PIN2 authentication has not been
+done during the current session, PIN2 is required as &lt;passwd&gt;)
+.PP
+Note that mobile phones may implement facility locks not documented
+here.
+.RE
+.TP 7
+.B FLSTAT
+Prints information about the status of facility locking in the mobile
+phone. For each facility a line of the form &quot;&lt;FLSTATn&gt; \'facilityname\'
+classes&quot; is printed. The classes may be &quot;Voice&quot;, &quot;Data&quot;, and/or &quot;Fax&quot;
+depending on the class for which the facility is enabled. If &quot;unknown&quot;
+is printed out this means that the TA is not able to report the
+status. If the facility is not enabled for any class, no class
+identifier is printed. See 
+.B FLCAP
+for information about the available two-letter names of facility
+locks.
+.TP 7
+.B FORW
+Prints information about call forwarding enabled in the mobile
+phone. For each combination of reason (UnconditionalReason,
+MobileBusyReason, NoReplyReason, and NotReachableReason) and class
+(Voice, Data, and Fax) a line of the form &quot;&lt;FORWn.m&gt; reason class
+number: xxx subaddr: yyy time: zzz&quot; is printed. The time is the number 
+of seconds to wait before forwarding in case of NoReplyReason.
+.TP 7
+.B ME
+Prints manufacturer, model, revision, and serial number of
+the mobile phone (ME = mobile equipment). Output lines are numbered from 
+&quot;&lt;ME0&gt;&quot; to &quot;&lt;ME3&gt;&quot;.
+.TP 7
+.B OP
+Prints information about the currently available mobile network
+operators. For each operator an output line of the form &quot;&lt;OPn&gt; status 
+Long name: \'xxxx\' Short name: \'yyyy\' Numeric name: zzz&quot; is returned
+where status may be of:
+.RS
+.TP 10
+.I unknown
+The status of the operator is unknown.
+.TP
+.I current
+This is the currently selected operator.
+.TP
+.I available
+This operator is available for selection.
+.TP
+.I forbidden
+This operator is not available for selection, ie. not
+accessible with this SIM card.
+.RE
+.TP 7
+.B PIN
+Prints information about the current PIN status. The output is of
+form &quot;&lt;PIN0&gt;  status&quot;. Where status can be one of the following lines:
+.RS
+.TP 10
+.I READY
+ME is not pending for any password.
+.TP
+.I SIM PIN
+ME is waiting SIM PIN to be given.
+.TP
+.I SIM PUK
+ME is waiting SIM PUK to be given.
+.TP
+.I PH-SIM PIN
+ME is waiting phone-to-SIM card password to be given.
+.TP
+.I PH-FSIM PIN
+ME is waiting phone-to-very first SIM card password to be given.
+.TP
+.I PH-FSIM PUK
+ME is waiting phone-to-very first SIM card unblocking password to be
+given.
+.TP
+.I SIM PIN2
+ME is waiting SIM PIN2 to be given.
+.TP
+.I SIM PUK2
+ME is waiting SIM PUK2 to be given.
+.TP
+.I PH-NET PIN
+ME is waiting network personalisation password to be given.
+.TP
+.I PH-NET PUK
+ME is waiting network personalisation unblocking password to be given.
+.TP
+.I PH-NETSUB PIN
+ME is waiting network subset personalisation password to be given.
+.RE
+.TP 7
+.B PW
+Facilities in the mobile phone may be protected by passwords (ie. PINs 
+or PUKs). This option prints out lines of the form &quot;&lt;PWn&gt;
+\'facilityname\' len&quot; for each facility for which a facility lock
+password exists. See 
+.B FLCAP
+for information about the available two-letter names of facility
+locks.
+.TP 7
+.B SCA
+Reports the default SMS service centre address currently set in the
+mobile phone.
+.TP 7
+.B SIG
+Prints information about the current network signal
+strength. The output is of the form &quot;&lt;SIG0&gt; value&quot;. Following values
+are possible:
+.TP
+.po +7
+.I 0
+-113 dBm or less
+.TP
+.I 1
+-111 dBm
+.TP
+.I 2...30
+-109... -53 dBm (in steps of 2 dBm)
+.TP
+.I 31
+-51 dBm or greater
+.TP
+.I 99
+not known or not detectable
+.PP
+.po 
+.SH OPERATIONS
+.TP
+.BI dial\  number
+Dials 
+.IR number .
+After dialling 
+.B gsmctl
+waits for a &lt;CR&gt; keypress to terminate.
+.PP
+.B forw
+.IR mode\ reason\ number\  [\| facilityclass\| ]\ [ forwardtime ]
+.RS
+Changes the call forwarding behaviour in the network. 
+.I mode
+can be any of:
+.RS 3
+.I disable
+Call forwarding is disabled.
+.PP
+.I enable
+Call forwarding is enabled. The call forwarding reason, number, and
+(optionally) forwardtime must be registered beforehand.
+.PP
+.I register
+This registers the call forwarding reason, number, and forwardtime in
+the network.
+.PP
+.I erase
+This is the counterpart to register. It erase the call forwarding info 
+in the network.
+.RE
+.PP
+.I reason
+can be any of:
+.RS 3
+.I unconditional
+This applies to every call.
+.PP
+.I mobilebusy
+The mobile phone is busy.
+.PP
+.I noreply
+The call is not answered in \fIforwardtime\fP seconds.
+.PP
+.I notreachable
+Mobile phone cannot be reached (ie. switched off).
+.PP
+.I all
+This refers to all forwarding reasons.
+.PP
+.I allconditional
+This refers to all conditional forward reasons 
+.RI ( mobilebusy ,\  noreply ,\  notreachable ).
+.RE
+.PP
+.I number
+is the number the incoming call is forwarded to. See the explanation
+for 
+.I lock
+operation for the meaning of 
+.IR facilityclass .
+The default for 
+.I forwardtime
+is 20 seconds if omitted. 
+.I forwardtime
+can be in the range 1..30.
+.RE
+.PP
+.TP
+.BI off
+Sets functionality level of the phone to 0 (low functionality). The
+effects of this command depend on the phone (eg. sets low power
+consumption).
+.PP
+.TP
+.BI on
+Sets functionality level of the phone to 1 (high functionality). The
+effects of this command depend on the phone.
+.PP
+.TP
+.BI pin\  pin
+Sets PIN code. Use
+.BI gsmctl\ pin
+to get the current pin status.
+.PP
+.B lock
+.IR facility\  [\| facilityclass \|]\ [\| passwd \|]
+.RS 
+Locks the named facility. Use 
+.BI gsmctl\  flcap
+to get a list of supported facilities. The 
+.I facilityclass
+can be any of:
+.RS 3
+.I all
+Voice, data, and fax.
+.PP
+.I v\ vf\ vd\ f\ fd\ d
+Any combination of voice, data and fax.
+.RE
+.PP
+The default is \fIall\fP if \fIfacilityclass\fP is omitted. The
+\fIpasswd\fP is password for the facility. If no password is given
+this parameter can be omitted.
+.RE
+.PP
+.BI setop\  opmode\ numericname
+.RS
+Sets the current operator to 
+.IR numericname . 
+Use 
+.BI gsmctl\  op
+to get a list of operators with their numeric codes. 
+.I opmode
+can be any of:
+.RS 3
+.I automatic
+.PP
+.I manual
+.PP
+.I deregister
+Deregister from network.
+.PP
+.I manualautomatic
+If manual selection fails, automatic mode is entered.
+.RE
+.RE
+.PP
+.B setpw
+.IR facility\  [\| oldpasswd\| ]\ [\| newpasswd\| ]
+.RS
+Sets the password for the facility. If one of the passwords is omitted 
+this means that the facility has no password protection. Passwords are 
+PIN1, PIN2, PUK etc.
+.RE
+.TP
+.BI setsca\  service\ centre\ address
+Sets the default SMS service centre address.
+.PP
+.B unlock
+.IR facility\  [\| facilityclass\| ]\ [ \|passwd\| ]
+.RS
+This is the reverse operation to \fBlock\fP. See above for a
+description of the parameters.
+.RE
+.PP
+.B Extra operators for gsmsiectl:
+.PP
+.B cset
+.RS 
+Charset info.
+.RE
+.PP
+.B pbook
+.RS 
+Phone book info.
+.RE
+.PP
+.B signal
+.RS 
+Signal tone info.
+.RE
+.PP
+.B ring
+.RS 
+Ringing tone info.
+.RE
+.PP
+.B binary
+.RS 
+Binary info.
+.RE
+.SH EXAMPLES
+The following invocation of 
+.I gsmctl
+prints out all available status information for the mobile phone
+connected to
+.B /dev/mobilephone
+.PP
+.nf
+.IP &quot;&quot; 3 
+gsmctl all
+.fi
+.PP
+The output could look like (lines edited to fit):
+.RS 3
+.PP
+.PD 0
+&lt;ME0&gt;  Manufacturer: SIEMENS
+.HP
+&lt;ME1&gt;  Model: S10
+.HP
+&lt;ME2&gt;  Revision: 06
+.HP
+&lt;ME3&gt;  Serial Number: 448058511817585
+.HP
+&lt;OP0&gt;  Status: available  Long name: 'D1-TELEKOM' Short name: '' Numeric name: 26201
+.HP
+&lt;OP1&gt;  Status: forbidden  Long name: 'D2  PRIVAT' Short name: '' Numeric name: 26202
+.HP
+&lt;CURROP0&gt;  Long name: 'D1-TELEKOM'   Short name: '' Numeric name: 26201 Mode: automatic
+.HP
+&lt;FLSTAT0&gt;  'CS'
+.HP
+&lt;FLSTAT1&gt;  'PS'
+.HP
+&lt;FLSTAT2&gt;  'SC'  Voice  Data  Fax
+.HP
+&lt;FLSTAT3&gt;  'AO'
+.HP
+&lt;FLSTAT4&gt;  'OI'
+.HP
+&lt;FLSTAT5&gt;  'OX'
+.HP
+&lt;FLSTAT6&gt;  'AI'
+.HP
+&lt;FLSTAT7&gt;  'IR'
+.HP
+&lt;FLCAP0&gt;  'CS' 'PS' 'SC' 'AO' 'OI' 'OX' 'AI' 'IR' 'AB' 'AG' 'AC' 
+.HP
+&lt;PW0&gt;  'PS' 8
+.HP
+&lt;PW1&gt;  'SC' 8
+.HP
+&lt;PW2&gt;  'AO' 4
+.HP
+&lt;PW3&gt;  'OI' 4
+.HP
+&lt;PW4&gt;  'OX' 4
+.HP
+&lt;PW5&gt;  'AI' 4
+.HP
+&lt;PW6&gt;  'IR' 4
+.HP
+&lt;PW7&gt;  'AB' 4
+.HP
+&lt;PW8&gt;  'AG' 4
+.HP
+&lt;PW9&gt;  'AC' 4
+.HP
+&lt;CLIP0&gt;  on
+.HP
+&lt;FORW0.0&gt;  UnconditionalReason  Voice  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW0.1&gt;  UnconditionalReason  Data  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW0.2&gt;  UnconditionalReason  Fax  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW1.0&gt;  MobileBusyReason  Voice  active number: +494012345678  subaddr:   time: -1
+.HP
+&lt;FORW1.1&gt;  MobileBusyReason  Data  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW1.2&gt;  MobileBusyReason  Fax  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW2.0&gt;  NoReplyReason  Voice  active number: +494012345678  subaddr:   time: 20
+.HP
+&lt;FORW2.1&gt;  NoReplyReason  Data  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW2.2&gt;  NoReplyReason  Fax  inactive number:   subaddr:  time: -1
+.HP
+&lt;FORW3.0&gt;  NotReachableReason  Voice  active number: +494012345678  subaddr:  time: -1
+.HP
+&lt;FORW3.1&gt;  NotReachableReason  Data  inactive number:  subaddr:  time: -1
+.HP
+&lt;FORW3.2&gt;  NotReachableReason  Fax  inactive number:  subaddr:  time: -1
+.HP
+&lt;BATT0&gt;   0 ME is powered by the battery
+.HP
+&lt;BATT1&gt;  100
+.HP
+&lt;BITERR0&gt;  0
+.HP
+&lt;SIG0&gt;  19
+.RE
+.PD
+.PP
+The following locks the keys on the mobile phone:
+.nf
+.IP &quot;&quot; 3
+gsmctl -o lock cs
+.fi
+.PP
+This changes the SIM card PIN from 1234 to 2345:
+.nf
+.IP &quot;&quot; 3
+gsmctl -o setpw sc 1234 2345
+.fi
+.PP
+Switch off all call forwarding (actually erase the numbers):
+.nf
+.IP &quot;&quot; 3
+gsmctl -o forw erase all
+.fi
+.PP
+Switch on call forwarding to German D1 voice box:
+.nf
+.IP &quot;&quot; 3
+gsmctl -o forw register notreachable 3313
+gsmctl -o forw enable notreachable
+.fi
+.PP
+.SH FILES
+.TP
+.B /dev/mobilephone
+Default mobile phone device.
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.SH BUGS
+Report bugs to software@pxh.de.  Include a complete, self-ncontained
+example that will allow the bug to be reproduced, and say which
+version of \fIgsmctl\fP you are using.
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.PP
+.B gsmctl
+is free software; you can redistribute it and/or modify it under the
+terms of the GNU Library General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+.PP
+.B gsmctl
+is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+License for more details.
+.PP
+You should have received a copy of the GNU Library General Public
+License along with 
+.BR gsmctl ; 
+see the file COPYING.  If not, write to the Free Software Foundation,
+675 Mass Ave, Cambridge, MA 02139, USA.
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo (7),
+.BR gsmpb (1),
+.BR gsmsendsms (1),
+.BR gsmsmsd (8),
+.BR gsmsmsstore (1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsminfoman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsminfo.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsminfo.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsminfo.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMINFO 7 &quot;##DATE##&quot; &quot;gsmctl v##VERSION##&quot;
+.PP
+.SH NAME
+gsminfo \- GSM general information
+.PP
+.SH DESCRIPTION
+\fIgsmlib\fP is a library to access GSM mobile phones through GSM
+modems or via IrDA devices. In the \fIgsmlib\fP documentation and error
+messages the following abbreviations are used:
+.TP .7i
+\fBME\fP
+Mobile Equipment. The mobile phone, usually.
+.TP .7i
+\fBSC\fP
+Service Centre. In the context of this documentation, the center
+responsible for sending and relaying SMs.
+.TP .7i
+\fBSM\fP
+Short Message.
+.TP .7i
+\fBSME\fP
+Short Message Equipment. Usually the mobile phone.
+.TP .7i
+\fBTA\fP
+Terminal Adapter. This can be a GSM modem PC card or it can be
+integrated into the ME.
+.TP .7i
+\fBTE\fP
+Terminal Equipment. This is the device to which the TA is connected,
+usually the computer.
+.PP
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.PP
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsmctl(1),
+.BR gsmpb(1),
+.BR gsmsendsms(1),
+.BR gsmsmsd(8),
+.BR gsmsmsstore(1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmliblsm"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmlib.lsm (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmlib.lsm                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmlib.lsm        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+Begin3
+Title:                        gsmlib          
+Version:                1.0
+Entered-date:           29JUL99
+Description:            This distribution contains a library to access
+                        GSM mobile phones through GSM modems. Features include:
+                        * modification of phonebooks stored in the
+                          mobile phone or on the SIM card
+                        * reading and writing of SMS messages stored in
+                          the mobile phone
+                        * sending and reception of SMS messages
+                        Additionally, some simple command line programs are
+                        provided to use these functionalities.
+Keywords:               gsm mobile phone modem sms
+Author:                 Peter Hofmann &lt;software@pxh.de&gt;
+Maintained-by:          Peter Hofmann &lt;software@pxh.de&gt;
+Primary-site:           http://www.pxh.de/fs/gsmlib/
+Platforms:              Linux
+Copying-policy:         LGPL
+End
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmpbman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmpb.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmpb.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmpb.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,245 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMPB 8 &quot;##DATE##&quot; &quot;gsmpb v##VERSION##&quot;
+.SH NAME
+gsmpb \- GSM mobile phone phonebook manipulation program
+.SH SYNOPSIS
+.B gsmpb
+[ \fB-b\fP \fIbaudrate\fP ]
+[ \fB--baudrate\fP \fIbaudrate\fP ]
+[ \fB-c\fP ]
+[ \fB--copy\fP ]
+[ \fB-d\fP \fIdestination device or file\fP ]
+[ \fB--destination\fP \fIdestination device or file\fP ]
+[ \fB-h\fP ]
+[ \fB--help\fP ]
+[ \fB-i\fP ]
+[ \fB--index\fP ]
+[ \fB-I\fP \fIinit string\fP ]
+[ \fB--init\fP \fIinit string\fP ]
+[ \fB-p\fP \fIphonebook name\fP ]
+[ \fB--phonebook\fP \fIphonebook name\fP ]
+[ \fB-s\fP \fIsource device or file\fP ]
+[ \fB--source\fP \fIsource device or file\fP ]
+[ \fB-t\fP \fIcharacter set\fP ]
+[ \fB--charset\fP \fIcharacter set\fP ]
+[ \fB-v\fP ]
+[ \fB--version\fP ]
+[ \fB-V\fP ]
+[ \fB--verbose\fP ]
+[ \fB-X\fP ]
+[ \fB--xonxoff\fP ]
+[ \fB-y\fP ]
+[ \fB--synchronize\fP ]
+.PP
+.SH DESCRIPTION
+\fIgsmpb\fP can store or retrieve phonebook entries residing in a GSM
+mobile phone's phonebook to or from a file. A synchronization mode is
+also available.
+.PP
+\fIgsmpb\fP reads entries from the source which can be a mobile phone
+(if a serial device file is given) or a file (if a file name is
+given). The source is never modified. \fIgsmpb\fP writes phonebook
+entries to a destination file or device.  Depending on the mode the
+source is copied to the destination file, thus overwriting the
+destination, or the destination is synchronized with regard to the
+source which is the default (details see below).
+.PP
+If &quot;-&quot; is given as the parameter for the \fB--source\fP or
+\fB--destination\fP options, the phonebook is read from standard input 
+and/or written to standard output, respectively.
+.PP
+Phonebook entries names are encoded using the GSM default alphabet in
+the mobile phone, whereas they are stored using the Latin-1 encoding
+in phonebook files. When reading phonebook entries from a mobile phone 
+entry names are converted from the GSM default to Latin-1. Characters
+that can not be converted to Latin-1 are encoded as character code
+172 (Latin-1 boolean &quot;not&quot;). When writing file-based phonebook entries 
+to a mobile phone a conversion to the GSM default alphabet takes
+place. Characters that can not be converted are encoded as GSM delta
+(code 16). If the default character set has been changed using the
+\fB--charset\fP option no conversion takes place.
+.PP
+Error messages are printed to the standard error output. If the program
+terminates on error the error code 1 is returned.
+.PP
+.SH OPTIONS
+.TP .7i
+\fB-b\fP \fIbaudrate\fP, \fB--baudrate\fP \fIbaudrate\fP
+The baud rate to use. The default baudrate is 38400.
+.TP .7i
+\fB-c\fP, \fB--copy\fP
+This causes the contents of the source to be copied to the
+destination. After this operation the destination has exactly the same 
+contents as the source.
+.TP .7i
+\fB-d\fP \fIdestination\fP, \fB--destination\fP \fIdestination\fP
+The destination device or file.
+.TP .7i
+\fB-h\fP, \fB--help\fP
+Prints an option summary.
+.TP .7i
+\fB-I\fP \fIinit string\fP, \fB--init\fP \fIinit string\fP
+Initialization string to send to the TA (default: &quot;E0&quot;). Note that the
+sequence &quot;ATZ&quot; is sent first.
+.TP .7i
+\fB-i\fP, \fB--index\fP
+If the index position is given, \fIgsmpb\fP preserves the assignment
+of entries to memory slots in the mobile phone's phonebook. This can
+be used to backup phonebook entries with their position into a
+phonebook file or to change the position of entries by editing a
+phonebook file and writing them back to the mobile phone.
+If this option is given the phonebook file used as the source
+must contain indices for every entry. Additionally, these indices must 
+be unique, ie. it is not allowed to assign one entry twice to a
+specific position in the mobile phone's phonebook.
+.TP .7i
+\fB-p\fP \fIphonebook\fP, \fB--phonebook\fP \fIphonebook\fP
+The name of the phonebook to read from or write to. This is only used
+for device sources and destinations. Commonly available phonebooks
+are:
+.TP .3i
+.po +0.7i
+.ll 5.8i
+\fIFD\fP
+SIM fixdialling-phonebook
+.TP .3i
+\fILD\fP
+SIM last-dialling-phonebook
+.TP .3i
+\fIME\fP
+ME phonebook
+.TP .3i
+\fIMT\fP
+combined ME and SIM phonebook
+.TP .3i
+\fISM\fP
+SIM phonebook
+.TP .3i
+\fITA\fP
+TA phonebook
+.TP .7i
+.po -0.7i
+.ll 6.5i
+\fB-s\fP \fIsource\fP, \fB--source\fP \fIsource\fP
+The source device or file.
+.TP
+\fB-t\fP \fIcharacter set\fP, \fB--charset\fP \fIcharacter set\fP
+Set the character set to use for phonebook operations (default is the
+GSM default alphabet).
+.TP
+\fB-v\fP, \fB--version\fP
+Prints the program version.
+.TP .7i
+\fB-V\fP, \fB--verbose\fP
+Prints out a detailed progress report.
+.TP .7i
+\fB-X\fP, \fB--xonxoff\fP
+Uses software handshaking (XON/XOFF) for accessing the device.
+.TP .7i
+\fB-y\fP, \fB--synchronize\fP
+This causes the contents of the source to be synchronized with the
+destination (default). Synchronization in this context means:
+.TP .2i
+.po +0.7i
+.ll 5.8i
+\-
+If the source contains an entry with a name that does not exist in the 
+destination this entry is added to the destination.
+.TP .2i
+\-
+If the source contains an entry with a name that can also be found in
+the destination, the entry in the destination is overwritten (ie. the
+telephone number is updated). Exception: More then one entry with the
+name exists in the destination. In this case the new entry ist just added.
+.TP .2i
+\-
+Entries in the destination that do not exist in the source are
+deleted.
+.PP
+Note that synchronization has the following properties that differ
+from copying: This algorithm does not change the location of unchanged
+entries in the destination phonebook. The synchronization function
+is not case-sensitive when comparing names.
+.PP
+.po -0.7i
+.ll 6.5i
+.SH PHONEBOOK FILE FORMAT 
+Phonebook entries are stored in phonebook files that are meant to be
+human-readable and -editable. There is one phonebook entry per line,
+and each line has the format:
+.PP
+.nf
+index|text|phone number
+.fi
+.PP
+The fields have the following meanings:
+.TP .7i
+\fIindex\fP
+The index of the entry which must be a positive number. The index may
+also be empty. Indices can be used in conjunction with the
+\fB--index\fP option to store the entry into a specific position in
+the mobile phone.
+.TP .7i
+\fItext\fP
+Descriptive text for the entry. The text may contain the special
+characters '\\', '|', carriage return (ASCII code 13), or line feed
+(ASCII code 10). These must be written &quot;\\\\&quot;, &quot;\\|&quot;, &quot;\\r&quot;, &quot;\\n&quot;,
+respectively. The text should only contain characters that can be
+encoded using the GSM default alphabet (see comments above).
+.TP .7i
+\fIphone number\fP
+Phone numbers can only contains the digits 0-9 and the '+' sign. A '+' 
+sign denotes an international number.
+.PP
+.SH EXAMPLES
+The following invocation of \fIgsmpb\fP synchronizes the mobile phone's
+SIM phonebook with the file $HOME/.phonebook:
+.PP
+.nf
+gsmpb --synchronize -b 19200 -d /dev/mobilephone \\
+      -s $HOME/.phonebook -p &quot;SM&quot;
+.fi
+.PP
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.PP
+.SH BUGS
+Report bugs to software@pxh.de.  Include a complete, self-contained
+example that will allow the bug to be reproduced, and say which
+version of \fIgsmpb\fP you are using.
+.PP
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.LP
+\fIgsmpb\fP is free software; you can redistribute it and/or modify it under
+the terms of the GNU Library General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+.LP
+\fIgsmpb\fP is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License
+for more details.
+.LP
+You should have received a copy of the GNU Library General Public License along
+with \fIgsmpb\fP; see the file COPYING.  If not, write to the Free Software
+Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo(7),
+.BR gsmctl(1),
+.BR gsmsendsms(1),
+.BR gsmsmsd(8),
+.BR gsmsmsstore(1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsendsmsman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsendsms.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsendsms.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsendsms.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,154 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMSENDSMS 8 &quot;##DATE##&quot; &quot;gsmsendsms v##VERSION##&quot;
+.PP
+.SH NAME
+gsmsendsms \- SMS message sender utility
+.PP
+.SH SYNOPSIS
+.B gsmsendsms
+[ \fB-b\fP \fIbaudrate\fP ]
+[ \fB--baudrate\fP \fIbaudrate\fP ]
+[ \fB-c\fP \fIconcatenatedID\fP ]
+[ \fB--concatenate\fP \fIconcatenatedID\fP ]
+[ \fB-C\fP \fIservice centre address\fP ]
+[ \fB--sca\fP \fIservice centre address\fP ]
+[ \fB-d\fP \fIdevice\fP ]
+[ \fB--device\fP \fIdevice\fP ]
+[ \fB-h\fP ]
+[ \fB--help\fP ]
+[ \fB-I\fP \fIinit string\fP ]
+[ \fB--init\fP \fIinit string\fP ]
+[ \fB-r\fP ]
+[ \fB--requeststat\fP ]
+[ \fB-t\fP ]
+[ \fB--test\fP ]
+[ \fB-v\fP ]
+[ \fB--version\fP ]
+[ \fB-X\fP ]
+[ \fB--xonxoff\fP ]
+\fIphonenumber\fP
+[ \fItext\fP ]
+.PP
+.SH DESCRIPTION
+\fIgsmsendsms\fP sends SMS short messages using an GSM mobile phone.
+.PP
+\fIgsmsendsms\fP attaches itself to the \fIdevice\fP given on the command
+line (usually an GSM modem) using the specified \fIbaudrate\fP.  If no
+\fIdevice\fP is given, the device \fI/dev/mobilephone\fP is used. If
+no \fIbaudrate\fP is given, a default baud rate of 38400 is used.
+.PP
+\fIgsmsendsms\fP accepts a phone number (recipient address) and the
+short message text as parameters. The text may have a maximum length
+of 160 characters which is the maximum SMS message length. The GSM
+default alphabet is used for encoding. ASCII and Latin-1 characters
+that can not be encoded using the GSM default alphabet are converted
+to the GSM delta character (GSM code 16).
+.PP
+Error messages are printed to the standard error output.  If the program
+terminates on error the error code 1 is returned.
+.PP
+.SH OPTIONS
+.TP
+\fB-b\fP \fIbaudrate\fP, \fB--baudrate\fP \fIbaudrate\fP
+The baud rate to use.
+.TP
+\fB-c\fP \fIconcatenatedID\fP, \fB--concatenate\fP \fIconcatenatedID\fP
+If an ID is given, large SMSs are split into several, concatenated
+SMSs. All SMSs have the same ID and are numbered consecutively so that 
+the receiving phone can assemble them in the correct order. IDs must
+be in the range 0..255. Not all receiving phones will support
+concatenated SMSs (and display them as separate SMSs),
+since all the numbering and ID information is
+carried in the user data header element at the beginning of the SMS
+user data. This information may show up as garbage in such phones.
+.TP
+\fB-C\fP \fIservice centre address\fP, \fB--sca\fP \fIservice centre address\fP
+Sets the service centre address to use for all SUBMIT SMSs (may not
+work with some phones).
+.TP
+\fB-d\fP \fIdevice\fP, \fB--device\fP \fIdevice\fP
+The device to which the GSM modem is connected. The default is
+\fI/dev/mobilephone\fP.
+.TP
+\fB-h\fP, \fB--help\fP
+Prints an option summary.
+.TP
+\fB-I\fP \fIinit string\fP, \fB--init\fP \fIinit string\fP
+Initialization string to send to the TA (default: &quot;E0&quot;). Note that the
+sequence &quot;ATZ&quot; is sent first.
+.TP
+\fB-r\fP, \fB--requeststat\fP
+Request status reports for sent SMS.
+.TP
+\fB-t\fP, \fB--test\fP
+If this option is given the text is converted
+to the GSM default alphabet and back to Latin-1. This option can be
+used to find out how ASCII or Latin-1 texts are converted to the GSM
+default alphabet. Characters that can not be converted to the GSM default
+alphabet are reported as ASCII code 172 (Latin-1 boolean &quot;not&quot;)
+after this double conversion. No SMS messages are sent, a connection
+to a mobile phone is not established.
+.TP
+\fB-v\fP, \fB--version\fP
+Prints the program version.
+.TP
+\fB-X\fP, \fB--xonxoff\fP
+Uses software handshaking (XON/XOFF) for accessing the device.
+.PP
+.SH EXAMPLES
+The following two invocations of \fIgsmsendsms\fP each send the same
+SMS message to the number &quot;1234&quot;:
+.PP
+.nf
+gsmsendsms -d /dev/ttyS2 -b 19200  1234 &quot;This is a test.&quot;
+echo &quot;This is a test.&quot; | gsmsendsms -d /dev/ttyS2 -b 19200  1234
+.fi
+.PP
+.SH FILES
+.TP 1.4i
+.B /dev/mobilephone
+Default mobile phone device.
+.PP
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.PP
+.SH BUGS
+Report bugs to software@pxh.de.  Include a complete, self-contained
+example that will allow the bug to be reproduced, and say which
+version of \fIgsmsendsms\fP you are using.
+.PP
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.LP
+\fIgsmsendsms\fP is free software; you can redistribute it and/or modify it under
+the terms of the GNU Library General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+.LP
+\fIgsmsendsms\fP is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Library General Public License for more details.
+.LP
+You should have received a copy of the GNU Library General Public License along
+with \fIgsmsendsms\fP; see the file COPYING.  If not, write to the Free Software
+Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo(7),
+.BR gsmpb(1),
+.BR gsmctl(1),
+.BR gsmsmsd(8),
+.BR gsmsmsstore(1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsmsdman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsd.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsd.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsd.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,269 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMSMSD 8 &quot;##DATE##&quot; &quot;gsmsmsd v##VERSION##&quot;
+.PP
+.SH NAME
+gsmsmsd \- SMS message reception daemon
+.PP
+.SH SYNOPSIS
+.B gsmsmsd
+[ \fB-a\fP \fIaction\fP ]
+[ \fB--action\fP \fIaction\fP ]
+[ \fB-b\fP \fIbaudrate\fP ]
+[ \fB--baudrate\fP \fIbaudrate\fP ]
+[ \fB-c\fP \fIconcatenatedID\fP ]
+[ \fB--concatenate\fP \fIconcatenatedID\fP ]
+[ \fB-C\fP \fIservice centre address\fP ]
+[ \fB--sca\fP \fIservice centre address\fP ]
+[ \fB-d\fP \fIdevice\fP ]
+[ \fB--device\fP \fIdevice\fP ]
+[ \fB-D\fP ]
+[ \fB--direct\fP ]
+[ \fB-f\fP ]
+[ \fB--flush\fP ]
+[ \fB-h\fP ]
+[ \fB--help\fP ]
+[ \fB-I\fP \fIinit string\fP ]
+[ \fB--init\fP \fIinit string\fP ]
+[ \fB-r\fP ]
+[ \fB--requeststat\fP ]
+[ \fB-s\fP \fIspool directory\fP ]
+[ \fB--spool\fP \fIspool directory\fP ]
+[ \fB-t\fP \fISMS store name\fP ]
+[ \fB--store\fP \fISMS store name\fP ]
+[ \fB-v\fP ]
+[ \fB--version\fP ]
+[ \fB-X\fP ]
+[ \fB--xonxoff\fP ]
+{ \fIsms_type\fP }
+.PP
+.SH DESCRIPTION
+\fIgsmsmsd\fP reads new incoming SMS from the mobile phone and
+dispatches them to a user-defined action. Additionally it can send SMS 
+message that it reads from a spooldir.
+.PP
+\fIgsmsmsd\fP attaches itself to the \fIdevice\fP given on the command
+line (usually an GSM modem) using the specified \fIbaudrate\fP and
+waits for incoming SMS messages. If no \fIdevice\fP is given, the
+device \fI/dev/mobilephone\fP is used. If no \fIbaudrate\fP is given, a
+default baud rate of 38400 is used.
+.PP
+If no action is given, the SMS message is printed to the standard
+output. If an \fIaction\fP is specified the \fIaction\fP is excecuted using the
+shell and the SMS message is written to the standard input of the action.
+.PP
+\fIgsmsmsd\fP needs one empty storage slot for SMS messages in the
+mobile phone, otherwise SMS reception will not work. The SMS store to
+use for temporary storage of incoming SMS can be selected using the
+\fB--store\fP option, otherwise the ME default store is used.
+.PP
+To terminate \fIgsmsmsd\fP cleanly (without losing SMS messages) one
+should send either SIGINT (CTRL-C on the command line) or SIGTERM to
+the process.
+.PP
+Error messages are printed to the standard error output.  If the program
+terminates on error the error code 1 is returned.
+.PP
+\fIsms_type\fP may be any combination of:
+.TP
+\fIsms\fP, \fIno_sms\fP
+Controls reception of normal SMS messages.
+.TP
+\fIcb\fP, \fIno_cb\fP
+Controls reception of cell broadcast messages.
+.TP
+\fIstat\fP, \fIno_stat\fP
+Controls reception of status reports.
+.PP
+The default is \fIsms\fP, \fIcb\fP, and \fIstat\fP.
+.PP
+.SH OPTIONS
+.TP
+\fB-a\fP \fIaction\fP, \fB--action\fP \fIaction\fP
+The action to execute for each incoming SMS message. If no action 
+is given the SMS is written to the standard output.
+.TP
+\fB-b\fP \fIbaudrate\fP, \fB--baudrate\fP \fIbaudrate\fP
+The baud rate to use.
+.TP
+\fB-c\fP \fIconcatenatedID\fP, \fB--concatenate\fP \fIconcatenatedID\fP
+If an ID is given, large SMSs are split into several, concatenated
+SMSs. All SMSs have the same ID and are numbered consecutively so that 
+the receiving phone can assemble them in the correct order. IDs must
+be in the range 0..255. This number is increased by one for every
+outgoing concatenated SMS and wraps around after 255.
+Not all receiving phones will support
+concatenated SMSs (and display them as separate SMSs),
+since all the numbering and ID information is
+carried in the user data header element at the beginning of the SMS
+user data. This information may show up as garbage in such phones.
+.TP
+\fB-C\fP \fIservice centre address\fP, \fB--sca\fP \fIservice centre address\fP
+Sets the service centre address to use for all SUBMIT SMSs (may not
+work with some phones).
+.TP
+\fB-d\fP \fIdevice\fP, \fB--device\fP \fIdevice\fP
+The device to which the GSM modem is connected. The default is
+\fI/dev/mobilephone\fP.
+.TP
+\fB-D\fP, \fB--direct\fP
+Enables direct routing of incoming SMS messages to the TE. This is not
+supported by many mobile phone/GSM modem combinations. Therefore, the
+default is to store incoming SMS temporarily before processing them in 
+the indicated store.
+.TP
+\fB-f\fP, \fB--flush\fP
+This option causes \fIgsmsmsd\fP to flush (ie. read and erase)
+existing SMS messages from
+the SMS store selected by the \fB--store\fP option. The action given
+by the \fB--action\fP option is executed on each of the flushed
+SMS. This option should be used to ensure that enough space is
+available in the SMS store for temporary storage of incoming SMS,
+otherwise incoming SMS might be ignored silently by the ME.
+.TP
+\fB-h\fP, \fB--help\fP
+Prints an option summary.
+.TP
+\fB-I\fP \fIinit string\fP, \fB--init\fP \fIinit string\fP
+Initialization string to send to the TA (default: &quot;E0&quot;). Note that the
+sequence &quot;ATZ&quot; is sent first.
+.TP
+\fB-r\fP, \fB--requeststat\fP
+Request status reports for sent SMS. Note: This option only makes
+sense if the phone supports routing of status reports to the
+TE. Otherwise the status reports might show on the phone's display or
+get lost.
+.TP
+\fB-s\fP \fIspool directory\fP, \fB--spool\fP \fIspool directory\fP
+This option sets the spool directory where \fIgsmsmsd\fP expects SMS
+messages to send. The format of SMS files is very simple: The first
+line contains the phone number of the recipient. Everything else after 
+the first line is interpreted as the SMS text. Please refer to 
+.BR gsmsendsms(1)
+for details on the SMS text character set and maximum length.
+\fIgsmsmsd\fP polls the spool directory every 5 seconds. Sent
+SMS message files are removed.
+.TP
+\fB-t\fP \fISMS store name\fP, \fB--store\fP \fISMS store name\fP
+The name of the SMS store to read from (for the \fB--flush\fP option)
+or write to (for temporary SMS storage). This option must
+be must be used in conjunction with the \fB--flush\fP option. If this
+option is omitted the ME uses it's default SMS store for temporary
+storage of incoming SMS. A commonly available message
+store is &quot;SM&quot; (SIM card).
+.TP
+\fB-v\fP, \fB--version\fP
+Prints the program version.
+.TP
+\fB-X\fP, \fB--xonxoff\fP
+Uses software handshaking (XON/XOFF) for accessing the device.
+.PP
+.SH EXAMPLES
+The following invocation of \fIgsmsmsd\fP sends each incoming SMS message
+as a mail to the user &quot;smsadmin&quot;:
+.PP
+.nf
+gsmsmsd -d /dev/ttyS2 -b 19200 -a &quot;mail smsadmin&quot;
+.fi
+.PP
+This is the format of SMS deliver messages as output from \fIgsmsmsd\fP:
+.PP
+.nf
+----------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '01805000102'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 17.12.98 14:10:55(+0100)
+User data length: 159
+User data header: 0x
+User data: 'Nicht vergessen! Die XtraWeihnachtsverlosung lauft
+noch bis zum 24.12. Nutzen Sie jetzt Ihre Gewinnchance und faxen
+Sie Ihren Teiln.-Gutschein an 0180/5000 056'
+----------------------------------------------------------------
+.fi
+.PP
+This is the format of SMS status report messages as output from \fIgsmsmsd\fP:
+.PP
+.nf
+----------------------------------------------------------------
+Message type: SMS-STATUS-REPORT
+SC address: ''
+More messages to send: 0
+Status report qualifier: 0
+Message reference: 0
+Recipient address: ''
+SC timestamp: 00.00.00 00:00:00(+0000)
+Discharge time: 00.00.00 00:00:00(+0000)
+Status: 0x0 'Short message received by the SME'
+----------------------------------------------------------------
+.fi
+.PP
+The following invocation of \fIgsmsmsd\fP flushes all existing
+messages from the &quot;SM&quot; SMS store and looks in the &quot;/tmp/spooldir&quot;
+directory for SMS to send:
+.PP
+.nf
+gsmsmsd -d /dev/ttyS2 --spool /tmp/spooldir -f --store sm \\
+--action 'mail smsadmin'
+.fi
+.PP
+.SH FILES
+.TP 1.4i
+.B /dev/mobilephone
+Default mobile phone device.
+.PP
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.PP
+.SH BUGS
+Cell broadcast SMS message reception has not been tested, but it has
+been enabled in the \fIgsmsmsd\fP daemon.
+.PP
+The mobile phone device is blocked when the \fIgsmsmsd\fP daemon is
+running, ie. it cannot be used for data transfer or from the other
+programs of this suite (\fIgsmpb\fP, \fIgsmsms\fP).
+.PP
+Report bugs to software@pxh.de.  Include a complete, self-contained
+example that will allow the bug to be reproduced, and say which
+version of \fIgsmsmsd\fP you are using.
+.PP
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.LP
+\fIgsmsmsd\fP is free software; you can redistribute it and/or modify it under
+the terms of the GNU Library General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+.LP
+\fIgsmsmsd\fP is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Library General Public License for more details.
+.LP
+You should have received a copy of the GNU Library General Public License along
+with \fIgsmsmsd\fP; see the file COPYING.  If not, write to the Free Software
+Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo(7),
+.BR gsmpb(1),
+.BR gsmctl(1),
+.BR gsmsendsms(1),
+.BR gsmsmsstore(1).
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1docgsmsmsstoreman"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsstore.man (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsstore.man                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/doc/gsmsmsstore.man        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,185 @@
</span><ins>+.\&quot; -*- eval: (nroff-mode) -*-
+.de TQ
+.br
+.ns
+.TP \\$1
+..
+.\&quot; Like TP, but if specified indent is more than half
+.\&quot; the current line-length - indent, use the default indent.
+.de Tp
+.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
+.el .TP &quot;\\$1&quot;
+..
+.TH GSMSMSSTORE 8 &quot;##DATE##&quot; &quot;gsmsmsstore v##VERSION##&quot;
+.SH NAME
+gsmsmsstore \- SMS store manipulation program
+.SH SYNOPSIS
+.B gsmsmsstore
+[ \fB-a\fP ]
+[ \fB--add\fP ]
+[ \fB-b\fP \fIbaudrate\fP ]
+[ \fB--baudrate\fP \fIbaudrate\fP ]
+[ \fB-c\fP ]
+[ \fB--copy\fP ]
+[ \fB-C\fP \fIservice centre address\fP ]
+[ \fB--sca\fP \fIservice centre address\fP ]
+[ \fB-d\fP \fIdestination device or file\fP ]
+[ \fB--destination\fP \fIdestination device or file\fP ]
+[ \fB-h\fP ]
+[ \fB--help\fP ]
+[ \fB-I\fP \fIinit string\fP ]
+[ \fB--init\fP \fIinit string\fP ]
+[ \fB-k\fP ]
+[ \fB--backup\fP ]
+[ \fB-l\fP ]
+[ \fB--list\fP ]
+[ \fB-s\fP \fIsource device or file\fP ]
+[ \fB--source\fP \fIsource device or file\fP ]
+[ \fB-t\fP \fISMS store name\fP ]
+[ \fB--store\fP \fISMS store name\fP ]
+[ \fB-v\fP ]
+[ \fB--version\fP ]
+[ \fB-V\fP ]
+[ \fB--verbose\fP ]
+[ \fB-x\fP ]
+[ \fB--delete\fP ]
+[ \fB-X\fP ]
+[ \fB--xonxoff\fP ]
+{ \fIindices\fP }
+[ \fIphonenumber\fP \fItext\fP ]
+.PP
+.SH DESCRIPTION
+\fIgsmsmsstore\fP can store or retrieve SMS messages entries residing
+in a GSM mobile phone's SMS store to or from a file, add SMS messages
+to a store, or list the store's contents. Additionally, it is possible
+to add SMS submit messages to a store.
+.PP
+\fIgsmsmsstore\fP reads entries from the source which can be a mobile
+phone (if a serial device file is given) or a file (if a file name is
+given). The source is never modified. \fIgsmsmsstore\fP writes SMS
+messages to a destination file or device in the case of \fB--copy\fP,
+\fB--backup\fP, and \fB--add\fP.
+.PP
+The \fB--list\fP option does not change any file but just lists the
+contents to standard output.
+.PP
+The \fB--backup\fP and \fB--copy\fP options require both source and
+destination files or devices. The \fB--list\fP option requires a
+source. The \fB--add\fP and \fB--delete\fP options require a
+destination file or device.
+.PP
+If &quot;-&quot; is given as the parameter for the \fB--source\fP or
+\fB--destination\fP options, the SMS store is read from standard input 
+and/or written to standard output, respectively.
+.PP
+SMS message files are not human-readable.
+.PP
+Error messages are printed to the standard error output. If the program
+terminates on error the error code 1 is returned.
+.PP
+.SH OPTIONS
+.TP
+\fB-a\fP, \fB--add\fP
+Adds an SMS submit message with recipient address \fIphonenumber\fP and 
+text \fItext\fP to the destination.
+.TP
+\fB-b\fP \fIbaudrate\fP, \fB--baudrate\fP \fIbaudrate\fP
+The baud rate to use. The default baudrate is 38400.
+.TP
+\fB-c\fP, \fB--copy\fP
+This causes the contents of the source to be copied to the
+destination. After this operation the destination has exactly the same
+contents as the source.  If \fIindices\fP are given on the command
+line only those SMS messages denoted by the indices are copied to the
+destination.
+.TP
+\fB-C\fP \fIservice centre address\fP, \fB--sca\fP \fIservice centre address\fP
+Sets the service centre address to use for all SUBMIT SMSs (may not
+work with some phones).
+.TP
+\fB-d\fP \fIdestination\fP, \fB--destination\fP \fIdestination\fP
+The destination device or file.
+.TP
+\fB-h\fP, \fB--help\fP
+Prints an option summary.
+.TP
+\fB-I\fP \fIinit string\fP, \fB--init\fP \fIinit string\fP
+Initialization string to send to the TA (default: &quot;E0&quot;). Note that the
+sequence &quot;ATZ&quot; is sent first.
+.TP
+\fB-k\fP, \fB--backup\fP
+This causes those entries to be added from the source to the
+destination that are not already present in the destination.  If
+\fIindices\fP are given on the command line only those SMS messages
+denoted by the indices are backed up (ie. added) to the destination.
+.TP
+\fB-l\fP, \fB--list\fP
+Prints out the entire contents of the source in human-readable form.
+.TP
+\fB-s\fP \fIsource\fP, \fB--source\fP \fIsource\fP
+The source device or file.
+.TP
+\fB-t\fP \fISMS store name\fP, \fB--store\fP \fISMS store name\fP
+The name of the SMS store to read from or write to. This information is
+only used for device sources and destinations. A commonly available message
+store is &quot;SM&quot; (SIM card).
+.TP
+\fB-v\fP, \fB--version\fP
+Prints the program version.
+.TP
+\fB-V\fP, \fB--verbose\fP
+Prints out a detailed progress report.
+.TP
+\fB-x\fP, \fB--delete\fP
+Delete the SMS messages as denoted by the \fIindices\fP from the destination.
+.TP
+\fB-X\fP, \fB--xonxoff\fP
+Uses software handshaking (XON/XOFF) for accessing the device.
+.PP
+.SH EXAMPLES
+The following command lists all entries in the mobile phone connected
+to \fI/dev/mobilephone\fP to the standard output:
+.PP
+.nf
+gsmsmsstore -b 19200 -s /dev/mobilephone -t SM -l
+.fi
+.PP
+The following adds entries 4, 7, and 10 from the device
+\fI/dev/mobilephone\fP to the file \fIsmsstore\fP:
+.PP
+.nf
+gsmsmsstore -s /dev/mobilephone -d /home/fred/smsstore
+    -t SM -b 4 7 10
+.fi
+.PP
+.SH AUTHOR
+Peter Hofmann &lt;software@pxh.de&gt;
+.PP
+.SH BUGS
+Report bugs to software@pxh.de.  Include a complete, self-contained
+example that will allow the bug to be reproduced, and say which
+version of \fIgsmsmsstore\fP you are using.
+.PP
+.SH COPYRIGHT
+Copyright \(co 1999 Peter Hofmann
+.LP
+\fIgsmsmsstore\fP is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public License as
+published by the Free Software Foundation; either version 2, or (at
+your option) any later version.
+.LP
+\fIgsmsmsstore\fP is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Library General Public License for more details.
+.LP
+You should have received a copy of the GNU Library General Public License
+along with \fIgsmsmsstore\fP; see the file COPYING.  If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+.PP
+.SH &quot;SEE ALSO&quot;
+.BR gsminfo(7),
+.BR gsmctl(1),
+.BR gsmpb(1),
+.BR gsmsendsms(1),
+.BR gsmsmsd(8).
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: Makefile for phone-specific extensions
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 16.12.2001
+# *************************************************************************
+
+INCLUDES =                -I..
+
+EXTRA_DIST =                README.sieme
+
+# build addon library
+lib_LTLIBRARIES =        libgsmext.la
+
+libgsmext_la_SOURCES =        gsm_sie_me.cc
+
+libgsmext_la_LDFLAGS =        -version-info $(GSM_VERSION)
+
+gsmincludedir =                $(includedir)/gsmlib
+
+gsminclude_HEADERS =        gsm_sie_me.h
+
+# build programs
+bin_PROGRAMS =                gsmsiectl gsmsiexfer
+
+# build gsmsiectl from gsmsiectl.cc and libgsmme.la
+gsmsiectl_SOURCES =        gsmsiectl.cc
+gsmsiectl_LDADD =        ../gsmlib/libgsmme.la libgsmext.la $(INTLLIBS)
+
+# build gsmsiexfer from gsmsiexfer.cc and libgsmme.la
+gsmsiexfer_SOURCES =        gsmsiexfer.cc
+gsmsiexfer_LDADD =        ../gsmlib/libgsmme.la libgsmext.la $(INTLLIBS)
+
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,480 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: Makefile for phone-specific extensions
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 16.12.2001
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+INCLUDES = -I..
+
+EXTRA_DIST = README.sieme
+
+# build addon library
+lib_LTLIBRARIES = libgsmext.la
+
+libgsmext_la_SOURCES = gsm_sie_me.cc
+
+libgsmext_la_LDFLAGS = -version-info $(GSM_VERSION)
+
+gsmincludedir = $(includedir)/gsmlib
+
+gsminclude_HEADERS = gsm_sie_me.h
+
+# build programs
+bin_PROGRAMS = gsmsiectl gsmsiexfer
+
+# build gsmsiectl from gsmsiectl.cc and libgsmme.la
+gsmsiectl_SOURCES = gsmsiectl.cc
+gsmsiectl_LDADD = ../gsmlib/libgsmme.la libgsmext.la $(INTLLIBS)
+
+# build gsmsiexfer from gsmsiexfer.cc and libgsmme.la
+gsmsiexfer_SOURCES = gsmsiexfer.cc
+gsmsiexfer_LDADD = ../gsmlib/libgsmme.la libgsmext.la $(INTLLIBS)
+subdir = ext
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+libgsmext_la_LIBADD =
+am_libgsmext_la_OBJECTS = gsm_sie_me.lo
+libgsmext_la_OBJECTS = $(am_libgsmext_la_OBJECTS)
+bin_PROGRAMS = gsmsiectl$(EXEEXT) gsmsiexfer$(EXEEXT)
+PROGRAMS = $(bin_PROGRAMS)
+
+am_gsmsiectl_OBJECTS = gsmsiectl.$(OBJEXT)
+gsmsiectl_OBJECTS = $(am_gsmsiectl_OBJECTS)
+gsmsiectl_DEPENDENCIES = ../gsmlib/libgsmme.la libgsmext.la
+gsmsiectl_LDFLAGS =
+am_gsmsiexfer_OBJECTS = gsmsiexfer.$(OBJEXT)
+gsmsiexfer_OBJECTS = $(am_gsmsiexfer_OBJECTS)
+gsmsiexfer_DEPENDENCIES = ../gsmlib/libgsmme.la libgsmext.la
+gsmsiexfer_LDFLAGS =
+
+DEFS = @DEFS@
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/gsm_sie_me.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsmsiectl.Po ./$(DEPDIR)/gsmsiexfer.Po
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+        $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+        $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CXXFLAGS = @CXXFLAGS@
+DIST_SOURCES = $(libgsmext_la_SOURCES) $(gsmsiectl_SOURCES) \
+        $(gsmsiexfer_SOURCES)
+HEADERS = $(gsminclude_HEADERS)
+
+DIST_COMMON = $(gsminclude_HEADERS) Makefile.am Makefile.in
+SOURCES = $(libgsmext_la_SOURCES) $(gsmsiectl_SOURCES) $(gsmsiexfer_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  ext/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+libLTLIBRARIES_INSTALL = $(INSTALL)
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(libdir)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+          if test -f $$p; then \
+            f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+            echo &quot; $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f&quot;; \
+            $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
+          else :; fi; \
+        done
+
+uninstall-libLTLIBRARIES:
+        @$(NORMAL_UNINSTALL)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+            p=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p&quot;; \
+          $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+        done
+
+clean-libLTLIBRARIES:
+        -test -z &quot;$(lib_LTLIBRARIES)&quot; || rm -f $(lib_LTLIBRARIES)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+          dir=&quot;`echo $$p | sed -e 's|/[^/]*$$||'`&quot;; \
+          test -z &quot;$dir&quot; &amp;&amp; dir=.; \
+          echo &quot;rm -f \&quot;$${dir}/so_locations\&quot;&quot;; \
+          rm -f &quot;$${dir}/so_locations&quot;; \
+        done
+libgsmext.la: $(libgsmext_la_OBJECTS) $(libgsmext_la_DEPENDENCIES) 
+        $(CXXLINK) -rpath $(libdir) $(libgsmext_la_LDFLAGS) $(libgsmext_la_OBJECTS) $(libgsmext_la_LIBADD) $(LIBS)
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+install-binPROGRAMS: $(bin_PROGRAMS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(bindir)
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+          if test -f $$p \
+             || test -f $$p1 \
+          ; then \
+            f=`echo &quot;$$p1&quot; | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+           echo &quot; $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f&quot;; \
+           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
+          else :; fi; \
+        done
+
+uninstall-binPROGRAMS:
+        @$(NORMAL_UNINSTALL)
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          f=`echo &quot;$$p&quot; | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+          echo &quot; rm -f $(DESTDIR)$(bindir)/$$f&quot;; \
+          rm -f $(DESTDIR)$(bindir)/$$f; \
+        done
+
+clean-binPROGRAMS:
+        @list='$(bin_PROGRAMS)'; for p in $$list; do \
+          f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+          echo &quot; rm -f $$p $$f&quot;; \
+          rm -f $$p $$f ; \
+        done
+gsmsiectl$(EXEEXT): $(gsmsiectl_OBJECTS) $(gsmsiectl_DEPENDENCIES) 
+        @rm -f gsmsiectl$(EXEEXT)
+        $(CXXLINK) $(gsmsiectl_LDFLAGS) $(gsmsiectl_OBJECTS) $(gsmsiectl_LDADD) $(LIBS)
+gsmsiexfer$(EXEEXT): $(gsmsiexfer_OBJECTS) $(gsmsiexfer_DEPENDENCIES) 
+        @rm -f gsmsiexfer$(EXEEXT)
+        $(CXXLINK) $(gsmsiexfer_LDFLAGS) $(gsmsiexfer_OBJECTS) $(gsmsiexfer_LDADD) $(LIBS)
+
+mostlyclean-compile:
+        -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+        -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sie_me.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmsiectl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsmsiexfer.Po@am__quote@
+
+distclean-depend:
+        -rm -rf ./$(DEPDIR)
+
+.cc.o:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+
+.cc.obj:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `cygpath -w $&lt;`
+
+.cc.lo:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(LTCXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+CXXDEPMODE = @CXXDEPMODE@
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+gsmincludeHEADERS_INSTALL = $(INSTALL_HEADER)
+install-gsmincludeHEADERS: $(gsminclude_HEADERS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(gsmincludedir)
+        @list='$(gsminclude_HEADERS)'; for p in $$list; do \
+          if test -f &quot;$$p&quot;; then d=; else d=&quot;$(srcdir)/&quot;; fi; \
+          f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; $(gsmincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gsmincludedir)/$$f&quot;; \
+          $(gsmincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gsmincludedir)/$$f; \
+        done
+
+uninstall-gsmincludeHEADERS:
+        @$(NORMAL_UNINSTALL)
+        @list='$(gsminclude_HEADERS)'; for p in $$list; do \
+          f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; rm -f $(DESTDIR)$(gsmincludedir)/$$f&quot;; \
+          rm -f $(DESTDIR)$(gsmincludedir)/$$f; \
+        done
+
+ETAGS = etags
+ETAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+                $(TAGS_FILES) $(LISP)
+        tags=; \
+        here=`pwd`; \
+        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        test -z &quot;$(ETAGS_ARGS)$$tags$$unique&quot; \
+          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$tags $$unique
+
+GTAGS:
+        here=`$(am__cd) $(top_builddir) &amp;&amp; pwd` \
+          &amp;&amp; cd $(top_srcdir) \
+          &amp;&amp; gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
+install-binPROGRAMS: install-libLTLIBRARIES
+
+
+installdirs:
+        $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(gsmincludedir)
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
+        clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+        distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-gsmincludeHEADERS
+
+install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+        mostlyclean-libtool
+
+uninstall-am: uninstall-binPROGRAMS uninstall-gsmincludeHEADERS \
+        uninstall-info-am uninstall-libLTLIBRARIES
+
+.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \
+        clean-generic clean-libLTLIBRARIES clean-libtool distclean \
+        distclean-compile distclean-depend distclean-generic \
+        distclean-libtool distclean-tags distdir dvi dvi-am info \
+        info-am install install-am install-binPROGRAMS install-data \
+        install-data-am install-exec install-exec-am \
+        install-gsmincludeHEADERS install-info install-info-am \
+        install-libLTLIBRARIES install-man install-strip installcheck \
+        installcheck-am installdirs maintainer-clean \
+        maintainer-clean-generic mostlyclean mostlyclean-compile \
+        mostlyclean-generic mostlyclean-libtool tags uninstall \
+        uninstall-am uninstall-binPROGRAMS uninstall-gsmincludeHEADERS \
+        uninstall-info-am uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extREADMEsieme"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/README.sieme (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/README.sieme                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/README.sieme        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+Extended support for Siemens mobile phones via gsmlib
+-----------------------------------------------------
+
+* Hardware:
+
+Supported phones: S25, S35, S45, ME45, SL45
+Tested phones: S45, ME45
+
+* Feature list:
+
+ - ACM: Output ACM (accumulated call meter) and ACMmax        =&gt; maybe not
+
+ - BNR/BNW: Binary read and write                        =&gt; yes, xfer
+
+ - CID: Output card ID                                        =&gt; maybe
+
+ - CKS: Output SIM card status                                =&gt; maybe
+
+ - CNI: Output call number information                        =&gt; maybe
+
+ - DBR: Database Read                                        =&gt; yes, phonebook
+
+ - DLD: Delete the &quot;last number redial&quot; memory                =&gt; maybe dangerous?
+
+ - GAUTH: Select Type of Authentication for PPP                =&gt; no
+
+ - ICO: Icon control                                        =&gt; no
+
+ - LCK: Switch locks on and off                                =&gt; yes, lock/unlock
+
+ - LNG: Language settings                                =&gt; maybe
+
+ - MGL: List SMS                                        =&gt; no
+
+ - MGO: SMS overflow indicator                                =&gt; no
+
+ - MGR: Read SMS (same as AT+CMGR)                        =&gt; no
+
+ - MSO: Switch device off                                =&gt; maybe not
+
+ - NFS: Select NF hardware                                =&gt; maybe
+
+ - NFV: Set the volume                                        =&gt; maybe
+
+ - PBC: Seek in telephone book                                =&gt; no
+
+ - PBG: Sorted telephone book                                =&gt; yes
+
+ - PBS: Select a telephone book                                =&gt; yes
+
+ - PIC: Output PIN counter                                =&gt; maybe
+
+ - PLM: Read the PLMN list                                =&gt; yes
+
+ - PLR/PLW: read/write preferred-operator list                =&gt; yes
+
+ - PST: Play Signal Tone                                =&gt; yes
+
+ - PWD: Change password to a lock                        =&gt; maybe
+
+ - RTC: Set the ringing tone                                =&gt; yes
+
+ - STK: SIM toolkit                                        =&gt; no
+
+
+* Additional References
+
+http://www.s45-world.net/vissie.htm
+
+
+* Author and contact
+
+Christian W. Zuckschwerdt &lt;zany@triq.net&gt;
+http://triq.net/gsm.html
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsm_sie_mecc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,258 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sie_me.cc
+// *
+// * Purpose: Mobile Equipment/Terminal Adapter and SMS functions
+// *          (According to &quot;AT command set for S45 Siemens mobile phones&quot;
+// *           v1.8, 26. July 2001 - Common AT prefix is &quot;^S&quot;)
+// *
+// * Author:  Christian W. Zuckschwerdt  &lt;zany@triq.net&gt;
+// *
+// * Created: 2001-12-15
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsm_sie_me.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// SieMe members
+
+void SieMe::init() throw(GsmException)
+{
+}
+
+SieMe::SieMe(Ref&lt;Port&gt; port) throw(GsmException) : MeTa::MeTa(port)
+{
+  // initialize Siemens ME
+
+  init();
+}
+
+vector&lt;string&gt; SieMe::getSupportedPhonebooks() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;^SPBS=?&quot;, &quot;^SPBS:&quot;));
+  return p.parseStringList();
+}
+
+string SieMe::getCurrentPhonebook() throw(GsmException)
+{
+  if (_lastPhonebookName == &quot;&quot;)
+  {
+    Parser p(_at-&gt;chat(&quot;^SPBS?&quot;, &quot;^SPBS:&quot;));
+    // answer is e.g. ^SPBS: &quot;SM&quot;,41,250
+    _lastPhonebookName = p.parseString();
+    p.parseComma();
+    int _currentNumberOfEntries = p.parseInt();
+    p.parseComma();
+    int _maxNumberOfEntries = p.parseInt();
+  }
+  return _lastPhonebookName;
+}
+
+void SieMe::setPhonebook(string phonebookName) throw(GsmException)
+{
+  if (phonebookName != _lastPhonebookName)
+  {
+    _at-&gt;chat(&quot;^SPBS=\&quot;&quot; + phonebookName + &quot;\&quot;&quot;);
+    _lastPhonebookName = phonebookName;
+  }
+}
+
+
+IntRange SieMe:: getSupportedSignalTones() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;^SPST=?&quot;, &quot;^SPST:&quot;));
+  // ^SPST: (0-4),(0,1)
+  IntRange typeRange = p.parseRange();
+  p.parseComma();
+  vector&lt;bool&gt; volumeList = p.parseIntList();
+  return typeRange;
+}
+
+void SieMe:: playSignalTone(int tone) throw(GsmException)
+{
+  _at-&gt;chat(&quot;^SPST=&quot; + intToStr(tone) + &quot;,1&quot;);
+}
+
+void SieMe:: stopSignalTone(int tone) throw(GsmException)
+{
+  _at-&gt;chat(&quot;^SPST=&quot; + intToStr(tone) + &quot;,0&quot;);
+}
+
+
+IntRange SieMe::getSupportedRingingTones() throw(GsmException) // (AT^SRTC=?)
+{
+  Parser p(_at-&gt;chat(&quot;^SRTC=?&quot;, &quot;^SRTC:&quot;));
+  // ^SRTC: (0-42),(1-5)
+  IntRange typeRange = p.parseRange();
+  p.parseComma();
+  IntRange volumeRange = p.parseRange();
+  return typeRange;
+}
+
+int SieMe::getCurrentRingingTone() throw(GsmException) // (AT^SRTC?)
+{
+  Parser p(_at-&gt;chat(&quot;^SRTC?&quot;, &quot;^SRTC:&quot;));
+  // ^SRTC: 41,2,0
+  int type = p.parseInt();
+  p.parseComma();
+  int volume = p.parseInt();
+  p.parseComma();
+  int ringing = p.parseInt();
+  return type;
+}
+
+void SieMe::setRingingTone(int tone, int volume) throw(GsmException)
+{
+  _at-&gt;chat(&quot;^SRTC=&quot; + intToStr(tone) + &quot;,&quot; + intToStr(volume));
+}
+
+void SieMe:: playRingingTone() throw(GsmException)
+{
+  // get ringing bool
+  Parser p(_at-&gt;chat(&quot;^SRTC?&quot;, &quot;^SRTC:&quot;));
+  // ^SRTC: 41,2,0
+  int type = p.parseInt();
+  p.parseComma();
+  int volume = p.parseInt();
+  p.parseComma();
+  int ringing = p.parseInt();
+
+  if (ringing == 0)
+    toggleRingingTone();
+}
+
+void SieMe::stopRingingTone() throw(GsmException)
+{
+  // get ringing bool
+  Parser p(_at-&gt;chat(&quot;^SRTC?&quot;, &quot;^SRTC:&quot;));
+  // ^SRTC: 41,2,0
+  int type = p.parseInt();
+  p.parseComma();
+  int volume = p.parseInt();
+  p.parseComma();
+  int ringing = p.parseInt();
+
+  if (ringing == 1)
+    toggleRingingTone();
+}
+
+void SieMe::toggleRingingTone() throw(GsmException) // (AT^SRTC)
+{
+  _at-&gt;chat(&quot;^SRTC&quot;);
+}
+
+// Siemens get supported binary read
+vector&lt;ParameterRange&gt; SieMe::getSupportedBinaryReads() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;^SBNR=?&quot;, &quot;^SBNR:&quot;));
+  // ^SBNR: (&quot;bmp&quot;,(0-3)),(&quot;mid&quot;,(0-4)),(&quot;vcf&quot;,(0-500)),(&quot;vcs&quot;,(0-50))
+
+  return p.parseParameterRangeList();
+}
+
+// Siemens get supported binary write
+vector&lt;ParameterRange&gt; SieMe::getSupportedBinaryWrites() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;^SBNW=?&quot;, &quot;^SBNW:&quot;));
+  // ^SBNW: (&quot;bmp&quot;,(0-3)),(&quot;mid&quot;,(0-4)),(&quot;vcf&quot;,(0-500)),(&quot;vcs&quot;,(0-50)),(&quot;t9d&quot;,(0))
+
+  return p.parseParameterRangeList();
+}
+
+// Siemens Binary Read
+BinaryObject SieMe::getBinary(string type, int subtype) throw(GsmException)
+{
+  // expect several response lines
+  vector&lt;string&gt; result;
+  result = _at-&gt;chatv(&quot;^SBNR=\&quot;&quot; + type + &quot;\&quot;,&quot; + intToStr(subtype), &quot;^SBNR:&quot;);
+  // &quot;bmp&quot;,0,1,5 &lt;CR&gt;&lt;LF&gt; pdu &lt;CR&gt;&lt;LF&gt; &quot;bmp&quot;,0,2,5 &lt;CR&gt;&lt;LF&gt; ...
+  // most likely to be PDUs of 382 chars (191 * 2)
+  string pdu;
+  int fragmentCount = 0;
+  for (vector&lt;string&gt;::iterator i = result.begin(); i != result.end(); ++i)
+  {
+    ++fragmentCount;
+    // parse header
+    Parser p(*i);
+    string fragmentType = p.parseString();
+    if (fragmentType != type)
+      throw GsmException(_(&quot;bad PDU type&quot;), ChatError);
+    p.parseComma();
+    int fragmentSubtype = p.parseInt();
+    if (fragmentSubtype != subtype)
+      throw GsmException(_(&quot;bad PDU subtype&quot;), ChatError);
+    p.parseComma();
+    int fragmentNumber = p.parseInt();
+    if (fragmentNumber != fragmentCount)
+      throw GsmException(_(&quot;bad PDU number&quot;), ChatError);
+    p.parseComma();
+    int numberOfFragments = p.parseInt();
+    if (fragmentNumber &gt; numberOfFragments)
+      throw GsmException(_(&quot;bad PDU number&quot;), ChatError);
+
+    // concat pdu fragment
+    ++i;
+    pdu += *i;
+  }
+
+  BinaryObject bnr;
+  bnr._type = type;
+  bnr._subtype = subtype;
+  bnr._size = pdu.length() / 2;
+  bnr._data = new unsigned char[pdu.length() / 2];
+  if (! hexToBuf(pdu, bnr._data))
+    throw GsmException(_(&quot;bad hexadecimal PDU format&quot;), ChatError);
+
+  return bnr;
+}
+
+// Siemens Binary Write
+void SieMe::setBinary(string type, int subtype, BinaryObject obj)
+  throw(GsmException)
+{
+  if (obj._size &lt;= 0)
+    throw GsmException(_(&quot;bad object&quot;), ParameterError);
+
+  // Limitation: The maximum pdu size is 176 bytes (or 352 characters)
+  // this should be a configurable field 
+  int maxPDUsize = 176;
+  int numberOfPDUs = (obj._size + maxPDUsize - 1) / maxPDUsize;
+  unsigned char *p = obj._data;
+
+  for (int i = 1; i &lt;= numberOfPDUs; ++i)
+  {
+    // construct pdu
+    int size = maxPDUsize;
+    if (i == numberOfPDUs)
+      size = obj._size - (numberOfPDUs - 1) * maxPDUsize;
+    string pdu = bufToHex(p, size);
+    p += size;
+
+    cout &lt;&lt; &quot;processing &quot; &lt;&lt; i &lt;&lt; &quot; of &quot; &lt;&lt; numberOfPDUs
+         &lt;&lt; &quot; of &quot; &lt;&lt; size &lt;&lt; &quot; bytes.&quot; &lt;&lt; endl;
+    cout &lt;&lt; &quot;^SBNW=\&quot;&quot; + type + &quot;\&quot;,&quot; + intToStr(subtype) + &quot;,&quot;
+        + intToStr(i) + &quot;,&quot; + intToStr(numberOfPDUs) &lt;&lt; endl;
+    cout &lt;&lt; pdu &lt;&lt; endl;
+
+    _at-&gt;sendPdu(&quot;^SBNW=\&quot;&quot; + type + &quot;\&quot;,&quot; + intToStr(subtype) + &quot;,&quot;
+                 + intToStr(i) + &quot;,&quot; + intToStr(numberOfPDUs), &quot;&quot;,
+                 pdu, true);
+    cout &lt;&lt; &quot;OK&quot; &lt;&lt; endl;
+  }
+}
+
+
+
+
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsm_sie_meh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsm_sie_me.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,99 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sie_me.h
+// *
+// * Purpose: Mobile Equipment/Terminal Adapter and SMS functions
+// *          (According to &quot;AT command set for S45 Siemens mobile phones&quot;
+// *           v1.8, 26. July 2001 - Common AT prefix is &quot;^S&quot;)
+// *
+// * Author:  Christian W. Zuckschwerdt  &lt;zany@triq.net&gt;
+// *
+// * Created: 2001-12-15
+// *************************************************************************
+
+#ifndef GSM_SIE_ME_H
+#define GSM_SIE_ME_H
+
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;string&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // *** Siemens mobile phone binary objects (bitmap, midi, vcal, vcard)
+
+  struct BinaryObject
+  {
+    string _type;               // Object type
+    int _subtype;               // Object subtype (storage number)
+    unsigned char *_data;       // Object binary data
+    int _size;                  // Object data size
+  };
+
+  // *** this class allows extended access to Siemens moblie phones
+
+  class SieMe : public MeTa
+  {
+  private:
+    // init ME/TA to sensible defaults
+    void init() throw(GsmException);
+
+  public:
+    // initialize a new MeTa object given the port
+    SieMe(Ref&lt;Port&gt; port) throw(GsmException);
+
+
+    // get the current phonebook in the Siemens ME
+    vector&lt;string&gt; getSupportedPhonebooks() throw(GsmException);// (AT^SPBS=?)
+
+    // get the current phonebook in the Siemens ME
+    string getCurrentPhonebook() throw(GsmException); // (AT^SPBS?)
+
+    // set the current phonebook in the Siemens ME
+    // remember the last phonebook set for optimisation
+    void setPhonebook(string phonebookName) throw(GsmException); // (AT^SPBS=)
+
+
+    // Siemens get supported signal tones
+    IntRange getSupportedSignalTones() throw(GsmException); // (AT^SPST=?)
+
+    // Siemens set ringing tone
+    void playSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,1)
+
+    // Siemens set ringing tone
+    void stopSignalTone(int tone) throw(GsmException); // (AT^SRTC=x,0)
+
+
+    // Siemens get ringing tone
+    IntRange getSupportedRingingTones() throw(GsmException); // (AT^SRTC=?)
+    // Siemens get ringing tone
+    int getCurrentRingingTone() throw(GsmException); // (AT^SRTC?)
+    // Siemens set ringing tone
+    void setRingingTone(int tone, int volume) throw(GsmException);// (AT^SRTC=)
+    // Siemens set ringing tone on
+    void playRingingTone() throw(GsmException);
+    // Siemens set ringing tone of
+    void stopRingingTone() throw(GsmException);
+    // Siemens toggle ringing tone
+    void toggleRingingTone() throw(GsmException); // (AT^SRTC)
+
+    // Siemens get supported binary read
+    vector&lt;ParameterRange&gt; getSupportedBinaryReads() throw(GsmException);
+
+    // Siemens get supported binary write
+    vector&lt;ParameterRange&gt; getSupportedBinaryWrites() throw(GsmException);
+
+    // Siemens Binary Read
+    BinaryObject getBinary(string type, int subtype) throw(GsmException);
+
+    // Siemens Binary Write
+    void setBinary(string type, int subtype, BinaryObject obj)
+      throw(GsmException);
+  };
+};
+
+#endif // GSM_ME_TA_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsmsiectlcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiectl.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiectl.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiectl.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,698 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmsiectl.cc
+// *
+// * Purpose: GSM Siemens mobile phone control program
+// *
+// * Author:  Christian W. Zuckschwerdt  &lt;zany@triq.net&gt;
+// *
+// * Created: 2001-12-15
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;strstream&gt;
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsm_sie_me.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// my ME
+
+static SieMe *m;
+
+// information parameters
+
+enum InfoParameter {AllInfo, // print all info
+                    MeInfo,     // MeInfo must be first!
+                    OperatorInfo,
+                    CurrentOperatorInfo,
+                    FacilityLockStateInfo,
+                    FacilityLockCapabilityInfo,
+                    PasswordInfo,
+                    CLIPInfo,
+                    CallForwardingInfo,
+                    BatteryInfo,
+                    BitErrorInfo,
+                    SCAInfo,
+                    CharSetInfo,
+                    PhonebookInfo, // extended Siemens info
+                    SignalToneInfo,
+                    RingingToneInfo,
+                    BinaryInfo,
+                    SignalInfo}; // SignalInfo must be last!
+
+// operation parameters
+
+// FIXME operations not implemented yet
+
+// options
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;operation&quot;, required_argument, (int*)NULL, 'o'},
+  {&quot;device&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// helper function, prints forwarding info
+
+void printForwardReason(string s, ForwardInfo &amp;info)
+{
+  cout &lt;&lt; s &lt;&lt; &quot;  &quot;
+       &lt;&lt; (info._active ? _(&quot;active &quot;) : _(&quot;inactive &quot;))
+       &lt;&lt; _(&quot;number: &quot;) &lt;&lt; info._number
+       &lt;&lt; _(&quot;  subaddr: &quot;) &lt;&lt; info._subAddr
+       &lt;&lt; _(&quot;  time: &quot;) &lt;&lt; info._time &lt;&lt; endl;
+}
+
+// helper function, prints integer range
+
+void printIntRange(IntRange ir)
+{
+  cout &lt;&lt; &quot;(&quot; &lt;&lt; ir._low;
+  if (ir._high != NOT_SET)
+    cout &lt;&lt; &quot;-&quot; &lt;&lt; ir._high;
+  cout &lt;&lt; &quot;)&quot;;
+}
+
+// helper function, prints parameter range
+
+void printParameterRange(ParameterRange pr)
+{
+  cout &lt;&lt; &quot;(\&quot;&quot; &lt;&lt; pr._parameter &lt;&lt; &quot;\&quot;,&quot;;
+  printIntRange(pr._range);
+  cout &lt;&lt; &quot;)&quot;;
+}
+
+// print information
+
+static void printInfo(InfoParameter ip)
+{
+  switch (ip)
+  {
+  case MeInfo:
+  {
+    MEInfo mei = m-&gt;getMEInfo();
+    cout &lt;&lt; _(&quot;&lt;ME0&gt;  Manufacturer: &quot;) &lt;&lt; mei._manufacturer &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME1&gt;  Model: &quot;) &lt;&lt; mei._model &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME2&gt;  Revision: &quot;) &lt;&lt; mei._revision &lt;&lt; endl
+         &lt;&lt; _(&quot;&lt;ME3&gt;  Serial Number: &quot;) &lt;&lt; mei._serialNumber &lt;&lt; endl;
+    break;
+  }
+  case OperatorInfo:
+  {
+    int count = 0;
+    vector&lt;OPInfo&gt; opis = m-&gt;getAvailableOPInfo();
+    for (vector&lt;OPInfo&gt;::iterator i = opis.begin(); i != opis.end(); ++i)
+    {
+      cout &lt;&lt; &quot;&lt;OP&quot; &lt;&lt; count &lt;&lt; _(&quot;&gt;  Status: &quot;);
+      switch (i-&gt;_status)
+      {
+      case UnknownOPStatus: cout &lt;&lt; _(&quot;unknown&quot;); break;
+      case CurrentOPStatus: cout &lt;&lt; _(&quot;current&quot;); break;
+      case AvailableOPStatus: cout &lt;&lt; _(&quot;available&quot;); break;
+      case ForbiddenOPStatus: cout &lt;&lt; _(&quot;forbidden&quot;); break;
+      }
+      cout &lt;&lt; _(&quot;  Long name: '&quot;) &lt;&lt; i-&gt;_longName &lt;&lt; &quot;' &quot;
+           &lt;&lt; _(&quot;  Short name: '&quot;) &lt;&lt; i-&gt;_shortName &lt;&lt; &quot;' &quot;
+           &lt;&lt; _(&quot;  Numeric name: &quot;) &lt;&lt; i-&gt;_numericName &lt;&lt; endl;
+      ++count;
+    }
+    break;
+  }
+  case CurrentOperatorInfo:
+  {
+    OPInfo opi = m-&gt;getCurrentOPInfo();
+    cout &lt;&lt; &quot;&lt;CURROP0&gt;&quot;
+         &lt;&lt; _(&quot;  Long name: '&quot;) &lt;&lt; opi._longName &lt;&lt; &quot;' &quot;
+         &lt;&lt; _(&quot;  Short name: '&quot;) &lt;&lt; opi._shortName &lt;&lt; &quot;' &quot;
+         &lt;&lt; _(&quot;  Numeric name: &quot;) &lt;&lt; opi._numericName
+         &lt;&lt; _(&quot;  Mode: &quot;);
+    switch (opi._mode)
+    {
+    case AutomaticOPMode: cout &lt;&lt; _(&quot;automatic&quot;); break;
+    case ManualOPMode: cout &lt;&lt; _(&quot;manual&quot;); break;
+    case DeregisterOPMode: cout &lt;&lt; _(&quot;deregister&quot;); break;
+    case ManualAutomaticOPMode: cout &lt;&lt; _(&quot;manual/automatic&quot;); break;
+    }
+    cout &lt;&lt; endl;
+    break;
+  }
+  case FacilityLockStateInfo:
+  {
+    int count = 0;
+    vector&lt;string&gt; fclc = m-&gt;getFacilityLockCapabilities();
+    for (vector&lt;string&gt;::iterator i = fclc.begin(); i != fclc.end(); ++i)
+      if (*i != &quot;AB&quot; &amp;&amp; *i != &quot;AG&quot; &amp;&amp; *i != &quot;AC&quot;)
+      {
+        cout &lt;&lt; &quot;&lt;FLSTAT&quot; &lt;&lt; count &lt;&lt;  &quot;&gt;  '&quot; &lt;&lt; *i &lt;&lt; &quot;'&quot;;
+        try
+        {
+          if (m-&gt;getFacilityLockStatus(*i, VoiceFacility))
+            cout &lt;&lt; _(&quot;  Voice&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        try
+        {
+        if (m-&gt;getFacilityLockStatus(*i, DataFacility))
+          cout &lt;&lt; _(&quot;  Data&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        try
+        {
+        if (m-&gt;getFacilityLockStatus(*i, FaxFacility))
+          cout &lt;&lt; _(&quot;  Fax&quot;);
+        }
+        catch (GsmException &amp;e)
+        {
+          cout &lt;&lt; _(&quot;  unknown&quot;);
+        }
+        cout &lt;&lt; endl;
+        ++count;
+      }
+    break;
+  }
+  case FacilityLockCapabilityInfo:
+  {
+    cout &lt;&lt; &quot;&lt;FLCAP0&gt;  &quot;;
+    vector&lt;string&gt; fclc = m-&gt;getFacilityLockCapabilities();
+    for (vector&lt;string&gt;::iterator i = fclc.begin(); i != fclc.end(); ++i)
+      cout &lt;&lt; &quot;'&quot; &lt;&lt; *i &lt;&lt; &quot;' &quot;;
+    cout &lt;&lt; endl;
+    break;
+  }
+  case PasswordInfo:
+  {
+    vector&lt;PWInfo&gt; pwi = m-&gt;getPasswords();
+    int count = 0;
+    for (vector&lt;PWInfo&gt;::iterator i = pwi.begin(); i != pwi.end(); ++i)
+    {
+      cout &lt;&lt; &quot;&lt;PW&quot; &lt;&lt; count &lt;&lt;  &quot;&gt;  '&quot;
+           &lt;&lt; i-&gt;_facility &lt;&lt; &quot;' &quot; &lt;&lt; i-&gt;_maxPasswdLen &lt;&lt; endl;
+      ++count;
+    }
+    break;
+  }
+  case CLIPInfo:
+  {
+    cout &lt;&lt; &quot;&lt;CLIP0&gt;  &quot; &lt;&lt; (m-&gt;getNetworkCLIP() ? _(&quot;on&quot;) : _(&quot;off&quot;)) &lt;&lt; endl;
+    break;
+  }
+  case CallForwardingInfo:
+  {
+    for (int r = 0; r &lt; 4; ++r)
+    {
+      string text;
+      switch (r)
+      {
+      case 0: text = _(&quot;UnconditionalReason&quot;); break;
+      case 1: text = _(&quot;MobileBusyReason&quot;); break;
+      case 2: text = _(&quot;NoReplyReason&quot;); break;
+      case 3: text = _(&quot;NotReachableReason&quot;); break;
+      }
+      ForwardInfo voice, fax, data;
+      m-&gt;getCallForwardInfo((ForwardReason)r, voice, fax, data);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;0&gt;  &quot; + text + _(&quot;  Voice&quot;), voice);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;1&gt;  &quot; + text + _(&quot;  Data&quot;), data);
+      cout &lt;&lt; &quot;&lt;FORW&quot; &lt;&lt; r &lt;&lt; &quot;.&quot;;
+      printForwardReason(&quot;2&gt;  &quot; + text + _(&quot;  Fax&quot;), fax);
+    }
+    break;
+  }
+  case BatteryInfo:
+  {
+    cout &lt;&lt; &quot;&lt;BATT0&gt;  &quot;;
+    int bcs = m-&gt;getBatteryChargeStatus();
+    switch (bcs)
+    {
+    case 0: cout &lt;&lt; _(&quot;0 ME is powered by the battery&quot;) &lt;&lt; endl; break;
+    case 1: cout &lt;&lt; _(&quot;1 ME has a battery connected, but is not powered by it&quot;)
+                 &lt;&lt; endl; break;
+    case 2: cout &lt;&lt; _(&quot;2 ME does not have a battery connected&quot;) &lt;&lt; endl; break;
+    case 3:
+      cout &lt;&lt; _(&quot;3 Recognized power fault, calls inhibited&quot;) &lt;&lt; endl;
+      break;
+    }
+    cout &lt;&lt; &quot;&lt;BATT1&gt;  &quot; &lt;&lt; m-&gt;getBatteryCharge() &lt;&lt; endl;
+    break;
+  }
+  case BitErrorInfo:
+  {
+    cout &lt;&lt; &quot;&lt;BITERR0&gt;  &quot; &lt;&lt; m-&gt;getBitErrorRate() &lt;&lt; endl;
+    break;
+  }
+  case SCAInfo:
+  {
+    cout &lt;&lt; &quot;&lt;SCA0&gt;  &quot; &lt;&lt; m-&gt;getServiceCentreAddress() &lt;&lt; endl;
+    break;
+  }
+  case CharSetInfo:
+  {
+    cout &lt;&lt; &quot;&lt;CSET0&gt;  &quot;;
+    vector&lt;string&gt; cs = m-&gt;getSupportedCharSets();
+    for (vector&lt;string&gt;::iterator i = cs.begin(); i != cs.end(); ++i)
+      cout &lt;&lt; &quot;'&quot; &lt;&lt; *i &lt;&lt; &quot;' &quot;;
+    cout &lt;&lt; endl;
+    cout &lt;&lt; &quot;&lt;CSET1&gt;  '&quot; &lt;&lt; m-&gt;getCurrentCharSet() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    break;
+  }
+  case SignalInfo:
+  {
+    cout &lt;&lt; &quot;&lt;SIG0&gt;  &quot; &lt;&lt; m-&gt;getSignalStrength() &lt;&lt; endl;
+    break;
+  }
+  case PhonebookInfo:
+  {
+    cout &lt;&lt; &quot;&lt;PBOOK0&gt;  &quot;;
+    vector&lt;string&gt; pb = m-&gt;getSupportedPhonebooks();
+    for (vector&lt;string&gt;::iterator i = pb.begin(); i != pb.end(); ++i)
+      cout &lt;&lt; &quot;'&quot; &lt;&lt; *i &lt;&lt; &quot;' &quot;;
+    cout &lt;&lt; endl;
+    cout &lt;&lt; &quot;&lt;PBOOK1&gt;  '&quot; &lt;&lt; m-&gt;getCurrentPhonebook() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    break;
+  }
+  case SignalToneInfo:
+  {
+    cout &lt;&lt; &quot;&lt;SIGNAL0&gt;  &quot;;
+    IntRange st = m-&gt;getSupportedSignalTones();
+    printIntRange(st);
+    cout &lt;&lt; endl;
+//    cout &lt;&lt; &quot;&lt;SIGT1&gt;  '&quot; &lt;&lt; m-&gt;getCurrentSignalTone() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    break;
+  }
+  case RingingToneInfo:
+  {
+    cout &lt;&lt; &quot;&lt;RING0&gt;  &quot;;
+    IntRange rt = m-&gt;getSupportedRingingTones();
+    printIntRange(rt);
+    cout &lt;&lt; endl;
+    cout &lt;&lt; &quot;&lt;RING1&gt;  &quot; &lt;&lt; m-&gt;getCurrentRingingTone() &lt;&lt; endl;
+    break;
+  }
+  case BinaryInfo:
+  {
+    cout &lt;&lt; &quot;&lt;BIN0&gt;  &quot;;
+    vector&lt;ParameterRange&gt; bnr = m-&gt;getSupportedBinaryReads();
+    for (vector&lt;ParameterRange&gt;::iterator i = bnr.begin(); i != bnr.end(); ++i)
+    {
+      printParameterRange(*i);
+      cout &lt;&lt; &quot; &quot;;
+    }
+    cout &lt;&lt; endl;
+    cout &lt;&lt; &quot;&lt;BIN1&gt;  &quot;;
+    vector&lt;ParameterRange&gt; bnw = m-&gt;getSupportedBinaryWrites();
+    for (vector&lt;ParameterRange&gt;::iterator i = bnw.begin(); i != bnw.end(); ++i)
+    {
+      printParameterRange(*i);
+      cout &lt;&lt; &quot; &quot;;
+    }
+    cout &lt;&lt; endl;
+    break;
+  }
+  default:
+    assert(0);
+    break;
+  }
+}
+
+// convert facility class string of the form &quot;&quot;, &quot;all&quot;, or any combination
+// of &quot;v&quot; (voice), &quot;d&quot; (data), or &quot;f&quot; (fax) to numeric form
+
+FacilityClass strToFacilityClass(string facilityClassS)
+{
+  facilityClassS = lowercase(facilityClassS);
+  FacilityClass facilityClass = (FacilityClass)0;
+  if (facilityClassS == &quot;all&quot; || facilityClassS == &quot;&quot;)
+    return (FacilityClass)ALL_FACILITIES;
+
+  // OR in facility class bits
+  for (unsigned int i = 0; i &lt; facilityClassS.length(); ++i)
+    if (facilityClassS[i] == 'v')
+      facilityClass = (FacilityClass)(facilityClass | VoiceFacility);
+    else if (facilityClassS[i] == 'd')
+      facilityClass = (FacilityClass)(facilityClass | DataFacility);
+    else if (facilityClassS[i] == 'f')
+      facilityClass = (FacilityClass)(facilityClass | FaxFacility);
+    else
+      throw GsmException(
+        stringPrintf(_(&quot;unknown facility class parameter '%c'&quot;),
+                     facilityClassS[i]), ParameterError);
+
+  return facilityClass;
+}
+
+// check if argc - optind is in range min..max
+// throw exception otherwise
+
+void checkParamCount(int optind, int argc, int min, int max)
+{
+  int paramCount = argc - optind;
+  if (paramCount &lt; min)
+    throw GsmException(stringPrintf(_(&quot;not enough parameters, minimum number &quot;
+                                      &quot;of parameters is %d&quot;), min),
+                       ParameterError);
+  else if (paramCount &gt; max)
+    throw GsmException(stringPrintf(_(&quot;too many parameters, maximum number &quot;
+                                      &quot;of parameters is %d&quot;), max),
+                       ParameterError);
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string device = &quot;/dev/mobilephone&quot;;
+    string operation;
+    string baudrate;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;I:o:d:b:hvX&quot;, longOpts, &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'd':
+        device = optarg;
+        break;
+      case 'o':
+        operation = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-b baudrate][-d device][-h]&quot;
+                             &quot;[-I init string][-o operation]\n&quot;
+                             &quot;  [-v][-X]{parameters}&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --device      sets the destination device to &quot;
+                  &quot;connect to&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -o, --operation   operation to perform on the mobile \n&quot;
+                  &quot;                    phone with the specified parameters&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  parameters        parameters to use for the operation\n&quot;
+                  &quot;                    (if an operation is given) or\n&quot;
+                  &quot;                    a specification which kind of\n&quot;
+                  &quot;                    information to read from the mobile &quot;
+                  &quot;phone&quot;)
+             &lt;&lt; endl &lt;&lt; endl
+             &lt;&lt; _(&quot;Refer to gsmctl(1) for details on the available parameters&quot;
+                  &quot; and operations.&quot;)
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    // open the port and ME/TA
+    m = new SieMe(new
+#ifdef WIN32
+                 Win32SerialPort
+#else
+                 UnixSerialPort
+#endif
+                 (device,
+                  baudrate == &quot;&quot; ?
+                  DEFAULT_BAUD_RATE :
+                  baudRateStrToSpeed(baudrate),
+                  initString, swHandshake));
+    
+    if (operation == &quot;&quot;)
+    {                           // process info parameters
+      for (int i = optind; i &lt; argc; ++i)
+      {
+        string param = lowercase(argv[i]);
+        if (param == &quot;all&quot;)
+          for (int ip = MeInfo; ip &lt;= SignalInfo; ++ip)
+            printInfo((InfoParameter)ip);
+        else if (param == &quot;me&quot;)
+          printInfo(MeInfo);
+        else if (param == &quot;op&quot;)
+          printInfo(OperatorInfo);
+        else if (param == &quot;currop&quot;)
+          printInfo(CurrentOperatorInfo);
+        else if (param == &quot;flstat&quot;)
+          printInfo(FacilityLockStateInfo);
+        else if (param == &quot;flcap&quot;)
+          printInfo(FacilityLockCapabilityInfo);
+        else if (param == &quot;pw&quot;)
+          printInfo(PasswordInfo);
+        else if (param == &quot;clip&quot;)
+          printInfo(CLIPInfo);
+        else if (param == &quot;forw&quot;)
+          printInfo(CallForwardingInfo);
+        else if (param == &quot;batt&quot;)
+          printInfo(BatteryInfo);
+        else if (param == &quot;biterr&quot;)
+          printInfo(BitErrorInfo);
+        else if (param == &quot;sig&quot;)
+          printInfo(SignalInfo);
+        else if (param == &quot;sca&quot;)
+          printInfo(SCAInfo);
+        else if (param == &quot;cset&quot;)
+          printInfo(CharSetInfo);
+        else if (param == &quot;pbook&quot;)
+          printInfo(PhonebookInfo);
+        else if (param == &quot;signal&quot;)
+          printInfo(SignalToneInfo);
+        else if (param == &quot;ring&quot;)
+          printInfo(RingingToneInfo);
+        else if (param == &quot;binary&quot;)
+          printInfo(BinaryInfo);
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown information parameter '%s'&quot;),
+                         param.c_str()),
+            ParameterError);
+      }
+    }
+    else
+    {                           // process operation
+      operation = lowercase(operation);
+      if (operation == &quot;dial&quot;)
+      {
+        // dial: number
+        checkParamCount(optind, argc, 1, 1);
+
+        m-&gt;dial(argv[optind]);
+        
+        // wait for keypress from stdin
+        char c;
+        read(1, &amp;c, 1);
+      }
+      else if (operation == &quot;setop&quot;)
+      {
+        // setop: opmode numeric FIXME allow long and numeric too
+        checkParamCount(optind, argc, 2, 2);
+        string opmodeS = lowercase(argv[optind]);
+        OPModes opmode;
+        if (opmodeS == &quot;automatic&quot;)
+          opmode = AutomaticOPMode;
+        else if (opmodeS == &quot;manual&quot;)
+          opmode = ManualOPMode;
+        else if (opmodeS == &quot;deregister&quot;)
+          opmode = DeregisterOPMode;
+        else if (opmodeS == &quot;manualautomatic&quot;)
+          opmode = ManualAutomaticOPMode;
+        else
+          throw GsmException(stringPrintf(_(&quot;unknown opmode parameter '%s'&quot;),
+                                          opmodeS.c_str()), ParameterError);
+
+        m-&gt;setCurrentOPInfo(opmode, &quot;&quot; , &quot;&quot;, checkNumber(argv[optind + 1]));
+      }
+      else if (operation == &quot;lock&quot;)
+      {
+        // lock: facility [facilityclass] [passwd]
+        checkParamCount(optind, argc, 1, 3);
+        string passwd = (argc - optind == 3) ?
+          (string)argv[optind + 2] : (string)&quot;&quot;;
+        
+        m-&gt;lockFacility(argv[optind],
+                        (argc - optind &gt;= 2) ?
+                        strToFacilityClass(argv[optind + 1]) :
+                        (FacilityClass)ALL_FACILITIES,
+                        passwd);
+      }
+      else if (operation == &quot;unlock&quot;)
+      {
+        // unlock: facility [facilityclass] [passwd]
+        checkParamCount(optind, argc, 1, 3);
+        string passwd = argc - optind == 3 ? argv[optind + 2] : &quot;&quot;;
+        
+        m-&gt;unlockFacility(argv[optind],
+                          (argc - optind &gt;= 2) ?
+                          strToFacilityClass(argv[optind + 1]) :
+                          (FacilityClass)ALL_FACILITIES,
+                          passwd);
+      }
+      else if (operation == &quot;setpw&quot;)
+      {
+        // set password: facility oldpasswd newpasswd
+        checkParamCount(optind, argc, 1, 3);
+        string oldPasswd = argc - optind &gt;= 2 ? argv[optind + 1] : &quot;&quot;;
+        string newPasswd = argc - optind == 3 ? argv[optind + 2] : &quot;&quot;;
+
+        m-&gt;setPassword(argv[optind], oldPasswd, newPasswd);
+      }
+      else if (operation == &quot;forw&quot;)
+      {
+        // call forwarding: mode reason number [facilityclass] [forwardtime]
+        checkParamCount(optind, argc, 2, 5);
+
+        // get optional parameters facility class and forwardtime
+        int forwardTime = argc - optind == 5 ? checkNumber(argv[optind + 4]) :
+          NOT_SET;
+        FacilityClass facilityClass =
+          argc - optind &gt;= 4 ? strToFacilityClass(argv[optind + 3]) :
+          (FacilityClass)ALL_FACILITIES;
+        
+        // get forward reason
+        string reasonS = lowercase(argv[optind + 1]);
+        ForwardReason reason;
+        if (reasonS == &quot;unconditional&quot;)
+          reason = UnconditionalReason;
+        else if (reasonS == &quot;mobilebusy&quot;)
+          reason = MobileBusyReason;
+        else if (reasonS == &quot;noreply&quot;)
+          reason = NoReplyReason;
+        else if (reasonS == &quot;notreachable&quot;)
+          reason = NotReachableReason;
+        else if (reasonS == &quot;all&quot;)
+          reason = AllReasons;
+        else if (reasonS == &quot;allconditional&quot;)
+          reason = AllConditionalReasons;
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown forward reason parameter '%s'&quot;),
+                         reasonS.c_str()), ParameterError);
+        
+        // get mode
+        string modeS = lowercase(argv[optind]);
+        ForwardMode mode;
+        if (modeS == &quot;disable&quot;)
+          mode = DisableMode;
+        else if (modeS == &quot;enable&quot;)
+          mode = EnableMode;
+        else if (modeS == &quot;register&quot;)
+          mode = RegistrationMode;
+        else if (modeS == &quot;erase&quot;)
+          mode = ErasureMode;
+        else
+          throw GsmException(
+            stringPrintf(_(&quot;unknown forward mode parameter '%s'&quot;),
+                         modeS.c_str()), ParameterError);
+
+        m-&gt;setCallForwarding(reason, mode,
+                             (argc - optind &gt;= 3) ? argv[optind + 2] : &quot;&quot;,
+                             &quot;&quot;, // subaddr
+                             facilityClass, forwardTime);
+      }
+      else if (operation == &quot;setsca&quot;)
+      {
+        // set sca: number
+        checkParamCount(optind, argc, 1, 1);
+        m-&gt;setServiceCentreAddress(argv[optind]);
+      }
+      else if (operation == &quot;cset&quot;)
+      {
+        // set charset: string
+        checkParamCount(optind, argc, 1, 1);
+        m-&gt;setCharSet(argv[optind]);
+      }
+      else if (operation == &quot;signal&quot;)
+      {
+        // play signal tone: int
+        checkParamCount(optind, argc, 1, 1);
+        int tone = atoi(argv[optind]);
+        m-&gt;playSignalTone(tone);
+      }
+      else if (operation == &quot;setrt&quot;)
+      {
+        // set ringing tone: int int
+        checkParamCount(optind, argc, 2, 2);
+        int tone = atoi(argv[optind]);
+        int volume = atoi(argv[optind + 1]);
+        m-&gt;setRingingTone(tone, volume);
+      }
+      else if (operation == &quot;playrt&quot;)
+      {
+        // play/stop ringing tone
+        m-&gt;toggleRingingTone();
+      }
+      else
+         throw GsmException(stringPrintf(_(&quot;unknown operation '%s'&quot;),
+                                         operation.c_str()), ParameterError);
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1extgsmsiexfercc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiexfer.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiexfer.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/ext/gsmsiexfer.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,292 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsmsiexfer.cc
+// *
+// * Purpose: Siemens ME file transfer program
+// *
+// * Author:  Christian W. Zuckschwerdt  &lt;zany@triq.net&gt;
+// *
+// * Created: 2001-12-16
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;unistd.h&gt;
+#endif
+#if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+#include &lt;getopt.h&gt;
+#endif
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsm_sie_me.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sorted_phonebook.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+#ifdef HAVE_GETOPT_LONG
+static struct option longOpts[] =
+{
+  {&quot;xonxoff&quot;, no_argument, (int*)NULL, 'X'},
+  {&quot;init&quot;, required_argument, (int*)NULL, 'I'},
+  {&quot;destination&quot;, required_argument, (int*)NULL, 'd'},
+  {&quot;source&quot;, required_argument, (int*)NULL, 's'},
+  {&quot;baudrate&quot;, required_argument, (int*)NULL, 'b'},
+  {&quot;type&quot;, required_argument, (int*)NULL, 't'},
+  {&quot;subtype&quot;, required_argument, (int*)NULL, 'i'},
+  {&quot;help&quot;, no_argument, (int*)NULL, 'h'},
+  {&quot;version&quot;, no_argument, (int*)NULL, 'v'},
+  {&quot;verbose&quot;, no_argument, (int*)NULL, 'V'},
+  {(char*)NULL, 0, (int*)NULL, 0}
+};
+#else
+#define getopt_long(argc, argv, options, longopts, indexptr) \
+  getopt(argc, argv, options)
+#endif
+
+// I f*ck up this file IO thing.
+
+// read binary object from stdin
+BinaryObject readBinaryFile(istream &amp;ifs, string filename)
+{
+  size_t size = 10000; // Bad coder, no biscuits!
+  BinaryObject bnr;
+  bnr._data = new unsigned char[size];
+  ifs.read((char*)bnr._data, size);
+  bnr._size = ifs.gcount();
+  return bnr;
+}
+
+// read binary object from file
+BinaryObject readFile(string filename)
+{
+  // open the file
+  ifstream ifs(filename.c_str());
+  if (ifs.bad())
+    throw GsmException(stringPrintf(_(&quot;cannot open file '%s'&quot;),
+                                    filename.c_str()),
+                       OSError);
+  // and read the file
+  return readBinaryFile(ifs, filename);
+}
+
+// read binary object from stdin
+BinaryObject readFile(bool fromStdin)
+{
+  // read from stdin
+//  if (fromStdin)
+  return readBinaryFile(cin, (string)_(&quot;&lt;STDIN&gt;&quot;));
+}
+
+// write binary object to file
+void writeBinaryFile(ostream &amp;ofs, string filename, BinaryObject bnw)
+{
+  // well just dump the data
+  ofs.write((char*)bnw._data, bnw._size);
+}
+
+// write binary object
+void writeFile(string filename, BinaryObject obj)
+{
+  // open the file
+  ofstream ofs(filename.c_str());
+  if (ofs.bad())
+    throw GsmException(stringPrintf(_(&quot;cannot open file '%s'&quot;),
+                                    filename.c_str()),
+                       OSError);
+  // and read the file
+  writeBinaryFile(ofs, filename, obj);
+}
+
+// write binary object to stdout
+void writeFile(bool toStdout, BinaryObject obj)
+{
+//  if (toStdout)
+  writeBinaryFile(cout, (string)_(&quot;&lt;STDIN&gt;&quot;), obj);
+}
+
+// *** main program
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // handle command line options
+    string destination;
+    string source;
+    string baudrate;
+    string type;
+    string subtype;
+    int subtypeN;
+    bool verbose = false;
+    string initString = DEFAULT_INIT_STRING;
+    bool swHandshake = false;
+    Ref&lt;SieMe&gt; sourceMeTa, destMeTa;
+    BinaryObject sourceObject;
+
+    int opt;
+    int dummy;
+    while((opt = getopt_long(argc, argv, &quot;XI:s:d:b:hvVt:i:&quot;, longOpts,
+                             &amp;dummy))
+          != -1)
+      switch (opt)
+      {
+      case 'X':
+        swHandshake = true;
+        break;
+      case 'I':
+        initString = optarg;
+        break;
+      case 'V':
+        verbose = true;
+        break;
+      case 't':
+        type = optarg;
+        break;
+      case 'i':
+        subtype = optarg;
+        subtypeN = atoi(optarg);
+        break;
+      case 'd':
+        destination = optarg;
+        break;
+      case 's':
+        source = optarg;
+        break;
+      case 'b':
+        baudrate = optarg;
+        break;
+      case 'v':
+        cerr &lt;&lt; argv[0] &lt;&lt; stringPrintf(_(&quot;: version %s [compiled %s]&quot;),
+                                        VERSION, __DATE__) &lt;&lt; endl;
+        exit(0);
+        break;
+      case 'h':
+        cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;: [-b baudrate][-c][-d device or file][-h]&quot;
+                             &quot;[-I init string]\n&quot;
+                             &quot;  [-p phonebook name][-s device or file]&quot;
+                             &quot;[-t charset][-v]&quot;
+                             &quot;[-V][-y][-X]&quot;) &lt;&lt; endl
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -b, --baudrate    baudrate to use for device &quot;
+                  &quot;(default: 38400)&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -c, --copy        copy source entries to destination&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -d, --destination sets the destination device to &quot;
+                  &quot;connect \n&quot;
+                  &quot;                    to, or the file to write&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -D, --destination-backend sets the destination backend&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -i, --index       takes index positions into account&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -p, --phonebook   name of phonebook to use&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -s, --source      sets the source device to connect to,\n&quot;
+                  &quot;                    or the file to read&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -t, --charset     sets the character set to use for\n&quot;
+                  &quot;                    phonebook entries&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -S, --source-backend sets the source backend&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -v, --version     prints version and exits&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -V, --verbose     print detailed progress messages&quot;)
+             &lt;&lt; endl
+             &lt;&lt; _(&quot;  -X, --xonxoff     switch on software handshake&quot;) &lt;&lt; endl
+             &lt;&lt; _(&quot;  -y, --synchronize synchronize destination with source\n&quot;
+                  &quot;                    entries (destination is overwritten)\n&quot;
+                  &quot;                    (see gsmpb(1) for details)&quot;)
+             &lt;&lt; endl &lt;&lt; endl;
+        exit(0);
+        break;
+      case '?':
+        throw GsmException(_(&quot;unknown option&quot;), ParameterError);
+        break;
+      }
+
+    // check if all parameters all present
+    if (destination == &quot;&quot; || source == &quot;&quot;)
+      throw GsmException(_(&quot;both source and destination must be given&quot;),
+                         ParameterError);
+
+    // start accessing source mobile phone or file
+    if (source == &quot;-&quot;)
+      sourceObject = readFile(true);
+    else if (isFile(source))
+      sourceObject = readFile(source);
+    else
+    {
+      if (type == &quot;&quot;)
+        throw GsmException(_(&quot;type be given&quot;), ParameterError);
+      if (subtype == &quot;&quot;)
+        throw GsmException(_(&quot;subtype be given&quot;), ParameterError);
+
+      sourceMeTa = new SieMe(new
+#ifdef WIN32
+                            Win32SerialPort
+#else
+                            UnixSerialPort
+#endif
+                            (source,
+                             baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                             baudRateStrToSpeed(baudrate), initString,
+                             swHandshake));
+      sourceObject = sourceMeTa-&gt;getBinary(type, subtypeN);
+    }
+
+    // make sure destination.c_str file exists
+    if (destination != &quot;&quot;)
+    {
+      try
+      {
+        ofstream f(destination.c_str(), ios::out | ios::app);
+      }
+      catch (exception)
+      {
+      }
+    }
+
+    // start accessing destination mobile phone or file
+    if (destination == &quot;-&quot;)
+      writeFile(true, sourceObject);
+    else if (isFile(destination))
+      writeFile(destination, sourceObject);
+    else
+    {
+      if (type == &quot;&quot;)
+        throw GsmException(_(&quot;type must be given&quot;), ParameterError);
+      if (subtype == &quot;&quot;)
+        throw GsmException(_(&quot;subtype must be given&quot;), ParameterError);
+
+      destMeTa = new SieMe(new 
+#ifdef WIN32
+                          Win32SerialPort
+#else
+                          UnixSerialPort
+#endif
+                          (destination,
+                           baudrate == &quot;&quot; ? DEFAULT_BAUD_RATE :
+                           baudRateStrToSpeed(baudrate), initString,
+                           swHandshake));
+      destMeTa-&gt;setBinary(type, subtypeN, sourceObject);
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1g41patch"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/g41.patch (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/g41.patch                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/g41.patch        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+--- ./gsmlib/gsm_me_ta.h~       2006-03-09 19:15:59.000000000 +0000
++++ ./gsmlib/gsm_me_ta.h        2006-03-09 19:16:31.000000000 +0000
+@@ -291,8 +291,8 @@
+     // 3 disable phone receive RF circuits only
+     // 4 disable phone both transmit and receive RF circuits
+     // 5...127 implementation-defined
+-    int MeTa::getFunctionalityLevel() throw(GsmException);
+-    void MeTa::setFunctionalityLevel(int level) throw(GsmException);
++    int getFunctionalityLevel() throw(GsmException);
++    void setFunctionalityLevel(int level) throw(GsmException);

+     // return battery charge status (+CBC):
+     // 0 ME is powered by the battery
+@@ -386,13 +386,13 @@
+     void setCallWaitingLockStatus(FacilityClass cl,
+                                   bool lock)throw(GsmException);

+-    void MeTa::setCLIRPresentation(bool enable) throw(GsmException);
++    void setCLIRPresentation(bool enable) throw(GsmException);
+     //(+CLIR)
+     
+     // 0:according to the subscription of the CLIR service
+     // 1:CLIR invocation
+     // 2:CLIR suppression
+-    int MeTa::getCLIRPresentation() throw(GsmException);
++    int getCLIRPresentation() throw(GsmException);

+     friend class Phonebook;
+     friend class SMSStore;
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsm_confighin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsm_config.h.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsm_config.h.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsm_config.h.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,344 @@
</span><ins>+/* gsm_config.h.in.  Generated from configure.in by autoheader.  */
+/* used by libtool*/
+#define PACKAGE 0
+
+/* used by libtool*/
+#define VERSION 0
+
+/* Define if getopt_long() available */
+#undef HAVE_GETOPT_LONG
+
+/* Define if alarm() available */
+#undef HAVE_ALARM
+
+/* Define if netinet/in.h header available */
+#undef HAVE_NETINET_IN_H
+
+/* Define if string.h header available */
+#undef HAVE_STRING_H
+
+/* Define for NLS */
+#undef ENABLE_NLS
+#undef HAVE_CATGETS
+#undef HAVE_GETTEXT
+#undef HAVE_LC_MESSAGES
+#undef HAVE_STPCPY
+
+/* Define LOCALEDIR */
+#define LOCALEDIR &quot;/usr/share/locale&quot;
+
+/* Define if libintl.h header available */
+#undef HAVE_LIBINTL_H
+
+/* Define if vsnprintf() function available */
+#undef HAVE_VSNPRINTF
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for `alloca.c' support on those systems.
+   */
+#undef CRAY_STACKSEG_END
+
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if translation of program messages to the user's native
+   language is requested. */
+#undef ENABLE_NLS
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if you have &lt;alloca.h&gt; and it should be used (not on Ultrix).
+   */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you have the &lt;argz.h&gt; header file. */
+#undef HAVE_ARGZ_H
+
+/* Define to 1 if you have the `asprintf' function. */
+#undef HAVE_ASPRINTF
+
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
+   CoreFoundation framework. */
+#undef HAVE_CFLOCALECOPYCURRENT
+
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
+   the CoreFoundation framework. */
+#undef HAVE_CFPREFERENCESCOPYAPPVALUE
+
+/* Define if the GNU dcgettext() function is already present or preinstalled.
+   */
+#undef HAVE_DCGETTEXT
+
+/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
+   don't. */
+#undef HAVE_DECL_FEOF_UNLOCKED
+
+/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
+   you don't. */
+#undef HAVE_DECL_FGETS_UNLOCKED
+
+/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
+   don't. */
+#undef HAVE_DECL_GETC_UNLOCKED
+
+/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
+   don't. */
+#undef HAVE_DECL__SNPRINTF
+
+/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
+   don't. */
+#undef HAVE_DECL__SNWPRINTF
+
+/* Define to 1 if you have the &lt;dlfcn.h&gt; header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the `fwprintf' function. */
+#undef HAVE_FWPRINTF
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the `getegid' function. */
+#undef HAVE_GETEGID
+
+/* Define to 1 if you have the `geteuid' function. */
+#undef HAVE_GETEUID
+
+/* Define to 1 if you have the `getgid' function. */
+#undef HAVE_GETGID
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+#undef HAVE_GETTEXT
+
+/* Define to 1 if you have the `getuid' function. */
+#undef HAVE_GETUID
+
+/* Define if you have the iconv() function. */
+#undef HAVE_ICONV
+
+/* Define if you have the 'intmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;. */
+#undef HAVE_INTMAX_T
+
+/* Define if &lt;inttypes.h&gt; exists and doesn't clash with &lt;sys/types.h&gt;. */
+#undef HAVE_INTTYPES_H
+
+/* Define if &lt;inttypes.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;, and
+   declares uintmax_t. */
+#undef HAVE_INTTYPES_H_WITH_UINTMAX
+
+/* Define if you have &lt;langinfo.h&gt; and nl_langinfo(CODESET). */
+#undef HAVE_LANGINFO_CODESET
+
+/* Define if your &lt;locale.h&gt; file defines LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
+
+/* Define to 1 if you have the `intl' library (-lintl). */
+#undef HAVE_LIBINTL
+
+/* Define to 1 if you have the &lt;libintl.h&gt; header file. */
+#undef HAVE_LIBINTL_H
+
+/* Define to 1 if you have the &lt;limits.h&gt; header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the &lt;locale.h&gt; header file. */
+#undef HAVE_LOCALE_H
+
+/* Define if you have the 'long double' type. */
+#undef HAVE_LONG_DOUBLE
+
+/* Define if you have the 'long long' type. */
+#undef HAVE_LONG_LONG
+
+/* Define to 1 if you have the &lt;malloc.h&gt; header file. */
+#undef HAVE_MALLOC_H
+
+/* Define to 1 if you have the &lt;memory.h&gt; header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `mempcpy' function. */
+#undef HAVE_MEMPCPY
+
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the `munmap' function. */
+#undef HAVE_MUNMAP
+
+/* Define to 1 if you have the &lt;netinet/in.h&gt; header file. */
+#undef HAVE_NETINET_IN_H
+
+/* Define to 1 if you have the &lt;nl_types.h&gt; header file. */
+#undef HAVE_NL_TYPES_H
+
+/* Define if your printf() function supports format strings with positions. */
+#undef HAVE_POSIX_PRINTF
+
+/* Define to 1 if you have the `putenv' function. */
+#undef HAVE_PUTENV
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
+/* Define to 1 if you have the `snprintf' function. */
+#undef HAVE_SNPRINTF
+
+/* Define to 1 if you have the &lt;stddef.h&gt; header file. */
+#undef HAVE_STDDEF_H
+
+/* Define to 1 if you have the &lt;stdint.h&gt; header file. */
+#undef HAVE_STDINT_H
+
+/* Define if &lt;stdint.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;, and declares
+   uintmax_t. */
+#undef HAVE_STDINT_H_WITH_UINTMAX
+
+/* Define to 1 if you have the &lt;stdlib.h&gt; header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `stpcpy' function. */
+#undef HAVE_STPCPY
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#undef HAVE_STRCASECMP
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the &lt;strings.h&gt; header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the &lt;string.h&gt; header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strtoul' function. */
+#undef HAVE_STRTOUL
+
+/* Define to 1 if you have the &lt;sys/param.h&gt; header file. */
+#undef HAVE_SYS_PARAM_H
+
+/* Define to 1 if you have the &lt;sys/stat.h&gt; header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the &lt;sys/types.h&gt; header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the `tsearch' function. */
+#undef HAVE_TSEARCH
+
+/* Define if you have the 'uintmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;. */
+#undef HAVE_UINTMAX_T
+
+/* Define to 1 if you have the &lt;unistd.h&gt; header file. */
+#undef HAVE_UNISTD_H
+
+/* Define if you have the 'unsigned long long' type. */
+#undef HAVE_UNSIGNED_LONG_LONG
+
+/* Define if you have the 'wchar_t' type. */
+#undef HAVE_WCHAR_T
+
+/* Define to 1 if you have the `wcslen' function. */
+#undef HAVE_WCSLEN
+
+/* Define if you have the 'wint_t' type. */
+#undef HAVE_WINT_T
+
+/* Define to 1 if you have the `__argz_count' function. */
+#undef HAVE___ARGZ_COUNT
+
+/* Define to 1 if you have the `__argz_next' function. */
+#undef HAVE___ARGZ_NEXT
+
+/* Define to 1 if you have the `__argz_stringify' function. */
+#undef HAVE___ARGZ_STRINGIFY
+
+/* Define to 1 if you have the `__fsetlocking' function. */
+#undef HAVE___FSETLOCKING
+
+/* Define as const if the declaration of iconv() needs const. */
+#undef ICONV_CONST
+
+/* Define if integer division by zero raises signal SIGFPE. */
+#undef INTDIV0_RAISES_SIGFPE
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define if &lt;inttypes.h&gt; exists and defines unusable PRI* macros. */
+#undef PRI_MACROS_BROKEN
+
+/* The size of a `unsigned int', as computed by sizeof. */
+#undef SIZEOF_UNSIGNED_INT
+
+/* The size of a `unsigned long int', as computed by sizeof. */
+#undef SIZEOF_UNSIGNED_LONG_INT
+
+/* The size of a `unsigned short int', as computed by sizeof. */
+#undef SIZEOF_UNSIGNED_SHORT_INT
+
+/* Define as the maximum value of type 'size_t', if the system doesn't define
+   it. */
+#undef SIZE_MAX
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at run-time.
+        STACK_DIRECTION &gt; 0 =&gt; grows toward higher addresses
+        STACK_DIRECTION &lt; 0 =&gt; grows toward lower addresses
+        STACK_DIRECTION = 0 =&gt; direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to `long' if &lt;sys/types.h&gt; does not define. */
+#undef off_t
+
+/* Define as the type of the result of subtracting two pointers, if the system
+   doesn't define it. */
+#undef ptrdiff_t
+
+/* Define to empty if the C compiler doesn't support this keyword. */
+#undef signed
+
+/* Define to `unsigned' if &lt;sys/types.h&gt; does not define. */
+#undef size_t
+
+/* Define to unsigned long or unsigned long long if &lt;stdint.h&gt; and
+   &lt;inttypes.h&gt; don't define. */
+#undef uintmax_t
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: GSM library Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.5.1999
+# *************************************************************************
+
+INCLUDES =                -I..
+
+lib_LTLIBRARIES =        libgsmme.la
+
+libgsmme_la_SOURCES =        gsm_phonebook.cc gsm_util.cc gsm_unix_serial.cc \
+                        gsm_me_ta.cc gsm_at.cc gsm_error.cc gsm_parser.cc \
+                        gsm_sms.cc gsm_sms_codec.cc gsm_sms_store.cc \
+                        gsm_event.cc gsm_sorted_phonebook.cc \
+                        gsm_sorted_sms_store.cc gsm_nls.cc \
+                        gsm_sorted_phonebook_base.cc gsm_cb.cc
+
+gsmincludedir =                $(includedir)/gsmlib
+
+gsminclude_HEADERS =        gsm_at.h gsm_parser.h gsm_sms.h gsm_unix_serial.h \
+                        gsm_error.h gsm_phonebook.h gsm_sms_codec.h \
+                        gsm_util.h gsm_me_ta.h gsm_port.h gsm_sms_store.h \
+                        gsm_event.h gsm_sorted_phonebook.h \
+                        gsm_sorted_sms_store.h gsm_map_key.h \
+                        gsm_sorted_phonebook_base.h gsm_cb.h
+
+noinst_HEADERS =        gsm_nls.h gsm_sysdep.h
+
+libgsmme_la_LDFLAGS =        -version-info $(GSM_VERSION)
+
+EXTRA_DIST =                gsm_win32_serial.h gsm_win32_serial.cc
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,461 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: GSM library Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.5.1999
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+INCLUDES = -I..
+
+lib_LTLIBRARIES = libgsmme.la
+
+libgsmme_la_SOURCES = gsm_phonebook.cc gsm_util.cc gsm_unix_serial.cc \
+                        gsm_me_ta.cc gsm_at.cc gsm_error.cc gsm_parser.cc \
+                        gsm_sms.cc gsm_sms_codec.cc gsm_sms_store.cc \
+                        gsm_event.cc gsm_sorted_phonebook.cc \
+                        gsm_sorted_sms_store.cc gsm_nls.cc \
+                        gsm_sorted_phonebook_base.cc gsm_cb.cc
+
+
+gsmincludedir = $(includedir)/gsmlib
+
+gsminclude_HEADERS = gsm_at.h gsm_parser.h gsm_sms.h gsm_unix_serial.h \
+                        gsm_error.h gsm_phonebook.h gsm_sms_codec.h \
+                        gsm_util.h gsm_me_ta.h gsm_port.h gsm_sms_store.h \
+                        gsm_event.h gsm_sorted_phonebook.h \
+                        gsm_sorted_sms_store.h gsm_map_key.h \
+                        gsm_sorted_phonebook_base.h gsm_cb.h
+
+
+noinst_HEADERS = gsm_nls.h gsm_sysdep.h
+
+libgsmme_la_LDFLAGS = -version-info $(GSM_VERSION)
+
+EXTRA_DIST = gsm_win32_serial.h gsm_win32_serial.cc
+subdir = gsmlib
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+libgsmme_la_LIBADD =
+am_libgsmme_la_OBJECTS = gsm_phonebook.lo gsm_util.lo gsm_unix_serial.lo \
+        gsm_me_ta.lo gsm_at.lo gsm_error.lo gsm_parser.lo gsm_sms.lo \
+        gsm_sms_codec.lo gsm_sms_store.lo gsm_event.lo \
+        gsm_sorted_phonebook.lo gsm_sorted_sms_store.lo gsm_nls.lo \
+        gsm_sorted_phonebook_base.lo gsm_cb.lo
+libgsmme_la_OBJECTS = $(am_libgsmme_la_OBJECTS)
+
+DEFS = @DEFS@
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/gsm_at.Plo ./$(DEPDIR)/gsm_cb.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_error.Plo ./$(DEPDIR)/gsm_event.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_me_ta.Plo ./$(DEPDIR)/gsm_nls.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_parser.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_phonebook.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sms.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sms_codec.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sms_store.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sorted_phonebook.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sorted_phonebook_base.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_sorted_sms_store.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_unix_serial.Plo \
+@AMDEP_TRUE@        ./$(DEPDIR)/gsm_util.Plo
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+        $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+        $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CXXFLAGS = @CXXFLAGS@
+DIST_SOURCES = $(libgsmme_la_SOURCES)
+HEADERS = $(gsminclude_HEADERS) $(noinst_HEADERS)
+
+DIST_COMMON = $(gsminclude_HEADERS) $(noinst_HEADERS) Makefile.am \
+        Makefile.in
+SOURCES = $(libgsmme_la_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  gsmlib/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+libLTLIBRARIES_INSTALL = $(INSTALL)
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(libdir)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+          if test -f $$p; then \
+            f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+            echo &quot; $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f&quot;; \
+            $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
+          else :; fi; \
+        done
+
+uninstall-libLTLIBRARIES:
+        @$(NORMAL_UNINSTALL)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+            p=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p&quot;; \
+          $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+        done
+
+clean-libLTLIBRARIES:
+        -test -z &quot;$(lib_LTLIBRARIES)&quot; || rm -f $(lib_LTLIBRARIES)
+        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+          dir=&quot;`echo $$p | sed -e 's|/[^/]*$$||'`&quot;; \
+          test -z &quot;$dir&quot; &amp;&amp; dir=.; \
+          echo &quot;rm -f \&quot;$${dir}/so_locations\&quot;&quot;; \
+          rm -f &quot;$${dir}/so_locations&quot;; \
+        done
+libgsmme.la: $(libgsmme_la_OBJECTS) $(libgsmme_la_DEPENDENCIES) 
+        $(CXXLINK) -rpath $(libdir) $(libgsmme_la_LDFLAGS) $(libgsmme_la_OBJECTS) $(libgsmme_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+        -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+        -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_at.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_cb.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_error.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_event.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_me_ta.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_nls.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_parser.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_phonebook.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sms.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sms_codec.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sms_store.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sorted_phonebook.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sorted_phonebook_base.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_sorted_sms_store.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_unix_serial.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gsm_util.Plo@am__quote@
+
+distclean-depend:
+        -rm -rf ./$(DEPDIR)
+
+.cc.o:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+
+.cc.obj:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `cygpath -w $&lt;`
+
+.cc.lo:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(LTCXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+CXXDEPMODE = @CXXDEPMODE@
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+gsmincludeHEADERS_INSTALL = $(INSTALL_HEADER)
+install-gsmincludeHEADERS: $(gsminclude_HEADERS)
+        @$(NORMAL_INSTALL)
+        $(mkinstalldirs) $(DESTDIR)$(gsmincludedir)
+        @list='$(gsminclude_HEADERS)'; for p in $$list; do \
+          if test -f &quot;$$p&quot;; then d=; else d=&quot;$(srcdir)/&quot;; fi; \
+          f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; $(gsmincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gsmincludedir)/$$f&quot;; \
+          $(gsmincludeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gsmincludedir)/$$f; \
+        done
+
+uninstall-gsmincludeHEADERS:
+        @$(NORMAL_UNINSTALL)
+        @list='$(gsminclude_HEADERS)'; for p in $$list; do \
+          f=&quot;`echo $$p | sed -e 's|^.*/||'`&quot;; \
+          echo &quot; rm -f $(DESTDIR)$(gsmincludedir)/$$f&quot;; \
+          rm -f $(DESTDIR)$(gsmincludedir)/$$f; \
+        done
+
+ETAGS = etags
+ETAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+                $(TAGS_FILES) $(LISP)
+        tags=; \
+        here=`pwd`; \
+        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        test -z &quot;$(ETAGS_ARGS)$$tags$$unique&quot; \
+          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$tags $$unique
+
+GTAGS:
+        here=`$(am__cd) $(top_builddir) &amp;&amp; pwd` \
+          &amp;&amp; cd $(top_srcdir) \
+          &amp;&amp; gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+
+installdirs:
+        $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(gsmincludedir)
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+        mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+        distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-gsmincludeHEADERS
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+        mostlyclean-libtool
+
+uninstall-am: uninstall-gsmincludeHEADERS uninstall-info-am \
+        uninstall-libLTLIBRARIES
+
+.PHONY: GTAGS all all-am check check-am clean clean-generic \
+        clean-libLTLIBRARIES clean-libtool distclean distclean-compile \
+        distclean-depend distclean-generic distclean-libtool \
+        distclean-tags distdir dvi dvi-am info info-am install \
+        install-am install-data install-data-am install-exec \
+        install-exec-am install-gsmincludeHEADERS install-info \
+        install-info-am install-libLTLIBRARIES install-man \
+        install-strip installcheck installcheck-am installdirs \
+        maintainer-clean maintainer-clean-generic mostlyclean \
+        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+        tags uninstall uninstall-am uninstall-gsmincludeHEADERS \
+        uninstall-info-am uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_atcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,428 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_at.cc
+// *
+// * Purpose: Utility classes for AT command sequence handling
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_event.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;ctype.h&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// GsmAt members
+
+bool GsmAt::matchResponse(string answer, string responseToMatch)
+{
+  if (answer.substr(0, responseToMatch.length()) == responseToMatch)
+    return true;
+  else
+    // some TAs omit the ':' at the end of the response
+    if (_meTa.getCapabilities()._omitsColon &amp;&amp;
+        responseToMatch[responseToMatch.length() - 1] == ':' &amp;&amp;
+        answer.substr(0, responseToMatch.length() - 1) == 
+        responseToMatch.substr(0, responseToMatch.length() - 1))
+      return true;
+  return false;
+}
+
+string GsmAt::cutResponse(string answer, string responseToMatch)
+{
+  if (answer.substr(0, responseToMatch.length()) == responseToMatch)
+    return normalize(answer.substr(responseToMatch.length(),
+                                   answer.length() -
+                                   responseToMatch.length()));
+  else
+    // some TAs omit the ':' at the end of the response
+    if (_meTa.getCapabilities()._omitsColon &amp;&amp;
+        responseToMatch[responseToMatch.length() - 1] == ':' &amp;&amp;
+        answer.substr(0, responseToMatch.length() - 1) == 
+        responseToMatch.substr(0, responseToMatch.length() - 1))
+      return normalize(answer.substr(responseToMatch.length() - 1,
+                                     answer.length() -
+                                     responseToMatch.length() + 1));
+  assert(0);
+  return &quot;&quot;;
+}
+
+void GsmAt::throwCmeException(string s) throw(GsmException)
+{
+  if (matchResponse(s, &quot;ERROR&quot;))
+    throw GsmException(_(&quot;unspecified ME/TA error&quot;), ChatError);
+
+  bool meError = matchResponse(s, &quot;+CME ERROR:&quot;);
+  if (meError)
+    s = cutResponse(s, &quot;+CME ERROR:&quot;);
+  else
+    s = cutResponse(s, &quot;+CMS ERROR:&quot;);
+  istrstream is(s.c_str());
+  int error;
+  is &gt;&gt; error;
+  throw GsmException(_(&quot;ME/TA error '&quot;) +
+                     (meError ? getMEErrorText(error) :
+                      getSMSErrorText(error)) +
+                     &quot;' &quot; +
+                     stringPrintf(_(&quot;(code %s)&quot;), s.c_str()),
+                     ChatError, error);
+}
+
+GsmAt::GsmAt(MeTa &amp;meTa) :
+  _meTa(meTa), _port(meTa.getPort()), _eventHandler(NULL)
+{
+}
+
+string GsmAt::chat(string atCommand, string response,
+                   bool ignoreErrors, bool acceptEmptyResponse)
+  throw(GsmException)
+{
+  string dummy;
+  return chat(atCommand, response, dummy, ignoreErrors, false,
+              acceptEmptyResponse);
+}
+
+string GsmAt::chat(string atCommand, string response, string &amp;pdu,
+                   bool ignoreErrors, bool expectPdu,
+                   bool acceptEmptyResponse) throw(GsmException)
+{
+  string s;
+  bool gotOk = false;           // special handling for empty SMS entries
+
+  // send AT command
+  putLine(&quot;AT&quot; + atCommand);
+  // and gobble up CR/LF (and possibly echoed characters if echo can't be
+  // switched off)
+  do
+  {
+    s = normalize(getLine());
+  }
+  while (s.length() == 0 || s == &quot;AT&quot; + atCommand);
+
+  // handle errors
+  if (matchResponse(s, &quot;+CME ERROR:&quot;) || matchResponse(s, &quot;+CMS ERROR:&quot;))
+    if (ignoreErrors)
+      return &quot;&quot;;
+    else
+      throwCmeException(s);
+  if (matchResponse(s, &quot;ERROR&quot;))
+    if (ignoreErrors)
+      return &quot;&quot;;
+    else
+      throw GsmException(_(&quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;), 
+                         ChatError, -1);
+
+  // return if response is &quot;OK&quot; and caller says this is OK
+  if (acceptEmptyResponse &amp;&amp; s == &quot;OK&quot;)
+    return &quot;&quot;;
+
+  // handle PDU if one is expected
+  if (expectPdu)
+  {
+    string ps;
+    do
+    {
+      ps = normalize(getLine());
+    }
+    while (ps.length() == 0 &amp;&amp; ps != &quot;OK&quot;);
+    if (ps == &quot;OK&quot;)
+      gotOk = true;
+    else
+    {
+      pdu = ps;
+      // remove trailing zero added by some devices (e.g. Falcom A2-1)
+      if (pdu.length() &gt; 0 &amp;&amp; pdu[pdu.length() - 1] == 0)
+        pdu.erase(pdu.length() - 1);
+    }
+  }
+
+  // handle expected response
+  if (response.length() == 0)   // no response expected
+  {
+    if (s == &quot;OK&quot;) return &quot;&quot;;
+    // else fall through to error
+  }
+  else
+  {
+    string result;
+    // some TA/TEs don't prefix their response with the response string
+    // as proscribed by the standard: just handle either case
+    if (matchResponse(s, response))
+      result = cutResponse(s, response);
+    else
+      result = s;
+
+    if (gotOk)
+      return result;
+    else
+    {
+      // get the final &quot;OK&quot;
+      do
+      {
+        s = normalize(getLine());
+      }
+      while (s.length() == 0);
+
+      if (s == &quot;OK&quot;) return result;
+      // else fall through to error
+    }
+  }
+  throw GsmException(
+    stringPrintf(_(&quot;unexpected response '%s' when sending 'AT%s'&quot;),
+                 s.c_str(), atCommand.c_str()),
+    ChatError);
+}
+
+vector&lt;string&gt; GsmAt::chatv(string atCommand, string response,
+                            bool ignoreErrors) throw(GsmException)
+{
+  string s;
+  vector&lt;string&gt; result;
+
+  // send AT command
+  putLine(&quot;AT&quot; + atCommand);
+  // and gobble up CR/LF (and possibly echoed characters if echo can't be
+  // switched off)
+  do
+  {
+    s = normalize(getLine());
+  }
+  while (s.length() == 0 || s == &quot;AT&quot; + atCommand);
+
+  // handle errors
+  if (matchResponse(s, &quot;+CME ERROR:&quot;) || matchResponse(s, &quot;+CMS ERROR:&quot;))
+    if (ignoreErrors)
+      return result;
+    else
+      throwCmeException(s);
+  if (matchResponse(s, &quot;ERROR&quot;))
+    if (ignoreErrors)
+      return result;
+    else
+      throw GsmException(_(&quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;), 
+                         ChatError, -1);
+
+  // push all lines that are not empty
+  // cut response prefix if it is there
+  // stop when an OK line is read
+  while (1)
+  {
+    if (s == &quot;OK&quot;)
+      return result;
+    // some TA/TEs don't prefix their response with the response string
+    // as proscribed by the standard: just handle either case
+    if (response.length() != 0 &amp;&amp; matchResponse(s, response))
+      result.push_back(cutResponse(s, response));
+    else
+      result.push_back(s);
+    // get next line
+    do
+    {
+      s = normalize(getLine());
+    }
+    while (s.length() == 0);
+    reportProgress();
+  }
+
+  // never reached
+  assert(0);
+  return result;
+}
+
+string GsmAt::normalize(string s)
+{
+  size_t start = 0, end = s.length();
+  bool changed = true;
+
+  while (start &lt; end &amp;&amp; changed)
+  {
+    changed = false;
+    if (isspace(s[start]))
+    {
+      ++start;
+      changed = true;
+    }
+    else
+      if (isspace(s[end - 1]))
+      {
+        --end;
+        changed = true;
+      }
+  }
+  return s.substr(start, end - start);
+}
+
+string GsmAt::sendPdu(string atCommand, string response, string pdu,
+                      bool acceptEmptyResponse) throw(GsmException)
+{
+  string s;
+  bool errorCondition;
+  bool retry = false;
+  int tries = 5;                // How many error conditions do we accept
+
+  int c;
+  do
+  {
+    errorCondition = false;
+    putLine(&quot;AT&quot; + atCommand);
+    do
+    {
+      retry = false;
+      try
+      {
+        do
+        {
+          // read first of two bytes &quot;&gt; &quot;
+          c = readByte();
+        }
+        // there have been reports that some phones give spurious CRs
+        // LF separates CDSI messages if there are more than one
+        while (c == CR || c == LF);
+      }
+      catch (GsmException &amp;e)
+      {
+        c = '-';
+        errorCondition = true;  // TA does not expect PDU anymore, retry
+      }
+
+      if (c == '+' || c == 'E') // error or unsolicited result code
+      {
+        _port-&gt;putBack(c);
+        s = normalize(getLine());
+        errorCondition = (s != &quot;&quot;);
+      
+        retry = ! errorCondition;
+      }
+    }
+    while (retry);
+  }
+  while (errorCondition &amp;&amp; tries--);
+
+  if (! errorCondition)
+  {
+    
+    if (c != '&gt;' || readByte() != ' ')
+      throw GsmException(_(&quot;unexpected character in PDU handshake&quot;),
+                         ChatError);
+    
+    putLine(pdu + &quot;\032&quot;, false); // write pdu followed by CTRL-Z
+
+    // some phones (Ericcson T68, T39) send spurious zero characters after
+    // accepting the PDU
+    c = readByte();
+    if (c != 0)
+      _port-&gt;putBack(c);
+
+    // loop while empty lines (maybe with a zero, Ericsson T39m)
+    // or an echo of the pdu (with or without CTRL-Z)
+    // is read
+    do
+    {
+      s = normalize(getLine());
+    }
+    while (s.length() == 0 || s == pdu || s == (pdu + &quot;\032&quot;) ||
+           (s.length() == 1 &amp;&amp; s[0] == 0));
+  }
+
+  // handle errors
+  if (matchResponse(s, &quot;+CME ERROR:&quot;) || matchResponse(s, &quot;+CMS ERROR:&quot;))
+    throwCmeException(s);
+  if (matchResponse(s, &quot;ERROR&quot;))
+    throw GsmException(_(&quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;), 
+                       ChatError, -1);
+
+  // return if response is &quot;OK&quot; and caller says this is OK
+  if (acceptEmptyResponse &amp;&amp; s == &quot;OK&quot;)
+    return &quot;&quot;;
+
+  if (matchResponse(s, response))
+  {
+    string result = cutResponse(s, response);
+    // get the final &quot;OK&quot;
+    do
+    {
+      s = normalize(getLine());
+    }
+    while (s.length() == 0);
+
+    if (s == &quot;OK&quot;) return result;
+    // else fall through to error
+  }
+  throw GsmException(
+    stringPrintf(_(&quot;unexpected response '%s' when sending 'AT%s'&quot;),
+                 s.c_str(), atCommand.c_str()),
+    ChatError);
+}
+
+string GsmAt::getLine() throw(GsmException)
+{
+  if (_eventHandler == (GsmEvent*)NULL)
+    return _port-&gt;getLine();
+  else
+  {
+    bool eventOccurred;
+    string result;
+    do
+    {
+      eventOccurred = false;
+      result = _port-&gt;getLine();
+      string s = normalize(result);
+      if (matchResponse(s, &quot;+CMT:&quot;) ||
+          matchResponse(s, &quot;+CBM:&quot;) ||
+          matchResponse(s, &quot;+CDS:&quot;) ||
+          matchResponse(s, &quot;+CMTI:&quot;) ||
+          matchResponse(s, &quot;+CBMI:&quot;) ||
+          matchResponse(s, &quot;+CDSI:&quot;) ||
+          matchResponse(s, &quot;RING&quot;) ||
+          matchResponse(s, &quot;NO CARRIER&quot;) ||
+          // hack: the +CLIP? sequence returns +CLIP: n,m
+          // which is NOT an unsolicited result code
+          (matchResponse(s, &quot;+CLIP:&quot;) &amp;&amp; s.length() &gt; 10))
+      {
+        _eventHandler-&gt;dispatch(s, *this);
+        eventOccurred = true;
+      }
+    }
+    while (eventOccurred);
+    return result;
+  }
+}
+
+void GsmAt::putLine(string line,
+                    bool carriageReturn) throw(GsmException)
+{
+  _port-&gt;putLine(line, carriageReturn);
+  // remove empty echo line
+  if (carriageReturn)
+    getLine();
+}
+
+bool GsmAt::wait(GsmTime timeout) throw(GsmException)
+{
+  return _port-&gt;wait(timeout);
+}
+
+int GsmAt::readByte() throw(GsmException)
+{
+  return _port-&gt;readByte();
+}
+
+GsmEvent *GsmAt::setEventHandler(GsmEvent *newHandler)
+{
+  GsmEvent *result = _eventHandler;
+  _eventHandler = newHandler;
+  return result;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_ath"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_at.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,104 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_at.h
+// *
+// * Purpose: Utility classes for AT command sequence handling
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.5.1999
+// *************************************************************************
+
+#ifndef GSM_AT_H
+#define GSM_AT_H
+
+#include &lt;gsmlib/gsm_port.h&gt;
+#include &lt;string&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // forward declarations
+  
+  class GsmEvent;
+  class MeTa;
+
+  // utiliy class to handle AT sequences
+
+  class GsmAt : public RefBase
+  {
+  protected:
+    MeTa &amp;_meTa;
+    Ref&lt;Port&gt; _port;
+    GsmEvent *_eventHandler;
+    
+    // return true if response matches
+    bool matchResponse(string answer, string responseToMatch);
+
+    // cut response and normalize
+    string cutResponse(string answer, string responseToMatch);
+
+    // parse CME error contained in string and throw MeTaException
+    void throwCmeException(string s) throw(GsmException);
+
+  public:
+    GsmAt(MeTa &amp;meTa);
+
+    // return MeTa object for this AT object
+    MeTa &amp;getMeTa() {return _meTa;}
+
+    // the following sequence functions recognize asynchronous messages
+    // from the TA and return the appropriate event
+
+    // send AT command, wait for response response, returns response line
+    // without response match
+    // if response == &quot;&quot; only an OK is expected
+    // white space at beginning or end are removed
+    // +CME ERROR or ERROR raises exception (if ignoreErrors == true)
+    // additionally, accept empty responses (just an OK)
+    //   if acceptEmptyResponse == true
+    //   in this case an empty string is returned
+    string chat(string atCommand = &quot;&quot;,
+                string response = &quot;&quot;,
+                bool ignoreErrors = false,
+                bool acceptEmptyResponse = false) throw(GsmException);
+
+    // same as chat() above but also get pdu if expectPdu == true
+    string chat(string atCommand,
+                string response,
+                string &amp;pdu,
+                bool ignoreErrors = false,
+                bool expectPdu = true,
+                bool acceptEmptyResponse = false) throw(GsmException);
+
+    // same as above, but expect several response lines
+    vector&lt;string&gt; chatv(string atCommand = &quot;&quot;,
+                         string response = &quot;&quot;,
+                         bool ignoreErrors = false)
+      throw(GsmException);
+
+    // removes whitespace at beginning and end of string
+    string normalize(string s);
+
+    // send pdu (wait for &lt;CR&gt;&lt;LF&gt;&lt;greater_than&gt;&lt;space&gt; and send &lt;CTRL-Z&gt;
+    // at the end
+    // return text after response
+    string sendPdu(string atCommand, string response, string pdu,
+                   bool acceptEmptyResponse = false) throw(GsmException);
+
+    // functions from class Port
+    string getLine() throw(GsmException);
+    void putLine(string line,
+                 bool carriageReturn = true) throw(GsmException);
+    bool wait(GsmTime timeout) throw(GsmException);
+    int readByte() throw(GsmException);
+
+    // set event handler class, return old one
+    GsmEvent *setEventHandler(GsmEvent *newHandler);
+  };
+};
+
+#endif // GSM_AT_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_cbcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,176 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_cb.cc
+// *
+// * Purpose: Cell Broadcast Message Implementation
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.8.2001
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;gsmlib/gsm_cb.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// local constants
+
+static const string dashes =
+&quot;---------------------------------------------------------------------------&quot;;
+
+// CBDataCodingScheme members
+
+CBDataCodingScheme::CBDataCodingScheme(unsigned char dcs) : _dcs(dcs)
+{
+  if ((_dcs &amp; 0xf0) &lt;= 0x30)    // bits 7..4 in the range 0000..0011
+    if ((_dcs &amp; 0x30) == 0)
+      _language = (Language)_dcs;
+  else
+    _language = Unknown;
+}
+
+string CBDataCodingScheme::toString() const
+{
+  string result;
+  if (compressed()) result += _(&quot;compressed   &quot;);
+  switch (getLanguage())
+  {
+  case German:
+    result += _(&quot;German&quot;);
+    break;
+  case English:
+    result += _(&quot;English&quot;);
+    break;
+  case Italian:
+    result += _(&quot;Italian&quot;);
+    break;
+  case French:
+    result += _(&quot;French&quot;);
+    break;
+  case Spanish:
+    result += _(&quot;Spanish&quot;);
+    break;
+  case Dutch:
+    result += _(&quot;Dutch&quot;);
+    break;
+  case Swedish:
+    result += _(&quot;Swedish&quot;);
+    break;
+  case Danish:
+    result += _(&quot;Danish&quot;);
+    break;
+  case Portuguese:
+    result += _(&quot;Portuguese&quot;);
+    break;
+  case Finnish:
+    result += _(&quot;Finnish&quot;);
+    break;
+  case Norwegian:
+    result += _(&quot;Norwegian&quot;);
+    break;
+  case Greek:
+    result += _(&quot;Greek&quot;);
+    break;
+  case Turkish:
+    result += _(&quot;Turkish&quot;);
+    break;
+  }
+  result += &quot;   &quot;;
+  switch (getAlphabet())
+  {
+  case DCS_DEFAULT_ALPHABET:
+    result += _(&quot;default alphabet&quot;);
+    break;
+  case DCS_EIGHT_BIT_ALPHABET:
+    result += _(&quot;8-bit alphabet&quot;);
+      break;
+  case DCS_SIXTEEN_BIT_ALPHABET:
+    result += _(&quot;16-bit alphabet&quot;);
+    break;
+  case DCS_RESERVED_ALPHABET:
+    result += _(&quot;reserved alphabet&quot;);
+    break;
+  }
+  return result;
+}
+
+// CBMessage members
+
+CBMessage::CBMessage(string pdu) throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _messageCode = d.getInteger(6) &lt;&lt; 4;
+  _geographicalScope = (GeographicalScope)d.get2Bits();
+  _updateNumber = d.getInteger(4);
+  _messageCode |= d.getInteger(4);
+  _messageIdentifier = d.getInteger(8) &lt;&lt; 8;
+  _messageIdentifier |= d.getInteger(8);
+  _dataCodingScheme = CBDataCodingScheme(d.getOctet());
+  _totalPageNumber = d.getInteger(4);
+  _currentPageNumber = d.getInteger(4);
+
+  // the values 82 and 93 come from ETSI GSM 03.41, section 9.3
+  d.markSeptet();
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+  {
+    _data = d.getString(93);
+    _data = gsmToLatin1(_data);
+  }
+  else
+  {
+    unsigned char *s = 
+      (unsigned char*)alloca(sizeof(unsigned char) * 82);
+    d.getOctets(s, 82);
+    _data.assign((char*)s, (unsigned int)82);
+  }
+}
+
+string CBMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: CB&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;Geographical scope: &quot;);
+  switch (_geographicalScope)
+  {
+  case CellWide:
+    os &lt;&lt; &quot;Cell wide&quot; &lt;&lt; endl;
+    break;
+  case PLMNWide:
+    os &lt;&lt; &quot;PLMN wide&quot; &lt;&lt; endl;
+    break;
+  case LocationAreaWide:
+    os &lt;&lt; &quot;Location area wide&quot; &lt;&lt; endl;
+    break;
+  case CellWide2:
+    os &lt;&lt; &quot;Cell wide (2)&quot; &lt;&lt; endl;
+    break;
+  }
+  // remove trailing \r characters for output
+  string data = _data;
+  string::iterator i;
+  for (i = data.end(); i &gt; data.begin() &amp;&amp; *(i - 1) == '\r';
+       --i);
+  data.erase(i, data.end());
+
+  os &lt;&lt; _(&quot;Message Code: &quot;) &lt;&lt; _messageCode &lt;&lt; endl
+     &lt;&lt; _(&quot;Update Number: &quot;) &lt;&lt; _updateNumber &lt;&lt; endl
+     &lt;&lt; _(&quot;Message Identifer: &quot;) &lt;&lt; _messageIdentifier &lt;&lt; endl
+     &lt;&lt; _(&quot;Data coding scheme: &quot;) &lt;&lt; _dataCodingScheme.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;Total page number: &quot;) &lt;&lt; _totalPageNumber &lt;&lt; endl
+     &lt;&lt; _(&quot;Current page number: &quot;) &lt;&lt; _currentPageNumber &lt;&lt; endl
+     &lt;&lt; _(&quot;Data: '&quot;) &lt;&lt; data &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_cbh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_cb.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,106 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_cb.h
+// *
+// * Purpose: Cell Broadcast Message Implementation
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.8.2001
+// *************************************************************************
+
+#ifndef GSM_CB_H
+#define GSM_CB_H
+
+#include &lt;gsmlib/gsm_sms_codec.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;string&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // representation of DataCodingScheme
+  // The data coding scheme is described in detail in ETSI GSM 03.38, section 5
+  // This class reuses the DCS_* constants from DataCodingScheme in 
+  // gsm_sms_codec
+
+  class CBDataCodingScheme
+  {
+  public:
+    enum Language {German = 0, English = 1, Italian = 2, French = 3,
+                   Spanish = 4, Dutch = 5, Swedish = 6, Danish = 7,
+                   Portuguese = 8, Finnish = 9, Norwegian = 10, Greek = 11,
+                   Turkish = 12, Unknown = 1000};
+
+  private:
+    unsigned char _dcs;
+    Language _language;
+
+  public:
+    // initialize with data coding scheme octet
+    CBDataCodingScheme(unsigned char dcs);
+    
+    // default constructor
+    CBDataCodingScheme() : _dcs(DCS_DEFAULT_ALPHABET), _language(English) {}
+
+    // return language of CBM
+    Language getLanguage() const {return _language;}
+
+    // return compression level (if language == Unknown)
+    bool compressed() const {return (_dcs &amp; DCS_COMPRESSED) == DCS_COMPRESSED;}
+
+    // return type of alphabet used
+    // (DCS_DEFAULT_ALPHABET, DCS_EIGHT_BIT_ALPHABET, DCS_SIXTEEN_BIT_ALPHABET,
+    // DCS_RESERVED_ALPHABET)
+    unsigned char getAlphabet() const
+      {return _language == Unknown ? _dcs &amp; (3 &lt;&lt; 2) : DCS_DEFAULT_ALPHABET;}
+
+    // create textual representation of CB data coding scheme
+    string toString() const;
+  };
+
+  // representation of Cell Broadcast message (CBM)
+  // The CBM format is described in detail in ETSI GSM 03.41, section 9.3
+  
+  class CBMessage : public RefBase
+  {
+  public:
+    enum GeographicalScope {CellWide, PLMNWide, LocationAreaWide,
+                            CellWide2};
+
+  private:
+    // fields parsed from the CB TPDU
+    GeographicalScope _geographicalScope;
+    int _messageCode;
+    int _updateNumber;
+    int _messageIdentifier;
+    CBDataCodingScheme _dataCodingScheme;
+    int _totalPageNumber;
+    int _currentPageNumber;
+    string _data;
+
+  public:
+    // constructor with given pdu
+    CBMessage(string pdu) throw(GsmException);
+
+    // accessor functions
+    GeographicalScope getGeographicalScope() const {return _geographicalScope;}
+    int getMessageCode() const {return _messageCode;}
+    int getUpdateNumber() const {return _updateNumber;}
+    int getMessageIdentifier() const {return _messageIdentifier;}
+    CBDataCodingScheme getDataCodingScheme() const {return _dataCodingScheme;}
+    int getTotalPageNumber() const {return _totalPageNumber;}
+    int getCurrentPageNumber() const {return _currentPageNumber;}
+    string getData() const {return _data;}
+
+    // create textual representation of CBM
+    string toString() const;
+  };
+
+  // some useful typdefs
+  typedef Ref&lt;CBMessage&gt; CBMessageRef;
+};
+
+#endif // GSM_CB_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_errorcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,424 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_error.cc
+// *
+// * Purpose: Error codes and error handling functions
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 11.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+string gsmlib::getMEErrorText(const int errorCode) throw(GsmException)
+{
+  switch (errorCode)
+  {
+  case ME_PHONE_FAILURE:
+    return _(&quot;phone failure&quot;);
+    break;
+  case ME_NO_CONNECTION_TO_PHONE:
+    return _(&quot;no connection to phone&quot;);
+    break;
+  case ME_PHONE_ADAPTOR_LINK_RESERVED:
+    return _(&quot;phone adaptor link reserved&quot;);
+    break;
+  case ME_OPERATION_NOT_ALLOWED:
+    return _(&quot;operation not allowed&quot;);
+    break;
+  case ME_OPERATION_NOT_SUPPORTED:
+    return _(&quot;operation not supported&quot;);
+    break;
+  case ME_PH_SIM_PIN_REQUIRED:
+    return _(&quot;ph SIM PIN required&quot;);
+    break;
+  case ME_SIM_NOT_INSERTED:
+    return _(&quot;SIM not inserted&quot;);
+    break;
+  case ME_SIM_PIN_REQUIRED:
+    return _(&quot;SIM PIN required&quot;);
+    break;
+  case ME_SIM_PUK_REQUIRED:
+    return _(&quot;SIM PUK required&quot;);
+    break;
+  case ME_SIM_FAILURE:
+    return _(&quot;SIM failure&quot;);
+    break;
+  case ME_SIM_BUSY:
+    return _(&quot;SIM busy&quot;);
+    break;
+  case ME_SIM_WRONG:
+    return _(&quot;SIM wrong&quot;);
+    break;
+  case ME_INCORRECT_PASSWORD:
+    return _(&quot;incorrect password&quot;);
+    break;
+  case ME_SIM_PIN2_REQUIRED:
+    return _(&quot;SIM PIN2 required&quot;);
+    break;
+  case ME_SIM_PUK2_REQUIRED:
+    return _(&quot;SIM PUK2 required&quot;);
+    break;
+  case ME_MEMORY_FULL:
+    return _(&quot;memory full&quot;);
+    break;
+  case ME_INVALID_INDEX:
+    return _(&quot;invalid index&quot;);
+    break;
+  case ME_NOT_FOUND:
+    return _(&quot;not found&quot;);
+    break;
+  case ME_MEMORY_FAILURE:
+    return _(&quot;memory failure&quot;);
+    break;
+  case ME_TEXT_STRING_TOO_LONG:
+    return _(&quot;text string too long&quot;);
+    break;
+  case ME_INVALID_CHARACTERS_IN_TEXT_STRING:
+    return _(&quot;invalid characters in text string&quot;);
+    break;
+  case ME_DIAL_STRING_TOO_LONG:
+    return _(&quot;dial string too long&quot;);
+    break;
+  case ME_INVALID_CHARACTERS_IN_DIAL_STRING:
+    return _(&quot;invalid characters in dial string&quot;);
+    break;
+  case ME_NO_NETWORK_SERVICE:
+    return _(&quot;no network service&quot;);
+    break;
+  case ME_NETWORK_TIMEOUT:
+    return _(&quot;network timeout&quot;);
+    break;
+  case ME_UNKNOWN:
+    return _(&quot;unknown&quot;);
+    break;
+  default:
+    throw GsmException(stringPrintf(_(&quot;invalid ME error %d&quot;), errorCode),
+                       OtherError);
+  }
+}
+
+string gsmlib::getSMSErrorText(const int errorCode) throw(GsmException)
+{
+  switch (errorCode)
+  {
+  case SMS_UNASSIGNED_OR_UNALLOCATED_NUMBER:
+    return _(&quot;Unassigned (unallocated) number&quot;);
+    break;
+  case SMS_OPERATOR_DETERMINED_BARRING:
+    return _(&quot;Operator determined barring&quot;);
+    break;
+  case SMS_CALL_BARRED:
+    return _(&quot;Call barred&quot;);
+    break;
+  case SMS_NETWORK_FAILURE:
+    return _(&quot;Network failure&quot;);
+    break;
+  case SMS_SHORT_MESSAGE_TRANSFER_REJECTED:
+    return _(&quot;Short message transfer rejected&quot;);
+    break;
+  case SMS_CONGESTION:
+  case SMS_CONGESTION2:
+    return _(&quot;Congestion&quot;);
+    break;
+  case SMS_DESTINATION_OUT_OF_SERVICE:
+    return _(&quot;Destination out of service&quot;);
+    break;
+  case SMS_UNIDENTIFIED_SUBSCRIBER:
+    return _(&quot;Unidentified subscriber&quot;);
+    break;
+  case SMS_FACILITY_REJECTED:
+    return _(&quot;Facility rejected&quot;);
+    break;
+  case SMS_UNKNOWN_SUBSCRIBER:
+    return _(&quot;Unknown subscriber&quot;);
+    break;
+  case SMS_NETWORK_OUT_OF_ORDER:
+    return _(&quot;Network out of order&quot;);
+    break;
+  case SMS_TEMPORARY_FAILURE:
+    return _(&quot;Temporary failure&quot;);
+    break;
+  case SMS_RESOURCES_UNAVAILABLE_UNSPECIFIED:
+    return _(&quot;Resources unavailable, unspecified&quot;);
+    break;
+  case SMS_REQUESTED_FACILITY_NOT_SUBSCRIBED:
+    return _(&quot;Requested facility not subscribed&quot;);
+    break;
+  case SMS_REQUESTED_FACILITY_NOT_IMPLEMENTED:
+    return _(&quot;Requested facility not implemented&quot;);
+    break;
+  case SMS_INVALID_TRANSACTION_IDENTIFIER:
+    return _(&quot;Invalid Transaction Identifier&quot;);
+    break;
+  case SMS_SEMANTICALLY_INCORRECT_MESSAGE:
+    return _(&quot;Semantically incorrect message&quot;);
+    break;
+  case SMS_INVALID_MANDATORY_INFORMATION:
+    return _(&quot;Invalid mandatory information&quot;);
+    break;
+  case SMS_MESSAGE_TYPE_NONEXISTENT_OR_NOT_IMPLEMENTED:
+    return _(&quot;Message type non-existent or not implemented&quot;);
+    break;
+  case SMS_MESSAGE_NOT_COMPATIBLE_WITH_SHORT_MESSAGE_PROTOCOL_STATE:
+    return _(&quot;Message not compatible with short message protocol state&quot;);
+    break;
+  case SMS_INFORMATION_ELEMENT_NONEXISTENT_OR_NOT_IMPLEMENTED:
+    return _(&quot;Information element non-existent or not implemented&quot;);
+    break;
+  case SMS_UNSPECIFIED_PROTOCOL_ERROR:
+    return _(&quot;Protocol error, unspecified&quot;);
+    break;
+  case SMS_UNSPECIFIED_INTERWORKING_ERROR:
+    return _(&quot;Interworking, unspecified&quot;);
+    break;
+  case SMS_TELEMATIC_INTERWORKING_NOT_SUPPORTED:
+    return _(&quot;Telematic interworking not supported&quot;);
+    break;
+  case SMS_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED:
+    return _(&quot;Short message Type 0 not supported&quot;);
+    break;
+  case SMS_CANNOT_REPLACE_SHORT_MESSAGE:
+    return _(&quot;Cannot replace short message&quot;);
+    break;
+  case SMS_UNSPECIFIED_TP_PID_ERROR:
+    return _(&quot;Unspecified TP-PID error&quot;);
+    break;
+  case SMS_DATA_CODING_SCHEME_NOT_SUPPORTED:
+    return _(&quot;Data coding scheme (alphabet) not supported&quot;);
+    break;
+  case SMS_MESSAGE_CLASS_NOT_SUPPORTED:
+    return _(&quot;Message class not supported&quot;);
+    break;
+  case SMS_UNSPECIFIEC_TP_DCS_ERROR:
+    return _(&quot;Unspecifiec TP-DCS error&quot;);
+    break;
+  case SMS_COMMAND_CANNOT_BE_ACTIONED:
+    return _(&quot;Command cannot be actioned&quot;);
+    break;
+  case SMS_COMMAND_UNSUPPORTED:
+    return _(&quot;Command unsupported&quot;);
+    break;
+  case SMS_UNSPECIFIED_TP_COMMAND_ERROR:
+    return _(&quot;Unspecified TP-Command error&quot;);
+    break;
+  case SMS_TPDU_NOT_SUPPORTED:
+    return _(&quot;TPDU not supported&quot;);
+    break;
+  case SMS_SC_BUSY:
+    return _(&quot;SC busy&quot;);
+    break;
+  case SMS_NO_SC_SUBSCRIPTION:
+    return _(&quot;No SC subscription&quot;);
+    break;
+  case SMS_SC_SYSTEM_FAILURE:
+    return _(&quot;SC system failure&quot;);
+    break;
+  case SMS_INVALID_SME_ADDRESS:
+    return _(&quot;Invalid SME address&quot;);
+    break;
+  case SMS_DESTINATION_SME_BARRED:
+    return _(&quot;Destination SME barred&quot;);
+    break;
+  case SMS_SM_REJECTED_DUPLICATED_SM:
+    return _(&quot;SM Rejected-Duplicated SM&quot;);
+    break;
+  case SMS_SIM_SMS_STORAGE_FULL:
+    return _(&quot;SIM SMS storage full&quot;);
+    break;
+  case SMS_NO_SMS_STORAGE_CAPABILITY_IN_SIM:
+    return _(&quot;No SMS storage capability in SIM&quot;);
+    break;
+  case SMS_ERROR_IN_MS:
+    return _(&quot;Error in MS&quot;);
+    break;
+  case SMS_MEMORY_CAPACITY_EXCEED:
+    return _(&quot;Memory Capacity Exceed&quot;);
+    break;
+  case SMS_UNSPECIFIED_ERROR_CAUSE:
+    return _(&quot;Unspecified error cause&quot;);
+    break;
+  case SMS_ME_FAILURE:
+    return _(&quot;ME failure&quot;);
+    break;
+  case SMS_SMS_SERVICE_OF_ME_RESERVED:
+    return _(&quot;SMS service of ME reserved&quot;);
+    break;
+  case SMS_OPERATION_NOT_ALLOWED:
+    return _(&quot;operation not allowed&quot;);
+    break;
+  case SMS_OPERATION_NOT_SUPPORTED:
+    return _(&quot;operation not supported&quot;);
+    break;
+  case SMS_INVALID_PDU_MODE_PARAMETER:
+    return _(&quot;invalid PDU mode parameter&quot;);
+    break;
+  case SMS_INVALID_TEXT_MODE_PARAMETER:
+    return _(&quot;invalid text mode parameter&quot;);
+    break;
+  case SMS_SIM_NOT_INSERTED:
+    return _(&quot;SIM not inserted&quot;);
+    break;
+  case SMS_SIM_PIN_REQUIRED:
+    return _(&quot;SIM PIN required&quot;);
+    break;
+  case SMS_PH_SIM_PIN_REQUIRED:
+    return _(&quot;PH-SIM PIN required&quot;);
+    break;
+  case SMS_SIM_FAILURE:
+    return _(&quot;SIM failure&quot;);
+    break;
+  case SMS_SIM_BUSY:
+    return _(&quot;SIM busy&quot;);
+    break;
+  case SMS_SIM_WRONG:
+    return _(&quot;SIM wrong&quot;);
+    break;
+  case SMS_SIM_PUK_REQUIRED:
+    return _(&quot;SIM PUK required&quot;);
+    break;
+  case SMS_SIM_PIN2_REQUIRED:
+    return _(&quot;SIM PIN2 required&quot;);
+    break;
+  case SMS_SIM_PUK2_REQUIRED:
+    return _(&quot;SIM PUK2 required&quot;);
+    break;
+  case SMS_MEMORY_FAILURE:
+    return _(&quot;memory failure&quot;);
+    break;
+  case SMS_INVALID_MEMORY_INDEX:
+    return _(&quot;invalid memory index&quot;);
+    break;
+  case SMS_MEMORY_FULL:
+    return _(&quot;memory full&quot;);
+    break;
+  case SMS_SMSC_ADDRESS_UNKNOWN:
+    return _(&quot;SMSC address unknown&quot;);
+    break;
+  case SMS_NO_NETWORK_SERVICE:
+    return _(&quot;no network service&quot;);
+    break;
+  case SMS_NETWORK_TIMEOUT:
+    return _(&quot;network timeout&quot;);
+    break;
+  case SMS_NO_CNMA_ACKNOWLEDGEMENT_EXPECTED:
+    return _(&quot;no +CNMA acknowledgement expected&quot;);
+    break;
+  case SMS_UNKNOWN_ERROR:
+    return _(&quot;unknown error&quot;);
+    break;
+  default:
+    throw GsmException(stringPrintf(_(&quot;invalid SMS error %d&quot;), errorCode),
+                       OtherError);
+  }
+}
+
+string gsmlib::getSMSStatusString(unsigned char status)
+{
+  string result;
+  if (status &lt; SMS_STATUS_TEMPORARY_BIT)
+  {
+    switch (status)
+    {
+    case SMS_STATUS_RECEIVED:
+      result = _(&quot;Short message received by the SME&quot;);
+      break;
+    case SMS_STATUS_FORWARDED:
+      result = _(&quot;Short message forwarded by the SC to the SME but the SC &quot;
+                 &quot;is unable to confirm delivery&quot;);
+      break;
+    case SMS_STATUS_SM_REPLACES:
+      result = _(&quot;Short message replaced by the SC&quot;);
+      break;
+    default:
+      result = _(&quot;reserved&quot;);
+      break;
+    }
+    return result;
+  }
+  else if (status &amp; SMS_STATUS_TEMPORARY_BIT)
+  {
+    switch (status &amp; ~(SMS_STATUS_TEMPORARY_BIT | SMS_STATUS_PERMANENT_BIT))
+    {
+    case SMS_STATUS_CONGESTION:
+      result = _(&quot;Congestion&quot;);
+      break;
+    case SMS_STATUS_SME_BUSY:
+      result = _(&quot;SME busy&quot;);
+      break;
+    case SMS_STATUS_NO_RESPONSE_FROM_SME:
+      result = _(&quot;No response from SME&quot;);
+      break;
+    case SMS_STATUS_SERVICE_REJECTED:
+      result = _(&quot;Service rejected&quot;);
+      break;
+    case SMS_STATUS_QUALITY_OF_SERVICE_UNAVAILABLE:
+      result = _(&quot;Quality of service not available&quot;);
+      break;
+    case SMS_STATUS_ERROR_IN_SME:
+      result = _(&quot;Error in SME&quot;);
+      break;
+    default:
+      result = _(&quot;reserved&quot;);
+      break;
+    }
+    if (status &amp; SMS_STATUS_PERMANENT_BIT)
+      return result + _(&quot; (Temporary error, SC is not making any &quot;
+                        &quot;more transfer attempts)&quot;);
+    else
+      return result + _(&quot; (Temporary error, SC still trying to &quot;
+                        &quot;transfer SM)&quot;);
+  }
+  else
+  {
+    switch (status &amp; ~SMS_STATUS_PERMANENT_BIT)
+    {
+    case SMS_STATUS_REMOTE_PROCECURE_ERROR:
+      result = _(&quot;Remote Procedure Error&quot;);
+      break;
+    case SMS_STATUS_INCOMPATIBLE_DESTINATION:
+      result = _(&quot;Incompatible destination&quot;);
+      break;
+    case SMS_STATUS_CONNECTION_REJECTED_BY_SME:
+      result = _(&quot;Connection rejected by SME&quot;);
+      break;
+    case SMS_STATUS_NOT_OBTAINABLE:
+      result = _(&quot;Not obtainable&quot;);
+      break;
+    case SMS_STATUS_QUALITY_OF_SERVICE_UNAVAILABLE:
+      result = _(&quot;Quality of service not available&quot;);
+      break;
+    case SMS_STATUS_NO_INTERWORKING_AVAILABLE:
+      result = _(&quot;No interworking available&quot;);
+      break;
+    case SMS_STATUS_SM_VALIDITY_PERDIOD_EXPIRED:
+      result = _(&quot;SM validity period expired&quot;);
+      break;
+    case SMS_STATUS_SM_DELETED_BY_ORIGINATING_SME:
+      result = _(&quot;SM deleted by originating SME&quot;);
+      break;
+    case SMS_STATUS_SM_DELETED_BY_ADMINISTRATION:
+      result = _(&quot;SM deleted by SC administration&quot;);
+      break;
+    case SMS_STATUS_SM_DOES_NOT_EXIST:
+      result = _(&quot;SM does not exit&quot;);
+      break;
+    default:
+      result = _(&quot;reserved&quot;);
+      break;
+    }
+    return result + _(&quot; (Permanent Error, SC is not making any &quot;
+                      &quot;more transfer attempts)&quot;);
+  }
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_errorh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_error.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,209 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_error.h
+// *
+// * Purpose: Error codes and error handling functions
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.5.1999
+// *************************************************************************
+
+#ifndef GSM_ERROR_H
+#define GSM_ERROR_H
+
+#include &lt;string&gt;
+#include &lt;stdexcept&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // different classes of GSM errors
+  enum GsmErrorClass{OSError,   // error caused by OS call (eg. file handling)
+                     ParserError, // error when parsing AT response
+                     ChatError, // error in chat sequence (ME/TA/SMS error)
+                     ParameterError, // gsmlib function called with bad params
+                     NotImplementedError, // feature not implemented
+                     MeTaCapabilityError, // non-existent capability in ME
+                     SMSFormatError, // SMS format error
+                     InterruptException, // gsmlib was interrupted()
+                     OtherError}; // all other errors
+
+  // all gsmlib exceptions
+
+  class GsmException : public runtime_error
+  {
+  private:
+    GsmErrorClass _errorClass;
+    int _errorCode;
+
+  public:
+    GsmException(string errorText, GsmErrorClass errorClass) :
+      runtime_error(errorText), _errorClass(errorClass), _errorCode(-1) {}
+
+    GsmException(string errorText, GsmErrorClass errorClass, int errorCode) :
+      runtime_error(errorText), _errorClass(errorClass),
+      _errorCode(errorCode) {}
+
+    int getErrorCode() const {return _errorCode;}
+    
+    GsmErrorClass getErrorClass() const {return _errorClass;}
+  };
+
+  // error codes returned by TA/ME (+CMEE)
+
+  const int ME_PHONE_FAILURE = 0;
+  const int ME_NO_CONNECTION_TO_PHONE = 1;
+  const int ME_PHONE_ADAPTOR_LINK_RESERVED = 2;
+  const int ME_OPERATION_NOT_ALLOWED = 3;
+  const int ME_OPERATION_NOT_SUPPORTED = 4;
+  const int ME_PH_SIM_PIN_REQUIRED = 5;
+  const int ME_SIM_NOT_INSERTED = 10;
+  const int ME_SIM_PIN_REQUIRED = 11;
+  const int ME_SIM_PUK_REQUIRED = 12;
+  const int ME_SIM_FAILURE = 13;
+  const int ME_SIM_BUSY = 14;
+  const int ME_SIM_WRONG = 15;
+  const int ME_INCORRECT_PASSWORD = 16;
+  const int ME_SIM_PIN2_REQUIRED = 17;
+  const int ME_SIM_PUK2_REQUIRED = 18;
+  const int ME_MEMORY_FULL = 20;
+  const int ME_INVALID_INDEX = 21;
+  const int ME_NOT_FOUND = 22;
+  const int ME_MEMORY_FAILURE = 23;
+  const int ME_TEXT_STRING_TOO_LONG = 24;
+  const int ME_INVALID_CHARACTERS_IN_TEXT_STRING = 25;
+  const int ME_DIAL_STRING_TOO_LONG = 26;
+  const int ME_INVALID_CHARACTERS_IN_DIAL_STRING = 27;
+  const int ME_NO_NETWORK_SERVICE = 30;
+  const int ME_NETWORK_TIMEOUT = 31;
+  const int ME_UNKNOWN = 100;
+
+  // return descriptive text for the given error code
+  // the text is already translated
+  extern string getMEErrorText(const int errorCode) throw(GsmException);
+
+  // SMS error codes
+
+  // error codes from ETSI GSM 04.11, Annex E
+  const int SMS_UNASSIGNED_OR_UNALLOCATED_NUMBER = 1;
+  const int SMS_OPERATOR_DETERMINED_BARRING = 8;
+  const int SMS_CALL_BARRED = 10;
+  const int SMS_NETWORK_FAILURE = 17;
+  const int SMS_SHORT_MESSAGE_TRANSFER_REJECTED = 21;
+  const int SMS_CONGESTION = 22;
+  const int SMS_DESTINATION_OUT_OF_SERVICE = 27;
+  const int SMS_UNIDENTIFIED_SUBSCRIBER = 28;
+  const int SMS_FACILITY_REJECTED = 29;
+  const int SMS_UNKNOWN_SUBSCRIBER = 30;
+  const int SMS_NETWORK_OUT_OF_ORDER = 38;
+  const int SMS_TEMPORARY_FAILURE = 41;
+  const int SMS_CONGESTION2 = 42;
+  const int SMS_RESOURCES_UNAVAILABLE_UNSPECIFIED = 47;
+  const int SMS_REQUESTED_FACILITY_NOT_SUBSCRIBED = 50;
+  const int SMS_REQUESTED_FACILITY_NOT_IMPLEMENTED = 69;
+  const int SMS_INVALID_TRANSACTION_IDENTIFIER = 81;
+  const int SMS_SEMANTICALLY_INCORRECT_MESSAGE = 95;
+  const int SMS_INVALID_MANDATORY_INFORMATION = 96;
+  const int SMS_MESSAGE_TYPE_NONEXISTENT_OR_NOT_IMPLEMENTED = 97;
+  const int SMS_MESSAGE_NOT_COMPATIBLE_WITH_SHORT_MESSAGE_PROTOCOL_STATE = 98;
+  const int SMS_INFORMATION_ELEMENT_NONEXISTENT_OR_NOT_IMPLEMENTED = 99;
+  const int SMS_UNSPECIFIED_PROTOCOL_ERROR = 111;
+  const int SMS_UNSPECIFIED_INTERWORKING_ERROR = 127;
+
+  // error codes from ETSI GSM 03.40, section 9.2.3.22
+  const int SMS_TELEMATIC_INTERWORKING_NOT_SUPPORTED = 0x80;
+  const int SMS_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED = 0x81;
+  const int SMS_CANNOT_REPLACE_SHORT_MESSAGE = 0x82;
+  const int SMS_UNSPECIFIED_TP_PID_ERROR = 0x8f;
+  const int SMS_DATA_CODING_SCHEME_NOT_SUPPORTED = 0x90;
+  const int SMS_MESSAGE_CLASS_NOT_SUPPORTED = 0x91;
+  const int SMS_UNSPECIFIEC_TP_DCS_ERROR = 0x9f;
+  const int SMS_COMMAND_CANNOT_BE_ACTIONED = 0xa0;
+  const int SMS_COMMAND_UNSUPPORTED = 0xa1;
+  const int SMS_UNSPECIFIED_TP_COMMAND_ERROR = 0xaf;
+  const int SMS_TPDU_NOT_SUPPORTED = 0xb0;
+  const int SMS_SC_BUSY = 0xc0;
+  const int SMS_NO_SC_SUBSCRIPTION = 0xc1;
+  const int SMS_SC_SYSTEM_FAILURE = 0xc2;
+  const int SMS_INVALID_SME_ADDRESS = 0xc3;
+  const int SMS_DESTINATION_SME_BARRED = 0xc4;
+  const int SMS_SM_REJECTED_DUPLICATED_SM = 0xc5;
+  const int SMS_SIM_SMS_STORAGE_FULL = 0xd0;
+  const int SMS_NO_SMS_STORAGE_CAPABILITY_IN_SIM = 0xd1;
+  const int SMS_ERROR_IN_MS = 0xd2;
+  const int SMS_MEMORY_CAPACITY_EXCEED = 0xd3;
+  const int SMS_UNSPECIFIED_ERROR_CAUSE = 0xff;
+
+  // error codes from ETSI GSM 07.05, section 3.2.5
+  const int SMS_ME_FAILURE = 300;
+  const int SMS_SMS_SERVICE_OF_ME_RESERVED = 301;
+  const int SMS_OPERATION_NOT_ALLOWED = 302;
+  const int SMS_OPERATION_NOT_SUPPORTED = 303;
+  const int SMS_INVALID_PDU_MODE_PARAMETER = 304;
+  const int SMS_INVALID_TEXT_MODE_PARAMETER = 305;
+  const int SMS_SIM_NOT_INSERTED = 310;
+  const int SMS_SIM_PIN_REQUIRED = 311;
+  const int SMS_PH_SIM_PIN_REQUIRED = 312;
+  const int SMS_SIM_FAILURE = 313;
+  const int SMS_SIM_BUSY = 314;
+  const int SMS_SIM_WRONG = 315;
+  const int SMS_SIM_PUK_REQUIRED = 316;
+  const int SMS_SIM_PIN2_REQUIRED = 317;
+  const int SMS_SIM_PUK2_REQUIRED = 318;
+  const int SMS_MEMORY_FAILURE = 320;
+  const int SMS_INVALID_MEMORY_INDEX = 321;
+  const int SMS_MEMORY_FULL = 322;
+  const int SMS_SMSC_ADDRESS_UNKNOWN = 330;
+  const int SMS_NO_NETWORK_SERVICE = 331;
+  const int SMS_NETWORK_TIMEOUT = 332;
+  const int SMS_NO_CNMA_ACKNOWLEDGEMENT_EXPECTED = 340;
+  const int SMS_UNKNOWN_ERROR = 500;
+
+  // return descriptive text for the given error code
+  // the text is already translated
+  extern string getSMSErrorText(const int errorCode) throw(GsmException);
+
+  // SMS status handling
+  // success codes
+  const int SMS_STATUS_RECEIVED = 0;
+  const int SMS_STATUS_FORWARDED = 1;
+  const int SMS_STATUS_SM_REPLACES = 2;
+
+  // if this bit is set, the error is only temporary and
+  // the SC is still trying to transfer the SM
+  const int SMS_STATUS_TEMPORARY_BIT = 32;
+
+  // if this bit is set, the error is only temporary and
+  // the SC is still trying to transfer the SM
+  const int SMS_STATUS_PERMANENT_BIT = 64;
+  // both bits may be set at once
+
+  // temporary errors (both bits may be set)
+  const int SMS_STATUS_CONGESTION = 0;
+  const int SMS_STATUS_SME_BUSY = 1;
+  const int SMS_STATUS_NO_RESPONSE_FROM_SME = 2;
+  const int SMS_STATUS_SERVICE_REJECTED = 3;
+  const int SMS_STATUS_QUALITY_OF_SERVICE_UNAVAILABLE = 4;
+  const int SMS_STATUS_ERROR_IN_SME = 5;
+
+  // permanent errors (SMS_STATUS_PERMANENT_BIT is set)
+  const int SMS_STATUS_REMOTE_PROCECURE_ERROR = 0;
+  const int SMS_STATUS_INCOMPATIBLE_DESTINATION = 1;
+  const int SMS_STATUS_CONNECTION_REJECTED_BY_SME = 2;
+  const int SMS_STATUS_NOT_OBTAINABLE = 3;
+  // const int SMS_STATUS_QUALITY_OF_SERVICE_UNAVAILABLE = 4;
+  const int SMS_STATUS_NO_INTERWORKING_AVAILABLE = 5;
+  const int SMS_STATUS_SM_VALIDITY_PERDIOD_EXPIRED = 6;
+  const int SMS_STATUS_SM_DELETED_BY_ORIGINATING_SME = 7;
+  const int SMS_STATUS_SM_DELETED_BY_ADMINISTRATION = 8;
+  const int SMS_STATUS_SM_DOES_NOT_EXIST = 9;
+
+  // return text for SMS status code
+  // the text is already translated
+  string getSMSStatusString(unsigned char status);
+};
+
+#endif // GSM_ERROR_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_eventcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,174 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_event.cc
+// *
+// * Purpose: Event handler interface
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 7.6.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_event.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// GsmEvent members
+
+void GsmEvent::dispatch(string s, GsmAt &amp;at) throw(GsmException)
+{
+  SMSMessageType messageType;
+  bool indication = false;
+  if (s.substr(0, 5) == &quot;+CMT:&quot;)
+    messageType = NormalSMS;
+  else if (s.substr(0, 5) == &quot;+CBM:&quot;)
+    messageType = CellBroadcastSMS;
+  else if (s.substr(0, 5) == &quot;+CDS:&quot;)
+  {
+    // workaround for phones that report CDS when they actually mean CDSI
+    indication = at.getMeTa().getCapabilities()._CDSmeansCDSI;
+    messageType = StatusReportSMS;
+  }
+  else if (s.substr(0, 6) == &quot;+CMTI:&quot;)
+  {
+    indication = true;
+    messageType = NormalSMS;
+  }
+  else if (s.substr(0, 6) == &quot;+CBMI:&quot;)
+  {
+    indication = true;
+    messageType = CellBroadcastSMS;
+  }
+  else if (s.substr(0, 6) == &quot;+CDSI:&quot;)
+  {
+    indication = true;
+    messageType = StatusReportSMS;
+  }
+  else if (s.substr(0, 4) == &quot;RING&quot;)
+  {
+    ringIndication();
+    return;
+  }
+  // handling  NO CARRIER
+  else if (s.substr(0, 10) == &quot;NO CARRIER&quot;)
+  {
+    noAnswer();
+    return;
+  }
+  
+  else if (s.substr(0, 6) == &quot;+CLIP:&quot;)
+  {
+    //    &lt;number&gt;,&lt;type&gt;[,&lt;subaddr&gt;,&lt;satype&gt;[,&lt;alpha&gt;]]
+    s = s.substr(6);
+    Parser p(s);
+    string num = p.parseString();
+    if (p.parseComma(true))
+    {
+      unsigned int numberFormat;
+      if ((numberFormat = p.parseInt()) == InternationalNumberFormat)
+        num = &quot;+&quot; + num;
+      else if (numberFormat != UnknownNumberFormat)
+        throw GsmException(stringPrintf(_(&quot;unexpected number format %d&quot;),
+                                        numberFormat), OtherError);
+    }
+    string subAddr;
+    string alpha;
+    if (p.parseComma(true))
+    {
+      subAddr = p.parseString(true);
+      p.parseComma();
+      p.parseInt(true);         // FIXME subaddr type ignored
+
+      if (p.parseComma(true))
+        alpha = p.parseString(true);
+    }
+    
+    // call the event handler
+    callerLineID(num, subAddr, alpha);
+    return;
+  }
+  else
+    throw GsmException(stringPrintf(_(&quot;unexpected unsolicited event '%s'&quot;),
+                                    s.c_str()), OtherError);
+
+  if (indication)
+  {
+    // handle SMS storage indication
+    s = s.substr(6);
+    Parser p(s);
+    string storeName = p.parseString();
+    p.parseComma();
+    unsigned int index = p.parseInt();
+    SMSReceptionIndication(storeName, index - 1, messageType);
+  }
+  else
+    if (messageType == CellBroadcastSMS)
+    {
+      // handle CB message
+      string pdu = at.getLine();
+
+      CBMessageRef cb = new CBMessage(pdu);
+
+      // call the event handler
+      CBReception(cb);
+    }
+    else
+    {
+      // handle SMS
+      string pdu = at.getLine();
+      
+      // add missing service centre address if required by ME
+      if (! at.getMeTa().getCapabilities()._hasSMSSCAprefix)
+      pdu = &quot;00&quot; + pdu;
+      
+      SMSMessageRef sms = SMSMessage::decode(pdu);
+      
+      // send acknowledgement if necessary
+      if (at.getMeTa().getCapabilities()._sendAck)
+        at.chat(&quot;+CNMA&quot;);
+      
+      // call the event handler
+      SMSReception(sms, messageType);
+    }
+}
+
+void GsmEvent::callerLineID(string number, string subAddr, string alpha)
+{
+  // ignore event
+}
+
+void GsmEvent::SMSReception(SMSMessageRef newMessage,
+                            SMSMessageType messageType)
+{
+  // ignore event
+}
+
+void GsmEvent::CBReception(CBMessageRef newMessage)
+{
+  // ignore event
+}
+
+void GsmEvent::SMSReceptionIndication(string storeName, unsigned int index,
+                                      SMSMessageType messageType)
+{
+  // ignore event
+}
+
+void GsmEvent::ringIndication()
+{
+  // ignore event
+}
+
+void GsmEvent::noAnswer()
+{
+  // ignore event
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_eventh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_event.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_event.h
+// *
+// * Purpose: Event handler interface
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 7.6.1999
+// *************************************************************************
+
+#ifndef GSM_EVENT_H
+#define GSM_EVENT_H
+
+#include &lt;gsmlib/gsm_sms.h&gt;
+#include &lt;gsmlib/gsm_cb.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // forward declarations
+
+  class GsmAt;
+
+  // event handler interface
+
+  class GsmEvent
+  {
+  private:
+    // dispatch CMT/CBR/CDS/CLIP etc.
+    void dispatch(string s, GsmAt &amp;at) throw(GsmException);
+
+  public:
+    // for SMSReception, type of SMS
+    enum SMSMessageType {NormalSMS, CellBroadcastSMS, StatusReportSMS};
+
+    // caller line identification presentation
+    // only called if setCLIPEvent(true) is set
+    virtual void callerLineID(string number, string subAddr, string alpha);
+
+    // called if the string NO CARRIER is read
+    virtual void noAnswer();
+
+    // SMS reception
+    // only called if setSMSReceptionEvent(...true...) is set
+    virtual void SMSReception(SMSMessageRef newMessage,
+                              SMSMessageType messageType);
+
+    // CB reception
+    // only called if setSMSReceptionEvent(...true...) is set
+    // storage of CBM in ME is not supported by the standard
+    virtual void CBReception(CBMessageRef newMessage);
+
+    // SMS reception indication (called when SMS is not delivered to TE
+    // but stored in ME memory)
+    virtual void SMSReceptionIndication(string storeName, unsigned int index,
+                                        SMSMessageType messageType);
+
+    // RING indication
+    virtual void ringIndication();
+
+    friend class gsmlib::GsmAt;
+  };
+};
+
+#endif // GSM_EVENT_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_map_keyh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_map_key.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_map_key.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_map_key.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,128 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_map_key.h
+// *
+// * Purpose: Common MapKey implementation for the multimaps in
+// *          gsm_sorted_sms_store and gsm_sorted_phonebook
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 5.11.1999
+// *************************************************************************
+
+#ifndef GSM_MAP_KEY_H
+#define GSM_MAP_KEY_H
+
+#include &lt;gsmlib/gsm_sms_codec.h&gt;
+
+namespace gsmlib
+{
+  // sort order for MapKeys
+
+  enum SortOrder {ByText = 0, ByTelephone = 1, ByIndex = 2, ByDate = 3,
+                  ByType = 4, ByAddress = 5};
+
+  // wrapper for map key, can access Sortedtore to get sortOrder()
+
+  template &lt;class SortedStore&gt; class MapKey
+  {
+  public:
+    SortedStore &amp;_myStore;   // my store
+    // different type keys
+    Address _addressKey;
+    Timestamp _timeKey;
+    int _intKey;
+    string _strKey;
+
+  public:
+    // constructors for the different sort keys
+    MapKey(SortedStore &amp;myStore, Address key) :
+      _myStore(myStore), _addressKey(key) {}
+    MapKey(SortedStore &amp;myStore, Timestamp key) :
+      _myStore(myStore), _timeKey(key) {}
+    MapKey(SortedStore &amp;myStore, int key) :
+      _myStore(myStore), _intKey(key) {}
+    MapKey(SortedStore &amp;myStore, string key) :
+      _myStore(myStore), _strKey(key) {}
+
+/*
+    friend
+    bool operator&lt; 
+#ifndef WIN32
+        &lt;&gt;
+#endif
+                         (const MapKey&lt;SortedStore&gt; &amp;x,
+                      const MapKey&lt;SortedStore&gt; &amp;y);
+    friend
+    bool operator==
+#ifndef WIN32
+        &lt;&gt;
+#endif
+                          (const MapKey&lt;SortedStore&gt; &amp;x,
+                       const MapKey&lt;SortedStore&gt; &amp;y);
+*/
+  };
+
+  // compare two keys
+  template &lt;class SortedStore&gt;
+    extern bool operator&lt;(const MapKey&lt;SortedStore&gt; &amp;x,
+                          const MapKey&lt;SortedStore&gt; &amp;y);
+  template &lt;class SortedStore&gt;
+    extern bool operator==(const MapKey&lt;SortedStore&gt; &amp;x,
+                           const MapKey&lt;SortedStore&gt; &amp;y);
+  
+  // MapKey members
+  
+  template &lt;class SortedStore&gt;
+    bool operator&lt;(const MapKey&lt;SortedStore&gt; &amp;x,
+                           const MapKey&lt;SortedStore&gt; &amp;y)
+    {
+      assert(&amp;x._myStore == &amp;y._myStore);
+
+      switch (x._myStore.sortOrder())
+      {
+      case ByDate:
+        return x._timeKey &lt; y._timeKey;
+      case ByAddress:
+        return x._addressKey &lt; y._addressKey;
+      case ByIndex:
+      case ByType:
+        return x._intKey &lt; y._intKey;
+      case ByTelephone:
+        return Address(x._strKey) &lt; Address(y._strKey);
+      case ByText:
+        return x._strKey &lt; y._strKey;
+      default:
+        assert(0);
+        return true;
+      }
+    }
+
+  template &lt;class SortedStore&gt;
+    bool operator==(const MapKey&lt;SortedStore&gt; &amp;x,
+                            const MapKey&lt;SortedStore&gt; &amp;y)
+    {
+      assert(&amp;x._myStore == &amp;y._myStore);
+
+      switch (x._myStore.sortOrder())
+      {
+      case ByDate:
+        return x._timeKey == y._timeKey;
+      case ByAddress:
+        return x._addressKey == y._addressKey;
+      case ByIndex:
+      case ByType:
+        return x._intKey == y._intKey;
+      case ByTelephone:
+        return Address(x._strKey) == Address(y._strKey);
+      case ByText:
+        return x._strKey == y._strKey;
+      default:
+        assert(0);
+        return true;
+      }
+    }
+};
+
+#endif // GSM_MAP_KEY_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_me_tacc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1254 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_me_ta.cc
+// *
+// * Purpose: Mobile Equipment/Terminal Adapter functions
+// *          (ETSI GSM 07.07)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 10.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+
+#include &lt;cstdlib&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// Capabilities members
+
+Capabilities::Capabilities() :
+  _hasSMSSCAprefix(true),
+  _cpmsParamCount(-1),          // initialize to -1, must be set later by
+                                // setSMSStore() function
+  _omitsColon(true),            // FIXME
+  _veryShortCOPSanswer(false),  // Falcom A2-1
+  _wrongSMSStatusCode(false),   // Motorola Timeport 260
+  _CDSmeansCDSI(false),         // Nokia Cellular Card Phone RPE-1 GSM900 and
+                                // Nokia Card Phone RPM-1 GSM900/1800
+  _sendAck(false)               // send ack for directly routed SMS
+{
+}
+
+// MeTa members
+
+void MeTa::init() throw(GsmException)
+{
+  // switch on extended error codes
+  // caution: may be ignored by some TAs, so allow it to fail
+  _at-&gt;chat(&quot;+CMEE=1&quot;, &quot;&quot;, true, true);
+  
+  // select SMS pdu mode
+  _at-&gt;chat(&quot;+CMGF=0&quot;);
+
+  // now fill in capability object
+  MEInfo info = getMEInfo();
+  
+  // Ericsson model 6050102
+  if ((info._manufacturer == &quot;ERICSSON&quot; &amp;&amp;
+      (info._model == &quot;1100801&quot; ||
+       info._model == &quot;1140801&quot;)) ||
+      getenv(&quot;GSMLIB_SH888_FIX&quot;) != NULL)
+  {
+    // the Ericsson leaves out the service centre address
+    _capabilities._hasSMSSCAprefix = false;
+  }
+
+  // handle Falcom strangeness
+  if ((info._manufacturer == &quot;Funkanlagen Leipoldt OHG&quot; &amp;&amp;
+      info._revision == &quot;01.95.F2&quot;) ||
+      getenv(&quot;GSMLIB_FALCOM_A2_1_FIX&quot;) != NULL)
+  {
+    _capabilities._veryShortCOPSanswer = true;
+  }
+
+  // handle Motorola SMS store bug - wrong status code
+  if ((info._manufacturer == &quot;Motorola&quot; &amp;&amp;
+       info._model == &quot;L Series&quot;))
+  {
+    _capabilities._wrongSMSStatusCode = true;
+  } 

+  // handle Nokia Cellular Card Phone RPE-1 GSM900 and
+  // Nokia Card Phone RPM-1 GSM900/1800 bug - CDS means CDSI
+  if ((info._manufacturer == &quot;Nokia Mobile Phones&quot; &amp;&amp;
+       (info._model == &quot;Nokia Cellular Card Phone RPE-1 GSM900&quot; ||
+        info._model == &quot;Nokia Card Phone RPM-1 GSM900/1800&quot;)))
+  {
+    _capabilities._CDSmeansCDSI = true;
+  } 
+
+  // find out whether we are supposed to send an acknowledgment
+  Parser p(_at-&gt;chat(&quot;+CSMS?&quot;, &quot;+CSMS:&quot;));
+  _capabilities._sendAck = p.parseInt() &gt;= 1;
+      
+  // set GSM default character set
+  try
+  {
+    setCharSet(&quot;GSM&quot;);
+  }
+  catch (GsmException)
+  {
+    // ignore errors, some devices don't support this
+  }
+
+  // set default event handler
+  // necessary to handle at least RING indications that might
+  // otherwise confuse gsmlib
+  _at-&gt;setEventHandler(&amp;_defaultEventHandler);
+}
+
+MeTa::MeTa(Ref&lt;Port&gt; port) throw(GsmException) : _port(port)
+{
+  // initialize AT handling
+  _at = new GsmAt(*this);
+
+  init();
+}
+
+// MeTa::MeTa(Ref&lt;GsmAt&gt; at) throw(GsmException) :
+//   _at(at)
+// {
+//   init();
+// }
+
+void MeTa::setPIN(string pin) throw(GsmException)
+{
+  _at-&gt;chat(&quot;+CPIN=\&quot;&quot; + pin + &quot;\&quot;&quot;);
+}
+
+string MeTa::getPINStatus() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CPIN?&quot;, &quot;+CPIN:&quot;));
+  return p.parseString();
+}
+
+void MeTa::setPhonebook(string phonebookName) throw(GsmException)
+{
+  if (phonebookName != _lastPhonebookName)
+  {
+    _at-&gt;chat(&quot;+CPBS=\&quot;&quot; + phonebookName + &quot;\&quot;&quot;);
+    _lastPhonebookName = phonebookName;
+  }
+}
+
+string MeTa::setSMSStore(string smsStore, int storeTypes, bool needResultCode)
+  throw(GsmException)
+{
+  if (_capabilities._cpmsParamCount == -1)
+  {
+    // count the number of parameters for the CPMS AT sequences
+    _capabilities._cpmsParamCount = 1;
+    Parser p(_at-&gt;chat(&quot;+CPMS=?&quot;, &quot;+CPMS:&quot;));
+    p.parseStringList();
+    while (p.parseComma(true))
+    {
+      ++_capabilities._cpmsParamCount;
+      p.parseStringList();
+    }
+  }
+
+  // optimatization: only set current SMS store if different from last call
+  // or the result code is needed
+  if (needResultCode || _lastSMSStoreName != smsStore)
+  {
+    _lastSMSStoreName = smsStore;
+
+    // build chat string
+    string chatString = &quot;+CPMS=\&quot;&quot; + smsStore + &quot;\&quot;&quot;;
+    for (int i = 1; i &lt; min(_capabilities._cpmsParamCount, storeTypes); ++i)
+      chatString += &quot;,\&quot;&quot; + smsStore + &quot;\&quot;&quot;;
+
+    return _at-&gt;chat(chatString, &quot;+CPMS:&quot;);
+  }
+  return &quot;&quot;;
+}
+
+void MeTa::getSMSStore(string &amp;readDeleteStore,
+                       string &amp;writeSendStore,
+                       string &amp;receiveStore) throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CPMS?&quot;, &quot;+CPMS:&quot;));
+  writeSendStore = receiveStore = &quot;&quot;;
+  readDeleteStore = p.parseString();
+  p.parseComma();
+  p.parseInt();
+  p.parseComma();
+  p.parseInt();
+  if (p.parseComma(true))
+  {
+    writeSendStore = p.parseString();
+    p.parseComma();
+    p.parseInt();
+    p.parseComma();
+    p.parseInt();
+    if (p.parseComma(true))
+    {
+      receiveStore = p.parseString();
+    }
+  }
+}
+
+void MeTa::waitEvent(GsmTime timeout) throw(GsmException)
+{
+  if (_at-&gt;wait(timeout))
+    _at-&gt;chat();                // send AT, wait for OK, handle events
+}
+
+// aux function for MeTa::getMEInfo()
+
+static string stringVectorToString(const vector&lt;string&gt;&amp; v,
+                                   char separator = '\n')
+{
+  if (v.empty())
+    return &quot;&quot;;
+
+  // concatenate string in vector as rows
+  string result;
+  for (vector&lt;string&gt;::const_iterator i = v.begin();;)
+  {
+    string s = *i;
+    // remove leading and trailing &quot;s
+    if (s.length() &gt; 0 &amp;&amp; s[0] == '&quot;')
+      s.erase(s.begin());
+    if (s.length() &gt; 0 &amp;&amp; s[s.length() - 1] == '&quot;')
+      s.erase(s.end() - 1);
+
+    result += s;
+    // don't add end line to last
+    if ( ++i == v.end() || !separator)
+      break;
+    result += separator;
+  }
+  return result;
+}
+
+MEInfo MeTa::getMEInfo() throw(GsmException)
+{
+  MEInfo result;
+  // some TAs just return OK and no info line
+  // leave the info empty in this case
+  // some TAs return multirows with info like address, firmware version
+  result._manufacturer =
+    stringVectorToString(_at-&gt;chatv(&quot;+CGMI&quot;, &quot;+CGMI:&quot;, false));
+  result._model = stringVectorToString(_at-&gt;chatv(&quot;+CGMM&quot;, &quot;+CGMM:&quot;, false));
+  result._revision =
+    stringVectorToString(_at-&gt;chatv(&quot;+CGMR&quot;, &quot;+CGMR:&quot;, false));
+  result._serialNumber =
+    stringVectorToString(_at-&gt;chatv(&quot;+CGSN&quot;, &quot;+CGSN:&quot;, false),0);
+  return result;
+}
+
+vector&lt;string&gt; MeTa::getSupportedCharSets() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CSCS=?&quot;, &quot;+CSCS:&quot;));
+  return p.parseStringList();
+}
+    
+string MeTa::getCurrentCharSet() throw(GsmException)
+{
+  if (_lastCharSet == &quot;&quot;)
+  {
+    Parser p(_at-&gt;chat(&quot;+CSCS?&quot;, &quot;+CSCS:&quot;));
+    _lastCharSet = p.parseString();
+  }
+  return _lastCharSet;
+}
+
+void MeTa::setCharSet(string charSetName) throw(GsmException)
+{
+  _at-&gt;chat(&quot;+CSCS=\&quot;&quot; + charSetName + &quot;\&quot;&quot;);
+  _lastCharSet = &quot;&quot;;
+}
+
+string MeTa::getExtendedErrorReport() throw(GsmException)
+{
+  return _at-&gt;chat(&quot;+CEER&quot;, &quot;+CEER:&quot;);
+}
+
+void MeTa::dial(string number) throw(GsmException)
+{
+  _at-&gt;chat(&quot;D&quot; + number + &quot;;&quot;);
+}
+
+void MeTa::answer() throw(GsmException)
+{
+  _at-&gt;chat(&quot;A&quot;);
+}
+
+void MeTa::hangup() throw(GsmException)
+{
+  _at-&gt;chat(&quot;H&quot;);
+
+}
+
+vector&lt;OPInfo&gt; MeTa::getAvailableOPInfo() throw(GsmException)
+{
+  vector&lt;OPInfo&gt; result;
+  vector&lt;string&gt; responses = _at-&gt;chatv(&quot;+COPS=?&quot;, &quot;+COPS:&quot;);
+
+  // special treatment for Falcom A2-1, answer looks like
+  //   responses.push_back(&quot;(1,29341),(3,29340)&quot;);
+  if (_capabilities._veryShortCOPSanswer)
+  {
+    if (responses.size() == 1)
+    {
+      Parser p(responses[0]);
+      while (p.parseChar('(', true))
+      {
+        OPInfo opi;
+        opi._status = (OPStatus)p.parseInt();
+        p.parseComma();
+        opi._numericName = p.parseInt();
+        p.parseChar(')');
+        p.parseComma(true);
+        result.push_back(opi);
+      }
+    }
+  }
+  else
+    // some formats I have encountered...
+    //responses.push_back(&quot;2,,,31017,,(0,1),(2)&quot;);
+    //responses.push_back(&quot;(3,\&quot;UK CELLNET\&quot;,\&quot;CLNET\&quot;,\&quot;23410\&quot;),&quot; 
+    //                    &quot;(3,\&quot;ONE2 ONE\&quot;,\&quot;ONE2ONE\&quot;,\&quot;23430\&quot;),&quot;
+    //                    &quot;(3,\&quot;ORANGE\&quot;,\&quot;ORANGE\&quot;,\&quot;23433\&quot;)&quot;);
+    //responses.push_back(&quot;(2,\&quot;D1-TELEKOM\&quot;,,26201),&quot;
+    //                    &quot;(3,\&quot;D2  PRIVAT\&quot;,,26202),,(0,1,3,4),(0,2)&quot;);
+    // some phones arbitrarily split the response into several lines
+    //responses.push_back(&quot;(1,\&quot;AMENA\&quot;,,\&quot;21403\&quot;),&quot;
+    //                    &quot;(3,\&quot;MOVISTAR\&quot;,,\&quot;21407\&quot;),&quot;);
+    //responses.push_back(&quot;(3,\&quot;E VODAFONE\&quot;,,\&quot;21401\&quot;),,(0,1),(2)&quot;);
+
+    // GSM modems might return
+    // 1. quadruplets of info enclosed in brackets separated by comma
+    // 2. several lines of quadruplets of info enclosed in brackets
+    // 3. several lines of quadruplets without brackets and additional
+    //    info at EOL (e.g. Nokia 8290)
+    for (vector&lt;string&gt;::iterator i = responses.begin();
+         i != responses.end(); ++i)
+    {
+//       while (i-&gt;length() &gt; 0 &amp;&amp; ! isprint((*i)[i-&gt;length() - 1]))
+//         i-&gt;erase(i-&gt;length() - 1, 1);
+
+      bool expectClosingBracket = false;
+      Parser p(*i);
+      while (1)
+      {
+        OPInfo opi;
+        expectClosingBracket = p.parseChar('(', true);
+        int status = p.parseInt(true);
+        opi._status = (status == NOT_SET ? UnknownOPStatus : (OPStatus)status);
+        p.parseComma();
+        opi._longName = p.parseString(true);
+        p.parseComma();
+        opi._shortName = p.parseString(true);
+        p.parseComma();
+        try
+        {
+          opi._numericName = p.parseInt(true);
+        }
+        catch (GsmException &amp;e)
+        {
+          if (e.getErrorClass() == ParserError)
+          {
+            // the Ericsson GM12 GSM modem returns the numeric ID as string
+            string s = p.parseString();
+            opi._numericName = checkNumber(s);
+          }
+          else
+            throw e;
+        }
+        if (expectClosingBracket) p.parseChar(')');
+        result.push_back(opi);
+        if (! p.parseComma(true)) break;
+        // two commas &quot;,,&quot; mean the list is finished
+        if (p.getEol() == &quot;&quot; || p.parseComma(true)) break;
+      }
+      // without brackets, the ME/TA must use format 3.
+      if (! expectClosingBracket) break;
+    }
+  return result;
+}
+
+OPInfo MeTa::getCurrentOPInfo() throw(GsmException)
+{
+  OPInfo result;
+
+  // 1. This exception thing is necessary because not all ME/TA combinations
+  // might support all the formats and then return &quot;ERROR&quot;.
+  // 2. Additionally some modems return &quot;ERROR&quot; for all &quot;COPS=3,n&quot; command
+  // and report only one format with the &quot;COPS?&quot; command (e.g. Nokia 8290).
+
+  // get long format
+  try
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=3,0&quot;);
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+    Parser p(_at-&gt;chat(&quot;+COPS?&quot;, &quot;+COPS:&quot;));
+    result._mode = (OPModes)p.parseInt();
+    // some phones (e.g. Nokia Card Phone 2.0) just return &quot;+COPS: 0&quot;
+    // if no network connection
+    if (p.parseComma(true))
+    {
+      if (p.parseInt() == 0)
+      {
+        p.parseComma();
+        result._longName = p.parseString();
+      }
+    }
+  }
+  catch (GsmException &amp;e)
+  {
+    if (e.getErrorClass() != ChatError) throw;
+  }
+
+  // get short format
+  try
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=3,1&quot;);
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+    Parser p(_at-&gt;chat(&quot;+COPS?&quot;, &quot;+COPS:&quot;));
+    result._mode = (OPModes)p.parseInt();
+    // some phones (e.g. Nokia Card Phone 2.0) just return &quot;+COPS: 0&quot;
+    // if no network connection
+    if (p.parseComma(true))
+    {
+      if (p.parseInt() == 1)
+      {
+        p.parseComma();
+        result._shortName = p.parseString();
+      }
+    }
+  }
+  catch (GsmException &amp;e)
+  {
+    if (e.getErrorClass() != ChatError) throw;
+  }
+
+  // get numeric format
+  try
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=3,2&quot;);
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+    Parser p(_at-&gt;chat(&quot;+COPS?&quot;, &quot;+COPS:&quot;));
+    result._mode = (OPModes)p.parseInt();
+    // some phones (e.g. Nokia Card Phone 2.0) just return &quot;+COPS: 0&quot;
+    // if no network connection
+    if (p.parseComma(true))
+    {
+      if (p.parseInt() == 2)
+      {
+        p.parseComma();
+        try
+        {
+          result._numericName = p.parseInt();
+        }
+        catch (GsmException &amp;e)
+        {
+          if (e.getErrorClass() == ParserError)
+          {
+            // the Ericsson GM12 GSM modem returns the numeric ID as string
+            string s = p.parseString();
+            result._numericName = checkNumber(s);
+          }
+          else
+            throw e;
+        }
+      }
+    }
+  }
+  catch (GsmException &amp;e)
+  {
+    if (e.getErrorClass() != ChatError) throw;
+  }
+  return result;
+}
+
+void MeTa::setCurrentOPInfo(OPModes mode,
+                            string longName,
+                            string shortName,
+                            int numericName) throw(GsmException)
+{
+  bool done = false;
+  if (longName != &quot;&quot;)
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=&quot; + intToStr((int)mode) + &quot;,0,\&quot;&quot; + longName + &quot;\&quot;&quot;);
+      done = true;
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+  }
+  if (shortName != &quot;&quot; &amp;&amp; ! done)
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=&quot; + intToStr((int)mode) + &quot;,1,\&quot;&quot; + shortName + &quot;\&quot;&quot;);
+      done = true;
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+  }
+  if (numericName != NOT_SET &amp;&amp; ! done)
+  {
+    try
+    {
+      _at-&gt;chat(&quot;+COPS=&quot; + intToStr((int)mode) + &quot;,2,&quot; +
+                intToStr(numericName));
+      done = true;
+    }
+    catch (GsmException &amp;e)
+    {
+      if (e.getErrorClass() != ChatError) throw;
+    }
+  }
+  if (! done)
+    throw GsmException(_(&quot;unable to set operator&quot;), OtherError);
+}
+
+vector&lt;string&gt; MeTa::getFacilityLockCapabilities() throw(GsmException)
+{
+  string locks = _at-&gt;chat(&quot;+CLCK=?&quot;, &quot;+CLCK:&quot;);
+  // some TA don't add '(' and ')' (Option FirstFone)
+  if (locks.length() &amp;&amp; locks[0] != '(')
+  {
+    locks.insert(locks.begin(),'(');
+    locks += ')';
+  }
+  Parser p(locks);
+  return p.parseStringList();
+}
+
+bool MeTa::getFacilityLockStatus(string facility, FacilityClass cl)
+  throw(GsmException)
+{
+  // some TA return always multiline response with all classes
+  // (Option FirstFone)
+  // !!! errors handling is correct (responses.empty() true) ?
+  vector&lt;string&gt; responses = 
+    _at-&gt;chatv(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,2,,&quot; + intToStr((int)cl),&quot;+CLCK:&quot;,true);
+  for (vector&lt;string&gt;::iterator i = responses.begin();
+       i != responses.end(); ++i)
+  {
+    Parser p(*i);
+    int enabled = p.parseInt();
+
+    // if the first time and there is no comma this 
+    // return direct state of classes
+    // else return all classes
+    if (i == responses.begin())
+    {
+      if (!p.parseComma(true))
+        return enabled == 1;
+    }
+    else
+      p.parseComma();
+
+    if ( p.parseInt() == (int)cl )
+      return enabled == 1;
+  }
+  return false;
+
+//  Parser p(_at-&gt;chat(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,2,,&quot; + intToStr((int)cl),
+//                     &quot;+CLCK:&quot;));
+//  return p.parseInt() == 1;
+}
+
+void MeTa::lockFacility(string facility, FacilityClass cl, string passwd)
+  throw(GsmException)
+{
+  if (passwd == &quot;&quot;)
+    _at-&gt;chat(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,1,,&quot; + intToStr((int)cl));
+  else
+    _at-&gt;chat(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,1,\&quot;&quot; + passwd + &quot;\&quot;,&quot;
+              + intToStr((int)cl));
+}
+
+void MeTa::unlockFacility(string facility, FacilityClass cl, string passwd)
+  throw(GsmException)
+{
+  if (passwd == &quot;&quot;)
+    _at-&gt;chat(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,0,,&quot; + intToStr((int)cl));
+  else
+    _at-&gt;chat(&quot;+CLCK=\&quot;&quot; + facility + &quot;\&quot;,0,\&quot;&quot; + passwd + &quot;\&quot;,&quot;
+              + intToStr((int)cl));
+}
+
+vector&lt;PWInfo&gt; MeTa::getPasswords() throw(GsmException)
+{
+  vector&lt;PWInfo&gt; result;
+  Parser p(_at-&gt;chat(&quot;+CPWD=?&quot;, &quot;+CPWD:&quot;));
+  while (1)
+  {
+    PWInfo pwi;
+    if (!p.parseChar('(', true)) break; // exit if no new tuple
+    pwi._facility = p.parseString();
+    p.parseComma();
+    pwi._maxPasswdLen = p.parseInt();
+    p.parseChar(')');
+    p.parseComma(true);
+    result.push_back(pwi);
+  }
+  return result;
+}
+
+void MeTa::setPassword(string facility, string oldPasswd, string newPasswd)
+  throw(GsmException)
+{
+  _at-&gt;chat(&quot;+CPWD=\&quot;&quot; + facility + &quot;\&quot;,\&quot;&quot; + oldPasswd + &quot;\&quot;,\&quot;&quot; +
+            newPasswd + &quot;\&quot;&quot;);
+}
+
+bool MeTa::getNetworkCLIP() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CLIP?&quot;, &quot;+CLIP:&quot;));
+  p.parseInt();                 // ignore result code presentation
+  p.parseComma();
+  return p.parseInt() == 1;
+}
+
+void MeTa::setCLIPPresentation(bool enable) throw(GsmException)
+{
+  if (enable)
+    _at-&gt;chat(&quot;+CLIP=1&quot;);
+  else
+    _at-&gt;chat(&quot;+CLIP=0&quot;);
+}
+
+bool MeTa::getCLIPPresentation() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CLIP?&quot;, &quot;+CLIP:&quot;));
+  return p.parseInt() == 1;     // ignore rest of line
+}
+
+void MeTa::setCallForwarding(ForwardReason reason,
+                             ForwardMode mode,
+                             string number,
+                             string subaddr,
+                             FacilityClass cl,
+                             int forwardTime) throw(GsmException)
+{
+  // FIXME subaddr is currently ignored
+  if (forwardTime != NOT_SET &amp;&amp; (forwardTime &lt; 0 || forwardTime &gt; 30))
+    throw GsmException(_(&quot;call forward time must be in the range 0..30&quot;),
+                       ParameterError);
+  
+  int numberType;
+  number = removeWhiteSpace(number);
+  if (number.length() &gt; 0 &amp;&amp; number[0] == '+')
+  {
+    numberType = InternationalNumberFormat;
+    number = number.substr(1);  // skip the '+' at the beginning
+  }
+  else
+    numberType = UnknownNumberFormat;
+  _at-&gt;chat(&quot;+CCFC=&quot; + intToStr(reason) + &quot;,&quot; +  intToStr(mode) + &quot;,&quot; 
+            &quot;\&quot;&quot; + number + &quot;\&quot;,&quot; +
+            (number.length() &gt; 0 ? intToStr(numberType) : &quot;&quot;) +
+            &quot;,&quot; +  intToStr(cl) +
+                                // FIXME subaddr and type
+            (forwardTime == NOT_SET ? &quot;&quot; :
+             (&quot;,,,&quot; + intToStr(forwardTime))));
+}
+                           
+void MeTa::getCallForwardInfo(ForwardReason reason,
+                              ForwardInfo &amp;voice,
+                              ForwardInfo &amp;fax,
+                              ForwardInfo &amp;data) throw(GsmException)
+{
+  // Initialize to some sensible values:
+  voice._active = false;
+  voice._cl = VoiceFacility;
+  voice._time = -1;
+  voice._reason = NoReason;
+  data._active = false;
+  data._cl = DataFacility;
+  data._time = -1;
+  data._reason = NoReason;
+  fax._active = false;
+  fax._cl = FaxFacility;
+  fax._time = -1;
+  fax._reason = NoReason;
+
+  vector&lt;string&gt; responses =
+    _at-&gt;chatv(&quot;+CCFC=&quot; + intToStr(reason) + &quot;,2&quot;, &quot;+CCFC:&quot;);
+  if (responses.size() == 1)
+  {
+    // only one line was returned. We have to ask for all three classes
+    // (voice, data, fax) separately
+    responses.clear();
+    responses.push_back(_at-&gt;chat(&quot;+CCFC=&quot; + intToStr(reason) +
+                                  &quot;,2,,,1&quot;, &quot;+CCFC:&quot;));
+    responses.push_back(_at-&gt;chat(&quot;+CCFC=&quot; + intToStr(reason) +
+                                  &quot;,2,,,2&quot;, &quot;+CCFC:&quot;));
+    responses.push_back(_at-&gt;chat(&quot;+CCFC=&quot; + intToStr(reason) +
+                                  &quot;,2,,,4&quot;, &quot;+CCFC:&quot;));
+  }
+
+  for (vector&lt;string&gt;::iterator i = responses.begin();
+       i != responses.end(); ++i)
+  {
+    Parser p(*i);
+    int status = p.parseInt();
+    p.parseComma();
+    FacilityClass cl = (FacilityClass)p.parseInt();
+    string number;
+    string subAddr;
+    int forwardTime = NOT_SET;
+      
+    // parse number
+    if (p.parseComma(true))
+    {
+      number = p.parseString();
+      p.parseComma();
+      unsigned int numberType = p.parseInt();
+      if (numberType == InternationalNumberFormat) number = &quot;+&quot; + number;
+
+      // parse subaddr
+      if (p.parseComma(true))
+      {
+        // FIXME subaddr type not handled
+        subAddr = p.parseString(true);
+        p.parseComma();
+        p.parseInt(true);
+          
+        // parse forwardTime
+        if (p.parseComma(true))
+        {
+          forwardTime = p.parseInt();
+        }
+      }
+    }
+    switch (cl)
+    {
+    case VoiceFacility:
+      voice._active = (status == 1);
+      voice._cl = VoiceFacility;
+      voice._number = number;
+      voice._subAddr = subAddr;
+      voice._time = forwardTime;
+      voice._reason = reason;
+      break;
+    case DataFacility:
+      data._active = (status == 1);
+      data._cl = DataFacility;
+      data._number = number;
+      data._subAddr = subAddr;
+      data._time = forwardTime;
+      data._reason =  reason;
+      break;
+    case FaxFacility:
+      fax._active = (status == 1);
+      fax._cl = FaxFacility;
+      fax._number = number;
+      fax._subAddr = subAddr;
+      fax._time = forwardTime;
+      fax._reason = reason;
+      break;
+    }
+  }
+}
+
+int MeTa::getBatteryChargeStatus() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CBC&quot;, &quot;+CBC:&quot;));
+  return p.parseInt();
+}
+
+int MeTa::getBatteryCharge() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CBC&quot;, &quot;+CBC:&quot;));
+  p.parseInt();
+  p.parseComma();
+  return p.parseInt();
+}
+
+int MeTa::getFunctionalityLevel() throw(GsmException)
+{
+  try {
+    Parser p(_at-&gt;chat(&quot;+CFUN?&quot;, &quot;+CFUN:&quot;));
+    // some phones return functionality level like &quot;(2)&quot;
+    bool expectClosingParen = p.parseChar('(', true);
+    int result = p.parseInt();
+    if (expectClosingParen)
+      p.parseChar(')');
+    return result;
+  }
+  catch (GsmException &amp;x)
+  {
+    if (x.getErrorClass() == ChatError)
+    {
+      throw GsmException(_(&quot;Functionality Level commands not supported by ME&quot;),
+                         MeTaCapabilityError);
+    } else {
+      throw;
+    }
+  }
+}
+
+void MeTa::setFunctionalityLevel(int level) throw(GsmException)
+{
+  try {
+    Parser p(_at-&gt;chat(&quot;+CFUN=&quot;  + intToStr(level)));
+  } catch (GsmException &amp;x) {
+    if (x.getErrorClass() == ChatError)
+    {
+      // If the command AT+CFUN commands really aren't supported by the ME,
+      // then this will throw an appropriate exception for us.
+      getFunctionalityLevel();
+      // If the number was just out of range, we get here.
+      throw GsmException(_(&quot;Requested Functionality Level out of range&quot;),
+                         ParameterError);
+    }
+    throw;
+  }
+}
+
+int MeTa::getSignalStrength() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CSQ&quot;, &quot;+CSQ:&quot;));
+  return p.parseInt();
+}
+
+int MeTa::getBitErrorRate() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CSQ&quot;, &quot;+CSQ:&quot;));
+  p.parseInt();
+  p.parseComma();
+  return p.parseInt();
+}
+
+vector&lt;string&gt; MeTa::getPhoneBookStrings() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CPBS=?&quot;, &quot;+CPBS:&quot;));
+  return p.parseStringList();
+}
+
+PhonebookRef MeTa::getPhonebook(string phonebookString,
+                                bool preload) throw(GsmException)
+{
+  for (PhonebookVector::iterator i = _phonebookCache.begin();
+       i !=  _phonebookCache.end(); ++i)
+  {
+    if ((*i)-&gt;name() == phonebookString)
+      return *i;
+  }
+  PhonebookRef newPb(new Phonebook(phonebookString, _at, *this, preload));
+  _phonebookCache.push_back(newPb);
+  return newPb;
+}
+
+string MeTa::getServiceCentreAddress() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CSCA?&quot;, &quot;+CSCA:&quot;));
+  return p.parseString();
+}
+
+void MeTa::setServiceCentreAddress(string sca) throw(GsmException)
+{
+  int type;
+  sca = removeWhiteSpace(sca);
+  if (sca.length() &gt; 0 &amp;&amp; sca[0] == '+')
+  {
+    type = InternationalNumberFormat;
+    sca = sca.substr(1, sca.length() - 1);
+  }
+  else
+    type = UnknownNumberFormat;
+  Parser p(_at-&gt;chat(&quot;+CSCA=\&quot;&quot; + sca + &quot;\&quot;,&quot; + intToStr(type)));
+}
+
+vector&lt;string&gt; MeTa::getSMSStoreNames() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CPMS=?&quot;, &quot;+CPMS:&quot;));
+  // only return &lt;mem1&gt; values
+  return p.parseStringList();
+}
+
+SMSStoreRef MeTa::getSMSStore(string storeName) throw(GsmException)
+{
+  for (SMSStoreVector::iterator i = _smsStoreCache.begin();
+       i !=  _smsStoreCache.end(); ++i)
+  {
+    if ((*i)-&gt;name() == storeName)
+      return *i;
+  }
+  SMSStoreRef newSs(new SMSStore(storeName, _at, *this));
+  _smsStoreCache.push_back(newSs);
+  return newSs;
+}
+
+void MeTa::sendSMS(Ref&lt;SMSSubmitMessage&gt; smsMessage) throw(GsmException)
+{
+  smsMessage-&gt;setAt(_at);
+  smsMessage-&gt;send();
+}
+
+void MeTa::sendSMSs(Ref&lt;SMSSubmitMessage&gt; smsTemplate, string text,
+                    bool oneSMS,
+                    int concatenatedMessageId)
+  throw(GsmException)
+{
+  assert(! smsTemplate.isnull());
+
+  // compute maximum text length for normal SMSs and concatenated SMSs
+  unsigned int maxTextLength, concMaxTextLength;
+  switch (smsTemplate-&gt;dataCodingScheme().getAlphabet())
+  {
+  case DCS_DEFAULT_ALPHABET:
+    maxTextLength = 160;
+    concMaxTextLength = 152;
+    break;
+  case DCS_EIGHT_BIT_ALPHABET:
+    maxTextLength = 140;
+    concMaxTextLength = 134;
+    break;
+  case DCS_SIXTEEN_BIT_ALPHABET:
+    maxTextLength = 70;
+    concMaxTextLength = 67;
+    break;
+  default:
+    throw GsmException(_(&quot;unsupported alphabet for SMS&quot;),
+                       ParameterError);
+    break;
+  }
+
+  // simple case, only send one SMS
+  if (oneSMS || text.length() &lt;= maxTextLength)
+  {
+    if (text.length() &gt; maxTextLength)
+      throw GsmException(_(&quot;SMS text is larger than allowed&quot;),
+                         ParameterError);
+    smsTemplate-&gt;setUserData(text);
+    sendSMS(smsTemplate);
+  }
+  else                          // send multiple SMSs
+  {
+    if (concatenatedMessageId != -1)
+      maxTextLength = concMaxTextLength;
+
+    int numMessages = (text.length() + maxTextLength - 1) / maxTextLength;
+    if (numMessages &gt; 255)
+      throw GsmException(_(&quot;not more than 255 concatenated SMSs allowed&quot;),
+                         ParameterError);
+    unsigned char numMessage = 0;
+    while (true)
+    {
+      if (concatenatedMessageId != -1)
+      {
+        unsigned char udhs[] = {0x00, 0x03, concatenatedMessageId,
+                                numMessages, ++numMessage};
+        UserDataHeader udh(string((char*)udhs, 5));
+        smsTemplate-&gt;setUserDataHeader(udh);
+      }
+      smsTemplate-&gt;setUserData(text.substr(0, maxTextLength));
+      sendSMS(smsTemplate);
+      if (text.length() &lt; maxTextLength)
+        break;
+      text.erase(0, maxTextLength);
+    }
+  }
+}
+
+void MeTa::setMessageService(int serviceLevel) throw(GsmException)
+{
+  string s;
+  switch (serviceLevel)
+  {
+  case 0:
+    s = &quot;0&quot;;
+    break;
+  case 1:
+    s = &quot;1&quot;;
+    break;
+  default:
+    throw GsmException(_(&quot;only serviceLevel 0 or 1 supported&quot;),
+                       ParameterError);
+  }
+  // some devices (eg. Origo 900) don't support service level setting
+  _at-&gt;chat(&quot;+CSMS=&quot; + s, &quot;+CSMS:&quot;, true);
+}
+
+unsigned int MeTa::getMessageService() throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CSMS?&quot;, &quot;+CSMS:&quot;));
+  return p.parseInt();
+}
+
+void MeTa::getSMSRoutingToTA(bool &amp;smsRouted,
+                             bool &amp;cbsRouted,
+                             bool &amp;statusReportsRouted) throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CNMI?&quot;, &quot;+CNMI:&quot;));
+  p.parseInt();
+  int smsMode = 0;
+  int cbsMode = 0;
+  int statMode = 0;
+  int bufferMode = 0;
+
+  if (p.parseComma(true))
+  {
+    smsMode = p.parseInt();
+    if (p.parseComma(true))
+    {
+      cbsMode = p.parseInt();
+      if (p.parseComma(true))
+      {
+        statMode = p.parseInt();
+        if (p.parseComma(true))
+        {
+          bufferMode = p.parseInt();
+        }
+      }
+    }
+  }
+  
+  smsRouted = (smsMode == 2) || (smsMode == 3);
+  cbsRouted = (cbsMode == 2) || (cbsMode == 3);
+  statusReportsRouted = (statMode == 1);
+}
+
+void MeTa::setSMSRoutingToTA(bool enableSMS, bool enableCBS,
+                             bool enableStatReport,
+                             bool onlyReceptionIndication)
+  throw(GsmException)
+{
+  bool smsModesSet = false;
+  bool cbsModesSet = false;
+  bool statModesSet = false;
+  bool bufferModesSet = false;
+
+  // find out capabilities
+  Parser p(_at-&gt;chat(&quot;+CNMI=?&quot;, &quot;+CNMI:&quot;));
+  vector&lt;bool&gt; modes = p.parseIntList();
+  vector&lt;bool&gt; smsModes(1);
+  vector&lt;bool&gt; cbsModes(1);
+  vector&lt;bool&gt; statModes(1);
+  vector&lt;bool&gt; bufferModes(1);
+  if (p.parseComma(true))
+  {
+    smsModes = p.parseIntList();
+    smsModesSet = true;
+    if (p.parseComma(true))
+    {
+      cbsModes = p.parseIntList();
+      cbsModesSet = true;
+      if (p.parseComma(true))
+      {
+        statModes = p.parseIntList();
+        statModesSet = true;
+        if (p.parseComma(true))
+        {
+          bufferModes = p.parseIntList();
+          bufferModesSet = true;
+        }
+      }
+    }
+  }
+
+  // now set the mode vectors to the default if not set
+  if (! smsModesSet) smsModes[0] = true;
+  if (! cbsModesSet) cbsModes[0] = true;
+  if (! statModesSet) statModes[0] = true;
+  if (! bufferModesSet) bufferModes[0] = true;
+  
+  string chatString;
+    
+  // now try to set some optimal combination depending on
+  // ME/TA's capabilities
+
+  // handle modes
+  if (isSet(modes, 2))
+    chatString = &quot;2&quot;;
+  else if (isSet(modes, 1))
+    chatString = &quot;1&quot;;
+  else if (isSet(modes, 0))
+    chatString = &quot;0&quot;;
+  else if (isSet(modes, 3))
+    chatString = &quot;3&quot;;
+
+  if (onlyReceptionIndication)
+  {
+    // handle sms mode
+    if (enableSMS)
+    {
+      if (isSet(smsModes, 1))
+        chatString += &quot;,1&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route SMS messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+      
+    // handle cbs mode
+    if (enableCBS)
+    {
+      if (isSet(cbsModes, 1))
+        chatString += &quot;,1&quot;;
+      else if (isSet(cbsModes, 2))
+        chatString += &quot;,2&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route cell broadcast messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+
+    // handle stat mode
+    if (enableStatReport)
+    {
+      if (isSet(statModes, 2))
+        chatString += &quot;,2&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route status reports messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+  }
+  else
+  {
+    // handle sms mode
+    if (enableSMS)
+    {
+      if (isSet(smsModes, 2))
+        chatString += &quot;,2&quot;;
+      else if (isSet(smsModes, 3))
+        chatString += &quot;,3&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route SMS messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+      
+    // handle cbs mode
+    if (enableCBS)
+    {
+      if (isSet(cbsModes, 2))
+        chatString += &quot;,2&quot;;
+      else if (isSet(cbsModes, 3))
+        chatString += &quot;,3&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route cell broadcast messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+
+    // handle stat mode
+    if (enableStatReport)
+    {
+      if (isSet(statModes, 1))
+        chatString += &quot;,1&quot;;
+      else if (isSet(statModes, 2))
+        chatString += &quot;,2&quot;;
+      else 
+        throw GsmException(_(&quot;cannot route status report messages to TE&quot;),
+                           MeTaCapabilityError);
+    }
+    else
+      chatString += &quot;,0&quot;;
+  }
+
+  // handle buffer mode but only if it was reported by the +CNMI=? command
+  // the Ericsson GM12 GSM modem does not like it otherwise
+  if (bufferModesSet)
+    if (isSet(bufferModes, 1))
+      chatString += &quot;,1&quot;;
+    else
+      chatString += &quot;,0&quot;;
+
+  _at-&gt;chat(&quot;+CNMI=&quot; + chatString);
+}
+
+bool MeTa::getCallWaitingLockStatus(FacilityClass cl)
+  throw(GsmException)
+{
+  // some TA return always multiline response with all classes
+  // (Option FirstFone)
+  // !!! errors handling is correct (responses.empty() true) ?
+  vector&lt;string&gt; responses = 
+    _at-&gt;chatv(&quot;+CCWA=0,2,&quot; + intToStr((int)cl),&quot;+CCWA:&quot;,true);
+  for (vector&lt;string&gt;::iterator i = responses.begin();
+       i != responses.end(); ++i)
+  {
+    Parser p(*i);
+    int enabled = p.parseInt();
+
+    // if the first time and there is no comma this 
+    // return direct state of classes
+    // else return all classes
+    if (i == responses.begin())
+    {
+      if (! p.parseComma(true))
+        return enabled == 1;
+    }
+    else
+      p.parseComma();
+
+    if (p.parseInt() == (int)cl)
+      return enabled == 1;
+  }
+  return false;
+
+}
+void MeTa::setCallWaitingLockStatus(FacilityClass cl, bool lock)
+  throw(GsmException)
+{
+  if(lock)
+    _at-&gt;chat(&quot;+CCWA=0,1,&quot; + intToStr((int)cl));
+  else
+    _at-&gt;chat(&quot;+CCWA=0,0,&quot; + intToStr((int)cl));
+}
+
+void MeTa::setCLIRPresentation(bool enable) throw(GsmException)
+{
+  if (enable)
+    _at-&gt;chat(&quot;+CLIR=1&quot;);
+  else
+    _at-&gt;chat(&quot;+CLIR=0&quot;);
+}
+
+int MeTa::getCLIRPresentation() throw(GsmException)
+{
+  // 0:according to the subscription of the CLIR service
+  // 1:CLIR invocation
+  // 2:CLIR suppression
+  Parser p(_at-&gt;chat(&quot;+CLIR?&quot;, &quot;+CLIR:&quot;));
+  return p.parseInt();
+}
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_me_tah"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_me_ta.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,402 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_me_ta.h
+// *
+// * Purpose: Mobile Equipment/Terminal Adapter and SMS functions
+// *          (ETSI GSM 07.07 and 07.05)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.5.1999
+// *************************************************************************
+
+#ifndef GSM_ME_TA_H
+#define GSM_ME_TA_H
+
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_event.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;gsmlib/gsm_sms_store.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;gsmlib/gsm_sms.h&gt;
+#include &lt;string&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // *** phone capability description (you could also call it phone quirks)
+
+  struct Capabilities
+  {
+    bool _hasSMSSCAprefix;      // SMS have service centre address prefix
+    int _cpmsParamCount;        // number of SMS store parameters to
+                                // CPMS command
+    bool _omitsColon;           // omits trailing ':' in AT responses
+    bool _veryShortCOPSanswer;  // Falcom A2-1
+    bool _wrongSMSStatusCode;   // Motorola Timeport 260
+    bool _CDSmeansCDSI;         // Nokia Cellular Card Phone RPE-1 GSM900
+    bool _sendAck;              // send ack for directly routed SMS
+    Capabilities();             // constructor, set default behaviours
+  };
+  
+  // *** auxiliary structs
+
+  // Static ME information (AT command sequences given in brackets)
+  struct MEInfo
+  {
+    string _manufacturer;       // (+CGMI)
+    string _model;              // (+CGMM)
+    string _revision;           // (+CGMR)
+    string _serialNumber;       // (+CGSN), IMEI
+  };
+
+  // modes for network operation selection
+  enum OPModes {AutomaticOPMode = 0, ManualOPMode = 1,
+                DeregisterOPMode = 2, ManualAutomaticOPMode = 4};
+
+  // status codes or network operaton selection
+  enum OPStatus {UnknownOPStatus = 0, AvailableOPStatus = 1,
+                 CurrentOPStatus = 2, ForbiddenOPStatus = 3};
+
+  // network operator info
+  struct OPInfo
+  {
+    OPModes _mode;
+    OPStatus _status;
+    string _longName;
+    string _shortName;
+    int _numericName;           // may be NOT_SET
+
+    OPInfo() : _status(UnknownOPStatus), _numericName(NOT_SET) {}
+  };
+
+  // facility classes
+  enum FacilityClass {VoiceFacility = 1, DataFacility = 2, FaxFacility = 4};
+  const int ALL_FACILITIES = VoiceFacility | DataFacility | FaxFacility;
+
+  // struct to hold password info
+  struct PWInfo
+  {
+    string _facility;
+    int _maxPasswdLen;
+  };
+
+  // call forward reasons
+  // AllReasons encompasses 0..3
+  // AllConditionalReasons encompasses 1..3
+  enum ForwardReason {UnconditionalReason = 0, MobileBusyReason = 1,
+                      NoReplyReason = 2, NotReachableReason = 3,
+                      AllReasons = 4, AllConditionalReasons = 5, NoReason = 6};
+
+  // call forward modes
+  enum ForwardMode {DisableMode = 0, EnableMode = 1,
+                    RegistrationMode = 3, ErasureMode = 4};
+
+  // call forward info
+  struct ForwardInfo
+  {
+    bool _active;               // status in the network
+    FacilityClass _cl;          // voice, fax, or data
+    string _number;             // telephone number
+    string _subAddr;            // subaddress
+    int _time;                  // time in the range 1..30 (for NoReplyReason)
+    ForwardReason _reason;      // reason for the forwarding
+  };
+
+  // SMS types
+  typedef Ref&lt;SMSStore&gt; SMSStoreRef;
+  typedef vector&lt;SMSStoreRef&gt; SMSStoreVector;
+
+  // this class allows access to all functions of a ME/TA as described
+  // in sections 5-8 of ETSI GSM 07.07
+  // Note: If the ME is changed (ie. disconnected an another one connected
+  // to the TA), a new ME object must be created
+  // (Mobile equipment = ME, terminal adapter = TA)
+  class MeTa : public RefBase
+  {
+  protected:
+    Ref&lt;Port&gt; _port;            // port the ME/TA is connected to
+    Ref&lt;GsmAt&gt; _at;             // chat object for the port
+    PhonebookVector _phonebookCache; // cache of all used phonebooks
+    SMSStoreVector _smsStoreCache; // cache of all used phonebooks
+    string _lastPhonebookName;  // remember last phonebook set on ME/TA
+    string _lastSMSStoreName;   // remember last SMS store set on ME/TA
+    Capabilities _capabilities; // ME/TA quirks
+    GsmEvent _defaultEventHandler; // default event handler
+                                // see comments in MeTa::init()
+    string _lastCharSet;        // remember last character set
+
+    // init ME/TA to sensible defaults
+    void init() throw(GsmException);
+
+  public:
+    // initialize a new MeTa object given the port
+    MeTa(Ref&lt;Port&gt; port) throw(GsmException);
+
+    // initialize a new MeTa object given the AT handler
+    //MeTa(Ref&lt;GsmAt&gt; at) throw(GsmException);
+
+    // set the current phonebook in the ME
+    // remember the last phonebook set for optimisation
+    void setPhonebook(string phonebookName) throw(GsmException);
+
+    // set the current SMS store in the ME
+    // set storeTypes to
+    //   1 to set store for reading and deleting
+    //   2 to set store for writing and sending (includes type 1)
+    //   3 to preferred store for receiving SMS (includes types 1 and 2)
+    // remember the last SMS store set for optimisation
+    // if needResultCode is set this optimisation is not done
+    string setSMSStore(string smsStore, int storeTypes,
+                       bool needResultCode = false)
+      throw(GsmException);
+
+    // get current SMS store settings
+    void getSMSStore(string &amp;readDeleteStore,
+                     string &amp;writeSendStore,
+                     string &amp;receiveStore) throw(GsmException);
+
+    // get capabilities of this ME/TA
+    Capabilities getCapabilities() const {return _capabilities;}
+
+    // return my port
+    Ref&lt;Port&gt; getPort() {return _port;}
+
+    // return my at handler
+    Ref&lt;GsmAt&gt; getAt() {return _at;}
+
+    // set event handler for unsolicited result codes
+    GsmEvent *setEventHandler(GsmEvent *newHandler)
+      {return _at-&gt;setEventHandler(newHandler);}
+
+    // wait for an event
+    void waitEvent(GsmTime timeout) throw(GsmException);
+
+    // *** ETSI GSM 07.07 Section 5: &quot;General Commands&quot;
+
+    // return ME information
+    MEInfo getMEInfo() throw(GsmException);
+
+    // return available character sets
+    vector&lt;string&gt; getSupportedCharSets() throw(GsmException);// (+CSCS=?)
+    
+    // return current character set (default: GSM)
+    string getCurrentCharSet() throw(GsmException);// (+CSCS?)
+
+    // set character set to use
+    void setCharSet(string charSetName) throw(GsmException);// (+CSCS=)
+    
+    // *** ETSI GSM 07.07 Section 6: &quot;Call control commands and methods&quot;
+    
+    // get extended error report
+    string getExtendedErrorReport() throw(GsmException);// (+CEER)
+
+    // dial a number, CLI presentation as defined in network
+    void dial(string number) throw(GsmException);// (ATD)
+
+    // answer
+    void answer() throw(GsmException); // (ATA)
+
+    // hangup
+    void hangup() throw(GsmException); // (ATH)
+    
+    // set Personal Identification Number
+    void setPIN(string number) throw(GsmException);// (+CPIN)
+
+    // get PIN Status
+    string getPINStatus() throw(GsmException);// (+CPIN?)
+
+    // *** ETSI GSM 07.07 Section 7: &quot;Network service related commands&quot;
+    
+    // return available network operators
+    // this fills in all fields of OPInfo with the exception of _mode
+    vector&lt;OPInfo&gt; getAvailableOPInfo() throw(GsmException); // (+COPS=?)
+
+    // return current network operators
+    // this fills in all the fields of OPInfo with the exception of _status
+    OPInfo getCurrentOPInfo() throw(GsmException);
+
+    // set network operator
+    // caller must fill in ALL names it has read from previous calls
+    // of getCurrentOPInfo() or getAvailableOPInfo()
+    // (because ME/TA might not implement all names)
+    void setCurrentOPInfo(OPModes mode,
+                          string longName = &quot;&quot;,
+                          string shortName = &quot;&quot;,
+                          int numericName = NOT_SET) throw(GsmException);
+
+    // get facility lock capabilities (+CLCK)
+    vector&lt;string&gt; getFacilityLockCapabilities() throw(GsmException);
+
+    // query facility lock status for named facility
+    bool getFacilityLockStatus(string facility, FacilityClass cl)
+      throw(GsmException);
+
+    // lock facility
+    void lockFacility(string facility, FacilityClass cl, string passwd = &quot;&quot;)
+      throw(GsmException);
+
+    // unlock facility
+    void unlockFacility(string facility, FacilityClass cl, string passwd = &quot;&quot;)
+      throw(GsmException);
+
+    // return names of facility for which a password can be set
+    // and the maximum length of the respective password
+    vector&lt;PWInfo&gt; getPasswords() throw(GsmException);// (+CPWD=?)
+
+    // set password for the given facility
+    void setPassword(string facility, string oldPasswd, string newPasswd)
+      throw(GsmException);
+    // (+CPWD=)
+
+    // get CLIP (caller line identification presentation) in the network
+    bool getNetworkCLIP() throw(GsmException);// (+CLIP?)
+
+    // set CLIP presentation on or off
+    // enables GsmEvent::callerLineID
+    void setCLIPPresentation(bool enable) throw(GsmException);// (+CLIP=)
+
+    // returns if the above is enable
+    bool getCLIPPresentation() throw(GsmException);// (+CLIP?)
+
+    // set call forwarding
+    void setCallForwarding(ForwardReason reason,
+                           ForwardMode mode,
+                           string number,
+                           string subaddr,
+                           FacilityClass cl = (FacilityClass)ALL_FACILITIES,
+                           int forwardTime = NOT_SET)
+      throw(GsmException); // (+CCFC=)
+
+    // get Information of currently set CF in the network
+    // the caller must give the reason to query
+    void getCallForwardInfo(ForwardReason reason,
+                            ForwardInfo &amp;voice,
+                            ForwardInfo &amp;fax,
+                            ForwardInfo &amp;data)
+      throw(GsmException); // (+CCFC=)
+
+
+    // *** ETSI GSM 07.07 Section 8: &quot;Mobile Equipment control
+    //                                and status commands&quot;
+
+    // return/set ME functionality level (+CFUN):
+    // 0 Minimum functionality
+    // 1 full functionality
+    // 2 disable phone transmit RF circuits only
+    // 3 disable phone receive RF circuits only
+    // 4 disable phone both transmit and receive RF circuits
+    // 5...127 implementation-defined
+    int getFunctionalityLevel() throw(GsmException);
+    void setFunctionalityLevel(int level) throw(GsmException);
+
+    // return battery charge status (+CBC):
+    // 0 ME is powered by the battery
+    // 1 ME has a battery connected, but is not powered by it
+    // 2 ME does not have a battery connected
+    // 3 Recognized power fault, calls inhibited
+    int getBatteryChargeStatus() throw(GsmException);
+
+    // return battery charge (range 0..100) (+CBC)
+    int getBatteryCharge() throw(GsmException);
+
+    // get signal strength indication (+CSQ):
+    // 0 -113 dBm or less
+    // 1 -111 dBm
+    // 2...30 -109... -53 dBm
+    // 31 -51 dBm or greater
+    // 99 not known or not detectable
+    int getSignalStrength() throw(GsmException);
+
+    // get channel bit error rate (+CSQ):
+    // 0...7 as RXQUAL values in the table in GSM 05.08 [20] subclause 8.2.4
+    // 99 not known or not detectable
+    int getBitErrorRate() throw(GsmException);
+
+    // get available phone book memory storage strings (+CPBS=?)
+    vector&lt;string&gt; getPhoneBookStrings() throw(GsmException);
+
+    // get phone book given the phone book memory storage string
+    PhonebookRef getPhonebook(string phonebookString,
+                              bool preload = false) throw(GsmException);
+
+
+    // *** ETSI GSM 07.05 SMS functions
+
+    // return service centre address (+CSCA?)
+    string getServiceCentreAddress() throw(GsmException);
+
+    // set service centre address (+CSCA=)
+    void setServiceCentreAddress(string sca) throw(GsmException);
+    
+    // return names of available message stores (&lt;mem1&gt;, +CPMS=?)
+    vector&lt;string&gt; getSMSStoreNames() throw(GsmException);
+
+    // return SMS store given the name
+    SMSStoreRef getSMSStore(string storeName) throw(GsmException);
+
+    // send a single SMS message
+    void sendSMS(Ref&lt;SMSSubmitMessage&gt; smsMessage) throw(GsmException);
+
+    // send one or several (concatenated) SMS messages
+    // The SUBMIT message template must have all options set, only
+    // the userData and the userDataHeader are changed.
+    // If oneSMS is true, only one SMS is sent. Otherwise several SMSs
+    // are sent. If concatenatedMessageId is != -1 this is used as the message
+    // ID for concatenated SMS (for this a user data header as defined in
+    // GSM GTS 3.40 is used, the old UDH in the template is overwritten).
+    void sendSMSs(Ref&lt;SMSSubmitMessage&gt; smsTemplate, string text,
+                  bool oneSMS = false,
+                  int concatenatedMessageId = -1)
+      throw(GsmException);
+
+    // set SMS service level
+    // if set to 1 send commands return ACK PDU, 0 is the default
+    void setMessageService(int serviceLevel) throw(GsmException);
+
+    // return SMS service level
+    unsigned int getMessageService() throw(GsmException);
+
+    // return true if any of the thre message types GsmEvent::SMSMessageType
+    // is routed directly to the TA and not stored in the ME
+    void getSMSRoutingToTA(bool &amp;smsRouted, // (+CNMI?)
+                           bool &amp;cbsRouted,
+                           bool &amp;statusReportsRouted) throw(GsmException);
+
+    // sets routing of SMS to TA to true for all supported SMSMessageTypes
+    // if onlyReceptionIndication is set to true
+    // only GsmEvent::SMSReceptionIndication is called
+    // this has two reasons: GSM 07.05 section 3.4.1 does not recommend
+    // direct routing of new SMS to the TA
+    // I cannot test direct routing of SMS because it does not work with
+    // my hardware
+    void setSMSRoutingToTA(bool enableSMS, bool enableCBS,
+                           bool enableStatReport,
+                           bool onlyReceptionIndication = true)
+      throw(GsmException);
+    // (+CNMI=)
+
+    bool getCallWaitingLockStatus(FacilityClass cl)
+      throw(GsmException);
+        
+    void setCallWaitingLockStatus(FacilityClass cl,
+                                  bool lock)throw(GsmException);
+
+    void setCLIRPresentation(bool enable) throw(GsmException);
+    //(+CLIR)
+    
+    // 0:according to the subscription of the CLIR service
+    // 1:CLIR invocation
+    // 2:CLIR suppression
+    int getCLIRPresentation() throw(GsmException);
+
+    friend class Phonebook;
+    friend class SMSStore;
+  };
+};
+
+#endif // GSM_ME_TA_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_nlscc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_nls.cc
+// *
+// * Purpose: Groups macros, initialization and includes
+// *          for National Language Support (NLS)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.11.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;string&gt;
+
+using namespace std;
+
+#ifdef ENABLE_NLS
+
+using namespace gsmlib;
+
+#ifdef HAVE_LOCALE_H
+#include &lt;locale.h&gt;
+#endif
+
+bool InitNLS::initialized = false;
+
+#endif // ENABLE_NLS
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_nlsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_nls.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_nls.h
+// *
+// * Purpose: Groups macros, initialization and includes
+// *          for National Language Support (NLS)
+// *
+// * Warning: Only include this header from gsmlib .cc-files
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.11.1999
+// *************************************************************************
+
+#ifndef GSM_NLS_H
+#define GSM_NLS_H
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+
+#ifdef ENABLE_NLS
+
+#ifdef HAVE_LIBINTL_H
+#include &lt;libintl.h&gt;
+#else
+#include &quot;../intl/libintl.h&quot;
+#endif
+#ifdef HAVE_LOCALE_H
+#include &lt;locale.h&gt;
+#endif
+
+#define _(String) dgettext(PACKAGE, String)
+
+// this causes automatic NLS initialization if one file of the library
+// includes gsm_nls.h
+
+namespace gsmlib
+{
+  const class InitNLS
+  {
+  static bool initialized;
+    
+  public:
+    InitNLS()
+      {
+        if (! initialized)      // do only once
+        {
+          setlocale(LC_ALL, &quot;&quot;);
+#ifdef LOCAL_TRANSLATIONS
+          bindtextdomain(PACKAGE, &quot;../po&quot;);
+#else
+          bindtextdomain(PACKAGE, LOCALEDIR);
+#endif
+          textdomain(PACKAGE);
+          initialized = true;
+        }
+      }
+  } initNLS;
+};
+
+#else
+
+#define _(String) (String)
+
+#endif // ENABLE_NLS
+
+#define N_(String) (String)
+
+#endif // GSM_NLS_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_parsercc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,381 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_parser.cc
+// *
+// * Purpose: Parser to parse MA/TA result strings
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 13.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;ctype.h&gt;
+#include &lt;assert.h&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// Parser members
+
+int Parser::nextChar(bool skipWhiteSpace)
+{
+  if (skipWhiteSpace)
+    while (_i &lt; _s.length() &amp;&amp; isspace(_s[_i])) ++_i;
+
+  if (_i == _s.length())
+  {
+    _eos = true;
+    return -1;
+  }
+
+  return _s[_i++];
+}
+    
+bool Parser::checkEmptyParameter(bool allowNoParameter) throw(GsmException)
+{
+  int c = nextChar();
+  if (c == ',' || c == -1)
+    if (allowNoParameter)
+    {
+      putBackChar();
+      return true;
+    }
+    else
+      throwParseException(_(&quot;expected parameter&quot;));
+
+  putBackChar();
+  return false;
+}
+    
+string Parser::parseString2(bool stringWithQuotationMarks)
+  throw(GsmException)
+{
+  int c;
+  string result;
+  if (parseChar('&quot;', true))  // OK, string starts and ends with quotation mark
+    if (stringWithQuotationMarks)
+    {
+      // read till end of line
+      while ((c = nextChar(false)) != -1)
+        result += c;
+      
+      // check for &quot;&quot;&quot; at end of line
+      if (result.length() == 0 || result[result.length() - 1]  != '&quot;')
+        throwParseException(_(&quot;expected '\&quot;'&quot;));
+      
+      // remove &quot;&quot;&quot; at the end
+      result.resize(result.length() - 1);
+    }
+    else
+    {
+      // read till next &quot;&quot;&quot;
+      while ((c = nextChar(false)) != '&quot;')
+        if (c == -1)
+          throwParseException();
+        else
+          result += c;
+    }
+  else                          // string ends with &quot;,&quot; or EOL
+  {
+    c = nextChar(false);
+    while (c != ',' &amp;&amp; c != -1)
+    {
+      result += c;
+      c = nextChar(false);
+    }
+    if (c == ',') putBackChar();
+  }
+    
+  return result;
+}
+
+int Parser::parseInt2() throw(GsmException)
+{
+  string s;
+  int c;
+  int result;
+
+  while (isdigit(c = nextChar())) s += c;
+
+  putBackChar();
+  if (s.length() == 0)
+    throwParseException(_(&quot;expected number&quot;));
+
+  istrstream is(s.c_str());
+  is &gt;&gt; result;
+  return result;
+}
+
+void Parser::throwParseException(string message) throw(GsmException)
+{
+  ostrstream os;
+  if (message.length() == 0)
+    throw GsmException(stringPrintf(_(&quot;unexpected end of string '%s'&quot;),
+                                    _s.c_str()), ParserError);
+  else
+    throw GsmException(message +
+                       stringPrintf(_(&quot; (at position %d of string '%s')&quot;), _i,
+                                    _s.c_str()), ParserError);
+}
+
+Parser::Parser(string s) : _i(0), _s(s), _eos(false)
+{
+}
+
+bool Parser::parseChar(char c, bool allowNoChar) throw(GsmException)
+{
+  if (nextChar() != c)
+    if (allowNoChar)
+    {
+      putBackChar();
+      return false;
+    }
+    else
+      throwParseException(stringPrintf(_(&quot;expected '%c'&quot;), c));
+  return true;
+}
+
+vector&lt;string&gt; Parser::parseStringList(bool allowNoList)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  vector&lt;string&gt; result;
+  if (checkEmptyParameter(allowNoList)) return result;
+
+  parseChar('(');
+  if (nextChar() != ')')
+  {
+    putBackChar();
+    while (1)
+    {
+      result.push_back(parseString());
+      int c = nextChar();
+      if (c == ')')
+      break;
+      if (c == -1)
+        throwParseException();
+      if (c != ',')
+        throwParseException(_(&quot;expected ')' or ','&quot;));
+    }
+  }
+  
+  return result;
+}
+
+vector&lt;bool&gt; Parser::parseIntList(bool allowNoList)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  bool isRange = false;
+  vector&lt;bool&gt; result;
+  int resultCapacity = 0;
+  unsigned int saveI = _i;
+
+  if (checkEmptyParameter(allowNoList)) return result;
+
+  // check for the case of a integer list consisting of only one parameter
+  // some TAs omit the parentheses in this case
+  if (isdigit(nextChar()))
+  {
+    putBackChar();
+    int num = parseInt();
+    result.resize(num + 1, false);
+    result[num] = true;
+    return result;
+  }
+  putBackChar();
+
+  // run in two passes
+  // pass 0: find capacity needed for result
+  // pass 1: resize result and fill it in
+  for (int pass = 0; pass &lt; 2; ++pass)
+  {
+    if (pass == 1)
+    {
+      _i = saveI;
+      result.resize(resultCapacity + 1, false);
+    }
+
+    parseChar('(');
+    if (nextChar() != ')')
+    {
+      putBackChar();
+      int lastInt = -1;
+      while (1)
+      {
+        int thisInt = parseInt();
+
+        if (isRange)
+        {
+          assert(lastInt != -1);
+          if (lastInt &lt;= thisInt)
+            for (int i = lastInt; i &lt; thisInt; ++i)
+            {
+              if (i &gt; resultCapacity)
+                resultCapacity = i;
+              if (pass == 1)
+                result[i] = true;
+            }
+          else
+            for (int i = thisInt; i &lt; lastInt; ++i)
+            {
+              if (i &gt; resultCapacity)
+                resultCapacity = i;
+              if (pass == 1)
+                result[i] = true;
+            }
+          isRange = false;
+        }
+
+        if (thisInt &gt; resultCapacity)
+          resultCapacity = thisInt;
+        if (pass == 1)
+          result[thisInt] = true;
+        lastInt = thisInt;
+      
+        int c = nextChar();
+        if (c == ')')
+          break;
+
+        if (c == -1)
+          throwParseException();
+
+        if (c != ',' &amp;&amp; c != '-')
+          throwParseException(_(&quot;expected ')', ',' or '-'&quot;));
+
+        if (c == ',')
+          isRange = false;
+        else                      // is '-'
+          if (isRange)
+            throwParseException(_(&quot;range of the form a-b-c not allowed&quot;));
+          else
+            isRange = true;
+      }
+    }
+  }
+  if (isRange)
+    throwParseException(_(&quot;range of the form a- no allowed&quot;));
+  return result;
+}
+
+vector&lt;ParameterRange&gt; Parser::parseParameterRangeList(bool allowNoList)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  vector&lt;ParameterRange&gt; result;
+  if (checkEmptyParameter(allowNoList)) return result;
+
+  result.push_back(parseParameterRange());
+  while (parseComma(true))
+  {
+    result.push_back(parseParameterRange());
+  }
+  
+  return result;
+}
+
+ParameterRange Parser::parseParameterRange(bool allowNoParameterRange)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  ParameterRange result;
+  if (checkEmptyParameter(allowNoParameterRange)) return result;
+
+  parseChar('(');
+  result._parameter = parseString();
+  parseComma();
+  result._range = parseRange(false, true);
+  parseChar(')');
+
+  return result;
+}
+
+IntRange Parser::parseRange(bool allowNoRange, bool allowNonRange)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  IntRange result;
+  if (checkEmptyParameter(allowNoRange)) return result;
+
+  parseChar('(');
+  result._low = parseInt();
+  // allow non-ranges is allowNonRange == true
+  if (parseChar('-', allowNonRange))
+    result._high = parseInt();
+  parseChar(')');
+
+  return result;
+}
+
+int Parser::parseInt(bool allowNoInt) throw(GsmException)
+{
+  // handle case of empty parameter
+  int result = NOT_SET;
+  if (checkEmptyParameter(allowNoInt)) return result;
+
+  result = parseInt2();
+
+  return result;
+}
+
+string Parser::parseString(bool allowNoString,
+                           bool stringWithQuotationMarks)
+  throw(GsmException)
+{
+  // handle case of empty parameter
+  string result;
+  if (checkEmptyParameter(allowNoString)) return result;
+
+  result = parseString2(stringWithQuotationMarks);
+
+  return result;
+}
+
+bool Parser::parseComma(bool allowNoComma) throw(GsmException)
+{
+  if (nextChar() != ',')
+    if(allowNoComma)
+    {
+      putBackChar();
+      return false;
+    }
+    else
+      throwParseException(_(&quot;expected comma&quot;));
+  return true;
+}
+
+string Parser::parseEol() throw(GsmException)
+{
+  string result;
+  int c;
+  while ((c = nextChar()) != -1) result += c;
+  return result;
+}
+
+void Parser::checkEol() throw(GsmException)
+{
+  if (nextChar() != -1)
+  {
+    putBackChar();
+    throwParseException(_(&quot;expected end of line&quot;));
+  }
+}
+
+string Parser::getEol()
+{
+  string result;
+  int c;
+  unsigned int saveI = _i;
+  bool saveEos = _eos;
+  while ((c = nextChar()) != -1) result += c;
+  _i = saveI;
+  _eos = saveEos;
+  return result;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_parserh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_parser.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,125 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_parser.h
+// *
+// * Purpose: Parser to parse MA/TA result strings
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 13.5.1999
+// *************************************************************************
+
+#ifndef GSM_PARSER_H
+#define GSM_PARSER_H
+
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;string&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  class Parser : public RefBase
+  {
+  private:
+    unsigned int _i;            // index into _s, next character
+    string _s;                  // string to parse
+    bool _eos;                  // true if end-of-string reached in nextChar()
+
+    // return next character or -1 if end of string
+    int nextChar(bool skipWhiteSpace = true);
+    
+    // &quot;puts back&quot; a character
+    void putBackChar() {if (! _eos) --_i;}
+
+    // check for empty parameter (ie. &quot;,&quot; or end of string)
+    // skips white space
+    // returns true if no parameter
+    // or throw an GsmException if allowNoParameter == false
+    bool checkEmptyParameter(bool allowNoParameter) throw(GsmException);
+    
+    // parse a string (like &quot;string&quot;)
+    // throw an exception if not well-formed
+    string parseString2(bool stringWithQuotationMarks) throw(GsmException);
+
+    // parse a int (like 1234)
+    // throw an exception if not well-formed
+    int parseInt2() throw(GsmException);
+
+    // throw a parser exception
+    void throwParseException(string message = &quot;&quot;) throw(GsmException);
+
+  public:
+    Parser(string s);
+    
+    // the following functions skip white space
+    // parse a character, if absent throw a GsmException
+    // return false if allowNoChar == true and character not encountered
+    bool parseChar(char c, bool allowNoChar = false) throw(GsmException);
+
+    // parse a list of the form &quot;(&quot;ABC&quot;, DEF&quot;)&quot;
+    // the list can be empty (ie. == &quot;&quot; ) if allowNoList == true
+    vector&lt;string&gt; parseStringList(bool allowNoList = false)
+      throw(GsmException);
+
+    // parse a list of the form &quot;(12, 14)&quot; or &quot;(1-4, 10)&quot;
+    // the result is returned as a bit vector where for each integer
+    // in the list and/or range(s) a bit is set
+    // the list can be empty (ie. == &quot;&quot;) if allowNoList == true
+    vector&lt;bool&gt; parseIntList(bool allowNoList = false)
+      throw(GsmException);
+
+    // parse a list of parameter ranges (see below)
+    // the list can be empty (ie. == &quot;&quot; ) if allowNoList == true
+    vector&lt;ParameterRange&gt; parseParameterRangeList(bool allowNoList = false)
+      throw(GsmException);
+
+    // parse a string plus its valid integer range of the
+    // form &quot;(&quot;string&quot;,(1-125))&quot;
+    // the parameter range may be absent if allowNoParameterRange == true
+    ParameterRange parseParameterRange(bool allowNoParameterRange = false)
+      throw(GsmException);
+
+    // parse an integer range of the form &quot;(1-125)&quot;
+    // the range may be absent if allowNoRange == true
+    // then IntRange::_high and _low are set to NOT_SET
+    // the range may be short if allowNonRange == true
+    // then IntRange::_high is set to NOT_SET
+    IntRange parseRange(bool allowNoRange = false, bool allowNonRange = false)
+      throw(GsmException);
+    
+    // parse an integer of the form &quot;1234&quot;
+    // allow absent int if allowNoInt == true
+    // then it returns NOT_SET
+    int parseInt(bool allowNoInt = false) throw(GsmException);
+
+    // parse a string of the form &quot;&quot;string&quot;&quot;
+    // allow absent string if allowNoString == true
+    // then it returns &quot;&quot;
+    // if stringWithQuotationMarks == true the string may contain &quot;&quot;&quot;
+    // the string is then parsed till the end of the line
+    string parseString(bool allowNoString = false,
+                       bool stringWithQuotationMarks = false)
+      throw(GsmException);
+
+    // parse a single &quot;,&quot;
+    // the comma may be absent if allowNoComma == true
+    // returns true if there was a comma
+    bool parseComma(bool allowNoComma = false) throw(GsmException);
+    
+    // parse till end of line, return result without whitespace
+    string parseEol() throw(GsmException);
+
+    // check that end of line is reached
+    void checkEol() throw(GsmException);
+
+    // return string till end of line without whitespace
+    // (does not change internal state)
+    string getEol();
+  };
+};
+
+#endif // GSM_PARSER_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_phonebookcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,585 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_phonebook.cc
+// *
+// * Purpose: Phonebook management functions
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 6.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;strstream&gt;
+#include &lt;iostream&gt;
+#include &lt;assert.h&gt;
+#include &lt;ctype.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// PhonebookEntry members
+
+PhonebookEntry::PhonebookEntry(const PhonebookEntryBase &amp;e)
+  throw(GsmException) : _cached(true), _myPhonebook(NULL)
+{
+  set(e.telephone(), e.text(), e.index(), e.useIndex());
+}
+
+void PhonebookEntry::set(string telephone, string text, int index,
+                         bool useIndex)
+  throw(GsmException)
+{
+  checkTextAndTelephone(text, telephone);
+
+  if (_myPhonebook != NULL)
+  {
+    if (text.length() &gt; _myPhonebook-&gt;getMaxTextLen())
+      throw GsmException(
+        stringPrintf(_(&quot;length of text '%s' exceeds maximum text &quot;
+                       &quot;length (%d characters) of phonebook '%s'&quot;),
+                     text.c_str(), _myPhonebook-&gt;getMaxTextLen(),
+                     _myPhonebook-&gt;name().c_str()),
+        ParameterError);
+    
+    if (telephone.length() &gt; _myPhonebook-&gt;getMaxTelephoneLen())
+      throw GsmException(
+        stringPrintf(_(&quot;length of telephone number '%s' &quot; 
+                       &quot;exceeds maximum telephone number &quot;
+                       &quot;length (%d characters) of phonebook '%s'&quot;),
+                     telephone.c_str(), _myPhonebook-&gt;getMaxTelephoneLen(),
+                     _myPhonebook-&gt;name().c_str()),
+        ParameterError);
+
+    _myPhonebook-&gt;writeEntry(_index, telephone, text);
+  }
+  else
+    _index = index;
+
+  _useIndex = useIndex;
+  _cached = true;
+  _telephone = telephone;
+  _text = text;
+  _changed = true;
+}
+
+string PhonebookEntry::text() const throw(GsmException)
+{
+  if (! cached())
+  {
+    assert(_myPhonebook != NULL);
+    // these operations are at least &quot;logically const&quot;
+    PhonebookEntry *thisEntry = const_cast&lt;PhonebookEntry*&gt;(this);
+    _myPhonebook-&gt;readEntry(_index, thisEntry-&gt;_telephone, thisEntry-&gt;_text);
+    thisEntry-&gt;_cached = true;
+  }
+  return _text;
+}
+
+string PhonebookEntry::telephone() const throw(GsmException)
+{
+  if (! cached())
+  {
+    assert(_myPhonebook != NULL);
+    // these operations are at least &quot;logically const&quot;
+    PhonebookEntry *thisEntry = const_cast&lt;PhonebookEntry*&gt;(this);
+    _myPhonebook-&gt;readEntry(_index, thisEntry-&gt;_telephone, thisEntry-&gt;_text);
+    thisEntry-&gt;_cached = true;
+  }
+  return _telephone;
+}
+
+bool PhonebookEntry::cached() const
+{
+  if (_myPhonebook == NULL)
+    return _cached;
+  else
+    return _cached &amp;&amp; _myPhonebook-&gt;_useCache;
+}
+
+PhonebookEntry::PhonebookEntry(const PhonebookEntry &amp;e) throw(GsmException)
+{
+  set(e._telephone, e._text, e._index, e._useIndex);
+}
+
+PhonebookEntry &amp;PhonebookEntry::operator=(const PhonebookEntry &amp;e)
+  throw(GsmException)
+{
+  set(e._telephone, e._text, e._index, e._useIndex);
+  return *this;
+}
+
+// Phonebook members
+
+int Phonebook::parsePhonebookEntry(string response,
+                                   string &amp;telephone, string &amp;text)
+{
+  // this is a workaround for a bug that occurs with my ME/TA combination
+  // some texts are truncated and don't have a trailing &quot;
+  if (response.length() &gt; 0 &amp;&amp; response[response.length() - 1] != '&quot;')
+    response += '&quot;';
+  Parser p(response);
+
+  int index = p.parseInt();
+  p.parseComma();
+
+  // handle case of empty entry
+  if (p.getEol().substr(0, 5) == &quot;EMPTY&quot;)
+  {
+    telephone = &quot;&quot;;
+    text = &quot;&quot;;
+    return index;
+  }
+
+  telephone = p.parseString();
+  p.parseComma();
+  unsigned int numberFormat = p.parseInt();
+  if (numberFormat != UnknownNumberFormat &amp;&amp;
+      numberFormat != InternationalNumberFormat)
+    cerr &lt;&lt; &quot;*** GSMLIB WARNING: Unexpected number format when reading from &quot;
+         &lt;&lt; &quot;phonebook: &quot; &lt;&lt; numberFormat &lt;&lt; &quot; ***&quot; &lt;&lt; endl;
+  p.parseComma();
+  text = p.parseString(false, true);
+  if (lowercase(_myMeTa.getCurrentCharSet()) == &quot;gsm&quot;)
+    text = gsmToLatin1(text);
+  if (numberFormat == InternationalNumberFormat)
+  {
+    // skip leading &quot;+&quot; signs that may already exist
+    while (telephone.length() &gt; 0 &amp;&amp; telephone[0] == '+')
+      telephone = telephone.substr(1);
+    telephone = &quot;+&quot; + telephone;
+  }
+
+  return index;
+}
+
+void Phonebook::readEntry(int index, string &amp;telephone, string &amp;text)
+  throw(GsmException)
+{
+  // select phonebook
+  _myMeTa.setPhonebook(_phonebookName);
+
+  // read entry
+  string response = _at-&gt;chat(&quot;+CPBR=&quot; + intToStr(index), &quot;+CPBR:&quot;,
+                              false, // dont't ignore errors
+                              true); // but accept empty responses
+  // (the latter is necessary for some mobile phones that return nothing
+  // if the entry is empty)
+
+  if (response.length() == 0)   // OK phone returned empty response
+  {
+    telephone = text = &quot;&quot;;      // then the entry is empty as well
+  }
+  else
+    parsePhonebookEntry(response, telephone, text);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Reading PB entry &quot; &lt;&lt; index &lt;&lt; &quot; number &quot; &lt;&lt; telephone 
+         &lt;&lt; &quot; text &quot; &lt;&lt; text &lt;&lt; endl;
+#endif
+}
+
+void Phonebook::findEntry(string text, int &amp;index, string &amp;telephone)
+  throw(GsmException)
+{
+  // select phonebook
+  _myMeTa.setPhonebook(_phonebookName);
+
+  // read entry
+  string response = _at-&gt;chat(&quot;+CPBF=\&quot;&quot; + text + &quot;\&quot;&quot;, &quot;+CPBF:&quot;,
+                              false, // dont't ignore errors
+                              true); // but accept empty responses
+  // (the latter is necessary for some mobile phones that return nothing
+  // if the entry is empty)
+
+  if (response.length() == 0)   // OK phone returned empty response
+  {
+    telephone = &quot;&quot;;      // then the entry is empty as well
+    index = 0;
+  }
+  else
+    index=parsePhonebookEntry(response, telephone, text);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Finding PB entry &quot; &lt;&lt; text &lt;&lt; &quot; number &quot; &lt;&lt; telephone 
+         &lt;&lt; &quot; index &quot; &lt;&lt; index &lt;&lt; endl;
+#endif
+}
+
+void Phonebook::writeEntry(int index, string telephone, string text)
+  throw(GsmException)
+{
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Writing PB entry #&quot; &lt;&lt; index &lt;&lt; &quot; number '&quot; &lt;&lt; telephone
+         &lt;&lt; &quot;' text '&quot; &lt;&lt; text &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+#endif
+  // select phonebook
+  _myMeTa.setPhonebook(_phonebookName);
+
+  // write entry
+  string s;
+  if (telephone == &quot;&quot; &amp;&amp; text == &quot;&quot;)
+  {
+    ostrstream os;
+    os &lt;&lt; &quot;+CPBW=&quot; &lt;&lt; index;
+    os &lt;&lt; ends;
+    char *ss = os.str();
+    s = string(ss);
+    delete[] ss;
+  }
+  else
+  {
+    int type;
+    if (telephone.find('+') == string::npos)
+      type = UnknownNumberFormat;
+    else
+      type = InternationalNumberFormat;
+    string gsmText = text;
+    if (lowercase(_myMeTa.getCurrentCharSet()) == &quot;gsm&quot;)
+      gsmText = latin1ToGsm(gsmText);
+    ostrstream os;
+    os &lt;&lt; &quot;+CPBW=&quot; &lt;&lt; index &lt;&lt; &quot;,\&quot;&quot; &lt;&lt; telephone &lt;&lt; &quot;\&quot;,&quot; &lt;&lt; type
+       &lt;&lt; &quot;,\&quot;&quot;;
+    os &lt;&lt; ends;
+    char *ss = os.str();
+    s = string(ss);
+    delete[] ss;
+    // this cannot be added with ostrstream because the gsmText can
+    // contain a zero (GSM default alphabet for '@')
+    s +=  gsmText + &quot;\&quot;&quot;;
+  }
+  _at-&gt;chat(s);
+}
+
+Phonebook::iterator Phonebook::insertFirstEmpty(string telephone, string text)
+  throw(GsmException)
+{
+  for (int i = 0; i &lt; _maxSize; i++)
+    if (_phonebook[i].empty())
+    {
+      _phonebook[i].set(telephone, text);
+      adjustSize(1);
+      return begin() + i;
+    }
+  throw GsmException(_(&quot;phonebook full&quot;), OtherError);
+}
+
+Phonebook::iterator Phonebook::insert(const string telephone,
+                                      const string text,
+                                      const int index)
+{
+  for (int i = 0; i &lt; _maxSize; i++)
+    if (_phonebook[i].index() == index)
+      if (_phonebook[i].empty())
+      {
+        _phonebook[i].set(telephone, text);
+        adjustSize(1);
+        return begin() + i;
+      }
+      else
+        throw GsmException(_(&quot;attempt to overwrite phonebook entry&quot;),
+                           OtherError);
+  return end();
+}
+
+Phonebook::Phonebook(string phonebookName, Ref&lt;GsmAt&gt; at, MeTa &amp;myMeTa,
+                     bool preload) throw(GsmException) :
+  _phonebookName(phonebookName), _at(at), _myMeTa(myMeTa), _useCache(true)
+{
+  // select phonebook
+  _myMeTa.setPhonebook(_phonebookName);
+
+  // query size and maximum capacity of phonebook
+  _size = -1;                   // -1 means not known yet
+  _maxSize = -1;
+  Parser q(_at-&gt;chat(&quot;+CPBS?&quot;, &quot;+CPBS:&quot;));
+  string dummy = q.parseString();
+  if (q.parseComma(true))       // this means that
+  {                             // used and total result is supported by ME
+    _size = q.parseInt();
+    q.parseComma();
+    _maxSize = q.parseInt();
+  }
+  
+  // get basic phonebook info from ME
+  Parser p(_at-&gt;chat(&quot;+CPBR=?&quot;, &quot;+CPBR:&quot;));
+
+  // get index of actually available entries in the phonebook
+  vector&lt;bool&gt; availablePositions = p.parseIntList();
+  p.parseComma();
+  _maxNumberLength = p.parseInt();
+  p.parseComma();
+  _maxTextLength = p.parseInt();
+  
+  // find out capacity of phonebook in ME
+  // Note: The phonebook in the ME may be sparse, eg. the range of
+  // allowed index numbers may be something like (3-4, 20-100, 120).
+  // The standard allows this, even though it is unlikely to be 
+  // implemented like that by anyone.
+  // In memory we store only phonebook entries that may actually be
+  // used, ie. the phonebook in memory is not sparse.
+  // Each entry has a member _index that corresponds to the index in the ME.
+  if (_maxSize == -1)
+  {
+    _maxSize = 0;
+    for (vector&lt;bool&gt;::iterator i = availablePositions.begin();
+         i != availablePositions.end(); ++i)
+      if (*i) ++_maxSize;
+  }
+
+  // for use with preload below
+  int *meToPhonebookIndexMap =
+    (int*)alloca(sizeof(int) * (availablePositions.size() + 1));
+
+  // initialize phone book entries
+  if (_maxSize == 0)
+    _phonebook = NULL;
+  else
+    _phonebook = new PhonebookEntry[_maxSize];
+  int nextAvailableIndex = 0;
+  int i;
+  for (i = 0; i &lt; _maxSize; i++)
+  {
+    while (! availablePositions[nextAvailableIndex])
+      nextAvailableIndex++;
+    _phonebook[i]._index = nextAvailableIndex;
+    _phonebook[i]._cached = false;
+    _phonebook[i]._myPhonebook = this;
+    meToPhonebookIndexMap[nextAvailableIndex++] = i;
+  }
+
+  // find out first index number of phonebook
+  int firstIndex = -1;
+  for (i = 0; i &lt; _maxSize; i++)
+    if (availablePositions[i])
+    {
+      firstIndex = i;
+      break;
+    }
+
+  // preload phonebook
+  // Note: this contains a workaround for the bug that
+  // some MEs can not return the entire phonebook with one AT command
+  // To detect this condition, _size must be known
+  // also, this code only handles non-sparse phonebooks
+  if (preload &amp;&amp; _size != -1 &amp;&amp; 
+      (int)availablePositions.size() == _maxSize + firstIndex)
+  {
+    int entriesRead = 0;
+    int startIndex = firstIndex;
+
+    while (entriesRead &lt; _size)
+    {
+      reportProgress(0, _maxSize); // chatv also calls reportProgress()
+      vector&lt;string&gt; responses =
+        _at-&gt;chatv(&quot;+CPBR=&quot; + intToStr(startIndex) +
+                   &quot;,&quot; + intToStr(_maxSize + firstIndex - 1),
+                   &quot;+CPBR:&quot;, true);
+
+      // this means that we have read nothing even though not all
+      // entries have been retrieved (entriesRead &lt; _size)
+      // this could be due to a malfunction of the ME...
+      // anyway, missing entries can be read later by readEntry()
+      if (responses.size() == 0)
+      {
+#ifndef NDEBUG
+        if (debugLevel() &gt;= 1)
+          cerr &lt;&lt; &quot;*** error when preloading phonebook: &quot;
+            &quot;not all entries returned&quot; &lt;&lt; endl;
+#endif
+        break;
+      }
+
+      for (vector&lt;string&gt;::iterator i = responses.begin();
+           i != responses.end(); ++i)
+      {
+        string telephone, text;
+        int meIndex = parsePhonebookEntry(*i, telephone, text);
+        _phonebook[meToPhonebookIndexMap[meIndex]]._cached = true;
+        _phonebook[meToPhonebookIndexMap[meIndex]]._telephone = telephone;
+        _phonebook[meToPhonebookIndexMap[meIndex]]._text = text;
+        assert(_phonebook[meToPhonebookIndexMap[meIndex]]._index == meIndex);
+
+        ++entriesRead;
+        startIndex = meIndex + 1;
+#ifndef NDEBUG
+        if (debugLevel() &gt;= 1)
+          cerr &lt;&lt; &quot;*** Preloading PB entry &quot; &lt;&lt; meIndex
+               &lt;&lt; &quot; number &quot; &lt;&lt; telephone 
+               &lt;&lt; &quot; text &quot; &lt;&lt; text &lt;&lt; endl;
+#endif
+      }
+    }
+  }
+}
+
+Phonebook::iterator Phonebook::begin()
+{
+  return &amp;_phonebook[0];
+}
+
+Phonebook::const_iterator Phonebook::begin() const
+{
+  return &amp;_phonebook[0];
+}
+
+Phonebook::iterator Phonebook::end()
+{
+  return &amp;_phonebook[_maxSize];
+}
+
+Phonebook::const_iterator Phonebook::end() const
+{
+  return &amp;_phonebook[_maxSize];
+}
+
+Phonebook::reference Phonebook::operator[](int n)
+{
+  return _phonebook[n];
+}
+
+Phonebook::const_reference Phonebook::operator[](int n) const
+{
+  return _phonebook[n];
+}
+
+Phonebook::reference Phonebook::front()
+{
+  return _phonebook[0];
+}
+
+Phonebook::const_reference Phonebook::front() const
+{
+  return _phonebook[0];
+}
+
+Phonebook::reference Phonebook::back()
+{
+  return _phonebook[_maxSize - 1];
+}
+
+Phonebook::const_reference Phonebook::back() const
+{
+  return _phonebook[_maxSize - 1];
+}
+
+int Phonebook::size() const throw(GsmException)
+{
+  if (_size != -1)
+    return _size;
+  else
+  {
+    int result = 0;
+    for (int i = 0; i &lt; _maxSize; i++)
+      if (! _phonebook[i].empty())
+        result++;
+    Phonebook *thisPhonebook = const_cast&lt;Phonebook*&gt;(this);
+    thisPhonebook-&gt;_size = result;
+    return result;
+  }
+}
+
+Phonebook::iterator Phonebook::insert(iterator position,
+                                      const PhonebookEntry&amp; x)
+  throw(GsmException)
+{
+  if (x.useIndex() &amp;&amp; x.index() != -1)
+    return insert(x.telephone(), x.text(), x.index());
+  else
+    return insertFirstEmpty(x.telephone(), x.text());
+}
+
+void Phonebook::insert (iterator pos, int n, const PhonebookEntry&amp; x)
+  throw(GsmException)
+{
+  for (int i = 0; i &lt; n; i++)
+    if (x.useIndex() &amp;&amp; x.index() != -1)
+      insert(x.telephone(), x.text(), x.index());
+    else
+      insertFirstEmpty(x.telephone(), x.text());
+}
+
+void Phonebook::insert (iterator pos, long n, const PhonebookEntry&amp; x)
+  throw(GsmException)
+{
+  for (long i = 0; i &lt; n; i++)
+    if (x.useIndex() &amp;&amp; x.index() != -1)
+      insert(x.telephone(), x.text(), x.index());
+    else
+      insertFirstEmpty(x.telephone(), x.text());
+}
+
+Phonebook::iterator Phonebook::erase(iterator position)
+  throw(GsmException)
+{
+  if (! position-&gt;empty())
+  {
+    position-&gt;set(&quot;&quot;, &quot;&quot;);
+    adjustSize(-1);
+  }
+  return position + 1;
+}
+
+Phonebook::iterator Phonebook::erase(iterator first, iterator last)
+  throw(GsmException)
+{
+  iterator i;
+  for (i = first; i != last; ++i)
+    erase(i);
+  return i;
+}
+
+void Phonebook::clear() throw(GsmException)
+{
+  for (iterator i = begin(); i != end(); ++i)
+    erase(i);
+}
+
+Phonebook::iterator Phonebook::find(string text) throw(GsmException)
+{
+  int index;
+  string telephone;
+
+  int i;
+  for (i = 0; i &lt; _maxSize; i++)
+    if (_phonebook[i].text() == text)
+      return begin() + i;
+
+  findEntry(text, index, telephone);
+  
+  for (i = 0; i &lt; _maxSize; i++)
+    if (_phonebook[i].index() == index)
+      if (_phonebook[i].cached())
+      {
+        // if entry was already (= cached) and is now different
+        // the SIM card or it's contents were changed
+        if (_phonebook[i]._telephone != telephone ||
+            _phonebook[i]._text != text)
+          throw GsmException(_(&quot;SIM card changed while accessing phonebook&quot;),
+                             OtherError);
+      }
+      else
+      {
+        _phonebook[i]._cached = true;
+        _phonebook[i]._telephone = telephone;
+        _phonebook[i]._text = text;
+        return begin() + i;
+      }
+  return end();
+}
+
+Phonebook::~Phonebook()
+{
+  delete []_phonebook;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_phonebookh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_phonebook.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,195 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_phonebook.h
+// *
+// * Purpose: Phonebook management functions
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.5.1999
+// *************************************************************************
+
+#ifndef GSM_PHONEBOOK_H
+#define GSM_PHONEBOOK_H
+
+#include &lt;gsmlib/gsm_sorted_phonebook_base.h&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;string&gt;
+#include &lt;iterator&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // forward declarations
+  class Phonebook;
+
+  // a single entry in the phonebook that corresponds to an ME entry
+
+  class PhonebookEntry : public PhonebookEntryBase
+  {
+  private:
+    // this constructor is only used by Phonebook
+    PhonebookEntry() {}
+    bool _cached;               // true, if this entry corresponds to info
+                                // in the ME
+    Phonebook *_myPhonebook;
+
+  public:
+    PhonebookEntry(string telephone, string text) :
+      PhonebookEntryBase(telephone, text),
+      _cached(true), _myPhonebook(NULL) {}
+    PhonebookEntry(const PhonebookEntryBase &amp;e) throw(GsmException);
+
+    // accessor functions, inherited from PhonebookEntryBase
+    // set() does not use the index argument
+    void set(string telephone, string text, int index = -1,
+             bool useIndex = false)
+      throw(GsmException);
+    string text() const throw(GsmException);
+    string telephone() const throw(GsmException);
+
+    // return true if entry is cached (and caching is enabled)
+    bool cached() const;
+
+    PhonebookEntry(const PhonebookEntry &amp;e) throw(GsmException);
+    PhonebookEntry &amp;operator=(const PhonebookEntry &amp;e) throw(GsmException);
+
+    virtual ~PhonebookEntry() {}
+
+    friend class Phonebook;
+  };
+
+  // this class corresponds to a phonebook in the ME
+  // all functions directly update storage in the ME
+  // if the ME is exchanged, the storage may become corrupted because
+  // of internal buffering in the Phonebook class
+
+  class Phonebook : public RefBase, public NoCopy
+  {
+  public:
+    // iterator defs
+    typedef PhonebookEntry *iterator;
+    typedef const PhonebookEntry *const_iterator;
+    typedef PhonebookEntry &amp;reference;
+    typedef const PhonebookEntry &amp;const_reference;
+
+  private:
+    PhonebookEntry *_phonebook; // array of size _maxSize of entries
+    int _maxSize;               // maximum size of pb (-1 == not known yet)
+    int _size;                  // current size of pb (-1 == not known yet)
+    string _phonebookName;      // name of the phonebook, 2-byte like &quot;ME&quot;
+    unsigned int _maxNumberLength; // maximum length of telephone number
+    unsigned int _maxTextLength; // maximum length of descriptive text
+    Ref&lt;GsmAt&gt; _at;             // my GsmAt class
+    vector&lt;int&gt; _positionMap;   // maps in-memory index to ME index
+    MeTa &amp;_myMeTa;              // the MeTa object that created this Phonebook
+    bool _useCache;             // true if entries should be cached
+
+    // helper function, parse phonebook response returned by ME/TA
+    // returns index of entry
+    int parsePhonebookEntry(string response, string &amp;telephone, string &amp;text);
+
+    // internal access functions
+    // read/write/find entry from/to ME
+    void readEntry(int index, string &amp;telephone, string &amp;text)
+      throw(GsmException);
+    void writeEntry(int index, string telephone, string text)
+      throw(GsmException);
+    void findEntry(string text, int &amp;index, string &amp;telephone)
+      throw(GsmException);
+
+    // adjust size only if it was set once
+    void adjustSize(int sizeAdjust)
+      {
+        if (_size != -1) _size += sizeAdjust;
+      }
+
+    // insert into first empty position and return position where inserted
+    iterator insertFirstEmpty(const string telephone, const string text)
+      throw(GsmException);
+
+    // insert into specified index position
+    iterator insert(const string telephone, const string text,
+                    const int index);
+
+    // used my class MeTa
+    // load phonebook name phonebookName, use AT handler at
+    // preload entire phonebook if preload == true
+    Phonebook(string phonebookName, Ref&lt;GsmAt&gt; at,
+              MeTa &amp;myMeTa, bool preload = false) throw(GsmException);
+
+  public:
+    // set cache mode on or off
+    void setCaching(bool useCache) {_useCache = useCache;}
+
+    // return name of this phonebook (2-character string)
+    string name() const {return _phonebookName;}
+
+    // return maximum telephone number length
+    unsigned int getMaxTelephoneLen() const {return _maxNumberLength;}
+
+    // return maximum entry description length
+    unsigned int getMaxTextLen() const { return _maxTextLength;}
+
+    // phonebook traversal commands
+    // these are suitable to use stdc++ lib algorithms and iterators
+    // ME have fixed storage space implemented as memory slots
+    // that may either be empty or used
+    
+    // traversal commands
+    iterator begin();
+    const_iterator begin() const;
+    iterator end();
+    const_iterator end() const;
+    reference front();
+    const_reference front() const;
+    reference back();
+    const_reference back() const;
+    reference operator[](int n);
+    const_reference operator[](int n) const;
+
+    // the size macros return the number of used entries
+    int size() const throw(GsmException);
+    int max_size() const {return _maxSize;}
+    int capacity() const {return _maxSize;}
+    bool empty() const throw(GsmException) {return size() == 0;}
+
+    // insert iterators insert into the first empty cell regardless of position
+    // - existing iterators are not invalidated after an insert operation
+    // - return position where it was actually inserted (may be != position)
+    // - insert only writes to available positions
+    // - throw an exception if size() == max_size() (ie. not empty slots)
+    iterator insert(iterator position, const PhonebookEntry&amp; x)
+      throw(GsmException);
+
+    // insert n times, same procedure as above
+    void insert(iterator pos, int n, const PhonebookEntry&amp; x)
+      throw(GsmException);
+    void insert(iterator pos, long n, const PhonebookEntry&amp; x)
+      throw(GsmException);
+
+    // erase operators set used slots to &quot;empty&quot;
+    iterator erase(iterator position) throw(GsmException);
+    iterator erase(iterator first, iterator last) throw(GsmException);
+    void clear() throw(GsmException);
+
+    // finds an entry given the text
+    iterator find(string text) throw(GsmException);
+    
+    // destructor
+    virtual ~Phonebook();
+
+    friend class PhonebookEntry;
+    friend class MeTa;
+  };
+
+  // useful phonebook types
+  typedef Ref&lt;Phonebook&gt; PhonebookRef;
+  typedef vector&lt;PhonebookRef&gt; PhonebookVector;
+};
+
+#endif // GSM_PHONEBOOK_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_porth"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_port.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_port.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_port.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,58 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_port.h
+// *
+// * Purpose: Abstract port definition
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.5.1999
+// *************************************************************************
+
+#ifndef GSM_PORT_H
+#define GSM_PORT_H
+
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;string&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // TA defaults
+  const int TIMEOUT_SECS = 60;
+  const char DEFAULT_INIT_STRING[] = &quot;E0&quot;;
+  const int DEFAULT_BAUD_RATE = 38400;
+
+  class Port : public RefBase
+  {
+  public:
+    // read line from port(including eol characters)
+    virtual string getLine() throw(GsmException) =0;
+    
+    // write line to port
+    virtual void putLine(string line,
+                         bool carriageReturn = true) throw(GsmException) =0;
+
+    // wait for new data to become available, return after timeout
+    // if timeout == 0, wait forever
+    // return true if data available
+    virtual bool wait(GsmTime timeout) throw(GsmException) =0;
+
+    // put back one byte that can be read by a subsequent call to readByte()
+    virtual void putBack(unsigned char c) =0;
+
+    // read a single byte, return -1 if error or file closed
+    virtual int readByte() throw(GsmException) =0;
+
+    // set timeout for the readByte(), getLine(), and putLine() functions
+    // (globally for ALL ports)
+    virtual void setTimeOut(unsigned int timeout) =0;
+
+    virtual ~Port() {}
+  };
+};
+
+#endif // GSM_PORT_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_smscc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,863 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms.cc
+// *
+// * Purpose: SMS functions
+// *          (ETSI GSM 07.05)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 16.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;gsmlib/gsm_sms.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;strstream&gt;
+#include &lt;string&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// local constants
+
+static const string dashes =
+&quot;---------------------------------------------------------------------------&quot;;
+
+// SMSMessage members
+
+Ref&lt;SMSMessage&gt; SMSMessage::decode(string pdu,
+                                   bool SCtoMEdirection,
+                                   GsmAt *at) throw(GsmException)
+{
+  Ref&lt;SMSMessage&gt; result;
+  SMSDecoder d(pdu);
+  d.getAddress(true);
+  MessageType messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  if (SCtoMEdirection)
+    // TPDUs from SC to ME
+    switch (messageTypeIndicator)
+    {
+    case SMS_DELIVER:
+      result = new SMSDeliverMessage(pdu);
+      break;
+
+    case SMS_STATUS_REPORT:
+      result = new SMSStatusReportMessage(pdu);
+      break;
+
+    case SMS_SUBMIT_REPORT:
+      // observed with Motorola Timeport 260, the SCtoMEdirection can
+      // be wrong in this case
+      if (at != NULL &amp;&amp; at-&gt;getMeTa().getCapabilities()._wrongSMSStatusCode)
+        result = new SMSSubmitMessage(pdu);
+      else
+        result = new SMSSubmitReportMessage(pdu);
+      break;
+
+    default:
+      throw GsmException(_(&quot;unhandled SMS TPDU type&quot;), OtherError);
+    }
+  else
+    // TPDUs from ME to SC
+    switch (messageTypeIndicator)
+    {
+    case SMS_SUBMIT:
+      result = new SMSSubmitMessage(pdu);
+      break;
+
+    case SMS_DELIVER_REPORT:
+      result = new SMSDeliverReportMessage(pdu);
+      break;
+
+    case SMS_COMMAND:
+      result = new SMSCommandMessage(pdu);
+      break;
+
+    default:
+      throw GsmException(_(&quot;unhandled SMS TPDU type&quot;), OtherError);
+    }
+  result-&gt;_at = at;
+  return result;
+}
+
+Ref&lt;SMSMessage&gt; SMSMessage::decode(istream&amp; s) throw(gsmlib::GsmException)
+{
+  string pdu;
+  unsigned char ScToMe; 
+        
+  s &gt;&gt; ScToMe;
+  s &gt;&gt; pdu;
+
+  return decode(pdu,ScToMe=='S');
+}
+
+unsigned char SMSMessage::send(Ref&lt;SMSMessage&gt; &amp;ackPdu)
+  throw(GsmException)
+{
+  if (_messageTypeIndicator != SMS_SUBMIT &amp;&amp;
+      _messageTypeIndicator != SMS_COMMAND)
+    throw GsmException(_(&quot;can only send SMS-SUBMIT and SMS-COMMAND TPDUs&quot;),
+                       ParameterError);
+
+  if (_at.isnull())
+    throw GsmException(_(&quot;no device given for sending SMS&quot;), ParameterError);
+
+  string pdu = encode();
+  Parser p(_at-&gt;sendPdu(&quot;+CMGS=&quot; +
+                        intToStr(pdu.length() / 2 - getSCAddressLen()),
+                        &quot;+CMGS:&quot;, pdu));
+  unsigned char messageReference = p.parseInt();
+
+  if (p.parseComma(true))
+  {
+    string pdu = p.parseEol();
+
+    // add missing service centre address if required by ME
+    if (! _at-&gt;getMeTa().getCapabilities()._hasSMSSCAprefix)
+      pdu = &quot;00&quot; + pdu;
+
+    ackPdu = SMSMessage::decode(pdu);
+  }
+  else
+    ackPdu = SMSMessageRef();
+
+  return messageReference;
+}
+
+unsigned char SMSMessage::send() throw(GsmException)
+{
+  SMSMessageRef mref;
+  return send(mref);
+}
+
+unsigned int SMSMessage::getSCAddressLen()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  return e.getLength();
+}
+
+unsigned char SMSMessage::userDataLength() const
+{
+  unsigned int udhl = _userDataHeader.length();
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+    return _userData.length() + (udhl ? ((1 + udhl) * 8 + 6) / 7 : 0);
+  else
+    return _userData.length() + (udhl ? (1 + udhl) : 0);
+}
+
+ostream&amp; SMSMessage::operator&lt;&lt;(ostream&amp; s)
+{
+  unsigned char ScToMe;
+        
+  if (dynamic_cast&lt;SMSDeliverMessage*&gt;(this) || 
+      dynamic_cast&lt;SMSStatusReportMessage*&gt;(this) || 
+      dynamic_cast&lt;SMSSubmitReportMessage*&gt;(this))
+  {
+    ScToMe = 'S';
+  }
+  else if (dynamic_cast&lt;SMSSubmitMessage*&gt;(this) || 
+           dynamic_cast&lt;SMSCommandMessage*&gt;(this) || 
+           dynamic_cast&lt;SMSDeliverReportMessage*&gt;(this))
+  {
+    ScToMe = 'M';
+  }
+  else
+  {
+    throw GsmException(_(&quot;unhandled SMS TPDU type&quot;), OtherError);
+  }
+
+  s &lt;&lt; ScToMe;
+  return s &lt;&lt; encode();
+}
+
+// SMSMessage::SMSMessage(SMSMessage &amp;m)
+// {
+//   _at = m._at;
+  
+// }
+
+// SMSMessage &amp;SMSMessage::operator=(SMSMessage &amp;m)
+// {
+// }
+
+SMSMessage::~SMSMessage() {}
+
+// SMSDeliverMessage members
+
+void SMSDeliverMessage::init()
+{
+  _messageTypeIndicator = SMS_DELIVER;
+  _moreMessagesToSend = false;
+  _replyPath = false;
+  _statusReportIndication = false;
+  _protocolIdentifier = 0;
+}
+
+SMSDeliverMessage::SMSDeliverMessage()
+{
+  init();
+}
+
+SMSDeliverMessage::SMSDeliverMessage(string pdu) throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_DELIVER);
+  _moreMessagesToSend = d.getBit(); // bit 2
+  d.getBit();                   // bit 3
+  d.getBit();                   // bit 4
+  _statusReportIndication = d.getBit(); // bit 5
+  bool userDataHeaderIndicator = d.getBit(); // bit 6
+  _replyPath = d.getBit();      // bit 7
+  _originatingAddress = d.getAddress();
+  _protocolIdentifier = d.getOctet();
+  _dataCodingScheme = d.getOctet();
+  _serviceCentreTimestamp = d.getTimestamp();
+  unsigned char userDataLength = d.getOctet();
+  d.markSeptet();
+
+  if (userDataHeaderIndicator)
+  {
+    _userDataHeader.decode(d);
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+      userDataLength -= ((_userDataHeader.length() + 1) * 8 + 6) / 7;
+    else
+      userDataLength -= ((string)_userDataHeader).length() + 1;
+  }
+  else
+    _userDataHeader = UserDataHeader();
+
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+  {                             // userDataLength is length in septets
+    _userData = d.getString(userDataLength);
+    _userData = gsmToLatin1(_userData);
+  }
+  else
+  {                             // userDataLength is length in octets
+    unsigned char *s = 
+      (unsigned char*)alloca(sizeof(unsigned char) * userDataLength);
+    d.getOctets(s, userDataLength);
+    _userData.assign((char*)s, (unsigned int)userDataLength);
+  }
+}
+
+string SMSDeliverMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.setBit(_moreMessagesToSend); // bit 2
+  e.setBit();                   // bit 3
+  e.setBit();                   // bit 4
+  e.setBit(_statusReportIndication); // bit 5
+  e.setBit(_userDataHeader.length() != 0); // bit 6
+  e.setBit(_replyPath);         // bit 7
+  e.setAddress(_originatingAddress);
+  e.setOctet(_protocolIdentifier);
+  e.setOctet(_dataCodingScheme);
+  e.setTimestamp(_serviceCentreTimestamp);
+  e.setOctet(userDataLength());
+  e.markSeptet();
+  if (_userDataHeader.length()) _userDataHeader.encode(e);
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+    e.setString(latin1ToGsm(_userData));
+  else
+    e.setOctets((unsigned char*)_userData.data(), _userData.length());
+  return e.getHexString();
+}
+
+string SMSDeliverMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-DELIVER&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;More messages to send: &quot;) &lt;&lt; _moreMessagesToSend &lt;&lt; endl
+     &lt;&lt; _(&quot;Reply path: &quot;) &lt;&lt; _replyPath &lt;&lt; endl
+     &lt;&lt; _(&quot;User data header indicator: &quot;)
+     &lt;&lt; (_userDataHeader.length()!=0) &lt;&lt; endl
+     &lt;&lt; _(&quot;Status report indication: &quot;) &lt;&lt; _statusReportIndication &lt;&lt; endl
+     &lt;&lt; _(&quot;Originating address: '&quot;) &lt;&lt; _originatingAddress._number 
+     &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Protocol identifier: 0x&quot;) &lt;&lt; hex
+     &lt;&lt; (unsigned int)_protocolIdentifier &lt;&lt; dec &lt;&lt; endl
+     &lt;&lt; _(&quot;Data coding scheme: &quot;) &lt;&lt; _dataCodingScheme.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;SC timestamp: &quot;) &lt;&lt; _serviceCentreTimestamp.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;User data length: &quot;) &lt;&lt; (int)userDataLength() &lt;&lt; endl
+     &lt;&lt; _(&quot;User data header: 0x&quot;)
+     &lt;&lt; bufToHex((unsigned char*)
+                 ((string)_userDataHeader).data(),
+                 ((string)_userDataHeader).length())
+     &lt;&lt; endl
+     &lt;&lt; _(&quot;User data: '&quot;) &lt;&lt; _userData &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result;
+}
+
+Address SMSDeliverMessage::address() const
+{
+  return _originatingAddress;
+}
+
+Ref&lt;SMSMessage&gt; SMSDeliverMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSDeliverMessage(*this);
+  return result;
+}
+
+// SMSSubmitMessage members
+
+void SMSSubmitMessage::init()
+{
+  // set everything to sensible default values
+  _messageTypeIndicator = SMS_SUBMIT;
+  _validityPeriodFormat = TimePeriod::Relative; 
+  _validityPeriod._format = TimePeriod::Relative;
+  _validityPeriod._relativeTime = 168; // 2 days
+  _statusReportRequest = false;
+  _replyPath = false;
+  _rejectDuplicates = true;
+  _messageReference = 0;
+  _protocolIdentifier = 0;
+}
+
+SMSSubmitMessage::SMSSubmitMessage()
+{
+  init();
+}
+
+SMSSubmitMessage::SMSSubmitMessage(string pdu) throw(GsmException)
+{ 
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_SUBMIT);
+  _rejectDuplicates = d.getBit(); // bit 2
+  _validityPeriodFormat = (TimePeriod::Format)d.get2Bits(); // bits 3..4
+  _statusReportRequest = d.getBit(); // bit 5
+  bool userDataHeaderIndicator = d.getBit(); // bit 6
+  _replyPath = d.getBit();      // bit 7
+  _messageReference = d.getOctet();
+  _destinationAddress = d.getAddress();
+  _protocolIdentifier = d.getOctet();
+  _dataCodingScheme = d.getOctet();
+  if (_validityPeriodFormat != TimePeriod::NotPresent)
+    _validityPeriod = d.getTimePeriod(_validityPeriodFormat);
+  unsigned char userDataLength = d.getOctet();
+  d.markSeptet();
+
+  if (userDataHeaderIndicator)
+  {
+    _userDataHeader.decode(d);
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+      userDataLength -= ((_userDataHeader.length() + 1) * 8 + 6) / 7;
+    else
+      userDataLength -= ((string)_userDataHeader).length() + 1;
+  }
+  else
+    _userDataHeader = UserDataHeader();
+
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+  {                             // userDataLength is length in septets
+    _userData = d.getString(userDataLength);
+    _userData = gsmToLatin1(_userData);
+  }
+  else
+  {                             // _userDataLength is length in octets
+    unsigned char *s =
+      (unsigned char*)alloca(sizeof(unsigned char) * userDataLength);
+    d.getOctets(s, userDataLength);
+    _userData.assign((char*)s, userDataLength);
+  }
+}
+
+SMSSubmitMessage::SMSSubmitMessage(string text, string number)
+{
+  init();
+  _destinationAddress = Address(number);
+  _userData = text;
+}
+
+string SMSSubmitMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.setBit(_rejectDuplicates); // bit 2
+  e.set2Bits(_validityPeriodFormat); // bits 3..4
+  e.setBit(_statusReportRequest); // bit 5
+  bool userDataHeaderIndicator = _userDataHeader.length() != 0;
+  e.setBit(userDataHeaderIndicator); // bit 6
+  e.setBit(_replyPath);       // bit 7
+  e.setOctet(_messageReference);
+  e.setAddress(_destinationAddress);
+  e.setOctet(_protocolIdentifier);
+  e.setOctet(_dataCodingScheme);
+  e.setTimePeriod(_validityPeriod);
+  e.setOctet(userDataLength());
+  e.markSeptet();
+  if (userDataHeaderIndicator) _userDataHeader.encode(e);
+  if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+    e.setString(latin1ToGsm(_userData));
+  else
+    e.setOctets((unsigned char*)_userData.data(), _userData.length());
+  return e.getHexString();
+}
+
+string SMSSubmitMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-SUBMIT&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Reject duplicates: &quot;) &lt;&lt; _rejectDuplicates &lt;&lt; endl
+     &lt;&lt; _(&quot;Validity period format: &quot;);
+  switch (_validityPeriodFormat)
+  {
+  case TimePeriod::NotPresent:
+    os &lt;&lt; _(&quot;not present&quot;);
+    break;
+  case TimePeriod::Relative:
+    os &lt;&lt; _(&quot;relative&quot;);
+    break;
+  case TimePeriod::Absolute:
+    os &lt;&lt; _(&quot;absolute&quot;);
+    break;
+  default:
+    os &lt;&lt; _(&quot;unknown&quot;);
+    break;
+  }
+  os &lt;&lt; endl
+     &lt;&lt; _(&quot;Reply path: &quot;) &lt;&lt; _replyPath &lt;&lt; endl
+     &lt;&lt; _(&quot;User data header indicator: &quot;)
+     &lt;&lt; (_userDataHeader.length()!=0) &lt;&lt; endl
+     &lt;&lt; _(&quot;Status report request: &quot;) &lt;&lt; _statusReportRequest &lt;&lt; endl
+     &lt;&lt; _(&quot;Message reference: &quot;) &lt;&lt; (unsigned int)_messageReference &lt;&lt; endl
+     &lt;&lt; _(&quot;Destination address: '&quot;) &lt;&lt; _destinationAddress._number 
+     &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Protocol identifier: 0x&quot;) &lt;&lt; hex 
+     &lt;&lt; (unsigned int)_protocolIdentifier &lt;&lt; dec &lt;&lt; endl
+     &lt;&lt; _(&quot;Data coding scheme: &quot;) &lt;&lt; _dataCodingScheme.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;Validity period: &quot;) &lt;&lt; _validityPeriod.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;User data length: &quot;) &lt;&lt; (int)userDataLength() &lt;&lt; endl
+     &lt;&lt; _(&quot;User data header: 0x&quot;) &lt;&lt; bufToHex((unsigned char*)
+                                              ((string)_userDataHeader).data(),
+                                              _userDataHeader.length())
+     &lt;&lt; endl
+     &lt;&lt; _(&quot;User data: '&quot;) &lt;&lt; _userData &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result; 
+}
+
+Address SMSSubmitMessage::address() const
+{
+  return _destinationAddress;
+}
+
+Ref&lt;SMSMessage&gt; SMSSubmitMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSSubmitMessage(*this);
+  return result;
+}
+
+// SMSStatusReportMessage members
+
+void SMSStatusReportMessage::init()
+{
+  _messageTypeIndicator = SMS_STATUS_REPORT;
+  _moreMessagesToSend = false;
+  _statusReportQualifier = false;
+  _messageReference = 0;
+  _status = SMS_STATUS_RECEIVED;
+}
+
+SMSStatusReportMessage::SMSStatusReportMessage(string pdu) throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_STATUS_REPORT);
+  _moreMessagesToSend = d.getBit(); // bit 2
+  d.getBit();                   // bit 3
+  d.getBit();                   // bit 4
+  _statusReportQualifier = d.getBit(); // bit 5
+  _messageReference = d.getOctet();
+  _recipientAddress = d.getAddress();
+  _serviceCentreTimestamp = d.getTimestamp();
+  _dischargeTime = d.getTimestamp();
+  _status = d.getOctet();
+}
+
+string SMSStatusReportMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.setBit(_moreMessagesToSend); // bit 2
+  e.setBit();                   // bit 3
+  e.setBit();                   // bit 4
+  e.setBit(_statusReportQualifier); // bit 5
+  e.setOctet(_messageReference);
+  e.setAddress(_recipientAddress);
+  e.setTimestamp(_serviceCentreTimestamp);
+  e.setTimestamp(_dischargeTime);
+  e.setOctet(_status);
+  return e.getHexString();
+}
+
+string SMSStatusReportMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-STATUS-REPORT&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;More messages to send: &quot;) &lt;&lt; _moreMessagesToSend &lt;&lt; endl
+     &lt;&lt; _(&quot;Status report qualifier: &quot;) &lt;&lt; _statusReportQualifier &lt;&lt; endl
+     &lt;&lt; _(&quot;Message reference: &quot;) &lt;&lt; (unsigned int)_messageReference &lt;&lt; endl
+     &lt;&lt; _(&quot;Recipient address: '&quot;) &lt;&lt; _recipientAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;SC timestamp: &quot;) &lt;&lt; _serviceCentreTimestamp.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;Discharge time: &quot;) &lt;&lt; _dischargeTime.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;Status: 0x&quot;) &lt;&lt; hex &lt;&lt; (unsigned int)_status &lt;&lt; dec
+     &lt;&lt; &quot; '&quot; &lt;&lt; getSMSStatusString(_status) &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result; 
+}
+
+Address SMSStatusReportMessage::address() const
+{
+  return _recipientAddress;
+}
+
+Ref&lt;SMSMessage&gt; SMSStatusReportMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSStatusReportMessage(*this);
+  return result;
+}
+
+// SMSCommandMessage members
+
+void SMSCommandMessage::init()
+{
+  _messageTypeIndicator = SMS_COMMAND;
+  _messageReference = 0;
+  _statusReportRequest = true;
+  _protocolIdentifier = 0;
+  _commandType = EnquireSM;
+  _messageNumber = 0;
+  _commandDataLength = 0; 
+}
+
+SMSCommandMessage::SMSCommandMessage(string pdu) throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_COMMAND);
+  d.getBit();                   // bit 2
+  d.getBit();                   // bit 3
+  d.getBit();                   // bit 4
+  _statusReportRequest = d.getBit(); // bit 5
+  _messageReference = d.getOctet();
+  _protocolIdentifier = d.getOctet();
+  _commandType = d.getOctet();
+  _messageNumber = d.getOctet();
+  _destinationAddress = d.getAddress();
+  _commandDataLength = d.getOctet();
+  unsigned char *s = 
+      (unsigned char*)alloca(sizeof(unsigned char) * _commandDataLength);
+  d.getOctets(s, _commandDataLength);
+}
+
+string SMSCommandMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.setBit();                   // bit 2
+  e.setBit();                   // bit 3
+  e.setBit();                   // bit 4
+  e.setBit(_statusReportRequest); // bit 5
+  e.setOctet(_messageReference);
+  e.setOctet(_protocolIdentifier);
+  e.setOctet(_commandType);
+  e.setOctet(_messageNumber);
+  e.setAddress(_destinationAddress);
+  e.setOctet(_commandData.length());
+  e.setOctets((const unsigned char*)_commandData.data(),
+              (short unsigned int)_commandData.length());
+  return e.getHexString();
+}
+
+string SMSCommandMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-COMMAND&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Message reference: &quot;) &lt;&lt; (unsigned int)_messageReference &lt;&lt; endl
+     &lt;&lt; _(&quot;Status report request: &quot;) &lt;&lt; _statusReportRequest &lt;&lt; endl
+     &lt;&lt; _(&quot;Protocol identifier: 0x&quot;) &lt;&lt; hex 
+     &lt;&lt; (unsigned int)_protocolIdentifier &lt;&lt; dec &lt;&lt; endl
+     &lt;&lt; _(&quot;Command type: 0x&quot;) &lt;&lt; hex &lt;&lt; (unsigned int)_commandType
+     &lt;&lt; dec &lt;&lt; endl
+     &lt;&lt; _(&quot;Message number: &quot;) &lt;&lt; (unsigned int)_messageNumber &lt;&lt; endl
+     &lt;&lt; _(&quot;Destination address: '&quot;) &lt;&lt; _destinationAddress._number 
+     &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Command data length: &quot;) &lt;&lt; (unsigned int)_commandDataLength &lt;&lt; endl
+     &lt;&lt; _(&quot;Command data: '&quot;) &lt;&lt; _commandData &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result; 
+}
+
+Address SMSCommandMessage::address() const
+{
+  return _destinationAddress;
+}
+
+Ref&lt;SMSMessage&gt; SMSCommandMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSCommandMessage(*this);
+  return result;
+}
+
+// SMSDeliverReportMessage members
+
+void SMSDeliverReportMessage::init()
+{
+  _messageTypeIndicator = SMS_DELIVER_REPORT;
+  _protocolIdentifierPresent = false;
+  _dataCodingSchemePresent = false;
+  _userDataLengthPresent = false;
+}
+
+SMSDeliverReportMessage::SMSDeliverReportMessage(string pdu)
+  throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_DELIVER_REPORT);
+  d.alignOctet();               // skip to parameter indicator
+  _protocolIdentifierPresent = d.getBit(); // bit 0
+  _dataCodingSchemePresent = d.getBit(); // bit 1
+  _userDataLengthPresent = d.getBit(); // bit 2
+  if (_protocolIdentifierPresent)
+    _protocolIdentifier = d.getOctet();
+  if (_dataCodingSchemePresent)
+    _dataCodingScheme = d.getOctet();
+  if (_userDataLengthPresent)
+  {
+    unsigned char userDataLength = d.getOctet();
+    d.markSeptet();
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+    {
+      _userData = d.getString(userDataLength);
+      _userData = gsmToLatin1(_userData);
+    }
+    else
+    {                           // userDataLength is length in octets
+      unsigned char *s =
+        (unsigned char*)alloca(sizeof(unsigned char) * userDataLength);
+      d.getOctets(s, userDataLength);
+      _userData.assign((char*)s, userDataLength);
+    }
+  }
+}
+
+string SMSDeliverReportMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.alignOctet();               // skip to parameter indicator
+  e.setBit(_protocolIdentifierPresent); // bit 0
+  e.setBit(_dataCodingSchemePresent); // bit 1
+  e.setBit(_userDataLengthPresent); // bit 2
+  if (_protocolIdentifierPresent)
+    e.setOctet(_protocolIdentifier);
+  if (_dataCodingSchemePresent)
+    e.setOctet(_dataCodingScheme);
+  if (_userDataLengthPresent)
+  {
+    unsigned char userDataLength = _userData.length();
+    e.setOctet(userDataLength);
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+      e.setString(latin1ToGsm(_userData));
+    else
+      e.setOctets((unsigned char*)_userData.data(), userDataLength);
+  }
+  return e.getHexString();
+}
+
+string SMSDeliverReportMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-DELIVER-REPORT&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;Protocol identifier present: &quot;) &lt;&lt; _protocolIdentifierPresent
+     &lt;&lt; endl
+     &lt;&lt; _(&quot;Data coding scheme present: &quot;) &lt;&lt; _dataCodingSchemePresent &lt;&lt; endl
+     &lt;&lt; _(&quot;User data length present: &quot;) &lt;&lt; _userDataLengthPresent &lt;&lt; endl;
+  if (_protocolIdentifierPresent)
+    os &lt;&lt; _(&quot;Protocol identifier: 0x&quot;) &lt;&lt; hex
+       &lt;&lt; (unsigned int)_protocolIdentifier
+       &lt;&lt; dec &lt;&lt; endl;
+  if (_dataCodingSchemePresent)
+    os &lt;&lt; _(&quot;Data coding scheme: &quot;) &lt;&lt; _dataCodingScheme.toString() &lt;&lt; endl;
+  if (_userDataLengthPresent)
+    os &lt;&lt; _(&quot;User data length: &quot;) &lt;&lt; (int)userDataLength() &lt;&lt; endl
+       &lt;&lt; _(&quot;User data: '&quot;) &lt;&lt; _userData &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+  os &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result; 
+}
+
+Address SMSDeliverReportMessage::address() const
+{
+  assert(0);                    // not address, should not be in SMS store
+  return Address();
+}
+
+Ref&lt;SMSMessage&gt; SMSDeliverReportMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSDeliverReportMessage(*this);
+  return result;
+}
+
+// SMSSubmitReportMessage members
+
+void SMSSubmitReportMessage::init()
+{
+  _messageTypeIndicator = SMS_SUBMIT_REPORT;
+  _protocolIdentifierPresent = false;
+  _dataCodingSchemePresent = false;
+  _userDataLengthPresent = false;
+}
+
+SMSSubmitReportMessage::SMSSubmitReportMessage(string pdu) throw(GsmException)
+{
+  SMSDecoder d(pdu);
+  _serviceCentreAddress = d.getAddress(true);
+  _messageTypeIndicator = (MessageType)d.get2Bits(); // bits 0..1
+  assert(_messageTypeIndicator == SMS_SUBMIT_REPORT);
+  _serviceCentreTimestamp = d.getTimestamp();
+  _protocolIdentifierPresent = d.getBit(); // bit 0
+  _dataCodingSchemePresent = d.getBit(); // bit 1
+  _userDataLengthPresent = d.getBit(); // bit 2
+  if (_protocolIdentifierPresent)
+    _protocolIdentifier = d.getOctet();
+  if (_dataCodingSchemePresent)
+    _dataCodingScheme = d.getOctet();
+  if (_userDataLengthPresent)
+  {
+    unsigned char userDataLength = d.getOctet();
+    d.markSeptet();
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+    {
+      _userData = d.getString(userDataLength);
+      _userData = gsmToLatin1(_userData);
+    }
+    else
+    {                           // _userDataLength is length in octets
+      unsigned char *s =
+        (unsigned char*)alloca(sizeof(unsigned char) * userDataLength);
+      d.getOctets(s, userDataLength);
+      _userData.assign((char*)s, userDataLength);
+    }
+  }
+}
+
+string SMSSubmitReportMessage::encode()
+{
+  SMSEncoder e;
+  e.setAddress(_serviceCentreAddress, true);
+  e.set2Bits(_messageTypeIndicator); // bits 0..1
+  e.setTimestamp(_serviceCentreTimestamp);
+  e.setBit(_protocolIdentifierPresent); // bit 0
+  e.setBit(_dataCodingSchemePresent); // bit 1
+  e.setBit(_userDataLengthPresent); // bit 2
+  if (_protocolIdentifierPresent)
+    e.setOctet(_protocolIdentifier);
+  if (_dataCodingSchemePresent)
+    e.setOctet(_dataCodingScheme);
+  if (_userDataLengthPresent)
+  {
+    e.setOctet(userDataLength());
+    if (_dataCodingScheme.getAlphabet() == DCS_DEFAULT_ALPHABET)
+      e.setString(latin1ToGsm(_userData));
+    else
+      e.setOctets((unsigned char*)_userData.data(), _userData.length());
+  }
+  return e.getHexString();
+}
+
+string SMSSubmitReportMessage::toString() const
+{
+  ostrstream os;
+  os &lt;&lt; dashes &lt;&lt; endl
+     &lt;&lt; _(&quot;Message type: SMS-SUBMIT-REPORT&quot;) &lt;&lt; endl
+     &lt;&lt; _(&quot;SC address: '&quot;) &lt;&lt; _serviceCentreAddress._number &lt;&lt; &quot;'&quot; &lt;&lt; endl
+     &lt;&lt; _(&quot;SC timestamp: &quot;) &lt;&lt; _serviceCentreTimestamp.toString() &lt;&lt; endl
+     &lt;&lt; _(&quot;Protocol identifier present: &quot;) &lt;&lt; _protocolIdentifierPresent
+     &lt;&lt; endl
+     &lt;&lt; _(&quot;Data coding scheme present: &quot;) &lt;&lt; _dataCodingSchemePresent &lt;&lt; endl
+     &lt;&lt; _(&quot;User data length present: &quot;) &lt;&lt; _userDataLengthPresent &lt;&lt; endl;
+  if (_protocolIdentifierPresent)
+    os &lt;&lt; _(&quot;Protocol identifier: 0x&quot;) &lt;&lt; hex
+       &lt;&lt; (unsigned int)_protocolIdentifier
+       &lt;&lt; dec &lt;&lt; endl;
+  if (_dataCodingSchemePresent)
+    os &lt;&lt; _(&quot;Data coding scheme: &quot;) &lt;&lt; _dataCodingScheme.toString() &lt;&lt; endl;
+  if (_userDataLengthPresent)
+    os &lt;&lt; _(&quot;User data length: &quot;) &lt;&lt; (int)userDataLength() &lt;&lt; endl
+       &lt;&lt; _(&quot;User data: '&quot;) &lt;&lt; _userData &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+  os &lt;&lt; dashes &lt;&lt; endl &lt;&lt; endl
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result; 
+}
+
+Address SMSSubmitReportMessage::address() const
+{
+  assert(0);                    // not address, should not be in SMS store
+  return Address();
+}
+
+Ref&lt;SMSMessage&gt; SMSSubmitReportMessage::clone()
+{
+  Ref&lt;SMSMessage&gt; result = new SMSSubmitReportMessage(*this);
+  return result;
+}
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_smsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,480 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms.h
+// *
+// * Purpose: SMS functions
+// *          (ETSI GSM 07.05)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 16.5.1999
+// *************************************************************************
+
+#ifndef GSM_SMS_H
+#define GSM_SMS_H
+
+#include &lt;gsmlib/gsm_sms_codec.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;string&gt;
+#include &lt;vector&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // forward declarations
+  class SMSStore;
+  class SMSMessage;
+
+  // this class represents a single SMS message
+  class SMSMessage : public RefBase
+  {
+  private:
+    Ref&lt;GsmAt&gt; _at;             // connection to the device
+
+  public:
+    // possible values for message type indicator
+    enum MessageType {SMS_DELIVER = 0, SMS_DELIVER_REPORT = 0,
+                      SMS_STATUS_REPORT = 2, SMS_COMMAND = 2,
+                      SMS_SUBMIT = 1, SMS_SUBMIT_REPORT = 1};
+
+  protected:
+    // fields of the different TPDUs
+    // all PDUs
+    string _userData;
+    UserDataHeader _userDataHeader;
+    Address _serviceCentreAddress;
+    MessageType _messageTypeIndicator;// 2 bits
+    DataCodingScheme _dataCodingScheme;
+
+  public:
+    // decode hexadecimal pdu string
+    // return SMSMessage of the appropriate type
+    // differentiate between SMS transfer directions SC to ME, ME to SC
+    // also give GsmAt object for send()
+    static Ref&lt;SMSMessage&gt; decode(string pdu,
+                                  bool SCtoMEdirection = true,
+                                  GsmAt *at = NULL)
+      throw(GsmException);
+
+    static Ref&lt;SMSMessage&gt; decode(istream&amp; s) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode() = 0;
+
+    // send this PDU
+    // returns message reference and ACK-PDU (if requested)
+    // only applicate to SMS-SUBMIT and SMS-COMMAND
+    unsigned char send(Ref&lt;SMSMessage&gt; &amp;ackPdu) throw(GsmException);
+    
+    // same as above, but ACK-PDU is discarded
+    unsigned char send() throw(GsmException);
+
+    // create textual representation of SMS
+    virtual string toString() const = 0;
+
+    // return deep copy of this message
+    virtual Ref&lt;SMSMessage&gt; clone() = 0;
+
+    // return length of SC address when encoded
+    unsigned int getSCAddressLen();
+
+    // accessor functions
+    MessageType messageType() const {return _messageTypeIndicator;}
+    Address serviceCentreAddress() const {return _serviceCentreAddress;}
+
+    // provided for sorting messages by timestamp
+    virtual Timestamp serviceCentreTimestamp() const {return Timestamp();}
+    
+    // return recipient, destination etc. address (for sorting by address)
+    virtual Address address() const = 0;
+
+    virtual void setUserData(string x) {_userData = x;}
+    virtual string userData() const {return _userData;}
+    
+    // return the size of user data (including user data header)
+    unsigned char userDataLength() const;
+
+    // accessor functions
+    virtual void setUserDataHeader(UserDataHeader x) {_userDataHeader = x;}
+    virtual UserDataHeader userDataHeader() const {return _userDataHeader;}
+    
+    virtual DataCodingScheme dataCodingScheme() const
+      {return _dataCodingScheme;}
+    virtual void setDataCodingScheme(DataCodingScheme x)
+      {_dataCodingScheme = x;}
+
+    void setServiceCentreAddress(Address &amp;x) {_serviceCentreAddress = x;}
+    void setAt(Ref&lt;GsmAt&gt; at) {_at = at;}
+
+    virtual ~SMSMessage();
+
+    // print ASCII hex representation of message
+    ostream&amp; operator&lt;&lt;(ostream&amp; s);
+
+    // copy constructor and assignment
+//     SMSMessage(SMSMessage &amp;m);
+//     SMSMessage &amp;operator=(SMSMessage &amp;m);
+
+    friend class SMSStore;
+  };
+
+  // SMS-DELIVER TPDU
+  class SMSDeliverMessage : public SMSMessage
+  {
+  private:
+    // SMS-DELIVER PDU members (see GSM 03.40 section 9.2.2.1)
+    bool _moreMessagesToSend;
+    bool _replyPath;
+    bool _statusReportIndication;
+    Address _originatingAddress;
+    unsigned char _protocolIdentifier; // octet
+    Timestamp _serviceCentreTimestamp;
+
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSDeliverMessage();
+
+    // constructor with given pdu
+    SMSDeliverMessage(string pdu) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    bool moreMessagesToSend() const {return _moreMessagesToSend;}
+    bool replyPath() const {return _replyPath;}
+    bool statusReportIndication() const {return _statusReportIndication;}
+    Address originatingAddress() const {return _originatingAddress;}
+    unsigned char protocolIdentifier() const {return _protocolIdentifier;}
+    Timestamp serviceCentreTimestamp() const {return _serviceCentreTimestamp;}
+
+    void setMoreMessagesToSend(bool x) {_moreMessagesToSend = x;}
+    void setReplyPath(bool x) {_replyPath = x;}
+    void setStatusReportIndication(bool x) {_statusReportIndication = x;}
+    void setOriginatingAddress(Address &amp;x) {_originatingAddress = x;}
+    void setProtocolIdentifier(unsigned char x) {_protocolIdentifier = x;}
+    void setServiceCentreTimestamp(Timestamp &amp;x) {_serviceCentreTimestamp = x;}
+
+    virtual ~SMSDeliverMessage() {}
+  };
+
+  // SMS-SUBMIT TPDU
+  class SMSSubmitMessage : public SMSMessage
+  {
+  private:
+    // SMS-SUBMIT PDU (see GSM 03.40 section 9.2.2.2)
+    bool _rejectDuplicates;
+    TimePeriod::Format _validityPeriodFormat; // 2 bits
+    bool _replyPath;
+    bool _statusReportRequest;
+    unsigned char _messageReference; // integer
+    Address _destinationAddress;
+    unsigned char _protocolIdentifier;
+    TimePeriod _validityPeriod;
+
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSSubmitMessage();
+
+    // constructor with given pdu
+    SMSSubmitMessage(string pdu) throw(GsmException);
+
+    // convenience constructor
+    // given the text and recipient telephone number
+    SMSSubmitMessage(string text, string number);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    bool rejectDuplicates() const {return _rejectDuplicates;}
+    TimePeriod::Format validityPeriodFormat() const
+      {return _validityPeriodFormat;}
+    bool replyPath() const {return _replyPath;}
+    bool statusReportRequest() const {return _statusReportRequest;}
+    unsigned char messageReference() const {return _messageReference;}
+    Address destinationAddress() const {return _destinationAddress;}
+    unsigned char protocolIdentifier() const {return _protocolIdentifier;}
+    TimePeriod validityPeriod() const {return _validityPeriod;}
+
+    void setRejectDuplicates(bool x) {_rejectDuplicates = x;}
+    void setValidityPeriodFormat(TimePeriod::Format &amp;x)
+      {_validityPeriodFormat = x;}
+    void setReplyPath(bool x) {_replyPath = x;}
+    void setStatusReportRequest(bool x) {_statusReportRequest = x;}
+    void setMessageReference(unsigned char x) {_messageReference = x;}
+    void setDestinationAddress(Address &amp;x) {_destinationAddress = x;}
+    void setProtocolIdentifier(unsigned char x) {_protocolIdentifier = x;}
+    void setValidityPeriod(TimePeriod &amp;x) {_validityPeriod = x;}
+    
+    virtual ~SMSSubmitMessage() {}
+  };
+
+  // SMS-STATUS-REPORT TPDU
+  class SMSStatusReportMessage : public SMSMessage
+  {
+  private:
+    // SMS-STATUS-REPORT PDU (see GSM 03.40 section 9.2.2.3)
+    bool _moreMessagesToSend;
+    bool _statusReportQualifier;
+    unsigned char _messageReference;
+    Address _recipientAddress;
+    Timestamp _serviceCentreTimestamp;
+    Timestamp _dischargeTime;
+    unsigned char _status;      // octet
+    
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSStatusReportMessage() {init();}
+
+    // constructor with given pdu
+    SMSStatusReportMessage(string pdu) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    bool moreMessagesToSend() const {return _moreMessagesToSend;}
+    bool statusReportQualifier() const {return _statusReportQualifier;}
+    unsigned char messageReference() const {return _messageReference;}
+    Address recipientAddress() const {return _recipientAddress;}
+    Timestamp serviceCentreTimestamp() const {return _serviceCentreTimestamp;}
+    Timestamp dischargeTime() const {return _dischargeTime;}
+    unsigned char status() const {return _status;}
+    
+    void setMoreMessagesToSend(bool x) {_moreMessagesToSend = x;}
+    void setStatusReportQualifier(bool x) {_statusReportQualifier = x;}
+    void setMessageReference(unsigned char x) {_messageReference = x;}
+    void setRecipientAddress(Address x) {_recipientAddress = x;}
+    void setServiceCentreTimestamp(Timestamp x) {_serviceCentreTimestamp = x;}
+    void setDischargeTime(Timestamp x) {_serviceCentreTimestamp = x;}
+    void setStatus(unsigned char x) {_status = x;}
+
+    virtual ~SMSStatusReportMessage() {}
+  };
+
+  // SMS-COMMAND TPDU
+  class SMSCommandMessage : public SMSMessage
+  {
+  public:
+    // command types, other values are reserved or SC-specific
+    enum CommandType {EnquireSM = 0, CancelStatusReportRequest = 1,
+                      DeleteSubmittedSM = 2, EnalbeStatusReportRequest = 3};
+
+  private:
+    // SMS-COMMAND PDU (see GSM 03.40 section 9.2.2.4)
+    unsigned char _messageReference;
+    bool _statusReportRequest;
+    unsigned char _protocolIdentifier;
+    unsigned char _commandType;
+    unsigned char _messageNumber;
+    Address _destinationAddress;
+    unsigned char _commandDataLength;
+    string _commandData;
+
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSCommandMessage() {init();}
+
+    // constructor with given pdu
+    SMSCommandMessage(string pdu) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    unsigned char messageReference() const {return _messageReference;}
+    bool statusReportRequest() const {return _statusReportRequest;}
+    unsigned char protocolIdentifier() const {return _protocolIdentifier;}
+    unsigned char commandType() const {return _commandType;}
+    unsigned char messageNumber() const {return _messageNumber;}
+    Address destinationAddress() const {return _destinationAddress;}
+    unsigned char commandDataLength() const {return _commandDataLength;}
+    string commandData() const {return _commandData;}
+
+    void setMessageReference(unsigned char x) {_messageReference = x;}
+    void setStatusReportRequest(bool x) {_statusReportRequest = x;}
+    void setProtocolIdentifier(unsigned char x) {_protocolIdentifier = x;}
+    void setCommandType(unsigned char x) {_commandType = x;}
+    void setMessageNumber(unsigned char x) {_messageNumber = x;}
+    void setDestinationAddress(Address &amp;x) {_destinationAddress = x;}
+    void setCommandDataLength(unsigned char x) {_commandDataLength = x;}
+    void setCommandData(string x) {_commandData = x;}
+
+    virtual ~SMSCommandMessage() {}
+  };
+
+  // SMS-DELIVER-REPORT TPDU for RP-ACK
+  class SMSDeliverReportMessage : public SMSMessage
+  {
+  private:
+    // SMS-DELIVER-REPORT PDU (see GSM 03.40 section 9.2.2.1a (II))
+    bool _protocolIdentifierPresent; // parameter indicator
+    bool _dataCodingSchemePresent;
+    bool _userDataLengthPresent;
+    unsigned char _protocolIdentifier;
+    
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSDeliverReportMessage() {init();}
+
+    // constructor with given pdu
+    SMSDeliverReportMessage(string pdu) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    bool protocolIdentifierPresent() const {return _protocolIdentifierPresent;}
+    bool dataCodingSchemePresent() const {return _dataCodingSchemePresent;}
+    bool userDataLengthPresent() const {return _userDataLengthPresent;}
+    unsigned char protocolIdentifier() const
+      {assert(_protocolIdentifierPresent); return _protocolIdentifier;}
+    DataCodingScheme dataCodingScheme() const
+      {assert(_dataCodingSchemePresent); return _dataCodingScheme;}
+    UserDataHeader userDataHeader() const
+      {assert(_userDataLengthPresent); return _userDataHeader;}
+    string userData() const
+      {assert(_userDataLengthPresent); return _userData;}
+    
+    void setProtocolIdentifier(unsigned char x)
+      {_protocolIdentifierPresent = true; _protocolIdentifier = x;}
+    void setDataCodingScheme(DataCodingScheme x)
+      {_dataCodingSchemePresent = true; _dataCodingScheme = x;}
+    void setUserDataHeader(UserDataHeader x)
+    {
+      _userDataLengthPresent = true;
+      _userDataHeader = x;
+    }
+    void setUserData(string x)
+    {
+      _userDataLengthPresent = true;
+      _userData = x;
+    }
+    
+    virtual ~SMSDeliverReportMessage() {}
+  };
+
+  // SMS-SUBMIT-REPORT TPDU for RP-ACK
+  class SMSSubmitReportMessage : public SMSMessage
+  {
+  private:
+    // SMS-SUBMIT-REPORT PDU (see GSM 03.40 section 9.2.2.2a (II))
+    Timestamp _serviceCentreTimestamp;
+    bool _protocolIdentifierPresent; // parameter indicator
+    bool _dataCodingSchemePresent;
+    bool _userDataLengthPresent;
+    unsigned char _protocolIdentifier;
+    DataCodingScheme _dataCodingScheme;
+
+    // initialize members to sensible values
+    void init();
+    
+  public:
+    // constructor, sets sensible default values
+    SMSSubmitReportMessage() {init();}
+
+    // constructor with given pdu
+    SMSSubmitReportMessage(string pdu) throw(GsmException);
+
+    // encode pdu, return hexadecimal pdu string
+    virtual string encode();
+
+    // create textual representation of SMS
+    virtual string toString() const;
+
+    // inherited from SMSMessage
+    Address address() const;
+    Ref&lt;SMSMessage&gt; clone();
+
+    // accessor functions
+    Timestamp serviceCentreTimestamp() const {return _serviceCentreTimestamp;}
+    bool protocolIdentifierPresent() const {return _protocolIdentifierPresent;}
+    bool dataCodingSchemePresent() const {return _dataCodingSchemePresent;}
+    bool userDataLengthPresent() const {return _userDataLengthPresent;}
+    unsigned char protocolIdentifier() const
+      {assert(_protocolIdentifierPresent); return _protocolIdentifier;}
+    DataCodingScheme dataCodingScheme() const
+      {assert(_dataCodingSchemePresent); return _dataCodingScheme;}
+    UserDataHeader userDataHeader() const
+      {assert(_userDataLengthPresent); return _userDataHeader;}
+    string userData() const
+      {assert(_userDataLengthPresent); return _userData;}
+
+    void setServiceCentreTimestamp(Timestamp &amp;x) {_serviceCentreTimestamp = x;}
+    void setProtocolIdentifier(unsigned char x)
+      {_protocolIdentifierPresent = true; _protocolIdentifier = x;}
+    void setDataCodingScheme(DataCodingScheme x)
+      {_dataCodingSchemePresent = true; _dataCodingScheme = x;}
+    void setUserDataHeader(UserDataHeader x)
+    {
+      _userDataLengthPresent = true;
+      _userDataHeader = x;
+    }
+    void setUserData(string x)
+    {
+      _userDataLengthPresent = true;
+      _userData = x;
+    }
+    virtual ~SMSSubmitReportMessage() {}
+  };
+
+  // some useful typdefs
+  typedef Ref&lt;SMSMessage&gt; SMSMessageRef;
+};
+
+#endif // GSM_SMS_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_codeccc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,702 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms_codec.cc
+// *
+// * Purpose: Coder and Encoder for SMS TPDUs
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 17.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;gsmlib/gsm_sms_codec.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;time.h&gt;
+#include &lt;strstream&gt;
+#include &lt;iomanip&gt;
+#ifdef HAVE_STRING_H
+#include &lt;string.h&gt;
+#endif
+#include &lt;climits&gt;
+#include &lt;string&gt;
+using namespace std;
+using namespace gsmlib;
+
+// Address members
+
+Address::Address(string number) : _plan(ISDN_Telephone)
+{
+  number = removeWhiteSpace(number);
+  if (number.length() &gt; 0 &amp;&amp; number[0] == '+')
+  {
+    _type = International;
+    _number = number.substr(1, number.length() - 1);
+  }
+  else
+  {
+    _type = Unknown;
+    _number = number;
+  }
+}
+
+string Address::toString() const
+{
+  if (_type == International)
+    return &quot;+&quot; + _number;
+  else
+    return _number;
+}
+
+bool gsmlib::operator&lt;(const Address &amp;x, const Address &amp;y)
+{
+  // normalize numbers according to the following two rules:
+  // - prepend &quot;+&quot; if international number
+  // - append 0s to the shorter number so that both numbers have equal length
+  string xnumber = x._number;
+  string ynumber = y._number;
+  static string twenty0s = &quot;00000000000000000000&quot;;
+
+  if (x._type == Address::International) xnumber = &quot;+&quot; + xnumber;
+  if (y._type == Address::International) ynumber = &quot;+&quot; + ynumber;
+  
+  while (xnumber.length() != ynumber.length())
+    if (xnumber.length() &lt; ynumber.length())
+    {
+      int diff = ynumber.length() - xnumber.length();
+      xnumber += twenty0s.substr(0, (diff &gt; 20 ? 20 : diff));
+    }
+    else
+    {
+      int diff = xnumber.length() - ynumber.length();
+      ynumber += twenty0s.substr(0, (diff &gt; 20 ? 20 : diff));
+    }
+
+  return xnumber &lt; ynumber;
+}
+
+bool gsmlib::operator==(const Address &amp;x, const Address &amp;y)
+{
+  return x._number == y._number &amp;&amp; x._plan == y._plan;
+}
+
+// Timestamp members
+
+bool Timestamp::empty() const
+{
+  return _year == 0 &amp;&amp; _month == 0 &amp;&amp; _day == 0 &amp;&amp; _hour == 0 &amp;&amp; 
+    _minute == 0 &amp;&amp; _seconds == 0 &amp;&amp; _timeZoneMinutes == 0;
+}
+
+string Timestamp::toString(bool appendTimeZone) const
+{
+  short timeZoneMinutes = _timeZoneMinutes;
+  short timeZoneHours = timeZoneMinutes / 60;
+  timeZoneMinutes %= 60;
+
+  // format date and time in a locale-specific way
+  struct tm t;
+  t.tm_sec = _seconds;
+  t.tm_min = _minute;
+  t.tm_hour = _hour;
+  t.tm_mon = _month - 1;
+  // year 2000 heuristics, SMSs cannot be older than start of GSM network
+  t.tm_year = _year &lt; 80 ? _year + 100 : _year;
+  t.tm_mday = _day;
+  t.tm_isdst = -1;
+  t.tm_yday = 0;
+  t.tm_wday = 0;
+  
+#ifdef BROKEN_STRFTIME
+  char formattedTime[1024];
+  strftime(formattedTime, 1024, &quot;%x %X&quot;, &amp;t);
+#else
+  int formattedTimeSize = strftime(NULL, INT_MAX, &quot;%x %X&quot;, &amp;t) + 1;
+  char *formattedTime = (char*)alloca(sizeof(char) * formattedTimeSize);
+  strftime(formattedTime, formattedTimeSize, &quot;%x %X&quot;, &amp;t);
+#endif
+
+  if (! appendTimeZone)
+    return formattedTime;
+
+  ostrstream os;
+  os &lt;&lt; formattedTime &lt;&lt; &quot; (&quot; &lt;&lt; (_negativeTimeZone ? '-' : '+')
+     &lt;&lt; setfill('0') &lt;&lt; setw(2) &lt;&lt; timeZoneHours 
+     &lt;&lt; setw(2) &lt;&lt; timeZoneMinutes &lt;&lt; ')' &lt;&lt; ends;
+  char *ss = os.str();
+  string result(ss);
+  delete[] ss;
+  return result;
+}
+
+bool gsmlib::operator&lt;(const Timestamp &amp;x, const Timestamp &amp;y)
+{
+  // we don't take time zone info into account because
+  // - it's more complicated to compute
+  // - it might confuse the user for whom it's also too complicated
+  if (x._year &lt; y._year)
+    return true;
+  else if (x._year &gt; y._year)
+    return false;
+
+  if (x._month &lt; y._month)
+    return true;
+  else if (x._month &gt; y._month)
+    return false;
+
+  if (x._day &lt; y._day)
+    return true;
+  else if (x._day &gt; y._day)
+    return false;
+
+  if (x._hour &lt; y._hour)
+    return true;
+  else if (x._hour &gt; y._hour)
+    return false;
+
+  if (x._minute &lt; y._minute)
+    return true;
+  else if (x._minute &gt; y._minute)
+    return false;
+
+  return x._seconds &lt; y._seconds;
+}
+
+bool gsmlib::operator==(const Timestamp &amp;x, const Timestamp &amp;y)
+{
+  // we don't take time zone info in order to be consistent with operator&lt;
+  return x._year == y._year &amp;&amp; x._month == y._month &amp;&amp; x._day == y._day &amp;&amp;
+    x._hour == y._hour &amp;&amp; x._minute == y._minute &amp;&amp; x._seconds == y._seconds;
+}
+
+// TimePeriod members
+
+string TimePeriod::toString() const
+{
+  switch (_format)
+  {
+  case NotPresent:
+    return _(&quot;not present&quot;);
+  case Relative:
+  {
+    ostrstream os;
+    if (_relativeTime &lt;= 143)
+      os &lt;&lt; ((int)_relativeTime + 1) * 5 &lt;&lt; _(&quot; minutes&quot;);
+    else if (_relativeTime &lt;= 167)
+      os &lt;&lt; 12 * 60 + ((int)_relativeTime - 143) * 30 &lt;&lt; _(&quot; minutes&quot;);
+    else if (_relativeTime &lt;= 196)
+      os &lt;&lt; (int)_relativeTime - 166 &lt;&lt; _(&quot; days&quot;);
+    else if (_relativeTime &lt;= 143)
+      os &lt;&lt; (int)_relativeTime - 192 &lt;&lt; _(&quot; weeks&quot;);
+    os &lt;&lt; ends;
+    char *ss = os.str();
+    string result(ss);
+    delete[] ss;
+    return result;
+  }
+  case Absolute:
+    return _absoluteTime.toString();
+  default:
+    return _(&quot;unknown&quot;);
+  }
+}
+
+// DataCodingScheme members
+
+string DataCodingScheme::toString() const
+{
+  string result;
+  if (compressed()) result += _(&quot;compressed   &quot;);
+  if (messageWaitingIndication())
+    switch (getMessageWaitingType())
+    {
+    case DCS_VOICEMAIL_MESSAGE_WAITING:
+      result += _(&quot;voicemail message waiting&quot;);
+      break;
+    case DCS_FAX_MESSAGE_WAITING:
+      result += _(&quot;fax message waiting&quot;);
+      break;
+    case DCS_ELECTRONIC_MAIL_MESSAGE_WAITING:
+      result += _(&quot;electronic mail message waiting&quot;);
+      break;
+    case DCS_OTHER_MESSAGE_WAITING:
+      result += _(&quot;other message waiting&quot;);
+      break;
+    }
+  else
+    switch (getAlphabet())
+    {
+    case DCS_DEFAULT_ALPHABET:
+      result += _(&quot;default alphabet&quot;);
+      break;
+    case DCS_EIGHT_BIT_ALPHABET:
+      result += _(&quot;8-bit alphabet&quot;);
+      break;
+    case DCS_SIXTEEN_BIT_ALPHABET:
+      result += _(&quot;16-bit alphabet&quot;);
+      break;
+    case DCS_RESERVED_ALPHABET:
+      result += _(&quot;reserved alphabet&quot;);
+      break;
+    }
+  return result;
+}
+
+// SMSDecoder members
+
+SMSDecoder::SMSDecoder(string pdu) : _bi(0), _septetStart(NULL)
+{
+  _p = new unsigned char[pdu.length() / 2];
+  _op = _p;
+  if (! hexToBuf(pdu, _p))
+    throw GsmException(_(&quot;bad hexadecimal PDU format&quot;), SMSFormatError);
+  _maxop = _op + pdu.length() / 2;
+}
+
+void SMSDecoder::alignOctet()
+{
+  if (_bi != 0)
+  {
+    _bi = 0;
+    ++_op;
+  }
+}
+    
+void SMSDecoder::alignSeptet()
+{
+  assert(_septetStart != NULL);
+  while (((_op - _septetStart) * 8 + _bi) % 7 != 0) getBit();
+}
+    
+unsigned char SMSDecoder::get2Bits()
+{
+  unsigned char result = getBit();
+  return result | (getBit() &lt;&lt; 1);
+}
+
+unsigned char SMSDecoder::getOctet()
+{
+  alignOctet();
+  if (_op &gt;= _maxop)
+    throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+  return *_op++;
+}
+
+void SMSDecoder::getOctets(unsigned char* octets, unsigned short length)
+{
+  alignOctet();
+  for (unsigned short i = 0; i &lt; length; ++i)
+  {
+    if (_op &gt;= _maxop)
+      throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+    *octets++ = *_op++;
+  }
+}
+
+string SMSDecoder::getSemiOctets(unsigned short length)
+{
+  string result;
+  result.reserve(length);
+  alignOctet();
+  for (unsigned short i = 0; i &lt; length; ++i)
+  {
+    if (_bi == 0)
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 0..3 are most significant
+      result += '0' + (*_op &amp; 0xf);
+      _bi = 4;
+    }
+    else
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 4..7 are least significant, skip 0xf digit
+      if ((*_op &amp; 0xf0) != 0xf0)
+        result += '0' + (*_op &gt;&gt; 4);
+      _bi = 0;
+      ++_op;
+    }
+  }
+  alignOctet();
+  return result;
+}
+
+unsigned long SMSDecoder::getSemiOctetsInteger(unsigned short length)
+{
+  unsigned long result = 0;
+  alignOctet();
+  for (unsigned short i = 0; i &lt; length; ++i)
+  {
+    if (_bi == 0)
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 0..3 are most significant
+      result = result * 10 + (*_op &amp; 0xf);
+      _bi = 4;
+    }
+    else
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 4..7 are least significant, skip 0xf digit
+      if ((*_op &amp; 0xf0) != 0xf0)
+        result = result * 10 + (*_op &gt;&gt; 4);
+      _bi = 0;
+      ++_op;
+    }
+  }
+  alignOctet();
+  return result;
+}
+
+unsigned long SMSDecoder::getTimeZone(bool &amp;negativeTimeZone)
+{
+  unsigned long result = 0;
+  alignOctet();
+  for (unsigned short i = 0; i &lt; 2; ++i)
+  {
+    if (_bi == 0)
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 0..3 are most significant
+      if (i == 0)
+      {                         // get sign
+        result = result * 10 + (*_op &amp; 0x7);
+        negativeTimeZone = (*_op &amp; 0x8 == 0);
+      }
+      else
+        result = result * 10 + (*_op &amp; 0xf);
+      _bi = 4;
+    }
+    else
+    {
+      if (_op &gt;= _maxop)
+        throw GsmException(_(&quot;premature end of PDU&quot;), SMSFormatError);
+      // bits 4..7 are least significant
+      result = result * 10 + (*_op &gt;&gt; 4);
+      _bi = 0;
+      ++_op;
+    }
+  }
+  alignOctet();
+  return result * 15;           // compute minutes
+}
+
+unsigned long SMSDecoder::getInteger(unsigned short length)
+{
+  unsigned long result = 0;
+  for (unsigned short i = 0; i &lt; length; ++i)
+    result |= (getBit() &lt;&lt; i);
+  return result;
+}
+
+string SMSDecoder::getString(unsigned short length)
+{
+  string result;
+  alignSeptet();
+  for (unsigned short i = 0; i &lt; length; ++i)
+  {
+    unsigned char c = 0;
+    for (unsigned short j = 0; j &lt; 7; ++j)
+      c |= getBit() &lt;&lt; j;
+    result += c;
+  }
+  return result;
+}
+
+Address SMSDecoder::getAddress(bool scAddressFormat)
+{
+  Address result;
+  alignOctet();
+
+  unsigned char addressLength = getOctet();
+  if (addressLength == 0 &amp;&amp; scAddressFormat)
+    return result; // special case for SUBMIT-PDUs
+
+  // parse Type-of-Address
+  result._plan = (Address::NumberingPlan)getInteger(4);
+  result._type = (Address::Type)getInteger(3);
+
+  // get address
+  if (result._type == Address::Alphanumeric)
+  {
+    markSeptet();
+    // addressLength is number of semi-octets
+    // (addressLength / 2) * 8 is number of available bits
+    // divided by 7 is number of 7-bit characters
+    result._number = gsmToLatin1(getString(addressLength * 4 / 7));
+    alignOctet();
+  }
+  else
+    result._number = getSemiOctets(scAddressFormat ?
+                                   (addressLength - 1) * 2 : addressLength);
+  return result;
+}
+
+Timestamp SMSDecoder::getTimestamp()
+{
+  Timestamp result;
+
+  result._year = getSemiOctetsInteger(2);
+  result._month = getSemiOctetsInteger(2);
+  result._day = getSemiOctetsInteger(2);
+  result._hour = getSemiOctetsInteger(2);
+  result._minute = getSemiOctetsInteger(2);
+  result._seconds = getSemiOctetsInteger(2);
+  result._timeZoneMinutes = getTimeZone(result._negativeTimeZone);
+  return result;
+}
+
+TimePeriod SMSDecoder::getTimePeriod(TimePeriod::Format format)
+{
+  TimePeriod result;
+  result._format = format;
+  switch (format)
+  {
+  case TimePeriod::NotPresent:
+    break;
+  case TimePeriod::Relative:
+    result._relativeTime = getOctet();
+    break;
+  case TimePeriod::Absolute:
+    result._absoluteTime = getTimestamp();
+    break;
+  default:
+    throw GsmException(_(&quot;unknown time period format&quot;), SMSFormatError);
+    break;
+  }
+  return result;
+}
+
+SMSDecoder::~SMSDecoder()
+{
+  delete _p;
+}
+
+// SMSEncoder members
+
+SMSEncoder::SMSEncoder() : _bi(0), _op(_p)
+{
+  memset((void*)_p, 0, sizeof(_p));
+}
+
+void SMSEncoder::alignOctet()
+{
+  if (_bi != 0)
+  {
+    _bi = 0;
+    ++_op;
+  }
+}
+    
+void SMSEncoder::alignSeptet()
+{
+  while (((_op - _septetStart) * 8 + _bi) % 7 != 0) setBit();
+}
+    
+void SMSEncoder::set2Bits(unsigned char twoBits)
+{
+  setBit(twoBits &amp; 1);
+  setBit((twoBits &amp; 2) == 2);
+}
+
+void SMSEncoder::setOctet(unsigned char octet)
+{
+  alignOctet();
+  *_op++ = octet;
+}
+
+void SMSEncoder::setOctets(const unsigned char* octets, unsigned short length)
+{
+  alignOctet();
+  for (unsigned short i = 0; i &lt; length; ++i)
+    *_op++ = octets[i];
+}
+
+void SMSEncoder::setSemiOctets(string semiOctets)
+{
+  alignOctet();
+  for (unsigned int i = 0; i &lt; semiOctets.length(); ++i)
+  {
+    if (_bi == 0)
+    {
+      *_op = semiOctets[i] - '0';
+      _bi = 4;
+    }
+    else
+    {
+      *_op++ |= (semiOctets[i] - '0') &lt;&lt; 4;
+      _bi = 0;
+    }
+  }
+  if (_bi == 4)
+    *_op++ |= 0xf0;
+  _bi = 0;
+}
+
+void SMSEncoder::setSemiOctetsInteger(unsigned long intValue,
+                                      unsigned short length)
+{
+  ostrstream os;
+  os &lt;&lt; intValue &lt;&lt; ends;
+  char *ss = os.str();
+  string s(ss);
+  delete[] ss;
+  assert(s.length() &lt;= length);
+  while (s.length() &lt; length) s = '0' + s;
+  setSemiOctets(s);
+}
+
+void SMSEncoder::setTimeZone(bool negativeTimeZone, unsigned long timeZone)
+{
+  setSemiOctetsInteger(timeZone / 15, 2);
+  if (!negativeTimeZone)
+    *(_op - 1) |= 8;
+}
+
+void SMSEncoder::setInteger(unsigned long intvalue, unsigned short length)
+{
+  for (unsigned short i = 0; i &lt; length; ++i)
+    setBit((intvalue &amp; (1 &lt;&lt; i)) != 0);
+}
+
+void SMSEncoder::setString(string stringValue)
+{
+  alignSeptet();
+  for (unsigned int i = 0; i &lt; stringValue.length(); ++i)
+  {
+    unsigned char c = stringValue[i];
+    for (unsigned short j = 0; j &lt; 7; ++j)
+      setBit(((1 &lt;&lt; j) &amp; c) != 0);
+  }
+}
+
+void SMSEncoder::setAddress(Address &amp;address, bool scAddressFormat)
+{
+  alignOctet();
+  if (scAddressFormat)
+  {
+    unsigned int numberLen = address._number.length();
+    if (numberLen == 0)
+    {
+      setOctet(0);              // special case: use default SC address
+      return;                   // (set by +CSCA=)
+    }
+    setOctet(numberLen / 2 + numberLen % 2 + 1);
+    // not supported for SCA format
+    assert(address._type != Address::Alphanumeric);
+  }
+  else
+    if (address._type == Address::Alphanumeric)
+      // address in GSM default encoding, see also comment in getAddress()
+      setOctet((address._number.length() * 7 + 6) / 8 * 2);
+    else
+      setOctet(address._number.length());
+
+  setInteger(address._plan, 4);
+  setInteger(address._type, 3);
+  setBit(1);
+  
+  if (address._number.length() &gt; 0)
+    if (address._type == Address::Alphanumeric)
+    {
+      markSeptet();
+      setString(latin1ToGsm(address._number));
+    }
+    else
+      setSemiOctets(address._number);
+  alignOctet();
+}
+
+void SMSEncoder::setTimestamp(Timestamp timestamp)
+{
+  setSemiOctetsInteger(timestamp._year, 2);
+  setSemiOctetsInteger(timestamp._month, 2);
+  setSemiOctetsInteger(timestamp._day, 2);
+  setSemiOctetsInteger(timestamp._hour, 2);
+  setSemiOctetsInteger(timestamp._minute, 2);
+  setSemiOctetsInteger(timestamp._seconds, 2);
+  setTimeZone(timestamp._negativeTimeZone, timestamp._timeZoneMinutes);
+}
+
+void SMSEncoder::setTimePeriod(TimePeriod period)
+{
+  switch (period._format)
+  {
+  case TimePeriod::NotPresent:
+    break;
+  case TimePeriod::Relative:
+    setOctet(period._relativeTime);
+    break;
+  case TimePeriod::Absolute:
+    setTimestamp(period._absoluteTime);
+    break;
+  default:
+    assert(0);
+    break;
+  }
+}
+
+string SMSEncoder::getHexString()
+{
+  short bi = _bi;
+  unsigned char *op = _op;
+  alignOctet();
+  string result = bufToHex(_p, _op - _p);
+  _bi = bi;
+  _op = op;
+  return result;
+}
+
+unsigned int SMSEncoder::getLength()
+{
+  short bi = _bi;
+  unsigned char *op = _op;
+  alignOctet();
+  unsigned int result = _op - _p;
+  _bi = bi;
+  _op = op;
+  return result;
+}
+
+// UserDataHeader members
+
+void UserDataHeader::encode(SMSEncoder &amp;e)
+{
+  e.setOctet(_udh.length());
+  e.setOctets((unsigned char*)_udh.data(), _udh.length());
+}
+
+void UserDataHeader::decode(SMSDecoder &amp;d)
+{
+  unsigned char udhLen = d.getOctet();
+  unsigned char *s =
+    (unsigned char*)alloca(sizeof(unsigned char) * udhLen);
+  d.getOctets(s, udhLen);
+  string ss((char*)s, (unsigned int)udhLen);
+  _udh = ss;
+}
+
+string UserDataHeader::getIE(unsigned char id)
+{
+  int udhl, pos = 0;
+        
+  udhl = _udh.length();
+  while (pos &lt; udhl)
+  {
+    unsigned char iei = _udh[pos++];
+    unsigned char ieidl = _udh[pos++];
+    if (iei == id) return _udh.substr(pos, ieidl);
+    pos += ieidl;
+  }
+  return &quot;&quot;;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_codech"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_codec.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,329 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms_codec.h
+// *
+// * Purpose: Coder and Encoder for SMS TPDUs
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 16.5.1999
+// *************************************************************************
+
+#ifndef GSM_SMS_CODEC_H
+#define GSM_SMS_CODEC_H
+
+#include &lt;string&gt;
+#include &lt;assert.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // this struct represents a telephone number
+  // usually _type == Unknown or International
+  // and _number == ISDN_Telephone
+  struct Address
+  {
+    enum Type {Unknown = 0, International = 1, National = 2,
+               NetworkSpecific = 3, Subscriber = 4,
+               Alphanumeric = 5, Abbreviated = 6, Reserved = 7};
+    enum NumberingPlan {UnknownPlan = 0, ISDN_Telephone = 1,
+                        Data = 3, Telex = 4, NationalPlan = 8,
+                        PrivatePlan = 9, Ermes = 10, ReservedPlan = 15};
+    Type _type;
+    NumberingPlan _plan;
+    string _number;    
+
+    Address() : _type(Unknown), _plan(UnknownPlan) {}
+    // the constructor sets _type and _plan to defaults
+    // _plan == ISDN_Telephone
+    // _type == International if number starts with &quot;+&quot;
+    // _type == unknown otherwise
+    // number must be of the form &quot;+123456&quot; or &quot;123456&quot;
+    Address(string number);
+
+    // return string representation
+    string toString() const;
+
+    friend bool operator&lt;(const Address &amp;x, const Address &amp;y);
+    friend bool operator==(const Address &amp;x, const Address &amp;y);
+  };
+
+  // compare two addresses
+  extern bool operator&lt;(const Address &amp;x, const Address &amp;y);
+  extern bool operator==(const Address &amp;x, const Address &amp;y);
+
+  // representation of a SMS timestamp
+  struct Timestamp
+  {
+    short _year, _month, _day, _hour, _minute, _seconds, _timeZoneMinutes;
+    bool _negativeTimeZone;
+
+    Timestamp() : _year(0), _month(0), _day(0), _hour(0),
+      _minute(0), _seconds(0), _timeZoneMinutes(0), _negativeTimeZone(false) {}
+
+    // return true if the time stamp is empty (ie. contains only zeroes)
+    bool empty() const;
+
+    // return string representation
+    string toString(bool appendTimeZone = true) const;
+
+    friend bool operator&lt;(const Timestamp &amp;x, const Timestamp &amp;y);
+    friend bool operator==(const Timestamp &amp;x, const Timestamp &amp;y);
+  };
+
+  // compare two timestamps
+  extern bool operator&lt;(const Timestamp &amp;x, const Timestamp &amp;y);
+  extern bool operator==(const Timestamp &amp;x, const Timestamp &amp;y);
+
+  // representation of time period
+  struct TimePeriod
+  {
+    // possible values for validity period format
+    enum Format {NotPresent = 0, Relative = 2, Absolute = 3};
+    Format _format;
+    Timestamp _absoluteTime;
+    unsigned char _relativeTime;
+
+    TimePeriod() : _format(NotPresent), _relativeTime(0) {}
+
+    // return string representation (already translated)
+    string toString() const;
+  };
+
+  // representation of DataCodingScheme
+  // the data coding scheme is described in detail in ETSI GSM 03.38, section 4
+  const unsigned char DCS_COMPRESSED = 0x20; // bit 5
+  
+  const unsigned char DCS_DEFAULT_ALPHABET = 0 &lt;&lt; 2; // bit 2..3 == 0
+  const unsigned char DCS_EIGHT_BIT_ALPHABET = 1 &lt;&lt; 2; // bit 2..3 == 01
+  const unsigned char DCS_SIXTEEN_BIT_ALPHABET = 2 &lt;&lt; 2; // bit 2..3 == 10
+  const unsigned char DCS_RESERVED_ALPHABET = 3 &lt;&lt; 2; // bit 2..3 == 11
+  
+  const unsigned char DCS_MESSAGE_WAITING_INDICATION = 0xc0; // bit 7..6 == 11
+  const unsigned char DCS_VOICEMAIL_MESSAGE_WAITING = 0;
+  const unsigned char DCS_FAX_MESSAGE_WAITING = 1;
+  const unsigned char DCS_ELECTRONIC_MAIL_MESSAGE_WAITING = 2;
+  const unsigned char DCS_OTHER_MESSAGE_WAITING = 3;
+
+  class DataCodingScheme
+  {
+  private:
+    unsigned char _dcs;
+
+  public:
+    // initialize with data coding scheme octet
+    DataCodingScheme(unsigned char dcs) : _dcs(dcs) {}
+    
+    // set to default values (no message waiting, no message class indication,
+    // default 7-bit alphabet)
+    DataCodingScheme() : _dcs(DCS_DEFAULT_ALPHABET) {}
+
+    // return type of alphabet used (if messageWaitingIndication == false)
+    unsigned char getAlphabet() const {return _dcs &amp; (3 &lt;&lt; 2);}
+    
+    // return true if message compressed
+    // (if messageWaitingIndication == false)
+    bool compressed() const {return _dcs &amp; DCS_COMPRESSED == DCS_COMPRESSED;}
+
+    // return true if message waiting indication
+    bool messageWaitingIndication() const
+      {return _dcs &amp; DCS_MESSAGE_WAITING_INDICATION == 
+         DCS_MESSAGE_WAITING_INDICATION;}
+
+    // return type of waiting message (if messageWaitingIndication == true)
+    unsigned char getMessageWaitingType() const {return _dcs &amp; 3;}
+
+    // return string representation (already translated)
+    string toString() const;
+
+    operator unsigned char() const {return _dcs;}
+  };
+
+  // utility class facilitate SMS TPDU decoding
+  class SMSDecoder
+  {
+  private:
+    unsigned char *_p;          // buffer to hold pdu
+    short _bi;                  // bit index (0..7)
+    unsigned char *_op;         // current octet pointer
+    unsigned char *_septetStart; // start of septet string
+
+    unsigned char *_maxop;      // pointer to last byte after _p
+
+  public:
+    // initialize with a hexadecimal octet string containing SMS TPDU
+    SMSDecoder(string pdu);
+
+    // align to octet border
+    void alignOctet();
+    
+    // remember starting point of septets (important for alignSeptet())
+    void markSeptet() {alignOctet(); _septetStart = _op;}
+
+    // align to septet border
+    void alignSeptet();
+    
+    // get single bit
+    bool getBit()
+    {
+      assert(_op &lt; _maxop);
+      bool result = ((*_op &gt;&gt; _bi) &amp; 1);
+      if (_bi == 7)
+      {
+        _bi = 0;
+        ++_op;
+      }
+      else
+        ++_bi;
+      return result;
+    }
+
+    // get two bits
+    unsigned char get2Bits();
+
+    // get one octet
+    unsigned char getOctet();
+
+    // get string of octets of specified length
+    void getOctets(unsigned char* octets, unsigned short length);
+
+    // get length semi-octets (bcd-coded number) as ASCII string of numbers
+    string getSemiOctets(unsigned short length);
+
+    // get length semi-octets (bcd-coded number) as integer
+    unsigned long getSemiOctetsInteger(unsigned short length);
+
+    // get time zone (in minutes) and time zone sign
+    unsigned long getTimeZone(bool &amp;negativeTimeZone);
+
+    // get integer with length number of bits
+    unsigned long getInteger(unsigned short length);
+
+    // get length number of alphanumeric 7-bit characters
+    // markSeptet() must be called before this function
+    string getString(unsigned short length);
+
+    // get address/telephone number
+    // service centre address has special format
+    Address getAddress(bool scAddressFormat = false);
+
+    // get Timestamp
+    Timestamp getTimestamp();
+
+    // get TimePeriod of given format
+    TimePeriod getTimePeriod(TimePeriod::Format format);
+
+    // destructor
+    ~SMSDecoder();
+  };
+
+  // utility class for SMS TPDU encoding
+  class SMSEncoder
+  {
+  private:
+    unsigned char _p[2000];     // buffer to hold pdu (2000 should be enough)
+    short _bi;                  // bit index (0..7)
+    unsigned char *_op;         // current octet pointer
+    unsigned char *_septetStart; // start of septet string
+
+  public:
+    // constructor
+    SMSEncoder();
+
+    // align to octet border
+    void alignOctet();
+
+    // remember starting point of septets (important for alignSeptet())
+    void markSeptet() {alignOctet(); _septetStart = _op;}
+
+    // align to septet border
+    void alignSeptet();
+    
+    // set single bit
+    void setBit(bool bit = false)
+    {
+      if (bit)
+        *_op |= (1 &lt;&lt; _bi);
+      if (_bi == 7)
+      {
+        _bi = 0;
+        ++_op;
+      }
+      else
+        ++_bi;
+    }
+
+    // set two bits
+    void set2Bits(unsigned char twoBits);
+
+    // set one octet
+    void setOctet(unsigned char octet);
+
+    // set string of octets of specified length
+    void setOctets(const unsigned char* octets, unsigned short length);
+
+    // set semi-octets semiOctets (given as ASCII string of numbers)
+    void setSemiOctets(string semiOctets);
+
+    // set semi-octets (given as integer)
+    void setSemiOctetsInteger(unsigned long intValue, unsigned short length);
+
+    // set time zone (in minutes) and time zone sign
+    void setTimeZone(bool negativeTimeZone, unsigned long timeZone);
+
+    // set integer with length number of bits
+    void setInteger(unsigned long intvalue, unsigned short length);
+
+    // set alphanumeric 7-bit characters
+    void setString(string stringValue);
+
+    // set address/telephone number
+    // service centre address has special format
+    void setAddress(Address &amp;address, bool scAddressFormat = false);
+
+    // set Timestamp
+    void setTimestamp(Timestamp timestamp);
+
+    // set TimePeriod
+    void setTimePeriod(TimePeriod period);
+
+    // return constructed TPDU as hex-encoded string
+    string getHexString();
+
+    // return current length of TPDU 
+    unsigned int getLength();
+  };
+
+  // class to handle user data header
+  class UserDataHeader
+  {
+  private:
+    string _udh;
+    
+  public:
+    // empty user data header
+    UserDataHeader() {}
+
+    // initialize with user data header
+    UserDataHeader (string udh) : _udh(udh) {}
+
+    // encode header
+    void encode(SMSEncoder &amp;e);
+
+    // decode header
+    void decode(SMSDecoder &amp;d);
+
+    // return a given information element, if present, or an empty string
+    string getIE(unsigned char id);
+    
+    // return the size of the header
+    unsigned int length() const {return _udh.length();}
+
+    // return user data header as octet string
+    operator string() const {return _udh;}
+  };
+};
+
+#endif // GSM_SMS_CODEC_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_storecc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,489 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms_store.cc
+// *
+// * Purpose: SMS functions, SMS store
+// *          (ETSI GSM 07.05)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 20.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_sms_store.h&gt;
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// SMSStoreEntry members
+
+SMSStoreEntry::SMSStoreEntry() :
+   _status(Unknown), _cached(false), _mySMSStore(NULL), _index(0)
+{
+}
+
+
+SMSMessageRef SMSStoreEntry::message() const throw(GsmException)
+{
+  if (! cached())
+  {
+    assert(_mySMSStore != NULL);
+    // these operations are at least &quot;logically const&quot;
+    SMSStoreEntry *thisEntry = const_cast&lt;SMSStoreEntry*&gt;(this);
+    _mySMSStore-&gt;readEntry(_index, thisEntry-&gt;_message, thisEntry-&gt;_status);
+    thisEntry-&gt;_cached = true;
+  }
+  return _message;
+}
+
+CBMessageRef SMSStoreEntry::cbMessage() const throw(GsmException)
+{
+  assert(_mySMSStore != NULL);
+
+  // these operations are at least &quot;logically const&quot;
+  SMSStoreEntry *thisEntry = const_cast&lt;SMSStoreEntry*&gt;(this);
+  // don't cache CB message for now
+  thisEntry-&gt;_cached = false;
+
+  CBMessageRef result;
+  _mySMSStore-&gt;readEntry(_index, result);
+  return result;
+}
+
+SMSStoreEntry::SMSMemoryStatus SMSStoreEntry::status() const
+  throw(GsmException)
+{
+  if (! cached())
+  {
+    assert(_mySMSStore != NULL);
+    // these operations are at least &quot;logically const&quot;
+    SMSStoreEntry *thisEntry = const_cast&lt;SMSStoreEntry*&gt;(this);
+    _mySMSStore-&gt;readEntry(_index, thisEntry-&gt;_message, thisEntry-&gt;_status);
+    thisEntry-&gt;_cached = true;
+  }
+  return _status;
+}
+
+bool SMSStoreEntry::empty() const throw(GsmException)
+{
+  return message().isnull();
+}
+
+unsigned char SMSStoreEntry::send(Ref&lt;SMSMessage&gt; &amp;ackPdu)
+  throw(GsmException)
+{
+  return _mySMSStore-&gt;send(_index, ackPdu);
+}
+
+unsigned char SMSStoreEntry::send() throw(GsmException)
+{
+  SMSMessageRef mref;
+  return send(mref);
+}
+
+bool SMSStoreEntry::cached() const
+{
+  if (_mySMSStore == NULL)
+    return _cached;
+  else
+    return _cached &amp;&amp; _mySMSStore-&gt;_useCache;
+}
+
+Ref&lt;SMSStoreEntry&gt; SMSStoreEntry::clone()
+{
+  Ref&lt;SMSStoreEntry&gt; result = new SMSStoreEntry(_message-&gt;clone());
+  result-&gt;_status = _status;
+  result-&gt;_index = _index;
+  return result;
+}
+
+bool SMSStoreEntry::operator==(const SMSStoreEntry &amp;e) const
+{
+  if (_message.isnull() || e._message.isnull())
+    return _message.isnull() &amp;&amp; e._message.isnull();
+  else
+    return _message-&gt;encode() == e._message-&gt;encode();
+}
+
+SMSStoreEntry::SMSStoreEntry(const SMSStoreEntry &amp;e)
+{
+ _message = e._message;
+ _status = e._status;
+ _cached = e._cached;
+ _mySMSStore = e._mySMSStore;
+ _index = e._index;
+}
+
+SMSStoreEntry &amp;SMSStoreEntry::operator=(const SMSStoreEntry &amp;e)
+{
+ _message = e._message;
+ _status = e._status;
+ _cached = e._cached;
+ _mySMSStore = e._mySMSStore;
+ _index = e._index;
+ return *this;
+}
+
+// iterator members
+
+SMSStoreEntry &amp;SMSStoreIterator::operator*()
+{
+  return (*_store)[_index];
+}
+  
+SMSStoreEntry *SMSStoreIterator::operator-&gt;()
+{
+  return &amp;(*_store)[_index];
+}
+
+SMSStoreIterator::operator SMSStoreEntry*()
+{
+  return &amp;(*_store)[_index];
+}
+
+SMSStoreIterator &amp;SMSStoreIterator::operator=(const SMSStoreIterator &amp;i)
+{
+  _index = i._index;
+  _store = i._store;
+  return *this;
+}
+
+const SMSStoreEntry &amp;SMSStoreConstIterator::operator*()
+{
+  return (*_store)[_index];
+}
+  
+const SMSStoreEntry *SMSStoreConstIterator::operator-&gt;()
+{
+  return &amp;(*_store)[_index];
+}
+
+// SMSStore members
+
+void SMSStore::readEntry(int index, SMSMessageRef &amp;message,
+                         SMSStoreEntry::SMSMemoryStatus &amp;status)
+  throw(GsmException)
+{
+  // select SMS store
+  _meTa.setSMSStore(_storeName, 1);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Reading SMS entry &quot; &lt;&lt; index &lt;&lt; endl;
+#endif // NDEBUG
+
+  string pdu;
+  Ref&lt;Parser&gt; p;
+  try
+  {
+    p = new Parser(_at-&gt;chat(&quot;+CMGR=&quot; + intToStr(index + 1), &quot;+CMGR:&quot;,
+                             pdu, false, true, true));
+  }
+  catch (GsmException &amp;ge)
+  {
+    if (ge.getErrorCode() != SMS_INVALID_MEMORY_INDEX)
+      throw ge;
+    else
+    {
+      message = SMSMessageRef();
+      status = SMSStoreEntry::Unknown;
+      return;
+    }
+  }
+
+  if (pdu.length() == 0)
+  {
+    message = SMSMessageRef();
+    status = SMSStoreEntry::Unknown;
+  }
+  else
+  {
+    // add missing service centre address if required by ME
+    if (! _at-&gt;getMeTa().getCapabilities()._hasSMSSCAprefix)
+      pdu = &quot;00&quot; + pdu;
+
+    status = (SMSStoreEntry::SMSMemoryStatus)p-&gt;parseInt();
+
+    // ignore the rest of the line
+    message = SMSMessageRef(
+      SMSMessage::decode(pdu,
+                         !(status == SMSStoreEntry::StoredUnsent ||
+                           status == SMSStoreEntry::StoredSent),
+                         _at.getptr()));
+  }
+}
+
+void SMSStore::readEntry(int index, CBMessageRef &amp;message)
+  throw(GsmException)
+{
+  // select SMS store
+  _meTa.setSMSStore(_storeName, 1);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Reading CB entry &quot; &lt;&lt; index &lt;&lt; endl;
+#endif // NDEBUG
+
+  string pdu;
+  Ref&lt;Parser&gt; p;
+  try
+  {
+    // this is just one row splitted in two part
+    // (msvc6 fail with internal compiler error)
+    string s = _at-&gt;chat(&quot;+CMGR=&quot; + intToStr(index + 1), &quot;+CMGR:&quot;,
+                         pdu, false, true, true);
+    p = new Parser(s);
+  }
+  catch (GsmException &amp;ge)
+  {
+    if (ge.getErrorCode() != SMS_INVALID_MEMORY_INDEX)
+      throw ge;
+    else
+    {
+      message = CBMessageRef();
+      return;
+    }
+  }
+
+  if (pdu.length() == 0)
+    message = CBMessageRef();
+  else
+    message = CBMessageRef(new CBMessage(pdu));
+}
+
+void SMSStore::writeEntry(int &amp;index, SMSMessageRef message)
+  throw(GsmException)
+{
+  // select SMS store
+  _meTa.setSMSStore(_storeName, 2);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Writing SMS entry &quot; &lt;&lt; index &lt;&lt; endl;
+#endif
+  
+  // compute length of pdu
+  string pdu = message-&gt;encode();
+
+  // set message status to &quot;RECEIVED READ&quot; for SMS_DELIVER, SMS_STATUS_REPORT
+  string statusString;
+
+  // Normally the &quot;,1&quot; sets the message status to &quot;REC READ&quot; (received read)
+  // which is appropriate for all non-submit messages
+  // Motorola Timeport 260 does not like this code, though
+  // DELIVER messages are magically recognized anyway
+  if (message-&gt;messageType() != SMSMessage::SMS_SUBMIT &amp;&amp;
+      ! _at-&gt;getMeTa().getCapabilities()._wrongSMSStatusCode)
+    statusString = &quot;,1&quot;;
+
+  Parser p(_at-&gt;sendPdu(&quot;+CMGW=&quot; +
+                        intToStr(pdu.length() / 2 -
+                                 message-&gt;getSCAddressLen()) + statusString,
+                        &quot;+CMGW:&quot;, pdu));
+  index = p.parseInt() - 1;
+}
+
+void SMSStore::eraseEntry(int index) throw(GsmException)
+{
+  // Select SMS store
+  _meTa.setSMSStore(_storeName, 1);
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;*** Erasing SMS entry &quot; &lt;&lt; index &lt;&lt; endl;
+#endif
+  
+  _at-&gt;chat(&quot;+CMGD=&quot; + intToStr(index + 1));
+}
+
+unsigned char SMSStore::send(int index, Ref&lt;SMSMessage&gt; &amp;ackPdu)
+ throw(GsmException)
+{
+  Parser p(_at-&gt;chat(&quot;+CMSS=&quot; + intToStr(index + 1), &quot;+CMSS:&quot;));
+  unsigned char messageReference = p.parseInt();
+
+  if (p.parseComma(true))
+  {
+    string pdu = p.parseEol();
+
+    // add missing service centre address if required by ME
+    if (! _at-&gt;getMeTa().getCapabilities()._hasSMSSCAprefix)
+      pdu = &quot;00&quot; + pdu;
+
+    ackPdu = SMSMessage::decode(pdu);
+  }
+  else
+    ackPdu = SMSMessageRef();
+
+  return messageReference;
+}
+
+int SMSStore::doInsert(SMSMessageRef message)
+  throw(GsmException)
+{
+  int index;
+  writeEntry(index, message);
+  // it is safer to force reading back the SMS from the ME
+  resizeStore(index + 1);
+  _store[index]-&gt;_cached = false;
+  return index;
+}
+
+SMSStore::SMSStore(string storeName, Ref&lt;GsmAt&gt; at, MeTa &amp;meTa)
+  throw(GsmException) :
+  _storeName(storeName), _at(at), _meTa(meTa), _useCache(true)
+{
+  // select SMS store
+  Parser p(_meTa.setSMSStore(_storeName, true, true));
+  
+  p.parseInt();                 // skip number of used mems
+  p.parseComma();
+
+  resizeStore(p.parseInt());    // ignore rest of line
+}
+
+void SMSStore::resizeStore(int newSize)
+{
+  int oldSize = _store.size();
+  if (newSize &gt; oldSize)
+  {
+    //    cout &lt;&lt; &quot;*** Resizing from &quot; &lt;&lt; oldSize &lt;&lt; &quot; to &quot; &lt;&lt; newSize &lt;&lt; endl;
+    _store.resize(newSize);
+    
+    // initialize store entries
+    for (int i = oldSize; i &lt; newSize; i++)
+    {
+      _store[i] = new SMSStoreEntry();
+      _store[i]-&gt;_index = i;
+      _store[i]-&gt;_cached = false;
+      _store[i]-&gt;_mySMSStore = this;
+    }
+  }
+}
+
+SMSStore::iterator SMSStore::begin()
+{
+  return SMSStoreIterator(0, this);
+}
+
+SMSStore::const_iterator SMSStore::begin() const
+{
+  return SMSStoreConstIterator(0, this);
+}
+
+SMSStore::iterator SMSStore::end()
+{
+  return SMSStoreIterator(_store.size(), this);
+}
+
+SMSStore::const_iterator SMSStore::end() const
+{
+  return SMSStoreConstIterator(_store.size(), this);
+}
+
+SMSStore::reference SMSStore::operator[](int n)
+{
+  resizeStore(n + 1);
+  return *_store[n];
+}
+
+SMSStore::const_reference SMSStore::operator[](int n) const
+{
+  const_cast&lt;SMSStore*&gt;(this)-&gt;resizeStore(n + 1);
+  return *_store[n];
+}
+
+SMSStore::reference SMSStore::front()
+{
+  return *_store[0];
+}
+
+SMSStore::const_reference SMSStore::front() const
+{
+  return *_store[0];
+}
+
+SMSStore::reference SMSStore::back()
+{
+  return *_store.back();
+}
+
+SMSStore::const_reference SMSStore::back() const
+{
+  return *_store.back();
+}
+
+int SMSStore::size() const throw(GsmException)
+{
+  // select SMS store
+  Parser p(_meTa.setSMSStore(_storeName, 1, true));
+  
+  return p.parseInt();  
+}
+
+SMSStore::iterator SMSStore::insert(iterator position,
+                                    const SMSStoreEntry&amp; x)
+  throw(GsmException)
+{
+  int index = doInsert(x.message());
+  return SMSStoreIterator(index, this);
+}
+
+SMSStore::iterator SMSStore::insert(const SMSStoreEntry&amp; x)
+  throw(GsmException)
+{
+  int index = doInsert(x.message());
+  return SMSStoreIterator(index, this);
+}
+
+void SMSStore::insert (iterator pos, int n, const SMSStoreEntry&amp; x)
+  throw(GsmException)
+{
+  for (int i = 0; i &lt; n; i++)
+    doInsert(x.message());
+}
+
+void SMSStore::insert (iterator pos, long n, const SMSStoreEntry&amp; x)
+  throw(GsmException)
+{
+  for (long i = 0; i &lt; n; i++)
+    doInsert(x.message());
+}
+
+SMSStore::iterator SMSStore::erase(iterator position)
+  throw(GsmException)
+{
+  eraseEntry(position-&gt;_index);
+  position-&gt;_cached = false;
+  return position + 1;
+}
+
+SMSStore::iterator SMSStore::erase(iterator first, iterator last)
+  throw(GsmException)
+{
+  iterator i(0, this);
+  for (i = first; i != last; ++i)
+    erase(i);
+  return i;
+}
+
+void SMSStore::clear() throw(GsmException)
+{
+  for (iterator i = begin(); i != end(); ++i)
+    erase(i);
+}
+
+SMSStore::~SMSStore()
+{
+  for (vector&lt;SMSStoreEntry*&gt;::iterator i = _store.begin();
+       i != _store.end(); ++i)
+    delete *i;
+}
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sms_storeh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sms_store.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,295 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sms_store.h
+// *
+// * Purpose: SMS functions, SMS store
+// *          (ETSI GSM 07.05)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 20.5.1999
+// *************************************************************************
+
+#ifndef GSM_SMS_STORE_H
+#define GSM_SMS_STORE_H
+
+#include &lt;string&gt;
+#include &lt;iterator&gt;
+#include &lt;gsmlib/gsm_at.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sms.h&gt;
+#include &lt;gsmlib/gsm_cb.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // forward declarations
+  class SMSStore;
+  class MeTa;
+
+  // a single entry in the SMS store
+
+  class SMSStoreEntry : public RefBase
+  {
+  public:
+    // status in ME memory
+    enum SMSMemoryStatus {ReceivedUnread = 0, ReceivedRead = 1,
+                          StoredUnsent = 2, StoredSent = 3,
+                          All = 4, Unknown = 5};
+
+  private:
+    SMSMessageRef _message;
+    SMSMemoryStatus _status;
+    bool _cached;
+    SMSStore *_mySMSStore;
+    int _index;
+
+  public:
+    // this constructor is only used by SMSStore
+    SMSStoreEntry();
+
+    // create new entry given a SMS message
+    SMSStoreEntry(SMSMessageRef message) :
+      _message(message), _status(Unknown), _cached(true), _mySMSStore(NULL),
+      _index(0) {}
+
+    // create new entry given a SMS message and an index
+    // only to be used for file-based stores (see gsm_sorted_sms_store)
+    SMSStoreEntry(SMSMessageRef message, int index) :
+      _message(message), _status(Unknown), _cached(true), _mySMSStore(NULL),
+      _index(index) {}
+   
+    // clear cached flag
+    void clearCached() { _cached = false; }
+
+    // return SMS message stored in the entry
+    SMSMessageRef message() const throw(GsmException);
+
+    // return CB message stored in the entry
+    CBMessageRef cbMessage() const throw(GsmException);
+
+    // return message status in store
+    SMSMemoryStatus status() const throw(GsmException);
+
+    // return true if empty, ie. no SMS in this entry
+    bool empty() const throw(GsmException);
+
+    // send this PDU from store
+    // returns message reference and ACK-PDU (if requested)
+    // only applicate to SMS-SUBMIT and SMS-COMMAND
+    unsigned char send(Ref&lt;SMSMessage&gt; &amp;ackPdu) throw(GsmException);
+    
+    // same as above, but ACK-PDU is discarded
+    unsigned char send() throw(GsmException);
+
+    // return index (guaranteed to be unique,
+    // can be used for identification in store)
+    int index() const {return _index;}
+
+    // return true if entry is cached (and caching is enabled)
+    bool cached() const;
+
+    // return deep copy of this entry
+    Ref&lt;SMSStoreEntry&gt; clone();
+
+    // equality operator
+    bool operator==(const SMSStoreEntry &amp;e) const;
+
+    // return store reference
+    SMSStore *getStore() {return _mySMSStore;}
+
+    // copy constructor and assignment
+    SMSStoreEntry(const SMSStoreEntry &amp;e);
+    SMSStoreEntry &amp;operator=(const SMSStoreEntry &amp;e);
+
+    friend class SMSStore;
+  };
+
+  // iterator for the SMSStore class
+
+#if __GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ == 95
+  class SMSStoreIterator : public random_access_iterator&lt;SMSStoreEntry,
+                           int&gt;
+#else
+  class SMSStoreIterator : public iterator&lt;random_access_iterator_tag,
+                           SMSStoreEntry, int&gt;
+#endif
+  {
+    int _index;
+    SMSStore *_store;
+
+    SMSStoreIterator(int index, SMSStore *store) :
+      _index(index), _store(store) {}
+
+  public:
+    SMSStoreIterator(SMSStoreEntry *entry) :
+      _index(entry-&gt;index()), _store(entry-&gt;getStore()) {}
+
+    SMSStoreEntry &amp;operator*();
+    SMSStoreEntry *operator-&gt;();
+    SMSStoreIterator &amp;operator+(int i)
+      {_index += i; return *this;}
+    operator SMSStoreEntry*();
+    SMSStoreIterator &amp;operator=(const SMSStoreIterator &amp;i);
+    SMSStoreIterator &amp;operator++()
+      {++_index; return *this;}
+    SMSStoreIterator &amp;operator--()
+      {--_index; return *this;}
+    SMSStoreIterator &amp;operator++(int i)
+      {_index += i; return *this;}
+    SMSStoreIterator &amp;operator--(int i)
+      {_index -= i; return *this;}
+    bool operator&lt;(SMSStoreIterator &amp;i)
+      {return _index &lt; i._index;}
+    bool operator==(const SMSStoreIterator &amp;i) const
+      {return _index == i._index;}
+    bool operator!=(const SMSStoreIterator &amp;i) const
+      {return _index != i._index;}
+
+    friend class SMSStore;
+  };
+
+#if __GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ == 95
+  class SMSStoreConstIterator : public random_access_iterator&lt;SMSStoreEntry,
+                                int&gt;
+#else
+  class SMSStoreConstIterator : public iterator&lt;random_access_iterator_tag,
+                                SMSStoreEntry, int&gt;
+#endif
+  {
+    int _index;
+    const SMSStore *_store;
+
+    SMSStoreConstIterator(int index, const SMSStore *store) :
+      _index(index), _store(store) {}
+
+  public:
+    const SMSStoreEntry &amp;operator*();
+    const SMSStoreEntry *operator-&gt;();
+    SMSStoreConstIterator &amp;operator++()
+      {++_index; return *this;}
+    SMSStoreConstIterator &amp;operator--()
+      {--_index; return *this;}
+    SMSStoreConstIterator &amp;operator++(int i)
+      {_index += i; return *this;}
+    SMSStoreConstIterator &amp;operator--(int i)
+      {_index -= i; return *this;}
+    bool operator&lt;(SMSStoreConstIterator &amp;i)
+      {return _index &lt; i._index;}
+    bool operator==(const SMSStoreConstIterator &amp;i) const
+      {return _index == i._index;}
+
+    friend class SMSStore;
+  };
+
+  // this class corresponds to a SMS store in the ME
+  // all functions directly update storage in the ME
+  // if the ME is exchanged, the storage may become corrupted because
+  // of internal buffering in the SMSStore class
+
+  class SMSStore : public RefBase, public NoCopy
+  {
+  private:
+    vector&lt;SMSStoreEntry*&gt; _store; // vector of store entries
+    string _storeName;          // name of the store, 2-byte like &quot;SM&quot;
+    Ref&lt;GsmAt&gt; _at;             // my GsmAt class
+    MeTa &amp;_meTa;                // my MeTa class
+    bool _useCache;             // true if entries should be cached
+
+    // internal access functions
+    // read/write entry from/to ME
+    void readEntry(int index, SMSMessageRef &amp;message,
+                   SMSStoreEntry::SMSMemoryStatus &amp;status) throw(GsmException);
+    void readEntry(int index, CBMessageRef &amp;message) throw(GsmException);
+    void writeEntry(int &amp;index, SMSMessageRef message)
+      throw(GsmException);
+    // erase entry
+    void eraseEntry(int index) throw(GsmException);
+    // send PDU index from store
+    // returns message reference and ACK-PDU (if requested)
+    // only applicate to SMS-SUBMIT and SMS-COMMAND
+    unsigned char send(int index, Ref&lt;SMSMessage&gt; &amp;ackPdu) throw(GsmException);
+    
+
+    // do the actual insertion, return index of new element
+    int doInsert(SMSMessageRef message) throw(GsmException);
+
+    // used by class MeTa
+    SMSStore(string storeName, Ref&lt;GsmAt&gt; at, MeTa &amp;meTa) throw(GsmException);
+
+    // resize store entry vector if necessary
+    void resizeStore(int newSize);
+
+  public:
+    // iterator defs
+    typedef SMSStoreIterator iterator;
+    typedef SMSStoreConstIterator const_iterator;
+    typedef SMSStoreEntry &amp;reference;
+    typedef const SMSStoreEntry &amp;const_reference;
+
+    // set cache mode on or off
+    void setCaching(bool useCache) {_useCache = useCache;}
+
+    // return name of this store (2-character string)
+    string name() const {return _storeName;}
+
+    // SMS store traversal commands
+    // these are suitable to use stdc++ lib algorithms and iterators
+    // ME have fixed storage space implemented as memory slots
+    // that may either be empty or used
+    
+    // traversal commands
+    iterator begin();
+    const_iterator begin() const;
+    iterator end();
+    const_iterator end() const;
+    reference front();
+    const_reference front() const;
+    reference back();
+    const_reference back() const;
+    reference operator[](int n);
+    const_reference operator[](int n) const;
+
+    // The size macros return the number of used entries
+    // Warning: indices may be _larger_ than size() because of this
+    // (perhaps this should be changed, because it is unexpected behavior)
+
+    int size() const throw(GsmException);
+    int max_size() const {return _store.size();}
+    int capacity() const {return _store.size();}
+    bool empty() const throw(GsmException) {return size() == 0;}
+
+    // insert iterators insert into the first empty cell regardless of position
+    // existing iterators may be invalidated after an insert operation
+    // return position
+    // insert only writes to available positions
+    // warning: insert fails silently if size() == max_size()
+    iterator insert(iterator position, const SMSStoreEntry&amp; x)
+      throw(GsmException);
+    iterator insert(const SMSStoreEntry&amp; x) throw(GsmException);
+
+    // insert n times, same procedure as above
+    void insert (iterator pos, int n, const SMSStoreEntry&amp; x)
+      throw(GsmException);
+    void insert (iterator pos, long n, const SMSStoreEntry&amp; x)
+      throw(GsmException);
+
+    // erase operators set used slots to &quot;empty&quot;
+    iterator erase(iterator position) throw(GsmException);
+    iterator erase(iterator first, iterator last) throw(GsmException);
+    void clear() throw(GsmException);
+
+    // destructor
+    ~SMSStore();
+
+    friend class SMSStoreEntry;
+    friend class MeTa;
+  };
+
+  typedef Ref&lt;SMSStore&gt; SMSStoreRef;
+
+};
+
+#endif // GSM_SMS_STORE_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebookcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,502 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_phonebook.cc
+// *
+// * Purpose: Alphabetically sorted phonebook
+// *          (residing in files or in the ME)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 25.6.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sorted_phonebook.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;iostream&gt;
+#include &lt;fstream&gt;
+#include &lt;limits.h&gt;
+
+const int MAX_LINE_SIZE = 1000;
+
+using namespace std;
+using namespace gsmlib;
+
+string SortedPhonebook::escapeString(string s)
+{
+  string result;
+  
+  for (const char *pp = s.c_str(); *pp != 0; ++pp)
+  {
+    if (*pp == CR)
+      result += &quot;\\r&quot;;
+    else if (*pp == LF)
+      result += &quot;\\n&quot;;
+    else if (*pp == '\\')
+      result += &quot;\\\\&quot;;
+    else if (*pp == '|')
+      result += &quot;\\|&quot;;
+    else
+      result += *pp;
+  }
+  return result;
+}
+
+string SortedPhonebook::unescapeString(char *line, unsigned int &amp;pos)
+{
+  string result;
+  bool escaped = false;
+
+  while (! (line[pos] == '|' &amp;&amp; ! escaped) &amp;&amp; line[pos] != 0 &amp;&amp;
+         line[pos] != CR &amp;&amp; line[pos] != LF)
+  {
+    if (escaped)
+    {
+      escaped = false;
+      if (line[pos] == 'r')
+        result += CR;
+      else if (line[pos] == 'n')
+        result += LF;
+      else if (line[pos] == '\\')
+        result += '\\';
+      else if (line[pos] == '|')
+        result += '|';
+      else
+        result += line[pos];
+    }
+    else
+      if (line[pos] == '\\')
+        escaped = true;
+      else
+        result += line[pos];
+
+    ++pos;
+  }
+  return result;
+}
+
+void SortedPhonebook::readPhonebookFile(istream &amp;pbs, string filename)
+  throw(GsmException)
+{
+  // read entries
+  while (! pbs.eof())
+  {
+    char line[MAX_LINE_SIZE];
+    pbs.getline(line, MAX_LINE_SIZE);
+
+    if (strlen(line) == 0)
+      continue;                 // skip empty lines
+
+    if (pbs.bad())
+      throw GsmException(stringPrintf(_(&quot;error reading from file '%s&quot;),
+                                      filename.c_str()),
+                         OSError);
+
+    // convert line to newEntry (line format : [index] '|' text '|' number
+    string text, telephone;
+    unsigned int pos = 0;
+
+    // parse index
+    string indexS = unescapeString(line, pos);
+    int index = -1;
+    if (indexS.length() == 0)
+    {
+      if (_useIndices)
+        throw GsmException(stringPrintf(_(&quot;entry '%s' lacks index&quot;), line),
+                           ParserError);
+    }
+    else
+    {
+      index = checkNumber(indexS);
+      _useIndices = true;
+    }
+    if (line[pos++] != '|')
+      throw GsmException(stringPrintf(_(&quot;line '%s' has invalid format&quot;), line),
+                         ParserError);
+
+    // parse text
+    text = unescapeString(line, pos);
+    if (line[pos++] != '|')
+      throw GsmException(stringPrintf(_(&quot;line '%s' has invalid format&quot;), line),
+                         ParserError);
+
+    // parse telephone number
+    telephone = unescapeString(line, pos);
+
+    insert(PhonebookEntryBase(telephone, text, index));
+  }
+}
+
+void SortedPhonebook::sync(bool fromDestructor) throw(GsmException)
+{
+  // if not in file it already is stored in ME/TA
+  if (! _fromFile) return;
+
+  // if writing to stdout and not called from destructor ignore
+  // (avoids writing to stdout multiple times)
+  if (_filename == &quot;&quot; &amp;&amp; ! fromDestructor) return;
+
+  // find out if any of the entries have been updated
+  if (! _changed)    // only look if we're not writing the file anyway
+    for (iterator i = begin(); i != end(); i++)
+      if (i-&gt;changed())
+      {
+        _changed = true;
+        break;
+      }
+
+  if (_changed)
+  {
+    checkReadonly();
+    // create backup file - but only once
+    if (! _madeBackupFile &amp;&amp; _filename != &quot;&quot;) // don't make backup of stdout
+    {
+      renameToBackupFile(_filename);
+      _madeBackupFile = true;
+    }
+
+    // open stream
+    ostream *pbs = NULL;
+    try
+    {
+      if (_filename == &quot;&quot;)
+        pbs = &amp;cout;
+      else
+        pbs = new ofstream(_filename.c_str());
+      
+      if (pbs-&gt;bad())
+        throw GsmException(
+          stringPrintf(_(&quot;error opening file '%s' for writing&quot;),
+                       (_filename == &quot;&quot; ? _(&quot;&lt;STDOUT&gt;&quot;) :
+                        _filename.c_str())),
+          OSError);
+    
+      // and write the entries
+      for (PhonebookMap::iterator i = _sortedPhonebook.begin();
+           i != _sortedPhonebook.end(); ++i)
+      {
+        // convert entry to output line
+        string line =
+          (_useIndices ? intToStr(i-&gt;second-&gt;index()) : &quot;&quot;) + &quot;|&quot; +
+          escapeString(i-&gt;second-&gt;text()) + &quot;|&quot; +
+          escapeString(i-&gt;second-&gt;telephone());
+      
+        // write out the line
+        *pbs &lt;&lt; line &lt;&lt; endl;
+        if (pbs-&gt;bad())
+          throw GsmException(
+            stringPrintf(_(&quot;error writing to file '%s'&quot;),
+                         (_filename == &quot;&quot; ? _(&quot;&lt;STDOUT&gt;&quot;) :
+                          _filename.c_str())),
+            OSError);
+      }
+    }
+    catch(GsmException &amp;e)
+    {
+      if (pbs != &amp;cout) delete pbs;
+      throw;
+    }
+    // close file
+    if (pbs != &amp;cout) delete pbs;
+
+    // reset all changed states
+    _changed = false;
+    for (iterator j = begin(); j != end(); j++)
+      j-&gt;resetChanged();
+  }
+}
+
+void SortedPhonebook::checkReadonly() throw(GsmException)
+{
+  if (_readonly) throw GsmException(
+    _(&quot;attempt to change phonebook read from &lt;STDIN&gt;&quot;),
+    ParameterError);
+}
+
+SortedPhonebook::SortedPhonebook(string filename, bool useIndices)
+  throw(GsmException) :
+  _changed(false), _fromFile(true), _madeBackupFile(false),
+  _sortOrder(ByIndex), _useIndices(useIndices), _readonly(false),
+  _filename(filename)
+{
+  // open the file
+  ifstream pbs(filename.c_str());
+  if (pbs.bad())
+    throw GsmException(stringPrintf(_(&quot;cannot open file '%s'&quot;),
+                                    filename.c_str()),
+                       OSError);
+  // and read the file
+  readPhonebookFile(pbs, filename);
+}
+
+SortedPhonebook::SortedPhonebook(bool fromStdin, bool useIndices)
+  throw(GsmException) :
+  _changed(false), _fromFile(true), _madeBackupFile(false),
+  _sortOrder(ByIndex), _useIndices(useIndices), _readonly(fromStdin)
+  // _filename is &quot;&quot; - this means stdout
+{
+  // read from stdin
+  if (fromStdin)
+    readPhonebookFile(cin, (string)_(&quot;&lt;STDIN&gt;&quot;));
+}
+
+SortedPhonebook::SortedPhonebook(PhonebookRef mePhonebook)
+  throw(GsmException) :
+  _changed(false), _fromFile(false), _madeBackupFile(false),
+  _sortOrder(ByIndex), _readonly(false), _mePhonebook(mePhonebook)
+{
+  int entriesRead = 0;
+  reportProgress(0, _mePhonebook-&gt;end() - _mePhonebook-&gt;begin());
+
+  for (Phonebook::iterator i = _mePhonebook-&gt;begin();
+       i != _mePhonebook-&gt;end(); ++i)
+  {
+    if (! i-&gt;empty())
+    {
+      _sortedPhonebook.insert(
+        PhonebookMap::value_type(PhoneMapKey(*this, lowercase(i-&gt;text())), i));
+      ++entriesRead;
+      if (entriesRead == _mePhonebook-&gt;size())
+        return;                 // ready
+    }
+    reportProgress(i - _mePhonebook-&gt;begin());
+  }
+}
+
+void SortedPhonebook::setSortOrder(SortOrder newOrder)
+{
+  if (newOrder == _sortOrder) return; // nothing to do
+
+  PhonebookMap savedPhonebook = _sortedPhonebook; // save phonebook
+  _sortedPhonebook = PhonebookMap(); // empty old phonebook
+  _sortOrder = newOrder;
+
+  // re-insert entries
+  switch (newOrder)
+  {
+  case ByTelephone:
+  {
+    for (PhonebookMap::iterator i = savedPhonebook.begin();
+         i != savedPhonebook.end(); ++i)
+      _sortedPhonebook.
+        insert(PhonebookMap::value_type(
+          PhoneMapKey(*this, lowercase(i-&gt;second-&gt;telephone())), i-&gt;second));
+    break;
+  }
+  case ByText:
+  {
+    for (PhonebookMap::iterator i = savedPhonebook.begin();
+         i != savedPhonebook.end(); ++i)
+      _sortedPhonebook.
+        insert(PhonebookMap::value_type(
+          PhoneMapKey(*this, lowercase(i-&gt;second-&gt;text())), i-&gt;second));
+    break;
+  }
+  case ByIndex:
+  {
+    for (PhonebookMap::iterator i = savedPhonebook.begin();
+         i != savedPhonebook.end(); ++i)
+      _sortedPhonebook.
+        insert(PhonebookMap::value_type(
+          PhoneMapKey(*this, i-&gt;second-&gt;index()), i-&gt;second));
+    break;
+  }
+  default:
+    assert(0);
+    break;
+  }
+}
+
+unsigned int SortedPhonebook::getMaxTelephoneLen() const
+{
+  if (_fromFile)
+    return UINT_MAX;
+  else
+    return _mePhonebook-&gt;getMaxTelephoneLen();
+}
+
+unsigned int SortedPhonebook::getMaxTextLen() const
+{
+  if (_fromFile)
+    return UINT_MAX;
+  else
+    return _mePhonebook-&gt;getMaxTextLen();
+}
+
+int SortedPhonebook::max_size() const
+{
+  if (_fromFile)
+    return _sortedPhonebook.max_size();
+  else
+    return _mePhonebook-&gt;max_size();
+}
+
+int SortedPhonebook::capacity() const
+{
+  if (_fromFile)
+    return _sortedPhonebook.max_size();
+  else
+    return _mePhonebook-&gt;capacity();
+}
+
+SortedPhonebook::iterator
+SortedPhonebook::insert(const PhonebookEntryBase&amp; x) throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  PhonebookEntryBase *newEntry;
+
+  if (_fromFile)
+    if (_useIndices)
+    {
+      if (x.index() != -1)      // check that index is unique
+      {
+        for (PhonebookMap::iterator i = _sortedPhonebook.begin();
+             i != _sortedPhonebook.end(); ++i)
+          if (i-&gt;second-&gt;index() == x.index())
+            throw GsmException(_(&quot;indices must be unique in phonebook&quot;),
+                               ParameterError);
+        newEntry = new PhonebookEntryBase(x);
+      }
+      else                      // set index
+      {
+        SortOrder saveSortOrder = _sortOrder;
+        setSortOrder(ByIndex);
+        int index = 0;
+        for (PhonebookMap::iterator i = _sortedPhonebook.begin();
+             i != _sortedPhonebook.end(); ++i, ++index)
+          if (i-&gt;second-&gt;index() != index)
+            break;
+        setSortOrder(saveSortOrder);
+        newEntry = new PhonebookEntryBase();
+        newEntry-&gt;set(x.telephone(), x.text(), index, true);
+      }
+    }
+    else                        // index info in x is ignored
+      newEntry = new PhonebookEntryBase(x);
+  else
+  {
+    PhonebookEntry newMEEntry(x);
+    newEntry = _mePhonebook-&gt;insert((PhonebookEntry*)NULL, newMEEntry);
+  }
+  switch (_sortOrder)
+  {
+  case ByTelephone:
+    return
+      _sortedPhonebook.
+      insert(PhonebookMap::value_type(
+        PhoneMapKey(*this, lowercase(newEntry-&gt;telephone())), newEntry));
+  case ByText:
+    return
+      _sortedPhonebook.
+      insert(PhonebookMap::value_type(
+        PhoneMapKey(*this, lowercase(newEntry-&gt;text())), newEntry));
+  case ByIndex:
+    return
+      _sortedPhonebook.
+      insert(PhonebookMap::value_type(
+        PhoneMapKey(*this, newEntry-&gt;index()), newEntry));
+  default:
+    assert(0);
+    break;
+  }
+  return SortedPhonebook::iterator();
+}
+
+SortedPhonebook::iterator
+SortedPhonebook::insert(iterator position, const PhonebookEntryBase&amp; x)
+  throw(GsmException)
+{
+  return insert(x);
+}
+
+SortedPhonebook::size_type SortedPhonebook::erase(string &amp;key)
+  throw(GsmException)
+{
+  // deallocate memory or remove from underlying ME phonebook
+  for (PhonebookMap::iterator i =
+         _sortedPhonebook.find(PhoneMapKey(*this, lowercase(key)));
+       i != _sortedPhonebook.end() &amp;&amp;
+         i-&gt;first == PhoneMapKey(*this, lowercase(key));
+       ++i)
+  {
+    checkReadonly();
+    _changed = true;
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _mePhonebook-&gt;erase((Phonebook::iterator)i-&gt;second);
+  }
+
+  return _sortedPhonebook.erase(PhoneMapKey(*this, lowercase(key)));
+}
+
+SortedPhonebook::size_type SortedPhonebook::erase(int key)
+  throw(GsmException)
+{
+  // deallocate memory or remove from underlying ME phonebook
+  for (PhonebookMap::iterator i =
+         _sortedPhonebook.find(PhoneMapKey(*this, key));
+       i != _sortedPhonebook.end() &amp;&amp; i-&gt;first == PhoneMapKey(*this, key);
+       ++i)
+  {
+    checkReadonly();
+    _changed = true;
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _mePhonebook-&gt;erase((Phonebook::iterator)i-&gt;second);
+  }
+
+  return _sortedPhonebook.erase(PhoneMapKey(*this, key));
+}
+
+void SortedPhonebook::erase(iterator position)
+  throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  // deallocate memory or remove from underlying ME phonebook
+  if (_fromFile)
+    delete ((PhonebookMap::iterator)position)-&gt;second;
+  else
+    _mePhonebook-&gt;erase((Phonebook::iterator)
+                        ((PhonebookMap::iterator)position)-&gt;second);
+  _sortedPhonebook.erase(position);
+}
+
+void SortedPhonebook::erase(iterator first, iterator last)
+  throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  for (PhonebookMap::iterator i = first; i != last; ++i)
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _mePhonebook-&gt;erase((Phonebook::iterator)i-&gt;second);
+  _sortedPhonebook.erase(first, last);
+}
+
+void SortedPhonebook::clear() throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  for (iterator i = begin(); i != end(); i++)
+    erase(i);
+}
+
+SortedPhonebook::~SortedPhonebook()
+{
+  if (_fromFile)
+  {
+    sync(true);
+    for (PhonebookMap::iterator i = _sortedPhonebook.begin();
+         i != _sortedPhonebook.end(); ++i)
+      delete i-&gt;second;
+  }
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebookh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,159 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_phonebook.h
+// *
+// * Purpose: Alphabetically sorted phonebook
+// *          (residing in files or in the ME)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 25.6.1999
+// *************************************************************************
+
+#ifndef GSM_SORTED_PHONEBOOK_H
+#define GSM_SORTED_PHONEBOOK_H
+
+#include &lt;gsmlib/gsm_sorted_phonebook_base.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_map_key.h&gt;
+#include &lt;string&gt;
+#include &lt;map&gt;
+#include &lt;fstream&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+
+  // The class SortedPhonebook makes the phonebook more manageable:
+  // - empty slots in the ME phonebook are hidden by the API
+  // - the class transparently handles phonebooks that reside in files
+
+  class SortedPhonebook : public SortedPhonebookBase
+  {
+  private:
+    bool _changed;              // true if file has changed after last save
+    bool _fromFile;             // true if phonebook read from file
+    bool _madeBackupFile;       // true if backup file was created
+    SortOrder _sortOrder;       // sort order for the phonebook
+    bool _useIndices;           // if phonebook from file: input file had
+                                // indices; will write indices, too
+    bool _readonly;             // =true if read from stdin
+    string _filename;           // name of the file if phonebook from file
+    PhonebookMap _sortedPhonebook; // phonebook from file
+    PhonebookRef _mePhonebook;  // phonebook if from ME
+
+    // convert CR and LF in string to &quot;\r&quot; and &quot;\n&quot; respectively
+    string escapeString(string s);
+
+    // convert &quot;\r&quot; and &quot;\n&quot; to CR and LF respectively
+    // start parsing with pos, stop when CR, LF, 0, or '|' is encountered
+    string unescapeString(char *line, unsigned int &amp;pos);
+
+    // initial read of phonebook file
+    void readPhonebookFile(istream &amp;pbs, string filename) throw(GsmException);
+
+    // synchronize SortedPhonebook with file (no action if in ME)
+    void sync(bool fromDestructor) throw(GsmException);
+    
+    // throw an exception if _readonly is set
+    void checkReadonly() throw(GsmException);
+
+  public:
+    // iterator defs
+    typedef SortedPhonebookIterator iterator;
+    typedef PhonebookMap::size_type size_type;
+
+    // constructor for file-based phonebook
+    // expect indices in file if useIndices == true
+    // read from file
+    SortedPhonebook(string filename, bool useIndices)
+      throw(GsmException);
+    // read from stdin or start empty and write to stdout
+    SortedPhonebook(bool fromStdin, bool useIndices)
+      throw(GsmException);
+
+    // constructor for ME-based phonebook
+    SortedPhonebook(PhonebookRef mePhonebook) throw(GsmException);
+
+    // return maximum telephone number length
+    unsigned int getMaxTelephoneLen() const;
+
+    // return maximum entry description length
+    unsigned int getMaxTextLen() const;
+
+    // handle sorting
+    void setSortOrder(SortOrder newOrder);
+    SortOrder sortOrder() const {return _sortOrder;}
+    
+    // phonebook traversal commands
+    // these are suitable to use stdc++ lib algorithms and iterators
+    // ME have fixed storage space implemented as memory slots
+    // that may either be empty or used
+    
+    // traversal commands
+    iterator begin() {return _sortedPhonebook.begin();}
+    iterator end() {return _sortedPhonebook.end();}
+
+    // the size macros return the number of used entries
+    int size() const {return _sortedPhonebook.size();}
+    int max_size() const;
+    int capacity() const;
+    bool empty() const throw(GsmException) {return size() == 0;}
+
+    // existing iterators remain valid after an insert or erase operation
+    // note: inserting many entries in indexed mode is inefficient
+    // if the sort order is not set to indexed before
+
+    // return position
+    // insert only writes to available positions
+    // warning: insert fails silently if size() == max_size()
+    iterator insert(const PhonebookEntryBase&amp; x) throw(GsmException);
+    iterator insert(iterator position, const PhonebookEntryBase&amp; x)
+      throw(GsmException);
+
+    PhonebookMap::size_type count(string &amp;key)
+      {return _sortedPhonebook.count(PhoneMapKey(*this, lowercase(key)));}
+    iterator find(string &amp;key)
+      {return _sortedPhonebook.find(PhoneMapKey(*this, lowercase(key)));}
+    iterator lower_bound(string &amp;key)
+      {return _sortedPhonebook.lower_bound(PhoneMapKey(*this,
+                                                       lowercase(key)));}
+    iterator upper_bound(string &amp;key)
+      {return _sortedPhonebook.upper_bound(PhoneMapKey(*this,
+                                                       lowercase(key)));}
+    pair&lt;iterator, iterator&gt; equal_range(string &amp;key)
+      {return _sortedPhonebook.equal_range(PhoneMapKey(*this,
+                                                       lowercase(key)));}
+
+    PhonebookMap::size_type count(int key)
+      {return _sortedPhonebook.count(PhoneMapKey(*this, key));}
+    iterator find(int key)
+      {return _sortedPhonebook.find(PhoneMapKey(*this, key));}
+    iterator lower_bound(int key)
+      {return _sortedPhonebook.lower_bound(PhoneMapKey(*this, key));}
+    iterator upper_bound(int key)
+      {return _sortedPhonebook.upper_bound(PhoneMapKey(*this, key));}
+    pair&lt;iterator, iterator&gt; equal_range(int key)
+      {return _sortedPhonebook.equal_range(PhoneMapKey(*this, key));}
+
+    size_type erase(string &amp;key) throw(GsmException);
+    size_type erase(int key) throw(GsmException);
+    void erase(iterator position) throw(GsmException);
+    void erase(iterator first, iterator last) throw(GsmException);
+    void clear() throw(GsmException);
+
+    // synchronize SortedPhonebook with file (no action if in ME)
+    void sync() throw(GsmException) {sync(false);}
+    
+    // destructor
+    // writes back change to file if phonebook is in file
+    virtual ~SortedPhonebook();
+  };
+
+  //  typedef Ref&lt;SortedPhonebook&gt; SortedPhonebookRef;
+};
+
+#endif // GSM_SORTED_PHONEBOOK_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebook_basecc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,115 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_phonebook_base.cc
+// *
+// * Purpose: Virtual base class for alphabetically sorted phonebook
+// *          The infrastructure in this module allows custom backends for
+// *          storing phonebook entries to be integrated into gsmlib
+// *          (eg. LDAP- or RDBMS-based phonebook stores).
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 5.6.2000
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_sorted_phonebook_base.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+
+#include &lt;assert.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// PhonebookEntryBase members
+
+void PhonebookEntryBase::set(string telephone, string text, int index,
+                             bool useIndex)
+  throw(GsmException)
+{
+  checkTextAndTelephone(text, telephone);
+
+  _changed = true;
+  _telephone = telephone;
+  _text = text;
+  _useIndex = useIndex;
+  if (index != -1)
+    _index = index;
+}
+
+bool PhonebookEntryBase::operator==(const PhonebookEntryBase &amp;e) const
+{
+  assert(! ((_useIndex || e._useIndex) &amp;&amp;
+            (_index == -1 || e._index == -1)));
+  return _telephone == e._telephone &amp;&amp; _text == e._text &amp;&amp;
+    (! (_useIndex || e._useIndex) || _index == e._index);
+}
+
+string PhonebookEntryBase::text() const throw(GsmException)
+{
+  return _text;
+}
+
+string PhonebookEntryBase::telephone() const throw(GsmException)
+{
+  return _telephone;
+}
+
+bool PhonebookEntryBase::empty() const throw(GsmException)
+{
+  return (text() == &quot;&quot;) &amp;&amp; (telephone() == &quot;&quot;);
+}
+
+Ref&lt;PhonebookEntryBase&gt; PhonebookEntryBase::clone()
+{
+  Ref&lt;PhonebookEntryBase&gt; result = new PhonebookEntryBase(*this);
+  return result;
+}
+
+PhonebookEntryBase::PhonebookEntryBase(const PhonebookEntryBase &amp;e)
+  throw(GsmException)
+{
+  set(e._telephone, e._text, e._index, e._useIndex);
+}
+
+PhonebookEntryBase &amp;PhonebookEntryBase::operator=(const PhonebookEntryBase &amp;e)
+  throw(GsmException)
+{
+  set(e._telephone, e._text, e._index, e._useIndex);
+  return *this;
+}
+
+// CustomPhonebookRegistry members
+
+map&lt;string, CustomPhonebookFactory*&gt;
+*CustomPhonebookRegistry::_factoryList = NULL;
+
+void CustomPhonebookRegistry::
+registerCustomPhonebookFactory(string backendName,
+                               CustomPhonebookFactory *factory)
+  throw(GsmException)
+{
+  if (_factoryList == NULL)
+    _factoryList = new map&lt;string, CustomPhonebookFactory*&gt;;
+  backendName = lowercase(backendName);
+  if (_factoryList-&gt;find(backendName) != _factoryList-&gt;end())
+    throw GsmException(stringPrintf(_(&quot;backend '%s' already registered&quot;),
+                                    backendName.c_str()), ParameterError);
+}
+      
+SortedPhonebookRef CustomPhonebookRegistry::
+createPhonebook(string backendName, string source) throw(GsmException)
+{
+  if (_factoryList == NULL)
+    _factoryList = new map&lt;string, CustomPhonebookFactory*&gt;;
+  backendName = lowercase(backendName);
+  if (_factoryList-&gt;find(backendName) == _factoryList-&gt;end())
+    throw GsmException(stringPrintf(_(&quot;backend '%s' not registered&quot;),
+                                    backendName.c_str()), ParameterError);
+  return (*_factoryList)[backendName]-&gt;createPhonebook(source);
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_phonebook_baseh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_phonebook_base.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,220 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_phonebook_base.h
+// *
+// * Purpose: Virtual base class for alphabetically sorted phonebook
+// *          The infrastructure in this module allows custom backends for
+// *          storing phonebook entries to be integrated into gsmlib
+// *          (eg. LDAP- or RDBMS-based phonebook stores).
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 5.6.2000
+// *************************************************************************
+
+#ifndef GSM_SORTED_PHONEBOOK_BASE_H
+#define GSM_SORTED_PHONEBOOK_BASE_H
+
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_map_key.h&gt;
+#include &lt;string&gt;
+#include &lt;map&gt;
+#include &lt;fstream&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // a single entry in a phonebook
+
+  class PhonebookEntryBase : public RefBase
+  {
+  protected:
+    bool _changed;              // set to true if _telephone or _text changed
+    string _telephone;
+    string _text;
+    int _index;                 // my position in the phonebook
+                                // == -1 if not used (can only happen if
+                                // phonebook is read from file)
+    bool _useIndex;             // compare indices in operator==,
+                                // use _index for inserting into
+                                // Phonebook
+
+  public:
+    PhonebookEntryBase() :
+      _changed(false), _index(-1), _useIndex(false) {}
+
+    // convenience constructor
+    PhonebookEntryBase(string telephone, string text, int index = -1) :
+      _changed(false), _telephone(telephone), _text(text),
+      _index(index), _useIndex(false) {}
+
+    // accessor functions
+    virtual void set(string telephone, string text, int index = -1,
+                     bool useIndex = false)
+      throw(GsmException);
+    virtual string text() const throw(GsmException);
+    virtual string telephone() const throw(GsmException);
+
+    // return true if both telephone and text are empty
+    bool empty() const throw(GsmException);
+
+    // set to true if operator== should compare the _index as well
+    void setUseIndex(bool useIndex)
+      {_useIndex = useIndex;}
+    bool useIndex() const {return _useIndex;}
+    
+    // equality operator
+    // if one of the operands has _useIndex == true
+    // takes _index and e._index into account
+    bool operator==(const PhonebookEntryBase &amp;e) const;
+
+    // return index
+    int index() const {return _index;}
+
+    // return true if entry changed
+    bool changed() const {return _changed;}
+
+    // reset the changed status (ie. if synced to file)
+    void resetChanged() {_changed = false;}
+
+    // return deep copy of this entry
+    virtual Ref&lt;PhonebookEntryBase&gt; clone();
+    
+    PhonebookEntryBase(const PhonebookEntryBase &amp;e) throw(GsmException);
+    PhonebookEntryBase &amp;operator=(const PhonebookEntryBase &amp;e)
+      throw(GsmException);
+
+    virtual ~PhonebookEntryBase() {}
+  };
+
+  // MapKey for sortedPhonebook
+  
+  class SortedPhonebookBase;
+  typedef MapKey&lt;SortedPhonebookBase&gt; PhoneMapKey;
+
+  // maps text or telephone to entry
+  
+  typedef multimap&lt;PhoneMapKey, PhonebookEntryBase*&gt; PhonebookMap;
+
+  // iterator for SortedPhonebook that hides the &quot;second&quot; member of the map
+  
+  typedef PhonebookMap::iterator PhonebookMapIterator;
+  class SortedPhonebookIterator : public PhonebookMapIterator
+  {
+  public:
+    SortedPhonebookIterator() {}
+    SortedPhonebookIterator(PhonebookMap::iterator i) :
+      PhonebookMapIterator(i) {}
+
+    PhonebookEntryBase &amp;operator*()
+      {return *((PhonebookMap::iterator)*this)-&gt;second;}
+
+    PhonebookEntryBase *operator-&gt;()
+      {return ((PhonebookMap::iterator)*this)-&gt;second;}
+  };
+
+  // virtual base class for sorted phonebooks
+
+  class SortedPhonebookBase : public RefBase, public NoCopy
+  {
+  public:
+    // iterator defs
+    typedef SortedPhonebookIterator iterator;
+    typedef PhonebookMap::size_type size_type;
+
+    // return maximum telephone number length
+    virtual unsigned int getMaxTelephoneLen() const = 0;
+
+    // return maximum entry description length
+    virtual unsigned int getMaxTextLen() const = 0;
+
+    // handle sorting
+    virtual void setSortOrder(SortOrder newOrder) = 0;
+    virtual SortOrder sortOrder() const = 0;
+    
+    // phonebook traversal commands
+    // these are suitable to use stdc++ lib algorithms and iterators
+    
+    // traversal commands
+    virtual iterator begin() = 0;
+    virtual iterator end() = 0;
+
+    // the size macros return the number of used entries
+    virtual int size() const = 0;
+    virtual int max_size() const = 0;
+    virtual int capacity() const = 0;
+    virtual bool empty() const throw(GsmException) = 0;
+
+    // existing iterators remain valid after an insert or erase operation
+
+    // return position
+    // insert only writes to available positions
+    // warning: insert fails silently if size() == max_size()
+    virtual iterator insert(const PhonebookEntryBase&amp; x) throw(GsmException)
+      = 0;
+    virtual iterator insert(iterator position, const PhonebookEntryBase&amp; x)
+      throw(GsmException) = 0;
+
+    virtual PhonebookMap::size_type count(string &amp;key) = 0;
+    virtual iterator find(string &amp;key) = 0;
+    virtual iterator lower_bound(string &amp;key) = 0;
+    virtual iterator upper_bound(string &amp;key) = 0;
+    virtual pair&lt;iterator, iterator&gt; equal_range(string &amp;key) = 0;
+
+    virtual PhonebookMap::size_type count(int key) = 0;
+    virtual iterator find(int key) = 0;
+    virtual iterator lower_bound(int key) = 0;
+    virtual iterator upper_bound(int key) = 0;
+    virtual pair&lt;iterator, iterator&gt; equal_range(int key) = 0;
+
+    virtual size_type erase(string &amp;key) throw(GsmException) = 0;
+    virtual size_type erase(int key) throw(GsmException) = 0;
+    virtual void erase(iterator position) throw(GsmException) = 0;
+    virtual void erase(iterator first, iterator last) throw(GsmException) = 0;
+    virtual void clear() throw(GsmException) = 0;
+
+    // synchronize SortedPhonebookBase with storage
+    virtual void sync() throw(GsmException) = 0;
+
+    virtual ~SortedPhonebookBase() {}
+  };
+
+  typedef Ref&lt;SortedPhonebookBase&gt; SortedPhonebookRef;
+
+
+  // base factory class for custom backends
+  class CustomPhonebookFactory
+  {
+  public:
+    // return sorted phonebook object given the source specification
+    // (eg. database name, URL, etc.)
+    virtual SortedPhonebookRef createPhonebook(string source)
+      throw(GsmException) = 0;
+  };
+
+  // registry for custom backends
+  
+  class CustomPhonebookRegistry
+  {
+    // registered factories
+    static map&lt;string, CustomPhonebookFactory*&gt; *_factoryList;
+
+  public:
+    // register a factory class for a specific backend
+    // (case does not matter for backend name)
+    static void registerCustomPhonebookFactory(string backendName,
+                                        CustomPhonebookFactory *factory)
+      throw(GsmException);
+      
+    
+    // return a phonebook object given the backend name and the source
+    // specification
+    static SortedPhonebookRef
+    createPhonebook(string backendName, string source) throw(GsmException);
+  };
+
+};
+
+#endif // GSM_SORTED_PHONEBOOK_BASE_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_sms_storecc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,499 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_sms_store.cc
+// *
+// * Purpose: Sorted SMS store (residing in files or in the ME)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 14.8.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;gsmlib/gsm_sorted_sms_store.h&gt;
+#include &lt;iostream&gt;
+#include &lt;fstream&gt;
+#ifdef HAVE_NETINET_IN_H
+#include &lt;netinet/in.h&gt;
+#endif
+
+using namespace std;
+using namespace gsmlib;
+
+// SMS message file format:
+// version number of file format, unsigned short int, 2 bytes in network byte
+// order
+// then comes the message:
+// 1. length of PDU (see 4. below): unsigned short int,
+//    2 bytes in network byte order
+// 2. index of message, unique for this file: unsigned long,
+//    4 bytes in network byte order
+// 3. MessageType (1 byte), any of:
+//    0 SMS_DELIVER
+//    1 SMS_SUBMIT
+//    2 SMS_STATUS_REPORT
+// 4. PDU in hexadecimal format
+
+static const unsigned short int SMS_STORE_FILE_FORMAT_VERSION = 1;
+
+// SortedSMSStore members
+
+// aux function read bytes with error handling
+// return false if EOF
+static bool readnbytes(string &amp;filename,
+                       istream &amp;is, int len, char *buf,
+                       bool eofIsError = true) throw(GsmException)
+{
+  is.read(buf, len);
+  if (is.bad() || (is.eof() &amp;&amp; eofIsError))
+    throw GsmException(stringPrintf(_(&quot;error reading from file '%s'&quot;),
+                                    (filename == &quot;&quot; ? _(&quot;&lt;STDIN&gt;&quot;) :
+                                     filename.c_str())), OSError);
+  return ! is.eof();
+}
+
+// aux function write bytes with error handling
+static void writenbytes(string &amp;filename, ostream &amp;os,
+                        int len, const char *buf) throw(GsmException)
+{
+  os.write(buf, len);
+  if (os.bad())
+    throw GsmException(stringPrintf(_(&quot;error writing to file '%s'&quot;),
+                                    (filename == &quot;&quot; ? _(&quot;&lt;STDOUT&gt;&quot;) :
+                                     filename.c_str())), OSError);
+}
+
+void SortedSMSStore::readSMSFile(istream &amp;pbs, string filename)
+  throw(GsmException)
+{
+  char numberBuf[4];
+
+  // check the version
+  try
+  {
+    readnbytes(filename, pbs, 2, numberBuf);
+  }
+  catch (GsmException &amp;ge)
+  {
+    // ignore error, file might be empty initially
+  }
+  unsigned_int_2 version = ntohs(*((unsigned_int_2*)numberBuf));
+  if (! pbs.eof() &amp;&amp; version != SMS_STORE_FILE_FORMAT_VERSION)
+    throw GsmException(stringPrintf(_(&quot;file '%s' has wrong version&quot;),
+                                    filename.c_str()), ParameterError);
+
+  // read entries
+  while (1)
+  {
+    // read PDU length and exit loop if EOF
+    if (! readnbytes(filename, pbs, 2, numberBuf, false))
+      break;
+
+    unsigned_int_2 pduLen = ntohs(*((unsigned_int_2*)numberBuf));
+    if (pduLen &gt; 500)
+      throw GsmException(stringPrintf(_(&quot;corrupt SMS store file '%s'&quot;),
+                                      filename.c_str()), ParameterError);
+
+    // read reserved integer field of message (was formerly index)
+    readnbytes(filename, pbs, 4, numberBuf);
+    //unsigned_int_4 reserved = ntohl(*((unsigned_int_4*)numberBuf));
+    
+    // read message type
+    readnbytes(filename, pbs, 1, numberBuf);
+    SMSMessage::MessageType messageType =
+      (SMSMessage::MessageType)numberBuf[0];
+    if (messageType &gt; 2)
+      throw GsmException(stringPrintf(_(&quot;corrupt SMS store file '%s'&quot;),
+                                      filename.c_str()), ParameterError);
+
+    char *pduBuf = (char*)alloca(sizeof(char) * pduLen);
+
+    // read pdu
+    readnbytes(filename, pbs, pduLen, pduBuf);
+    SMSMessageRef message =
+      SMSMessage::decode(string(pduBuf, pduLen),
+                         (messageType != SMSMessage::SMS_SUBMIT));
+    
+    SMSStoreEntry *newEntry = new SMSStoreEntry(message, _nextIndex++);
+    _sortedSMSStore.insert(
+      SMSStoreMap::value_type(
+        SMSMapKey(*this, message-&gt;serviceCentreTimestamp()),
+        newEntry)
+      );
+  }
+}
+
+void SortedSMSStore::sync(bool fromDestructor) throw(GsmException)
+{
+  if (_fromFile &amp;&amp; _changed)
+  {
+    checkReadonly();
+
+    // if writing to stdout and not called from destructor ignore
+    // (avoids writing to stdout multiple times)
+    if (_filename == &quot;&quot; &amp;&amp; ! fromDestructor) return;
+
+    // create backup file - but only once
+    if (! _madeBackupFile &amp;&amp; _filename != &quot;&quot;) // don't make backup of stdout
+    {
+      renameToBackupFile(_filename);
+      _madeBackupFile = true;
+    }
+
+    // open stream
+    ostream *pbs = NULL;
+    try
+    {
+      if (_filename == &quot;&quot;)
+        pbs = &amp;cout;
+      else
+                pbs = new ofstream(_filename.c_str(), ios::out | ios::binary);
+      
+      if (pbs-&gt;bad())
+        throw GsmException(
+          stringPrintf(_(&quot;error opening file '%s' for writing&quot;),
+                       (_filename == &quot;&quot; ? _(&quot;&lt;STDOUT&gt;&quot;) :
+                        _filename.c_str())),
+          OSError);
+
+      // write version number
+      unsigned_int_2 version = htons(SMS_STORE_FILE_FORMAT_VERSION);
+      writenbytes(_filename, *pbs, 2, (char*)&amp;version);
+
+      // and write the entries
+      for (SMSStoreMap::iterator i = _sortedSMSStore.begin();
+           i != _sortedSMSStore.end(); ++i)
+      {
+        // create PDU and write length
+        string pdu = i-&gt;second-&gt;message()-&gt;encode();
+        unsigned_int_2 pduLen = htons(pdu.length());
+        writenbytes(_filename, *pbs, 2, (char*)&amp;pduLen);
+
+        // write reserved field (was formerly index)
+        unsigned_int_4 reserved = htonl(0);
+        writenbytes(_filename, *pbs, 4, (char*)&amp;reserved);
+        
+        // write message type
+        char messageType = i-&gt;second-&gt;message()-&gt;messageType();
+        writenbytes(_filename, *pbs, 1, (char*)&amp;messageType);
+
+        // write PDU
+        writenbytes(_filename, *pbs, pdu.length(), pdu.data());
+      }
+    }
+    catch(GsmException &amp;e)
+    {
+      if (pbs != &amp;cout) delete pbs;
+      throw;
+    }
+    // close file
+    if (pbs != &amp;cout) delete pbs;
+
+    _changed = false;
+  }
+}
+
+void SortedSMSStore::checkReadonly() throw(GsmException)
+{
+  if (_readonly) throw GsmException(
+    _(&quot;attempt to change SMS store read from &lt;STDIN&gt;&quot;),
+    ParameterError);
+}
+
+SortedSMSStore::SortedSMSStore(string filename) throw(GsmException) :
+  _changed(false), _fromFile(true), _madeBackupFile(false),
+  _sortOrder(ByDate), _readonly(false), _filename(filename), _nextIndex(0)
+{
+  // open the file
+  ifstream pbs(filename.c_str(), ios::in | ios::binary);
+  if (pbs.bad())
+    throw GsmException(stringPrintf(_(&quot;cannot open file '%s'&quot;),
+                                    filename.c_str()), OSError);
+  // and read the file
+  readSMSFile(pbs, filename);
+}
+
+SortedSMSStore::SortedSMSStore(bool fromStdin) throw(GsmException) :
+  _changed(false), _fromFile(true), _madeBackupFile(false),
+  _sortOrder(ByDate), _readonly(fromStdin), _nextIndex(0)
+  // _filename is &quot;&quot; - this means stdout
+{
+  // read from stdin
+  if (fromStdin)
+    readSMSFile(cin, (string)_(&quot;&lt;STDIN&gt;&quot;));
+}
+
+SortedSMSStore::SortedSMSStore(SMSStoreRef meSMSStore)
+  throw(GsmException) :
+  _changed(false), _fromFile(false), _madeBackupFile(false),
+  _sortOrder(ByDate), _readonly(false), _meSMSStore(meSMSStore)
+{
+  // It is necessary to count the entries read because
+  // the maximum index into the SMS store may be larger than smsStore.size()
+  int entriesRead = 0;
+  reportProgress(0, _meSMSStore-&gt;size());
+
+  for (int i = 0;; ++i)
+  {
+    if (entriesRead == _meSMSStore-&gt;size())
+      break;                 // ready
+    if (! _meSMSStore()[i].empty())
+    {
+      _sortedSMSStore.insert(
+        SMSStoreMap::value_type(
+          SMSMapKey(*this,
+                    _meSMSStore()[i].message()-&gt;serviceCentreTimestamp()),
+          &amp;_meSMSStore()[i])
+        );
+      ++entriesRead;
+      reportProgress(entriesRead);
+    }
+  }
+}
+
+void SortedSMSStore::setSortOrder(SortOrder newOrder)
+{
+  if (_sortOrder == newOrder) return; // nothing to be done
+
+  SMSStoreMap savedSMSStore = _sortedSMSStore;
+  _sortedSMSStore = SMSStoreMap();
+  _sortOrder = newOrder;
+
+  switch (newOrder)
+  {
+  case ByIndex:
+  {
+    for (SMSStoreMap::iterator i = savedSMSStore.begin();
+         i != savedSMSStore.end(); ++i)
+      _sortedSMSStore.insert(
+        SMSStoreMap::value_type(SMSMapKey(*this, (i-&gt;second-&gt;index())),
+                                i-&gt;second));
+    break;
+  }
+  case ByDate:
+  {
+    for (SMSStoreMap::iterator i = savedSMSStore.begin();
+         i != savedSMSStore.end(); ++i)
+      _sortedSMSStore.insert(
+        SMSStoreMap::value_type(
+          SMSMapKey(*this, (i-&gt;second-&gt;message()-&gt;serviceCentreTimestamp())),
+          i-&gt;second));
+    break;
+  }
+  case ByAddress:
+  {
+    for (SMSStoreMap::iterator i = savedSMSStore.begin();
+         i != savedSMSStore.end(); ++i)
+      _sortedSMSStore.insert(
+        SMSStoreMap::value_type(
+          SMSMapKey(*this, (i-&gt;second-&gt;message()-&gt;address())),
+          i-&gt;second));
+    break;
+  }
+  case ByType:
+  {
+    for (SMSStoreMap::iterator i = savedSMSStore.begin();
+         i != savedSMSStore.end(); ++i)
+      _sortedSMSStore.insert(
+        SMSStoreMap::value_type(
+          SMSMapKey(*this, (i-&gt;second-&gt;message()-&gt;messageType())),
+          i-&gt;second));
+    break;
+  }
+  default:
+    assert(0);
+    break;
+  }
+}
+
+int SortedSMSStore::max_size() const
+{
+  if (_fromFile)
+    return _sortedSMSStore.max_size();
+  else
+    return _meSMSStore-&gt;max_size();
+}
+
+int SortedSMSStore::capacity() const
+{
+  if (_fromFile)
+    return _sortedSMSStore.max_size();
+  else
+    return _meSMSStore-&gt;capacity();
+}
+
+SortedSMSStore::iterator
+SortedSMSStore::insert(const SMSStoreEntry&amp; x) throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  SMSStoreEntry *newEntry;
+
+  if (_fromFile)
+    newEntry = new SMSStoreEntry(x.message(), _nextIndex++);
+  else
+  {
+    SMSStoreEntry newMEEntry(x.message());
+    newEntry = _meSMSStore-&gt;insert(newMEEntry);
+  }
+  
+  switch (_sortOrder)
+  {
+  case ByIndex:
+    return
+      _sortedSMSStore.
+      insert(SMSStoreMap::value_type(SMSMapKey(*this, newEntry-&gt;index()),
+                                     newEntry));
+    break;
+  case ByDate:
+    return
+      _sortedSMSStore.
+      insert(SMSStoreMap::value_type(
+        SMSMapKey(*this, newEntry-&gt;message()-&gt;serviceCentreTimestamp()),
+        newEntry));
+    break;
+  case ByAddress:
+    return
+      _sortedSMSStore.
+      insert(SMSStoreMap::value_type(
+        SMSMapKey(*this, newEntry-&gt;message()-&gt;address()),
+        newEntry));
+    break;
+  case ByType:
+    return
+      _sortedSMSStore.
+      insert(SMSStoreMap::value_type(
+        SMSMapKey(*this, newEntry-&gt;message()-&gt;messageType()),
+        newEntry));
+    break;
+  default:
+    assert(0);
+    break;
+  }
+  return SortedSMSStore::iterator();
+}
+
+SortedSMSStore::iterator
+SortedSMSStore::insert(iterator position, const SMSStoreEntry&amp; x)
+  throw(GsmException)
+{
+  return insert(x);
+}
+
+SortedSMSStore::size_type SortedSMSStore::erase(Address &amp;key)
+  throw(GsmException)
+{
+  assert(_sortOrder == ByAddress);
+
+  SMSMapKey mapKey(*this, key);
+
+  // deallocate memory or remove from underlying ME SMS store
+  for (SMSStoreMap::iterator i = _sortedSMSStore.find(mapKey);
+       i != _sortedSMSStore.end() &amp;&amp; i-&gt;first == mapKey; ++i)
+  {
+    checkReadonly();
+    _changed = true;
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _meSMSStore-&gt;erase((SMSStore::iterator)i-&gt;second);
+  }
+
+  return _sortedSMSStore.erase(mapKey);
+}
+
+SortedSMSStore::size_type SortedSMSStore::erase(int key)
+  throw(GsmException)
+{
+  assert(_sortOrder == ByIndex || _sortOrder == ByType);
+
+  SMSMapKey mapKey(*this, key);
+
+  // deallocate memory or remove from underlying ME SMS store
+  for (SMSStoreMap::iterator i = _sortedSMSStore.find(mapKey);
+       i != _sortedSMSStore.end() &amp;&amp; i-&gt;first == mapKey; ++i)
+  {
+    checkReadonly();
+    _changed = true;
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _meSMSStore-&gt;erase((SMSStore::iterator)i-&gt;second);
+  }
+
+  return _sortedSMSStore.erase(mapKey);
+}
+
+SortedSMSStore::size_type SortedSMSStore::erase(Timestamp &amp;key)
+  throw(GsmException)
+{
+  assert(_sortOrder == ByDate);
+
+  SMSMapKey mapKey(*this, key);
+
+  // deallocate memory or remove from underlying ME SMS store
+  for (SMSStoreMap::iterator i = _sortedSMSStore.find(mapKey);
+       i != _sortedSMSStore.end() &amp;&amp; i-&gt;first == mapKey; ++i)
+  {
+    checkReadonly();
+    _changed = true;
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _meSMSStore-&gt;erase((SMSStore::iterator)i-&gt;second);
+  }
+
+  return _sortedSMSStore.erase(mapKey);
+}
+
+void SortedSMSStore::erase(iterator position)
+  throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  // deallocate memory or remove from underlying ME SMS store
+  if (_fromFile)
+    delete ((SMSStoreMap::iterator)position)-&gt;second;
+  else
+    _meSMSStore-&gt;erase((SMSStore::iterator)
+                       ((SMSStoreMap::iterator)position)-&gt;second);
+  _sortedSMSStore.erase(position);
+}
+
+void SortedSMSStore::erase(iterator first, iterator last)
+  throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  for (SMSStoreMap::iterator i = first; i != last; ++i)
+    if (_fromFile)
+      delete i-&gt;second;
+    else
+      _meSMSStore-&gt;erase((SMSStore::iterator)i-&gt;second);
+  _sortedSMSStore.erase(first, last);
+}
+
+void SortedSMSStore::clear() throw(GsmException)
+{
+  checkReadonly();
+  _changed = true;
+  for (iterator i = begin(); i != end(); i++)
+    erase(i);
+}
+
+SortedSMSStore::~SortedSMSStore()
+{
+  if (_fromFile)
+  {
+    sync(true);
+    for (SMSStoreMap::iterator i = _sortedSMSStore.begin();
+         i != _sortedSMSStore.end(); ++i)
+      delete i-&gt;second;
+  }
+}
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sorted_sms_storeh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sorted_sms_store.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,217 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sorted_sms_store.h
+// *
+// * Purpose: Sorted SMS store (residing in files or in the ME)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 14.8.1999
+// *************************************************************************
+
+#ifndef GSM_SORTED_SMS_STORE_H
+#define GSM_SORTED_SMS_STORE_H
+
+#include &lt;gsmlib/gsm_sms_store.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_map_key.h&gt;
+#include &lt;string&gt;
+#include &lt;map&gt;
+#include &lt;assert.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // MapKey for SortedSMSStore
+  
+  class SortedSMSStore;
+  typedef MapKey&lt;SortedSMSStore&gt; SMSMapKey;
+
+  // maps key (see SortedSMSStore::SortOrder) to entry
+  
+  typedef multimap&lt;SMSMapKey, SMSStoreEntry*&gt; SMSStoreMap;
+
+  // iterator for SortedSMSStore that hides the &quot;second&quot; member of the map
+  
+  typedef SMSStoreMap::iterator SMSStoreMapIterator;
+  class SortedSMSStoreIterator : public SMSStoreMapIterator
+  {
+  public:
+    SortedSMSStoreIterator() {}
+    SortedSMSStoreIterator(SMSStoreMap::iterator i) :
+      SMSStoreMapIterator(i) {}
+
+    SMSStoreEntry &amp;operator*()
+      {return *((SMSStoreMap::iterator)*this)-&gt;second;}
+
+    SMSStoreEntry *operator-&gt;()
+      {return ((SMSStoreMap::iterator)*this)-&gt;second;}
+  };
+
+  // The class SortedSMSStore makes the SMS store more manageable:
+  // - empty slots in the ME phonebook are hidden by the API
+  // - the class transparently handles stores that reside in files
+
+  class SortedSMSStore : public RefBase, public NoCopy
+  {
+  private:
+
+    bool _changed;              // true if file has changed after last save
+    bool _fromFile;             // true if store read from file
+    bool _madeBackupFile;       // true if backup file was created
+    SortOrder _sortOrder;       // sort order of the _sortedSMSStore
+                                // (default is ByDate)
+    bool _readonly;             // =true if read from stdin
+    string _filename;           // name of the file if store from file
+    SMSStoreMap _sortedSMSStore; // store from file
+    SMSStoreRef _meSMSStore;    // store if from ME
+
+    unsigned int _nextIndex;    // next index to use for file-based store
+
+    // initial read of SMS file
+    void readSMSFile(istream &amp;pbs, string filename) throw(GsmException);
+    
+    // synchronize SortedSMSStore with file (no action if in ME)
+    void sync(bool fromDestructor) throw(GsmException);
+    
+    // throw an exception if _readonly is set
+    void checkReadonly() throw(GsmException);
+
+  public:
+    // iterator defs
+    typedef SortedSMSStoreIterator iterator;
+    typedef SMSStoreMap::size_type size_type;
+
+    // constructor for file-based store
+    // read from file
+    SortedSMSStore(string filename) throw(GsmException);
+    // read from stdin or start empty and write to stdout
+    SortedSMSStore(bool fromStdin) throw(GsmException);
+
+    // constructor for ME-based store
+    SortedSMSStore(SMSStoreRef meSMSStore) throw(GsmException);
+
+    // handle sorting
+    void setSortOrder(SortOrder newOrder);
+    SortOrder sortOrder() const {return _sortOrder;}
+    
+    // store traversal commands
+    // these are suitable to use stdc++ lib algorithms and iterators
+    
+    // traversal commands
+    iterator begin() {return _sortedSMSStore.begin();}
+    iterator end() {return _sortedSMSStore.end();}
+
+    // the size macros return the number of used entries
+    int size() const {return _sortedSMSStore.size();}
+    int max_size() const;
+    int capacity() const;
+    bool empty() const throw(GsmException) {return size() == 0;}
+
+    // existing iterators may be invalidated after an insert operation
+    // return position
+    // insert only writes to available positions
+    // warning: insert fails silently if size() == max_size()
+    iterator insert(const SMSStoreEntry&amp; x) throw(GsmException);
+    iterator insert(iterator position, const SMSStoreEntry&amp; x)
+      throw(GsmException);
+
+    SMSStoreMap::size_type count(Address &amp;key)
+      {
+        assert(_sortOrder == ByAddress);
+        return _sortedSMSStore.count(SMSMapKey(*this, key));
+      }
+    iterator find(Address &amp;key)
+      {
+        assert(_sortOrder == ByAddress);
+        return _sortedSMSStore.find(SMSMapKey(*this, key));
+      }
+    iterator lower_bound(Address &amp;key)
+      {
+        assert(_sortOrder == ByAddress);
+        return _sortedSMSStore.lower_bound(SMSMapKey(*this, key));
+      }
+    iterator upper_bound(Address &amp;key)
+      {
+        assert(_sortOrder == ByAddress);
+        return _sortedSMSStore.upper_bound(SMSMapKey(*this, key));
+      }
+    pair&lt;iterator, iterator&gt; equal_range(Address &amp;key)
+      {
+        assert(_sortOrder == ByAddress);
+        return _sortedSMSStore.equal_range(SMSMapKey(*this, key));
+      }
+
+    SMSStoreMap::size_type count(Timestamp &amp;key)
+      {
+        assert(_sortOrder == ByDate);
+        return _sortedSMSStore.count(SMSMapKey(*this, key));
+      }
+    iterator find(Timestamp &amp;key)
+      {
+        assert(_sortOrder == ByDate);
+        return _sortedSMSStore.find(SMSMapKey(*this, key));
+      }
+    iterator lower_bound(Timestamp &amp;key)
+      {
+        assert(_sortOrder == ByDate);
+        return _sortedSMSStore.lower_bound(SMSMapKey(*this, key));
+      }
+    iterator upper_bound(Timestamp &amp;key)
+      {
+        assert(_sortOrder == ByDate);
+        return _sortedSMSStore.upper_bound(SMSMapKey(*this, key));
+      }
+    pair&lt;iterator, iterator&gt; equal_range(Timestamp &amp;key)
+      {
+        assert(_sortOrder == ByDate);
+        return _sortedSMSStore.equal_range(SMSMapKey(*this, key));
+      }
+
+    SMSStoreMap::size_type count(int key)
+      {
+        assert(_sortOrder == ByIndex || _sortOrder == ByType);
+        return _sortedSMSStore.count(SMSMapKey(*this, key));
+      }
+    iterator find(int key)
+      {
+        assert(_sortOrder == ByIndex || _sortOrder == ByType);
+        return _sortedSMSStore.find(SMSMapKey(*this, key));
+      }
+    iterator lower_bound(int key)
+      {
+        assert(_sortOrder == ByIndex || _sortOrder == ByType);
+        return _sortedSMSStore.lower_bound(SMSMapKey(*this, key));
+      }
+    iterator upper_bound(int key)
+      {
+        assert(_sortOrder == ByIndex || _sortOrder == ByType);
+        return _sortedSMSStore.upper_bound(SMSMapKey(*this, key));
+      }
+    pair&lt;iterator, iterator&gt; equal_range(int key)
+      {
+        assert(_sortOrder == ByIndex || _sortOrder == ByType);
+        return _sortedSMSStore.equal_range(SMSMapKey(*this, key));
+      }
+
+    size_type erase(Address &amp;key) throw(GsmException);
+    size_type erase(int key) throw(GsmException);
+    size_type erase(Timestamp &amp;key) throw(GsmException);
+    void erase(iterator position) throw(GsmException);
+    void erase(iterator first, iterator last) throw(GsmException);
+    void clear() throw(GsmException);
+
+    // synchronize SortedPhonebook with file (no action if in ME)
+    void sync() throw(GsmException) {sync(false);}
+    
+    // destructor
+    // writes back change to file if store is in file
+    ~SortedSMSStore();
+  };
+
+  typedef Ref&lt;SortedSMSStore&gt; SortedSMSStoreRef;
+};
+
+#endif // GSM_SORTED_SMS_STORE_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_sysdeph"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sysdep.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sysdep.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_sysdep.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_sysdep.h
+// *
+// * Purpose: Some magic to make alloca work on different platforms plus
+// *          other system-dependent stuff
+// *
+// * Warning: Only include this header from gsmlib .cc-files
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 28.10.1999
+// *************************************************************************
+
+#ifndef GSM_SYSDEP_H
+#define GSM_SYSDEP_H
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+
+extern &quot;C&quot; {
+
+  // this is mostly taken from the autoconf documentation (WIN32 added)
+
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+#else
+# if HAVE_ALLOCA_H
+#  include &lt;alloca.h&gt;
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifdef WIN32
+#     include &lt;malloc.h&gt;
+#     define alloca _alloca
+#   else
+#     ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+#     endif
+#   endif
+#  endif
+# endif
+#endif
+
+}
+
+// Windows-specific stuff
+#if defined(WIN32) &amp;&amp; ! defined(__GNUC__)
+#define NOMINMAX
+#include &lt;winsock.h&gt;
+#include &lt;io.h&gt;
+
+#ifdef _MSC_VER
+#define min __min
+#endif
+
+#define S_ISREG(mode) (((mode) &amp; _S_IFREG) == _S_IFREG)
+#define S_ISCHR(mode) (((mode) &amp; _S_IFCHR) == _S_IFCHR)
+
+#define read _read
+#endif
+
+// define common data types with fixed sizes
+
+#if SIZEOF_UNSIGNED_SHORT_INT == 2
+  typedef unsigned short int unsigned_int_2;
+#else
+#error &quot;no suitable 2 byte unsigned int available&quot;
+#endif
+#if SIZEOF_UNSIGNED_LONG_INT == 4
+  typedef unsigned long int unsigned_int_4;
+#else
+#if SIZEOF_UNSIGNED_INT == 4
+  typedef unsigned int unsigned_int_4;
+#else
+#error &quot;no suitable 4 byte unsigned int available&quot;
+#endif
+#endif
+
+#endif // GSM_SYSDEP_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_unix_serialcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,455 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_unix_port.cc
+// *
+// * Purpose: UNIX serial port implementation
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 10.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;termios.h&gt;
+#include &lt;fcntl.h&gt;
+#include &lt;iostream&gt;
+#include &lt;strstream&gt;
+#include &lt;cassert&gt;
+#include &lt;errno.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;unistd.h&gt;
+#include &lt;sys/ioctl.h&gt;
+#include &lt;signal.h&gt;
+#include &lt;pthread.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+static const int holdoff[] = {2000000, 1000000, 400000};
+static const int holdoffArraySize = sizeof(holdoff)/sizeof(int);
+  
+// alarm handling for socket read/write
+// the timerMtx is necessary since several threads cannot use the
+// timer indepently of each other
+
+static pthread_mutex_t timerMtx = PTHREAD_MUTEX_INITIALIZER;
+
+// for non-GNU systems, define alarm()
+#ifndef HAVE_ALARM
+unsigned int alarm(unsigned int seconds)
+{
+  struct itimerval old, newt;
+  newt.it_interval.tv_usec = 0;
+  newt.it_interval.tv_sec = 0;
+  newt.it_value.tv_usec = 0;
+  newt.it_value.tv_sec = (long int)seconds;
+  if (setitimer(ITIMER_REAL, &amp;newt, &amp;old) &lt; 0)
+    return 0;
+  else
+    return old.it_value.tv_sec;
+}
+#endif
+
+// this routine is called in case of a timeout
+static void catchAlarm(int)
+{
+  // do nothing
+}
+
+// start timer
+static void startTimer()
+{
+  pthread_mutex_lock(&amp;timerMtx);
+  struct sigaction newAction;
+  newAction.sa_handler = catchAlarm;
+  newAction.sa_flags = 0;
+  sigaction(SIGALRM, &amp;newAction, NULL);
+  alarm(1);
+}
+
+// reset timer
+static void stopTimer()
+{
+  alarm(0);
+  sigaction(SIGALRM, NULL, NULL);
+  pthread_mutex_unlock(&amp;timerMtx);
+}
+
+// UnixSerialPort members
+
+void UnixSerialPort::throwModemException(string message) throw(GsmException)
+{
+  ostrstream os;
+  os &lt;&lt; message &lt;&lt; &quot; (errno: &quot; &lt;&lt; errno &lt;&lt; &quot;/&quot; &lt;&lt; strerror(errno) &lt;&lt; &quot;)&quot;
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string s(ss);
+  delete[] ss;
+  throw GsmException(s, OSError, errno);
+}
+
+void UnixSerialPort::putBack(unsigned char c)
+{
+  assert(_oldChar == -1);
+  _oldChar = c;
+}
+
+int UnixSerialPort::readByte() throw(GsmException)
+{
+  if (_oldChar != -1)
+  {
+    int result = _oldChar;
+    _oldChar = -1;
+    return result;
+  }
+
+  unsigned char c;
+  int timeElapsed = 0;
+  struct timeval oneSecond;
+  bool readDone = false;
+
+  while (! readDone &amp;&amp; timeElapsed &lt; _timeoutVal)
+  {
+    if (interrupted())
+      throwModemException(_(&quot;interrupted when reading from TA&quot;));
+
+    // setup fd_set data structure for select()
+    fd_set fdSet;
+    oneSecond.tv_sec = 1;
+    oneSecond.tv_usec = 0;
+    FD_ZERO(&amp;fdSet);
+    FD_SET(_fd, &amp;fdSet);
+
+    switch (select(FD_SETSIZE, &amp;fdSet, NULL, NULL, &amp;oneSecond))
+    {
+    case 1:
+    {
+      int res = read(_fd, &amp;c, 1);
+      if (res != 1)
+        throwModemException(_(&quot;end of file when reading from TA&quot;));
+      else
+        readDone = true;
+      break;
+    }
+    case 0:
+      ++timeElapsed;
+      break;
+    default:
+      if (errno != EINTR)
+        throwModemException(_(&quot;reading from TA&quot;));
+      break;
+    }
+  }
+  if (! readDone)
+    throwModemException(_(&quot;timeout when reading from TA&quot;));
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 2)
+  {
+    // some useful debugging code
+    if (c == LF)
+      cerr &lt;&lt; &quot;&lt;LF&gt;&quot;;
+    else if (c == CR)
+      cerr &lt;&lt; &quot;&lt;CR&gt;&quot;;
+    else cerr &lt;&lt; &quot;&lt;'&quot; &lt;&lt; (char) c &lt;&lt; &quot;'&gt;&quot;;
+    cerr.flush();
+  }
+#endif
+  return c;
+}
+
+UnixSerialPort::UnixSerialPort(string device, speed_t lineSpeed,
+                               string initString, bool swHandshake)
+  throw(GsmException) :
+  _oldChar(-1), _timeoutVal(TIMEOUT_SECS)
+{
+  struct termios t;
+
+  // open device
+  _fd = open(device.c_str(), O_RDWR | O_NOCTTY | O_NONBLOCK);
+  if (_fd == -1)
+    throwModemException(stringPrintf(_(&quot;opening device '%s'&quot;),
+                                     device.c_str()));
+
+  // switch off non-blocking mode
+  int fdFlags;
+  if ((fdFlags = fcntl(_fd, F_GETFL)) == -1) {
+    close(_fd);
+    throwModemException(_(&quot;getting file status flags failed&quot;));
+  }
+  fdFlags &amp;= ~O_NONBLOCK;
+  if (fcntl(_fd, F_SETFL, fdFlags) == -1) {
+    close(_fd);
+    throwModemException(_(&quot;switching of non-blocking mode failed&quot;));
+  }
+
+  long int saveTimeoutVal = _timeoutVal;
+  _timeoutVal = 3;
+  int initTries = holdoffArraySize;
+  while (initTries-- &gt; 0)
+  {
+    // flush all pending output
+    tcflush(_fd, TCOFLUSH);
+
+    // toggle DTR to reset modem
+    int mctl = TIOCM_DTR;
+    if (ioctl(_fd, TIOCMBIC, &amp;mctl) &lt; 0) {
+      close(_fd);
+      throwModemException(_(&quot;clearing DTR failed&quot;));
+    }
+    // the waiting time for DTR toggling is increased with each loop
+    usleep(holdoff[initTries]);
+    if (ioctl(_fd, TIOCMBIS, &amp;mctl) &lt; 0) {
+      close(_fd);
+      throwModemException(_(&quot;setting DTR failed&quot;));
+    }
+    // get line modes
+    if (tcgetattr(_fd, &amp;t) &lt; 0) {
+      close(_fd);
+      throwModemException(stringPrintf(_(&quot;tcgetattr device '%s'&quot;),
+                                       device.c_str()));
+    }
+
+    // set line speed
+    cfsetispeed(&amp;t, lineSpeed);
+    cfsetospeed(&amp;t, lineSpeed);
+
+    // set the device to a sane state
+    t.c_iflag |= IGNPAR | (swHandshake ? IXON | IXOFF : 0);
+    t.c_iflag &amp;= ~(INPCK | ISTRIP | IMAXBEL |
+                   (swHandshake ? 0 : IXON |  IXOFF)
+                   | IXANY | IGNCR | ICRNL | IMAXBEL | INLCR | IGNBRK);
+    t.c_oflag &amp;= ~(OPOST);
+    // be careful, only touch &quot;known&quot; flags
+    t.c_cflag &amp;= ~(CSIZE | CSTOPB | PARENB | PARODD |
+                  (swHandshake ? CRTSCTS : 0 ));
+    t.c_cflag |= CS8 | CREAD | HUPCL | (swHandshake ? 0 : CRTSCTS) | CLOCAL;
+    t.c_lflag &amp;= ~(ECHO | ECHOE | ECHOPRT | ECHOK | ECHOKE | ECHONL |
+                   ECHOCTL | ISIG | IEXTEN | TOSTOP | FLUSHO | ICANON);
+    t.c_lflag |= NOFLSH;
+    t.c_cc[VMIN] = 1;
+    t.c_cc[VTIME] = 0;
+
+    t.c_cc[VSUSP] = 0;
+
+    // write back
+    if(tcsetattr (_fd, TCSANOW, &amp;t) &lt; 0) {
+      close(_fd);
+      throwModemException(stringPrintf(_(&quot;tcsetattr device '%s'&quot;),
+                                       device.c_str()));
+    }
+    // the waiting time for writing to the ME/TA is increased with each loop
+    usleep(holdoff[initTries]);
+
+    // flush all pending input
+    tcflush(_fd, TCIFLUSH);
+
+    try
+    {
+      // reset modem
+      putLine(&quot;ATZ&quot;);
+      bool foundOK = false;
+      int readTries = 5;
+      while (readTries-- &gt; 0)
+      {
+        // for the first call getLine() waits only 3 seconds
+        // because of _timeoutVal = 3
+        string s = getLine();
+        if (s.find(&quot;OK&quot;) != string::npos ||
+            s.find(&quot;CABLE: GSM&quot;) != string::npos)
+        {
+          foundOK = true;
+          readTries = 0;        // found OK, exit loop
+        }
+        else if (s.find(&quot;ERROR&quot;) != string::npos)
+          readTries = 0;        // error, exit loop
+      }
+
+      // set getLine/putLine timeout back to old value
+      _timeoutVal = saveTimeoutVal;
+
+      if (foundOK)
+      {
+        // init modem
+        readTries = 5;
+        putLine(&quot;AT&quot; + initString);
+        while (readTries-- &gt; 0)
+        {
+          string s = getLine();
+          if (s.find(&quot;OK&quot;) != string::npos ||
+              s.find(&quot;CABLE: GSM&quot;) != string::npos)
+            return;                 // found OK, return
+        }
+      }
+    }
+    catch (GsmException &amp;e)
+    {
+      _timeoutVal = saveTimeoutVal;
+      if (initTries == 0) {
+        close(_fd);
+        throw e;
+      }
+    }
+  }
+  // no response after 3 tries
+  close(_fd);
+  throw GsmException(stringPrintf(_(&quot;reset modem failed '%s'&quot;),
+                                  device.c_str()), OtherError);
+}
+
+string UnixSerialPort::getLine() throw(GsmException)
+{
+  string result;
+  int c;
+  while ((c = readByte()) &gt;= 0)
+  {
+    while (c == CR)
+    {
+      c = readByte();
+    }
+    if (c == LF)
+      break;
+    result += c;
+  }
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;&lt;-- &quot; &lt;&lt; result &lt;&lt; endl;
+#endif
+
+  return result;
+}
+
+void UnixSerialPort::putLine(string line,
+                             bool carriageReturn) throw(GsmException)
+{
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;--&gt; &quot; &lt;&lt; line &lt;&lt; endl;
+#endif
+
+  if (carriageReturn) line += CR;
+  const char *l = line.c_str();
+  
+  int timeElapsed = 0;
+  struct timeval oneSecond;
+
+  ssize_t bytesWritten = 0;
+  while (bytesWritten &lt; (ssize_t)line.length() &amp;&amp; timeElapsed &lt; _timeoutVal)
+  {
+    if (interrupted())
+      throwModemException(_(&quot;interrupted when writing to TA&quot;));
+
+    // setup fd_set data structure for select()
+    fd_set fdSet;
+    oneSecond.tv_sec = 1;
+    oneSecond.tv_usec = 0;
+    FD_ZERO(&amp;fdSet);
+    FD_SET(_fd, &amp;fdSet);
+
+    switch (select(FD_SETSIZE, NULL, &amp;fdSet, NULL, &amp;oneSecond))
+    {
+    case 1:
+    {
+      ssize_t bw = write(_fd, l + bytesWritten, line.length() - bytesWritten);
+      if (bw &lt; 0)
+        throwModemException(_(&quot;writing to TA&quot;));
+      bytesWritten += bw;
+      break;
+    }
+    case 0:
+      ++timeElapsed;
+      break;
+    default:
+      if (errno != EINTR)
+        throwModemException(_(&quot;writing to TA&quot;));
+      break;
+    }
+  }
+  
+  while (timeElapsed &lt; _timeoutVal)
+  {
+    if (interrupted())
+      throwModemException(_(&quot;interrupted when writing to TA&quot;));
+    startTimer();
+    int res = tcdrain(_fd);     // wait for output to be read by TA
+    stopTimer();
+    if (res == 0)
+      break;
+    else
+    {
+      assert(errno == EINTR);
+      ++timeElapsed;
+    }
+  }
+  if (timeElapsed &gt;= _timeoutVal)
+    throwModemException(_(&quot;timeout when writing to TA&quot;));
+
+  // echo CR LF must be removed by higher layer functions in gsm_at because
+  // in order to properly handle unsolicited result codes from the ME/TA
+}
+
+bool UnixSerialPort::wait(GsmTime timeout) throw(GsmException)
+{
+  fd_set fds;
+  FD_ZERO(&amp;fds);
+  FD_SET(_fd, &amp;fds);
+  return select(FD_SETSIZE, &amp;fds, NULL, NULL, timeout) != 0;
+}
+
+// set timeout for read or write in seconds.
+void UnixSerialPort::setTimeOut(unsigned int timeout)
+{
+  _timeoutVal = timeout;
+}
+
+UnixSerialPort::~UnixSerialPort()
+{
+  if (_fd != -1)
+    close(_fd);
+}
+
+speed_t gsmlib::baudRateStrToSpeed(string baudrate) throw(GsmException)
+{
+  if (baudrate == &quot;300&quot;)
+    return B300;
+  else if (baudrate == &quot;600&quot;)
+    return B600;
+  else if (baudrate == &quot;1200&quot;)
+    return B1200;
+  else if (baudrate == &quot;2400&quot;)
+    return B2400;
+  else if (baudrate == &quot;4800&quot;)
+    return B4800;
+  else if (baudrate == &quot;9600&quot;)
+    return B9600;
+  else if (baudrate == &quot;19200&quot;)
+    return B19200;
+  else if (baudrate == &quot;38400&quot;)
+    return B38400;
+#ifdef B57600
+  else if (baudrate == &quot;57600&quot;)
+    return B57600;
+#endif
+#ifdef B115200
+  else if (baudrate == &quot;115200&quot;)
+    return B115200;
+#endif
+#ifdef B230400
+  else if (baudrate == &quot;230400&quot;)
+    return B230400;
+#endif
+#ifdef B460800
+  else if (baudrate == &quot;460800&quot;)
+    return B460800;
+#endif
+  else
+    throw GsmException(stringPrintf(_(&quot;unknown baudrate '%s'&quot;),
+                                    baudrate.c_str()), ParameterError);
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_unix_serialh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_unix_serial.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,62 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_unix_port.h
+// *
+// * Purpose: UNIX serial port implementation
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.5.1999
+// *************************************************************************
+
+#ifndef GSM_UNIX_SERIAL_H
+#define GSM_UNIX_SERIAL_H
+
+#include &lt;string&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_port.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;sys/types.h&gt;
+#include &lt;termios.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  class UnixSerialPort : public Port
+  {
+  private:
+    int _fd;                    // file descriptor for device
+    int _debug;                 // debug level (set by environment variable
+                                // GSM_DEBUG
+    int _oldChar;               // character set by putBack() (-1 == none)
+    long int _timeoutVal;       // timeout for getLine/readByte
+
+    // throw GsmException include UNIX errno
+    void throwModemException(string message) throw(GsmException);
+    
+  public:
+    // create Port given the UNIX device name
+    UnixSerialPort(string device, speed_t lineSpeed = DEFAULT_BAUD_RATE,
+                   string initString = DEFAULT_INIT_STRING,
+                   bool swHandshake = false)
+      throw(GsmException);
+
+    // inherited from Port
+    void putBack(unsigned char c);
+    int readByte() throw(GsmException);
+    string getLine() throw(GsmException);
+    void putLine(string line,
+                         bool carriageReturn = true) throw(GsmException);
+    bool wait(GsmTime timeout) throw(GsmException);
+    void setTimeOut(unsigned int timeout);
+
+    virtual ~UnixSerialPort();
+  };
+
+  // convert baudrate string (&quot;300&quot; .. &quot;460800&quot;) to speed_t
+  extern speed_t baudRateStrToSpeed(string baudrate) throw(GsmException);
+};
+
+#endif // GSM_UNIX_SERIAL_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_utilcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,379 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_util.h
+// *
+// * Purpose: Various utilities
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;gsmlib/gsm_sysdep.h&gt;
+#include &lt;sys/stat.h&gt;
+#include &lt;assert.h&gt;
+#include &lt;string.h&gt;
+#include &lt;iostream&gt;
+#include &lt;strstream&gt;
+#include &lt;ctype.h&gt;
+#include &lt;errno.h&gt;
+#if !defined(HAVE_CONFIG_H) || defined(HAVE_UNISTD_H)
+#include &lt;unistd.h&gt;
+#endif
+#if !defined(HAVE_CONFIG_H) || defined(HAVE_MALLOC_H)
+#include &lt;malloc.h&gt;
+#endif
+#include &lt;stdarg.h&gt;
+#ifdef HAVE_VSNPRINTF
+// switch on vsnprintf() prototype in stdio.h
+#define __USE_GNU
+#define _GNU_SOURCE
+#endif
+#include &lt;cstdlib&gt;
+#include &lt;stdio.h&gt;
+#include &lt;sys/stat.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// Latin-1 undefined character (code 172 (Latin-1 boolean not, &quot;\xAC&quot;))
+const int NOP = 172;
+
+// GSM undefined character (code 16 (GSM Delta))
+const int GSM_NOP = 16;
+
+// conversion tables, Latin1 to GSM and GSM to Latin1
+
+static unsigned char gsmToLatin1Table[] =
+{
+  //  0 '@', '\xA3', '$', '\xA5', '\xE8', '\xE9', '\xF9', '\xEC', 
+        '@', 163, '$', 165, 232, 233, 249, 236,
+  //  8 '\xF2', '\xC7',  LF, '\xD8', '\xF8',  CR, '\xC5', '\xE5', 
+        242, 199,  10, 216, 248,  13, 197, 229,
+  // 16 '\xAC', '_', '\xAC', '\xAC', '\xAC', '\xAC', '\xAC', '\xAC',
+        NOP, '_', NOP, NOP, NOP, NOP, NOP, NOP, 
+  // 24 '\xAC', '\xAC', '\xAC', '\xAC', '\xC6', '\xE6', '\xDF', '\xC9',
+        NOP, NOP, NOP, NOP, 198, 230, 223, 201, 
+  // 32 ' ', '!', '&quot;', '#', '\xA4', '%', '&amp;', ''',
+        ' ', '!', '&quot;', '#', 164, '%', '&amp;', '\'',
+  // 40 '(', ')', '*', '+', ',', '-', '.', '/',
+        '(', ')', '*', '+', ',', '-', '.', '/',
+  // 48 '0', '1', '2', '3', '4', '5', '6', '7',
+         '0', '1', '2', '3', '4', '5', '6', '7',
+  // 56 '8', '9', ':', ';', '&lt;', '=', '&gt;', '?', 
+        '8', '9', ':', ';', '&lt;', '=', '&gt;', '?', 
+  // 64 '\xA1', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 
+        161, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 
+  // 72 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 
+        'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
+  // 80 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
+         'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
+  // 88 'X', 'Y', 'Z', '\xC4', '\xD6', '\xD1', '\xDC', '\xA7', 
+        'X', 'Y', 'Z', 196, 214, 209, 220, 167,
+  // 96 '\xBF', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+        191, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
+  // 104 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 
+         'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 
+  // 112 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 
+         'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 
+  // 120 'x', 'y', 'z', '\xE4', '\xF6', '\xF1', '\xFC', '\xE0', 
+         'x', 'y', 'z', 228, 246, 241, 252, 224
+};
+
+static unsigned char latin1ToGsmTable[256];
+
+static class Latin1ToGsmTableInit
+{
+public:
+  Latin1ToGsmTableInit()
+  {
+    memset((void*)latin1ToGsmTable, GSM_NOP, 256);
+    for (int i = 0; i &lt; 128; i++)
+      if (gsmToLatin1Table[i] != NOP)
+        latin1ToGsmTable[gsmToLatin1Table[i]] = i;
+  }
+} latin1ToGsmTableInit;
+
+string gsmlib::gsmToLatin1(string s)
+{
+  string result(s.length(), 0);
+  for (string::size_type i = 0; i &lt; s.length(); i++)
+    result[i] = (unsigned char)s[i] &gt; 127 ? NOP : gsmToLatin1Table[s[i]];
+  return result;
+}
+
+string gsmlib::latin1ToGsm(string s)
+{
+  string result(s.length(), 0);
+  for (string::size_type i = 0; i &lt; s.length(); i++)
+    result[i] = latin1ToGsmTable[(unsigned char)s[i]];
+  return result;
+}
+
+static unsigned char byteToHex[] =
+{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
+ 'A', 'B', 'C', 'D', 'E', 'F'};
+
+string gsmlib::bufToHex(const unsigned char *buf, unsigned long length)
+{
+  const unsigned char *bb = buf;
+  string result;
+  result.reserve(length * 2);
+
+  for (unsigned long i = 0; i &lt; length; ++i)
+  {
+    result += byteToHex[*bb &gt;&gt; 4];
+    result += byteToHex[*bb++ &amp; 0xf];
+  }
+  return result;
+}
+
+bool gsmlib::hexToBuf(const string &amp;hexString, unsigned char *buf)
+{
+  if (hexString.length() % 2 != 0)
+    return false;
+
+  unsigned char *bb = buf;
+  for (unsigned int i = 0; i &lt; hexString.length(); i += 2)
+  {
+    unsigned char c = hexString[i];
+    if (! isdigit(c) &amp;&amp; ! ('a' &lt;= c &amp;&amp; c &lt;= 'f') &amp;&amp; ! ('A' &lt;= c &amp;&amp; c &lt;= 'F'))
+      return false;
+    *bb = (isdigit(c) ? c - '0' :
+           ((('a' &lt;= c &amp;&amp; c &lt;= 'f') ? c - 'a' : c - 'A')) + 10) &lt;&lt; 4;
+    c = hexString[i + 1];
+    if (! isdigit(c) &amp;&amp; ! ('a' &lt;= c &amp;&amp; c &lt;= 'f') &amp;&amp; ! ('A' &lt;= c &amp;&amp; c &lt;= 'F'))
+      return false;
+    *bb++ |= isdigit(c) ? c - '0' :
+      ((('a' &lt;= c &amp;&amp; c &lt;= 'f') ? c - 'a' : c - 'A') + 10);
+  }
+  return true;
+}
+
+string gsmlib::intToStr(int i)
+{
+  ostrstream os;
+  os &lt;&lt; i &lt;&lt; ends;
+  char *ss = os.str();
+  string s(ss);
+  delete[] ss;
+  return s;
+}
+
+string gsmlib::removeWhiteSpace(string s)
+{
+  string result;
+  for (unsigned int i = 0; i &lt; s.length(); ++i)
+    if (! isspace(s[i]))
+      result += s[i];
+  return result;
+}
+
+#ifdef WIN32
+
+// helper routine, find out whether filename starts with &quot;COM&quot;
+static bool isCom(string filename)
+{
+  filename = removeWhiteSpace(lowercase(filename));
+  // remove UNC begin
+  if ( filename.compare(0, 4, &quot;\\\\.\\&quot;) == 0 )
+    filename.erase(0, 4);
+  return filename.length() &lt; 3 || filename.substr(0, 3) == &quot;com&quot;;
+}
+#endif
+
+bool gsmlib::isFile(string filename)
+{
+#ifdef WIN32
+  // stat does not work reliably under Win32 to indicate devices
+  if (isCom(filename))
+    return false;
+#endif
+
+  struct stat statBuf;
+  int retries = 0;
+
+  while (retries &lt; 10)
+  {
+    if (stat(filename.c_str(), &amp;statBuf) != 0)
+      throw GsmException(
+        stringPrintf(_(&quot;error when calling stat('%s') (errno: %d/%s)&quot;), 
+                     filename.c_str(), errno, strerror(errno)),
+        OSError);
+    
+#ifndef WIN32
+    if (S_ISLNK(statBuf.st_mode))
+    {
+      int size = 100;
+      while (1)
+      {
+        char *buffer = (char*)malloc(size);
+        int nchars = readlink(filename.c_str(), buffer, size);
+        if (nchars &lt; size)
+        {
+          filename.assign(buffer, nchars);
+          free(buffer);
+          break;
+        }
+        free(buffer);
+        size *= 2;
+      }
+      ++retries;
+    }
+    else if (S_ISCHR(statBuf.st_mode))
+      return false;
+    else 
+#endif
+    if (S_ISREG(statBuf.st_mode))
+      return true;
+    else
+      throw GsmException(
+        stringPrintf(_(&quot;file '%s' is neither file nor character device&quot;),
+                     filename.c_str()),
+        ParameterError);
+  }
+  throw GsmException(_(&quot;maxmimum number of symbolic links exceeded&quot;),
+                     ParameterError);
+}
+
+void gsmlib::renameToBackupFile(string filename) throw(GsmException)
+{
+  string backupFilename = filename + &quot;~&quot;;
+  unlink(backupFilename.c_str());
+  if (rename(filename.c_str(), backupFilename.c_str()) &lt; 0)
+    throw GsmException(
+      stringPrintf(_(&quot;error renaming '%s' to '%s'&quot;),
+                   filename.c_str(), backupFilename.c_str()),
+      OSError, errno);
+}
+
+// NoCopy members
+
+#ifndef NDEBUG
+
+NoCopy::NoCopy(NoCopy &amp;n)
+{
+  cerr &lt;&lt; &quot;ABORT: NoCopy copy constructor used&quot; &lt;&lt; endl;
+  abort();
+}
+
+NoCopy &amp;NoCopy::operator=(NoCopy &amp;n)
+{
+  cerr &lt;&lt; &quot;ABORT: NoCopy::operator= used&quot; &lt;&lt; endl;
+  abort();
+}
+
+#endif // NDEBUG
+
+string gsmlib::lowercase(string s)
+{
+  string result;
+  for (unsigned int i = 0; i &lt; s.length(); ++i)
+    result += tolower(s[i]);
+  return result;
+}
+
+int gsmlib::checkNumber(string s) throw(GsmException)
+{
+  for (unsigned int i = 0; i &lt; s.length(); ++i)
+    if (! isdigit(s[i]))
+      throw GsmException(stringPrintf(_(&quot;expected number, got '%s'&quot;),
+                                      s.c_str()), ParameterError);
+  int result;
+  istrstream is(s.c_str());
+  is &gt;&gt; result;
+  return result;
+}
+
+#ifdef HAVE_VSNPRINTF
+string gsmlib::stringPrintf(const char *format, ...)
+{
+  va_list args;
+  va_start(args, format);
+  int size = 1024;
+  while (1)
+  {
+    char *buf = (char*)alloca(sizeof(char) * size);
+    int nchars = vsnprintf(buf, size, format, args);
+    if (nchars &lt; size)
+    {
+      va_end(args);
+      return string(buf, nchars);
+    }
+    size *= 2;
+  }
+  return &quot;&quot;;
+}
+
+#else
+char gsmlib::__s[20000];        // buffer for the replacement macro
+#endif // HAVE_VSNPRINTF
+
+#ifndef NDEBUG
+int gsmlib::debugLevel()
+{
+  char *s = getenv(&quot;GSMLIB_DEBUG&quot;);
+  if (s == NULL) return 0;
+  return checkNumber(s);
+}
+#endif
+
+// interrupt interface
+
+namespace gsmlib
+{
+  static InterruptBase *interruptObject = NULL;
+}
+
+void gsmlib::setInterruptObject(InterruptBase *intObject)
+{
+  interruptObject = intObject;
+}
+  
+bool gsmlib::interrupted()
+{
+  return interruptObject != NULL &amp;&amp; interruptObject-&gt;interrupted();
+}
+
+void gsmlib::checkTextAndTelephone(string text, string telephone)
+  throw(GsmException)
+{
+  if (text.find('&quot;') != string::npos)
+    throw GsmException(
+      stringPrintf(_(&quot;text '%s' contains illegal character '\&quot;'&quot;),
+                   text.c_str()),
+      ParameterError);
+
+  for (unsigned int i = 0; i &lt; telephone.length(); ++i)
+    if (! isdigit(telephone[i]) &amp;&amp; ! (telephone[i] == '+') &amp;&amp;
+        ! (telephone[i] == '*') &amp;&amp; ! (telephone[i] == '#') &amp;&amp;
+        ! (telephone[i] == 'p') &amp;&amp; ! (telephone[i] == 'w') &amp;&amp;
+        ! (telephone[i] == 'P') &amp;&amp; ! (telephone[i] == 'W'))
+      throw GsmException(
+        stringPrintf(_(&quot;illegal character in telephone number '%s'&quot;),
+                     telephone.c_str()), ParameterError);
+}
+
+// progress interface
+
+namespace gsmlib
+{
+  static ProgressBase *progressObject = NULL;
+}
+
+void gsmlib::setProgressObject(ProgressBase *progObject)
+{
+  progressObject = progObject;
+}
+
+void gsmlib::reportProgress(int part, int total)
+{
+  if (progressObject != NULL)
+    progressObject-&gt;reportProgress(part, total);
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_utilh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_util.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,232 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_util.h
+// *
+// * Purpose: Various utilities
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 4.5.1999
+// *************************************************************************
+
+#ifndef GSM_UTIL_H
+#define GSM_UTIL_H
+
+#include &lt;string&gt;
+#include &lt;vector&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#ifndef WIN32
+#include &lt;sys/time.h&gt;
+#endif
+#include &lt;stdio.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  // time type
+  typedef struct timeval *GsmTime;
+
+  // some constants
+  const char CR = 13;             // ASCII carriage return
+  const char LF = 10;             // ASCII line feed
+
+  // common number formats
+  const unsigned int UnknownNumberFormat = 129;
+  const unsigned int InternationalNumberFormat = 145;
+
+  // convert gsm to Latin-1
+  // characters that have no counterpart in Latin-1 are converted to
+  // code 172 (Latin-1 boolean not, &quot;\xAC&quot;)
+  string gsmToLatin1(string s);
+
+  // convert Latin-1 to gsm
+  // characters that have no counterpart in GSM are converted to
+  // code 16 (GSM Delta)
+  string latin1ToGsm(string s);
+
+  // convert byte buffer of length to hexadecimal string
+  string bufToHex(const unsigned char *buf, unsigned long length);
+
+  // convert hexString to byte buffer, return false if no hexString
+  bool hexToBuf(const string &amp;hexString, unsigned char *buf);
+
+  // indicate that a value is not set
+  const int NOT_SET = -1;
+
+  // An integer range
+  struct IntRange
+  {
+    int _high, _low;
+
+    IntRange() : _high(NOT_SET), _low(NOT_SET) {}
+  };
+
+  // A valid integer range for a given parameter
+  struct ParameterRange
+  {
+    string _parameter;
+    IntRange _range;
+  };
+
+  // *** general-purpose pointer wrapper with reference counting
+
+  class RefBase
+  {
+  private:
+    int _refCount;
+
+  public:
+    RefBase() : _refCount(0) {}
+    int ref() {return _refCount++;}
+    int unref() {return --_refCount;}
+    int refCount() const {return _refCount;}
+  };
+
+  template &lt;class T&gt;
+    class Ref
+    {
+    private:
+      T *_rep;
+    public:
+      T *operator-&gt;() const {return _rep;}
+      T &amp;operator()() {return *_rep;}
+      T *getptr() {return _rep;}
+      bool isnull() const {return _rep == (T*)NULL;}
+      Ref() : _rep((T*)NULL) {}
+      Ref(T *pp) : _rep(pp) {if (pp != (T*)NULL) pp-&gt;ref();}
+      Ref(const Ref &amp;r);
+      Ref &amp;operator=(const Ref &amp;r);
+      ~Ref();
+      bool operator==(const Ref &amp;r) const
+        {
+          return _rep == r._rep;
+        }
+    };
+
+  template &lt;class T&gt;
+    Ref&lt;T&gt;::Ref(const Ref&lt;T&gt; &amp;r) : _rep(r._rep)
+    {
+      if (_rep != (T*)NULL) _rep-&gt;ref();
+    }
+
+  template &lt;class T&gt;
+    Ref&lt;T&gt; &amp;Ref&lt;T&gt;::operator=(const Ref&lt;T&gt; &amp;r)
+    {
+      if (r._rep != (T*)NULL) r._rep-&gt;ref();
+      if (_rep != (T*)NULL &amp;&amp; _rep-&gt;unref() == 0) delete _rep;
+      _rep = r._rep;
+      return *this;
+    }
+
+  template &lt;class T&gt;
+    Ref&lt;T&gt;::~Ref()
+    {
+      if (_rep != (T*)NULL &amp;&amp; _rep-&gt;unref() == 0) delete _rep;
+    }
+
+  // utility function return string given an int
+  string intToStr(int i);
+
+  // remove white space from the string
+  string removeWhiteSpace(string s);
+
+  // return true if bit is set in vector&lt;bool&gt;
+  inline bool isSet(vector&lt;bool&gt; &amp;b, unsigned int bit)
+    {
+      return b.size() &gt; bit &amp;&amp; b[bit];
+    }
+
+  // return true if filename refers to a file
+  // throws exception if filename is neither file nor device
+  bool isFile(string filename);
+
+  // make backup file adequate for this operating system
+  void renameToBackupFile(string filename) throw(GsmException);
+
+  // Base class for class for which copying is not allow
+  // only used for debugging
+
+  class NoCopy
+  {
+  public:
+    NoCopy() {}
+
+#ifndef NDEBUG
+    NoCopy(NoCopy &amp;n);
+
+    NoCopy &amp;operator=(NoCopy &amp;n);
+#endif
+  };
+
+  // convert string to lower case
+  string lowercase(string s);
+
+  // convert string to number and check for all digits
+  int checkNumber(string s) throw(GsmException);
+
+  // like printf, but return C++ string
+#ifdef HAVE_VSNPRINTF
+  string stringPrintf(const char *format, ...)
+#if        __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt; 4)
+     __attribute__((format (printf, 1, 2)))
+#endif
+    ;
+#else
+  // WARNING: This replacement code is
+  // - not threadsafe
+  // - subject to buffer overruns
+#define stringPrintf(format, args...)                   \
+        (sprintf(__s, format, ## args), string(__s))
+
+  extern char __s[];
+#endif // HAVE_VSNPRINTF
+
+  // return debug level
+#ifndef NDEBUG
+  extern int debugLevel();
+#endif
+
+  // interface for interrupting gsmlib activity
+
+  class InterruptBase
+  {
+  public:
+    // this member should return true if gsmlib is to be interrupted
+    virtual bool interrupted() = 0;
+  };
+
+  // set global interrupt object
+  extern void setInterruptObject(InterruptBase *intObject);
+  
+  // return true if interrupted
+  extern bool interrupted();
+
+  // interface for reporting progress
+  
+  class ProgressBase
+  {
+  public:
+    // override this to receive progress reports
+    virtual void reportProgress(int part, int total) = 0;
+  };
+
+  // set global progress object
+  extern void setProgressObject(ProgressBase *progObject);
+
+  // report progress (part/total * 100 is meant to be the percentage)
+  // this function is called by
+  // - GsmAt::chatv() without arguments, used by Phonebook::Phonebook()
+  // - Phonebook::Phonebook()
+  // - SortedPhonebook::SortedPhonebook()
+  // - SortedSMSStore::SortedSMSStore()
+  extern void reportProgress(int part = -1, int total = -1);
+
+  // check for valid text and telephone number
+  // throw exception if error
+  extern void checkTextAndTelephone(string text, string telephone)
+    throw(GsmException);
+};
+
+#endif // GSM_UTIL_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_win32_serialcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,507 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_win32_port.cc
+// *
+// * Purpose: WIN32 serial port implementation
+// *
+// * Author:  Frediano Ziglio (freddy77@angelfire.com)
+// *
+// * Created: 25.10.2000
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;winsock.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#include &lt;fcntl.h&gt;
+#include &lt;iostream&gt;
+#include &lt;strstream&gt;
+#include &lt;errno.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;assert.h&gt;
+#include &lt;signal.h&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+static long int timeoutVal = TIMEOUT_SECS;
+
+struct ExceptionSafeOverlapped: public OVERLAPPED
+{
+  ExceptionSafeOverlapped()
+  {
+    memset((OVERLAPPED*)this,0,sizeof(OVERLAPPED));
+    hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); 
+    if (hEvent == INVALID_HANDLE_VALUE) 
+      throw GsmException(_(&quot;error creating event&quot;),OSError,GetLastError());
+  }
+  ~ExceptionSafeOverlapped()
+  { CloseHandle(hEvent); }
+};
+
+typedef BOOL (WINAPI *TCancelIoProc)(HANDLE file);
+TCancelIoProc CancelIoProc = NULL;
+BOOL CancelIoHook(HANDLE file)
+{
+  if (CancelIoProc)
+    return CancelIoProc(file);
+
+  HMODULE hmodule = GetModuleHandle(&quot;KERNEL32&quot;);
+  if (hmodule)
+  {
+    CancelIoProc = (TCancelIoProc)GetProcAddress(hmodule,&quot;CancelIo&quot;);
+    if (CancelIoProc)
+      return CancelIoProc(file);
+  }
+                         
+  return TRUE;
+}
+#define CancelIo CancelIoHook
+
+// Win32SerialPort members
+
+void Win32SerialPort::throwModemException(string message) throw(GsmException)
+{
+  ostrstream os;
+  os &lt;&lt; message &lt;&lt; &quot; (errno: &quot; &lt;&lt; errno &lt;&lt; &quot;/&quot; &lt;&lt; strerror(errno) &lt;&lt; &quot;)&quot;
+     &lt;&lt; ends;
+  char *ss = os.str();
+  string s(ss);
+  delete[] ss;
+  throw GsmException(s, OSError, errno);
+}
+
+void Win32SerialPort::putBack(unsigned char c)
+{
+  assert(_oldChar == -1);
+  _oldChar = c;
+}
+
+int Win32SerialPort::readByte() throw(GsmException)
+{
+  if (_oldChar != -1)
+  {
+    int result = _oldChar;
+    _oldChar = -1;
+    return result;
+  }
+
+  unsigned char c;
+  int timeElapsed = 0;
+  bool readDone = true;
+  ExceptionSafeOverlapped  over;
+
+  DWORD initTime = GetTickCount();
+  DWORD dwReaded;
+  if (!ReadFile(_file,&amp;c,1,&amp;dwReaded,&amp;over))
+  {
+    readDone = false;
+    if (GetLastError() != ERROR_IO_PENDING)
+    {
+      throwModemException(_(&quot;reading from TA&quot;));
+    }
+
+    while(!readDone)
+    {
+      if (interrupted())
+        throwModemException(_(&quot;interrupted when reading from TA&quot;));
+
+      // wait another second
+      switch(WaitForSingleObject(over.hEvent,1000))
+      {
+      case WAIT_TIMEOUT:
+        break;
+      case WAIT_OBJECT_0:
+      case WAIT_ABANDONED:
+              // !!! do a infinite loop if (bytesWritten &lt; lenght) ?
+        GetOverlappedResult(_file,&amp;over,&amp;dwReaded,TRUE);
+        readDone = true;
+        break;
+      case WAIT_FAILED:
+        throwModemException(_(&quot;reading from TA&quot;));
+      }
+
+      timeElapsed = (GetTickCount() - initTime)/1000U;
+
+      // timeout elapsed ?
+      if (timeElapsed &gt;= timeoutVal)
+      {
+        CancelIo(_file);
+        break;
+      }
+
+    }
+  }
+  
+  if (! readDone)
+    throwModemException(_(&quot;timeout when reading from TA&quot;));
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 2)
+  {
+    // some useful debugging code
+    if (c == LF)
+      cerr &lt;&lt; &quot;&lt;LF&gt;&quot;;
+    else if (c == CR)
+      cerr &lt;&lt; &quot;&lt;CR&gt;&quot;;
+    else cerr &lt;&lt; &quot;&lt;'&quot; &lt;&lt; (char) c &lt;&lt; &quot;'&gt;&quot;;
+    cerr.flush();
+  }
+#endif
+  return c;
+}
+
+Win32SerialPort::Win32SerialPort(string device, int lineSpeed,
+                               string initString, bool swHandshake)
+  throw(GsmException) :
+  _oldChar(-1)
+{
+ try
+ {
+  int holdoff[] = {2000, 1000, 400};
+
+  // open device
+  _file = CreateFile(device.c_str(),GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL );
+  if (_file == INVALID_HANDLE_VALUE)
+    throwModemException(stringPrintf(_(&quot;opening device '%s'&quot;),
+                                     device.c_str()));
+
+  int initTries = 3;
+  while (initTries-- &gt; 0)
+  {
+    // flush all pending output
+    FlushFileBuffers(_file);
+
+    // toggle DTR to reset modem
+    if (!EscapeCommFunction(_file,CLRDTR))
+      throwModemException(_(&quot;clearing DTR failed&quot;));
+    Sleep(holdoff[initTries]);
+    if (!EscapeCommFunction(_file,SETDTR))
+      throwModemException(_(&quot;setting DTR failed&quot;));
+
+    DCB dcb;
+    // get line modes
+    if (!GetCommState(_file,&amp;dcb))
+      throwModemException(stringPrintf(_(&quot;GetCommState device '%s'&quot;),
+                                       device.c_str()));
+
+//    if (tcgetattr(_fd, &amp;t) &lt; 0)
+//      throwModemException(stringPrintf(_(&quot;tcgetattr device '%s'&quot;),
+//                                       device.c_str()));
+
+    // set the device to a sane state
+    dcb.fBinary = TRUE;
+    dcb.BaudRate = lineSpeed;
+
+    // n,8,1
+    dcb.fParity = FALSE;
+    dcb.Parity = 0;
+    dcb.ByteSize = 8;
+    dcb.StopBits = 0;
+
+    if (!swHandshake)
+    {
+      dcb.fInX = FALSE;
+      dcb.fOutX = FALSE;
+      dcb.fOutxDsrFlow = FALSE;
+      dcb.fOutxCtsFlow = FALSE;
+    }
+    else
+    {
+      dcb.fInX  = TRUE;
+      dcb.fOutX = TRUE;
+      dcb.fOutxDsrFlow = FALSE;
+      dcb.fOutxCtsFlow = FALSE;
+    }
+    dcb.fDtrControl = DTR_CONTROL_ENABLE;
+    dcb.fRtsControl = RTS_CONTROL_ENABLE;
+    
+//    t.c_iflag |= IGNPAR;
+//    t.c_iflag &amp;= ~(INPCK | ISTRIP | IMAXBEL |
+//                   (swHandshake ? CRTSCTS : IXON |  IXOFF)
+//                   | IXANY | IGNCR | ICRNL | IMAXBEL | INLCR | IGNBRK);
+//    t.c_oflag &amp;= ~(OPOST);
+//    // be careful, only touch &quot;known&quot; flags
+//    t.c_cflag&amp;= ~(CSIZE | CSTOPB | PARENB | PARODD);
+//    t.c_cflag|= CS8 | CREAD | HUPCL |
+//      (swHandshake ? IXON |  IXOFF : CRTSCTS) |
+//      CLOCAL;
+//    t.c_lflag &amp;= ~(ECHO | ECHOE | ECHOPRT | ECHOK | ECHOKE | ECHONL |
+//                   ECHOCTL | ISIG | IEXTEN | TOSTOP | FLUSHO | ICANON);
+//    t.c_lflag |= NOFLSH;
+//
+//    t.c_cc[VMIN] = 1;
+//    t.c_cc[VTIME] = 0;
+//
+//    t.c_cc[VSUSP] = 0;
+
+    // write back
+    if (!SetCommState(_file,&amp;dcb))
+      throwModemException(stringPrintf(_(&quot;SetCommState device '%s'&quot;),
+                                       device.c_str()));
+
+    Sleep(holdoff[initTries]);
+
+    if (!SetupComm(_file,1024,1024))
+      throwModemException(stringPrintf(_(&quot;SetupComm device '%s'&quot;),
+                                       device.c_str()));

+
+    // flush all pending input
+    PurgeComm(_file,PURGE_RXABORT|PURGE_RXCLEAR);
+
+    try
+    {
+      // reset modem
+      putLine(&quot;ATZ&quot;);
+      bool foundOK = false;
+      int readTries = 5;
+      while (readTries-- &gt; 0)
+      {
+        string s = getLine();
+        if (s.find(&quot;OK&quot;) != string::npos ||
+            s.find(&quot;CABLE: GSM&quot;) != string::npos)
+        {
+          foundOK = true;
+          readTries = 0;           // found OK, exit loop
+        }
+      }
+
+      if (foundOK)
+      {
+        // init modem
+        readTries = 5;
+        // !!! no not declare this in loop, compiler error on Visual C++
+        // (without SP and with SP4)
+        string s; 
+        putLine(&quot;AT&quot; + initString);
+        do
+        {
+          s = getLine();
+          if (s.find(&quot;OK&quot;) != string::npos ||
+              s.find(&quot;CABLE: GSM&quot;) != string::npos)
+            return;                 // found OK, return
+        } while(--readTries);
+      }
+    }
+    catch (GsmException &amp;e)
+    {
+      if (initTries == 0)
+        throw e;
+    }
+  }
+  // no response after 3 tries
+  throw GsmException(stringPrintf(_(&quot;reset modem failed '%s'&quot;),
+                                  device.c_str()), OtherError);
+ }
+ catch (GsmException &amp;e)
+ {
+  if ( _file != INVALID_HANDLE_VALUE)
+   CloseHandle(_file);  
+  throw e;
+ }
+}
+
+string Win32SerialPort::getLine() throw(GsmException)
+{
+  string result;
+  int c;
+  while ((c = readByte()) &gt; 0)
+  {
+    while (c == CR)
+    {
+      c = readByte();
+    }
+    if (c == LF)
+      break;
+    result += c;
+  }
+
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;&lt;-- &quot; &lt;&lt; result &lt;&lt; endl;
+#endif
+
+  return result;
+}
+
+void Win32SerialPort::putLine(string line,
+                             bool carriageReturn) throw(GsmException)
+{
+#ifndef NDEBUG
+  if (debugLevel() &gt;= 1)
+    cerr &lt;&lt; &quot;--&gt; &quot; &lt;&lt; line &lt;&lt; endl;
+#endif
+
+  if (carriageReturn) line += CR;
+  // !!! BUG, mantain this pointer isn't corrent, use iterator !!!
+  const char *l = line.c_str();
+  
+  FlushFileBuffers(_file);      // flush all pending input and output
+
+  int timeElapsed = 0;
+
+  DWORD bytesWritten = 0;
+
+  ExceptionSafeOverlapped over;
+
+  DWORD initTime = GetTickCount();
+  if (!WriteFile(_file,l,line.length(),&amp;bytesWritten,&amp;over))
+  {
+    if (GetLastError() != ERROR_IO_PENDING)
+    {
+      throwModemException(_(&quot;writing to TA&quot;));
+    }
+
+    while(bytesWritten &lt; (DWORD)line.length())
+    {
+      if (interrupted())
+        throwModemException(_(&quot;interrupted when writing to TA&quot;));
+
+      // wait another second
+      switch(WaitForSingleObject(over.hEvent,1000))
+      {
+      case WAIT_TIMEOUT:
+        break;
+      case WAIT_OBJECT_0:
+      case WAIT_ABANDONED:
+        // !!! do a infinite loop if (bytesWritten &lt; lenght) ?
+        GetOverlappedResult(_file,&amp;over,&amp;bytesWritten,TRUE);
+        break;
+      case WAIT_FAILED:
+        throwModemException(_(&quot;writing to TA&quot;));
+      }
+
+      timeElapsed = (GetTickCount() - initTime)/1000U;
+
+      // timeout elapsed ?
+      if (timeElapsed &gt;= timeoutVal)
+      {
+        CancelIo(_file);
+        throwModemException(_(&quot;timeout when writing to TA&quot;));
+      }
+
+    }
+  }
+
+  return;
+/*
+  // empty buffer
+  SetCommMask(_file,EV_TXEMPTY);
+  DWORD dwEvent;
+  ResetEvent(over.hEvent);
+  if( WaitCommEvent(_file,&amp;dwEvent,&amp;over) )
+    return; // already empty
+
+  // check true errors
+  if (GetLastError() != ERROR_IO_PENDING)
+    throwModemException(_(&quot;error comm waiting&quot;));
+
+  while(timeElapsed &lt; timeoutVal)
+  {
+    if (interrupted())
+      throwModemException(_(&quot;interrupted when flushing to TA&quot;));
+
+    switch( WaitForSingleObject( over.hEvent, 1000 ) ) 
+    {
+    case WAIT_TIMEOUT:
+      break;
+
+    // successfully flushed
+    case WAIT_ABANDONED:
+    case WAIT_OBJECT_0:
+      return;
+
+    default:
+      throwModemException(_(&quot;error waiting&quot;));
+    }
+    timeElapsed = (GetTickCount() - initTime)/1000U;
+  }
+
+  CancelIo(_file);
+  throwModemException(_(&quot;timeout when writing to TA&quot;));
+*/
+
+  // echo CR LF must be removed by higher layer functions in gsm_at because
+  // in order to properly handle unsolicited result codes from the ME/TA
+}
+
+bool Win32SerialPort::wait(GsmTime timeout) throw(GsmException)
+{
+  // See differences from UNIX
+  // Why do I use Windows ?
+  DWORD dwEvent;
+  SetCommMask(_file,EV_RXCHAR);
+  if (!timeout)
+  {
+    if( !WaitCommEvent(_file,&amp;dwEvent,NULL) )
+      throwModemException(_(&quot;error comm waiting&quot;));
+    return true;
+  }
+  
+  ExceptionSafeOverlapped over;
+  if( !WaitCommEvent(_file,&amp;dwEvent,&amp;over) )
+  {
+    // check true errors
+    if (GetLastError() != ERROR_IO_PENDING)
+      throwModemException(_(&quot;error comm waiting&quot;));
+
+    switch( WaitForSingleObject( over.hEvent, timeout-&gt;tv_sec*1000U+(timeout-&gt;tv_usec/1000U) ) ) 
+    {
+    case WAIT_TIMEOUT:
+      CancelIo(_file);
+      return false;
+
+    case WAIT_ABANDONED:
+    case WAIT_OBJECT_0:
+      return true;
+
+    default:
+      throwModemException(_(&quot;error waiting&quot;));
+    }
+  }
+
+  return true;
+}
+
+void Win32SerialPort::setTimeOut(unsigned int timeout)
+{
+  timeoutVal = timeout;
+}
+
+Win32SerialPort::~Win32SerialPort()
+{
+  if ( _file != INVALID_HANDLE_VALUE)
+    CloseHandle(_file);
+}
+
+int gsmlib::baudRateStrToSpeed(string baudrate) throw(GsmException)
+{
+  if (baudrate == &quot;300&quot;)
+    return 300;
+  else if (baudrate == &quot;600&quot;)
+    return 600;
+  else if (baudrate == &quot;1200&quot;)
+    return 1200;
+  else if (baudrate == &quot;2400&quot;)
+    return 2400;
+  else if (baudrate == &quot;4800&quot;)
+    return 4800;
+  else if (baudrate == &quot;9600&quot;)
+    return 9600;
+  else if (baudrate == &quot;19200&quot;)
+    return 19200;
+  else if (baudrate == &quot;38400&quot;)
+    return 38400;
+  else if (baudrate == &quot;57600&quot;)
+    return 57600;
+  else if (baudrate == &quot;115200&quot;)
+    return 115200;
+  else
+    throw GsmException(stringPrintf(_(&quot;unknown baudrate '%s'&quot;),
+                                    baudrate.c_str()), ParameterError);
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibgsm_win32_serialh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib/gsm_win32_serial.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,60 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    gsm_win32_port.h
+// *
+// * Purpose: WIN32 serial port implementation
+// *
+// * Author:  Frediano Ziglio (freddy77@angelfire.com)
+// *
+// * Created: 25.10.2000
+// *************************************************************************
+
+#ifndef GSM_WIN32_SERIAL_H
+#define GSM_WIN32_SERIAL_H
+
+#include &lt;string&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;gsmlib/gsm_port.h&gt;
+#include &lt;gsmlib/gsm_util.h&gt;
+#define WIN32_MEAN_AND_LEAN
+#include &lt;windows.h&gt;
+
+using namespace std;
+
+namespace gsmlib
+{
+  class Win32SerialPort : public Port
+  {
+  private:
+    HANDLE _file;               // file handle for device
+    int _oldChar;               // character set by putBack() (-1 == none)
+//    OVERLAPPED _overIn;         // overlapped structure for wait
+
+    // throw GsmException include UNIX errno
+    void throwModemException(string message) throw(GsmException);
+    
+  public:
+    // create Port given the UNIX device name
+    Win32SerialPort(string device, int lineSpeed = DEFAULT_BAUD_RATE,
+                   string initString = DEFAULT_INIT_STRING,
+                   bool swHandshake = false)
+      throw(GsmException);
+
+    // inherited from Port
+    void putBack(unsigned char c);
+    int readByte() throw(GsmException);
+    string getLine() throw(GsmException);
+    void putLine(string line,
+                         bool carriageReturn = true) throw(GsmException);
+    bool wait(GsmTime timeout) throw(GsmException);
+    void setTimeOut(unsigned int timeout);
+
+    virtual ~Win32SerialPort();
+  };
+
+  // convert baudrate string (&quot;300&quot; .. &quot;460800&quot;) to speed_t
+  extern int baudRateStrToSpeed(string baudrate) throw(GsmException);
+};
+
+#endif // GSM_UNIX_SERIAL_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsdirs"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.dirs (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.dirs                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.dirs        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+var/spool/sms/queue1
+var/spool/sms/queue2
+var/spool/sms/queue3
+var/spool/sms/sent1
+var/spool/sms/sent2
+var/spool/sms/sent3
+var/spool/sms/failed1
+var/spool/sms/failed2
+var/spool/sms/failed3
+var/spool/sms/tmp
+var/run/gsm-utils
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilspostinst"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.postinst (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.postinst                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.postinst        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+#!/bin/sh -e
+
+# create gsmsms group if necessary.
+if ! grep -q ^gsmsms: /etc/group; then
+#      echo Adding system group: gsmsms.
+       addgroup gsmsms 
+fi
+
+# create gsmsms user if necessary.
+if ! grep -q ^gsmsms: /etc/passwd; then
+#        echo Adding system user: gsmsms.
+        adduser --system --ingroup gsmsms \
+                --no-create-home --home /var/spool/sms gsmsms
+fi
+
+# allow gsmsms to use serial lines
+if ! groups gsmsms | grep -q dialout ; then
+        adduser gsmsms dialout
+fi
+
+# echo Updating spool directory structure: /var/spool/sms
+chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
+chmod 700 /var/spool/sms/*
+chmod 750 /var/spool/sms
+chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp
+
+# Add the rest automatically..
+#DEBHELPER#
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsprerm"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.prerm (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.prerm                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.prerm        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+#!/bin/sh -e
+
+deluser gsmsms  || true
+delgroup gsmsms || true
+
+# Add the rest automatically..
+#DEBHELPER#
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlib110debmgdebiangsmutilsundocumented"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.undocumented (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.undocumented                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib-1.10.debmg/debian/gsm-utils.undocumented        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+gsmsmsspool.1  
+gsmsmsrequeue.8
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1gsmlibspec"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib.spec (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib.spec                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/gsmlib.spec        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,92 @@
</span><ins>+%define LIBVER 1.0.4
+Summary: Library to access GSM mobile phones through GSM modems
+Name: gsmlib
+Version: 1.10
+Release: 1
+Source: gsmlib-%{version}.tar.gz
+Group: System Environment/Libraries
+Copyright: GNU LIBRARY GENERAL PUBLIC LICENSE
+URL: http://www.pxh.de/fs/gsmlib/
+Vendor: Peter Hofmann &lt;software@pxh.de&gt;
+Buildroot: /var/tmp/gsmlib-root
+
+%package devel
+Summary: Development tools for programs which will use the gsmlib library.
+Group: Development/Libraries
+Requires: gsmlib
+
+%package ext
+Summary: Extensions to gsmlib to support non-standard phone features.
+Group:  Development/Libraries
+Requires: gsmlib
+
+%description
+This distribution contains a library to access
+GSM mobile phones through GSM modems. Features include:
+ * modification of phonebooks stored in the
+   mobile phone or on the SIM card
+ * reading and writing of SMS messages stored in
+   the mobile phone
+ * sending and reception of SMS messages
+Additionally, some simple command line programs are
+provided to use these functionalities.
+
+%description devel
+The gsmlib-devel package includes the header files and static libraries
+necessary for developing programs which use the gsmlib library.
+
+%description ext
+The extension package of gsmlib contains programs, libraries, and
+documentation to support non-standard features of GSM phones. The
+following phones/phone types are currently supported:
+ * Siemens GSM phones
+
+%prep
+%setup
+
+%build
+CXXFLAGS=&quot;$RPM_OPT_FLAGS&quot; ./configure --prefix=/usr
+make
+
+%install
+make DESTDIR=&quot;$RPM_BUILD_ROOT&quot; install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+/usr/lib/libgsmme.so
+/usr/lib/libgsmme.so.%{LIBVER}
+/usr/bin/gsmsmsstore
+/usr/bin/gsmctl
+/usr/bin/gsmsmsd
+/usr/bin/gsmpb
+/usr/bin/gsmsendsms
+/usr/man/man1/gsmctl.1.gz
+/usr/man/man7/gsminfo.7.gz
+/usr/man/man1/gsmpb.1.gz
+/usr/man/man1/gsmsendsms.1.gz
+/usr/man/man8/gsmsmsd.8.gz
+/usr/man/man1/gsmsmsstore.1.gz
+/usr/share/locale/de/LC_MESSAGES/gsmlib.mo
+
+%doc README INSTALL ABOUT-NLS AUTHORS COPYING NEWS TODO
+%doc doc/README.NLS doc/README.developers doc/FAQ ChangeLog
+
+%files devel
+%defattr(-,root,root)
+/usr/lib/libgsmme.a
+/usr/include/gsmlib
+
+%files ext
+/usr/bin/gsmsiectl
+/usr/bin/gsmsiexfer
+/usr/lib/libgsmext.so
+/usr/lib/libgsmext.so.%{LIBVER}
+
+%doc ext/README.sieme
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlChangeLog"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/ChangeLog (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/ChangeLog                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/ChangeLog        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1086 @@
</span><ins>+1998-04-29  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * intl/localealias.c (read_alias_file): Use unsigned char for
+        local variables.  Remove unused variable tp.
+        * intl/l10nflist.c (_nl_normalize_codeset): Use unsigned char *
+        for type of codeset.  For loosing Solaris systems.
+        * intl/loadinfo.h: Adapt prototype of _nl_normalize_codeset.
+        * intl/bindtextdom.c (BINDTEXTDOMAIN): Don't define local variable
+        len if not needed.
+        Patches by Jim Meyering.
+
+1998-04-28  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * loadmsgcat.c (_nl_load_domain): Don't assign the element use_mmap if
+        mmap is not supported.
+
+        * hash-string.h: Don't include &lt;values.h&gt;.
+
+1998-04-27  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * textdomain.c: Use strdup is available.
+
+        * localealias.c: Define HAVE_MEMPCPY so that we can use this
+        function.  Define and use semapahores to protect modfication of
+        global objects when compiling for glibc.  Add code to allow
+        freeing alias table.
+
+        * l10nflist.c: Don't assume stpcpy not being a macro.
+
+        * gettextP.h: Define internal_function macri if not already done.
+        Use glibc byte-swap macros instead of defining SWAP when compiled
+        for glibc.
+        (struct loaded_domain): Add elements to allow unloading.
+
+        * Makefile.in (distclean): Don't remove libintl.h here.
+
+        * bindtextdomain.c: Carry over changes from glibc.  Use strdup if
+        available.
+
+        * dcgettext.c: Don't assume stpcpy not being a macro.  Mark internal
+        functions.  Add memory freeing code for glibc.
+
+        * dgettext.c: Update copyright.
+
+        * explodename.c: Include stdlib.h and string.h only if they exist.
+        Use strings.h eventually.
+
+        * finddomain.c: Mark internal functions.  Use strdup if available.
+        Add memory freeing code for glibc.
+
+1997-10-10 20:00  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * libgettext.h: Fix dummy textdomain and bindtextdomain macros.
+        They should return reasonable values.
+        Reported by Tom Tromey &lt;tromey@cygnus.com&gt;.
+
+1997-09-16 03:33  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * libgettext.h: Define PARAMS also to `args' if __cplusplus is defined.
+        * intlh.inst.in: Likewise.
+        Reported by Jean-Marc Lasgouttes &lt;Jean-Marc.Lasgouttes@inria.fr&gt;.
+
+        * libintl.glibc: Update from current glibc version.
+
+1997-09-06 02:10  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * intlh.inst.in: Reformat copyright.
+
+1997-08-19 15:22  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * dcgettext.c (DCGETTEXT): Remove wrong comment.
+
+1997-08-16 00:13  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (install-data): Don't change directory to install.
+
+1997-08-01 14:30  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * cat-compat.c: Fix copyright.
+
+        * localealias.c: Don't define strchr unless !HAVE_STRCHR.
+
+        * loadmsgcat.c: Update copyright.  Fix typos.
+
+        * l10nflist.c: Don't define strchr unless !HAVE_STRCHR.
+        (_nl_make_l10nflist): Handle sponsor and revision correctly.
+
+        * gettext.c: Update copyright.
+        * gettext.h: Likewise.
+        * hash-string.h: Likewise.
+
+        * finddomain.c: Remoave dead code.  Define strchr only if
+        !HAVE_STRCHR.
+
+        * explodename.c: Include &lt;sys/types.h&gt;.
+
+        * explodename.c: Reformat copyright text.
+        (_nl_explode_name): Fix typo.
+
+        * dcgettext.c: Define and use __set_errno.
+        (guess_category_value): Don't use setlocale if HAVE_LC_MESSAGES is
+        not defined.
+
+        * bindtextdom.c: Pretty printing.
+
+1997-05-01 02:25  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * dcgettext.c (guess_category_value): Don't depend on
+        HAVE_LC_MESSAGES.  We don't need the macro here.
+        Patch by Bruno Haible &lt;haible@ilog.fr&gt;.
+
+        * cat-compat.c (textdomain): DoN't refer to HAVE_SETLOCALE_NULL
+        macro.  Instead use HAVE_LOCALE_NULL and define it when using
+        glibc, as in dcgettext.c.
+        Patch by Bruno Haible &lt;haible@ilog.fr&gt;.
+
+        * Makefile.in (CPPFLAGS): New variable.  Reported by Franc,ois
+        Pinard.
+
+Mon Mar 10 06:51:17 1997  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in: Implement handling of libtool.
+
+        * gettextP.h: Change data structures for use of generic lowlevel
+        i18n file handling.
+
+Wed Dec  4 20:21:18 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * textdomain.c: Put parentheses around arguments of memcpy macro
+        definition.
+        * localealias.c: Likewise.
+        * l10nflist.c: Likewise.
+        * finddomain.c: Likewise.
+        * bindtextdom.c: Likewise.
+        Reported by Thomas Esken.
+
+Mon Nov 25 22:57:51 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * textdomain.c: Move definition of `memcpy` macro to right
+        position.
+
+Fri Nov 22 04:01:58 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * finddomain.c [!HAVE_STRING_H &amp;&amp; !_LIBC]: Define memcpy using
+         bcopy if not already defined.  Reported by Thomas Esken.
+        * bindtextdom.c: Likewise.
+        * l10nflist.c: Likewise.
+        * localealias.c: Likewise.
+        * textdomain.c: Likewise.
+
+Tue Oct 29 11:10:27 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (libdir): Change to use exec_prefix instead of
+         prefix.  Reported by Knut-H\xE5vardAksnes &lt;etokna@eto.ericsson.se&gt;.
+
+Sat Aug 31 03:07:09 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * l10nflist.c (_nl_normalize_codeset): We convert to lower case,
+        so don't prepend uppercase `ISO' for only numeric arg.
+
+Fri Jul 19 00:15:46 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * l10nflist.c: Move inclusion of argz.h, ctype.h, stdlib.h after
+        definition of _GNU_SOURCE.  Patch by Roland McGrath.
+
+        * Makefile.in (uninstall): Fix another bug with `for' loop and
+        empty arguments.  Patch by Jim Meyering.  Correct name os
+        uninstalled files: no intl- prefix anymore.
+
+        * Makefile.in (install-data): Again work around shells which
+        cannot handle mpty for list.  Reported by Jim Meyering.
+
+Sat Jul 13 18:11:35 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (install): Split goal.  Now depend on install-exec
+        and install-data.
+        (install-exec, install-data): New goals.  Created from former
+        install goal.
+        Reported by Karl Berry.
+
+Sat Jun 22 04:58:14 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (MKINSTALLDIRS): New variable.  Path to
+        mkinstalldirs script.
+        (install): use MKINSTALLDIRS variable or if the script is not present
+        try to find it in the $top_scrdir).
+
+Wed Jun 19 02:56:56 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * l10nflist.c: Linux libc *partly* includes the argz_* functions.
+        Grr.  Work around by renaming the static version and use macros
+        for renaming.
+
+Tue Jun 18 20:11:17 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * l10nflist.c: Correct presence test macros of __argz_* functions.
+
+        * l10nflist.c: Include &lt;argz.h&gt; based on test of it instead when
+        __argz_* functions are available.
+        Reported by Andreas Schwab.
+
+Thu Jun 13 15:17:44 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * explodename.c, l10nflist.c: Define NULL for dumb systems.
+
+Tue Jun 11 17:05:13 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * intlh.inst.in, libgettext.h (dcgettext): Rename local variable
+        result to __result to prevent name clash.
+
+        * l10nflist.c, localealias.c, dcgettext.c: Define _GNU_SOURCE to
+        get prototype for stpcpy and strcasecmp.
+
+        * intlh.inst.in, libgettext.h: Move declaration of
+        `_nl_msg_cat_cntr' outside __extension__ block to prevent warning
+        from gcc's -Wnested-extern option.
+
+Fri Jun  7 01:58:00 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (install): Remove comment.
+
+Thu Jun  6 17:28:17 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (install): Work around for another Buglix stupidity.
+        Always use an `else' close for `if's.  Reported by Nelson Beebe.
+
+        * Makefile.in (intlh.inst): Correct typo in phony rule.
+        Reported by Nelson Beebe.
+
+Thu Jun  6 01:49:52 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * dcgettext.c (read_alias_file): Rename variable alloca_list to
+        block_list as the macro calls assume.
+        Patch by Eric Backus.
+
+        * localealias.c [!HAVE_ALLOCA]: Define alloca as macro using
+        malloc.
+        (read_alias_file): Rename varriabe alloca_list to block_list as the
+        macro calls assume.
+        Patch by Eric Backus.
+
+        * l10nflist.c: Correct conditional for &lt;argz.h&gt; inclusion.
+        Reported by Roland McGrath.
+
+        * Makefile.in (all): Depend on all-@USE_INCLUDED_LIBINTL@, not
+        all-@USE_NLS@.
+
+        * Makefile.in (install): intlh.inst comes from local dir, not
+        $(srcdir).
+
+        * Makefile.in (intlh.inst): Special handling of this goal.  If
+        used in gettext, this is really a rul to construct this file.  If
+        used in any other package it is defined as a .PHONY rule with
+        empty body.
+
+        * finddomain.c: Extract locale file information handling into
+        l10nfile.c.  Rename local stpcpy__ function to stpcpy.
+
+        * dcgettext.c (stpcpy): Add local definition.
+
+        * l10nflist.c: Solve some portability problems.  Patches partly by
+        Thomas Esken.  Add local definition of stpcpy.
+
+Tue Jun  4 02:47:49 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * intlh.inst.in: Don't depend including &lt;locale.h&gt; on
+        HAVE_LOCALE_H.  Instead configure must rewrite this fiile
+        depending on the result of the configure run.
+
+        * Makefile.in (install): libintl.inst is now called intlh.inst.
+        Add rules for updating intlh.inst from intlh.inst.in.
+
+        * libintl.inst: Renamed to intlh.inst.in.
+
+        * localealias.c, dcgettext.c [__GNUC__]: Define HAVE_ALLOCA to 1
+        because gcc has __buitlin_alloca.
+        Reported by Roland McGrath.
+
+Mon Jun  3 00:32:16 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * Makefile.in (installcheck): New goal to fulfill needs of
+        automake's distcheck.
+
+        * Makefile.in (install): Reorder commands so that VERSION is
+        found.
+
+        * Makefile.in (gettextsrcdir): Now use subdirectory intl/ in
+        @datadir@/gettext.
+        (COMSRCS): Add l10nfile.c.
+        (OBJECTS): Add l10nfile.o.
+        (DISTFILES): Rename to DISTFILE.normal.  Remove $(DISTFILES.common).
+        (DISTFILE.gettext): Remove $(DISTFILES.common).
+        (all-gettext): Remove goal.
+        (install): If $(PACKAGE) = gettext install, otherwose do nothing.  No
+        package but gettext itself should install libintl.h + headers.
+        (dist): Extend goal to work for gettext, too.
+        (dist-gettext): Remove goal.
+
+        * dcgettext.c [!HAVE_ALLOCA]: Define macro alloca by using malloc.
+
+Sun Jun  2 17:33:06 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * loadmsgcat.c (_nl_load_domain): Parameter is now comes from
+        find_l10nfile.
+
+Sat Jun  1 02:23:03 1996  Ulrich Drepper  &lt;drepper@cygnus.com&gt;
+
+        * l10nflist.c (__argz_next): Add definition.
+
+        * dcgettext.c [!HAVE_ALLOCA]: Add code for handling missing alloca
+        code.  Use new l10nfile handling.
+
+        * localealias.c [!HAVE_ALLOCA]: Add code for handling missing
+        alloca code.
+
+        * l10nflist.c: Initial revision.
+
+Tue Apr  2 18:51:18 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (all-gettext): New goal.  Same as all-yes.
+
+Thu Mar 28 23:01:22 1996  Karl Eichwalder  &lt;ke@ke.central.de&gt;
+
+        * Makefile.in (gettextsrcdir): Define using @datadir@.
+
+Tue Mar 26 12:39:14 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c: Include &lt;ctype.h&gt;.  Reported by Roland McGrath.
+
+Sat Mar 23 02:00:35 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (stpcpy): Rename to stpcpy__ to prevent clashing
+        with external declaration.
+
+Sat Mar  2 00:47:09 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (all-no): Rename from all_no.
+
+Sat Feb 17 00:25:59 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * gettextP.h [loaded_domain]: Array `successor' must now contain up
+        to 63 elements (because of codeset name normalization).
+
+        * finddomain.c: Implement codeset name normalization.
+
+Thu Feb 15 04:39:09 1996  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (all): Define to `all-@USE_NLS@'.
+        (all-yes, all_no): New goals.  `all-no' is noop, `all-yes'
+        is former all.
+
+Mon Jan 15 21:46:01 1996  Howard Gayle  &lt;howard@hal.com&gt;
+
+        * localealias.c (alias_compare): Increment string pointers in loop
+        of strcasecmp replacement.
+
+Fri Dec 29 21:16:34 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (install-src): Who commented this goal out ? :-)
+
+Fri Dec 29 15:08:16 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * dcgettext.c (DCGETTEXT): Save `errno'.  Failing system calls
+        should not effect it because a missing catalog is no error.
+        Reported by Harald K&lt;o:&gt;nig &lt;koenig@tat.physik.uni-tuebingen.de&gt;.
+
+Tue Dec 19 22:09:13 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (Makefile): Explicitly use $(SHELL) for running
+        shell scripts.
+
+Fri Dec 15 17:34:59 1995  Andreas Schwab  &lt;schwab@issan.informatik.uni-dortmund.de&gt;
+
+        * Makefile.in (install-src): Only install library and header when
+        we use the own implementation.  Don't do it when using the
+        system's gettext or catgets functions.
+
+        * dcgettext.c (find_msg): Must not swap domain-&gt;hash_size here.
+
+Sat Dec  9 16:24:37 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * localealias.c, libintl.inst, libgettext.h, hash-string.h,
+        gettextP.h, finddomain.c, dcgettext.c, cat-compat.c:
+        Use PARAMS instead of __P.  Suggested by Roland McGrath.
+
+Tue Dec  5 11:39:14 1995  Larry Schwimmer  &lt;rosebud@cyclone.stanford.edu&gt;
+
+        * libgettext.h: Use `#if !defined (_LIBINTL_H)' instead of `#if
+        !_LIBINTL_H' because Solaris defines _LIBINTL_H as empty.
+
+Mon Dec  4 15:42:07 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (install-src):
+        Install libintl.inst instead of libintl.h.install.
+
+Sat Dec  2 22:51:38 1995  Marcus Daniels  &lt;marcus@sysc.pdx.edu&gt;
+
+        * cat-compat.c (textdomain):
+        Reverse order in which files are tried you load.  First
+        try local file, when this failed absolute path.
+
+Wed Nov 29 02:03:53 1995  Nelson H. F. Beebe  &lt;beebe@math.utah.edu&gt;
+
+        * cat-compat.c (bindtextdomain): Add missing { }.
+
+Sun Nov 26 18:21:41 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * libintl.inst: Add missing __P definition.  Reported by Nelson Beebe.
+
+        * Makefile.in:
+        Add dummy `all' and `dvi' goals.  Reported by Tom Tromey.
+
+Sat Nov 25 16:12:01 1995  Franc,ois Pinard  &lt;pinard@iro.umontreal.ca&gt;
+
+        * hash-string.h: Capitalize arguments of macros.
+
+Sat Nov 25 12:01:36 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (DISTFILES): Prevent files names longer than 13
+        characters.  libintl.h.glibc-&gt;libintl.glibc,
+        libintl.h.install-&gt;libintl.inst.  Reported by Joshua R. Poulson.
+
+Sat Nov 25 11:31:12 1995  Eric Backus  &lt;ericb@lsid.hp.com&gt;
+
+        * dcgettext.c: Fix bug in preprocessor conditionals.
+
+Sat Nov 25 02:35:27 1995  Nelson H. F. Beebe  &lt;beebe@math.utah.edu&gt;
+
+        * libgettext.h: Solaris cc does not understand
+         #if !SYMBOL1 &amp;&amp; !SYMBOL2.  Sad        but true.
+
+Thu Nov 23 16:22:14 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * hash-string.h (hash_string):
+        Fix for machine with &gt;32 bit `unsigned long's.
+
+        * dcgettext.c (DCGETTEXT):
+        Fix horrible bug in loop for alternative translation.
+
+Thu Nov 23 01:45:29 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * po2tbl.sed.in, linux-msg.sed, xopen-msg.sed:
+        Some further simplifications in message number generation.
+
+Mon Nov 20 21:08:43 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * libintl.h.glibc: Use __const instead of const in prototypes.
+
+        * Makefile.in (install-src):
+        Install libintl.h.install instead of libintl.h.  This
+        is a stripped-down version.  Suggested by Peter Miller.
+
+        * libintl.h.install, libintl.h.glibc: Initial revision.
+
+        * localealias.c (_nl_expand_alias, read_alias_file):
+        Protect prototypes in type casts by __P.
+
+Tue Nov 14 16:43:58 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * hash-string.h: Correct prototype for hash_string.
+
+Sun Nov 12 12:42:30 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * hash-string.h (hash_string): Add prototype.
+
+        * gettextP.h: Fix copyright.
+        (SWAP): Add prototype.
+
+Wed Nov  8 22:56:33 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * localealias.c (read_alias_file): Forgot sizeof.
+        Avoid calling *printf function.  This introduces a big overhead.
+        Patch by Roland McGrath.
+
+Tue Nov  7 14:21:08 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c, cat-compat.c: Wrong indentation in #if for stpcpy.
+
+        * finddomain.c (stpcpy):
+        Define substitution function local.  The macro was to flaky.
+
+        * cat-compat.c: Fix typo.
+
+        * xopen-msg.sed, linux-msg.sed:
+        While bringing message number to right place only accept digits.
+
+        * linux-msg.sed, xopen-msg.sed: Now that the counter does not have
+        leading 0s we don't need to remove them.  Reported by Marcus
+        Daniels.
+
+        * Makefile.in (../po/cat-id-tbl.o): Use $(top_srdir) in
+        dependency.  Reported by Marcus Daniels.
+
+        * cat-compat.c: (stpcpy) [!_LIBC &amp;&amp; !HAVE_STPCPY]: Define replacement.
+        Generally cleanup using #if instead of #ifndef.
+
+        * Makefile.in: Correct typos in comment.  By Franc,ois Pinard.
+
+Mon Nov  6 00:27:02 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (install-src): Don't install libintl.h and libintl.a
+        if we use an available gettext implementation.
+
+Sun Nov  5 22:02:08 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * libgettext.h: Fix typo: HAVE_CATGETTS -&gt; HAVE_CATGETS.  Reported
+        by Franc,ois Pinard.
+
+        * libgettext.h: Use #if instead of #ifdef/#ifndef.
+
+        * finddomain.c:
+        Comments describing what has to be done should start with FIXME.
+
+Sun Nov  5 19:38:01 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (DISTFILES): Split.  Use DISTFILES with normal meaning.
+        DISTFILES.common names the files common to both dist goals.
+        DISTFILES.gettext are the files only distributed in GNU gettext.
+
+Sun Nov  5 17:32:54 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * dcgettext.c (DCGETTEXT): Correct searching in derived locales.
+        This was necessary since a change in _nl_find_msg several weeks
+        ago.  I really don't know this is still not fixed.
+
+Sun Nov  5 12:43:12 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * loadmsgcat.c (_nl_load_domain): Test for FILENAME == NULL.  This
+        might mark a special condition.
+
+        * finddomain.c (make_entry_rec): Don't make illegal entry as decided.
+
+        * Makefile.in (dist): Suppress error message when ln failed.
+        Get files from $(srcdir) explicitly.
+
+        * libgettext.h (gettext_const): Rename to gettext_noop.
+
+Fri Nov  3 07:36:50 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (make_entry_rec):
+        Protect against wrong locale names by testing mask.
+
+        * libgettext.h (gettext_const): Add macro definition.
+        Capitalize macro arguments.
+
+Thu Nov  2 23:15:51 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (_nl_find_domain):
+        Test for pointer != NULL before accessing value.
+        Reported by Tom Tromey.
+
+        * gettext.c (NULL):
+        Define as (void*)0 instad of 0.  Reported by Franc,ois Pinard.
+
+Mon Oct 30 21:28:52 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * po2tbl.sed.in: Serious typo bug fixed by Jim Meyering.
+
+Sat Oct 28 23:20:47 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * libgettext.h: Disable dcgettext optimization for Solaris 2.3.
+
+        * localealias.c (alias_compare):
+        Peter Miller reported that tolower in some systems is
+        even dumber than I thought.  Protect call by `isupper'.
+
+Fri Oct 27 22:22:51 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (libdir, includedir): New variables.
+        (install-src): Install libintl.a and libintl.h in correct dirs.
+
+Fri Oct 27 22:07:29 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (SOURCES): Fix typo: intrl.compat.c -&gt; intl-compat.c.
+
+        * po2tbl.sed.in: Patch for buggy SEDs by Christian von Roques.
+
+        * localealias.c:
+        Fix typo and superflous test.  Reported by Christian von Roques.
+
+Fri Oct  6 11:52:05 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (_nl_find_domain):
+        Correct some remainder from the pre-CEN syntax.  Now
+        we don't have a constant number of successors anymore.
+
+Wed Sep 27 21:41:13 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (DISTFILES): Add libintl.h.glibc.
+
+        * Makefile.in (dist-libc): Add goal for packing sources for glibc.
+        (COMSRCS, COMHDRS): Splitted to separate sources shared with glibc.
+
+        * loadmsgcat.c: Forget to continue #if line.
+
+        * localealias.c:
+        [_LIBC]: Rename strcasecmp to __strcasecmp to keep ANSI C name
+        space clean.
+
+        * dcgettext.c, finddomain.c: Better comment to last change.
+
+        * loadmsgcat.c:
+        [_LIBC]: Rename fstat, open, close, read, mmap, and munmap to
+        __fstat, __open, __close, __read, __mmap, and __munmap resp
+        to keep ANSI C name space clean.
+
+        * finddomain.c:
+        [_LIBC]: Rename stpcpy to __stpcpy to keep ANSI C name space clean.
+
+        * dcgettext.c:
+        [_LIBC]: Rename getced and stpcpy to __getcwd and __stpcpy resp to
+        keep ANSI C name space clean.
+
+        * libgettext.h:
+        Include sys/types.h for those old SysV systems out there.
+        Reported by Francesco Potorti`.
+
+        * loadmsgcat.c (use_mmap): Define if compiled for glibc.
+
+        * bindtextdom.c: Include all those standard headers
+        unconditionally if _LIBC is defined.
+
+        * finddomain.c: Fix 2 times defiend -&gt; defined.
+
+        * textdomain.c: Include libintl.h instead of libgettext.h when
+        compiling for glibc.  Include all those standard headers
+        unconditionally if _LIBC is defined.
+
+        * localealias.c, loadmsgcat.c: Prepare to be compiled in glibc.
+
+        * gettext.c:
+        Include libintl.h instead of libgettext.h when compiling for glibc.
+        Get NULL from stddef.h if we compile for glibc.
+
+        * finddomain.c: Include libintl.h instead of libgettext.h when
+        compiling for glibc.  Include all those standard headers
+        unconditionally if _LIBC is defined.
+
+        * dcgettext.c: Include all those standard headers unconditionally
+        if _LIBC is defined.
+
+        * dgettext.c: If compiled in glibc include libintl.h instead of
+        libgettext.h.
+        (locale.h): Don't rely on HAVE_LOCALE_H when compiling for glibc.
+
+        * dcgettext.c: If compiled in glibc include libintl.h instead of
+        libgettext.h.
+        (getcwd): Don't rely on HAVE_GETCWD when compiling for glibc.
+
+        * bindtextdom.c:
+        If compiled in glibc include libintl.h instead of libgettext.h.
+
+Mon Sep 25 22:23:06 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * localealias.c (_nl_expand_alias): Don't call bsearch if NMAP &lt;= 0.
+        Reported by Marcus Daniels.
+
+        * cat-compat.c (bindtextdomain):
+        String used in putenv must not be recycled.
+        Reported by Marcus Daniels.
+
+        * libgettext.h (__USE_GNU_GETTEXT):
+        Additional symbol to signal that we use GNU gettext
+        library.
+
+        * cat-compat.c (bindtextdomain):
+        Fix bug with the strange stpcpy replacement.
+        Reported by Nelson Beebe.
+
+Sat Sep 23 08:23:51 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * cat-compat.c: Include &lt;string.h&gt; for stpcpy prototype.
+
+        * localealias.c (read_alias_file):
+        While expand strdup code temporary variable `cp' hided
+        higher level variable with same name.  Rename to `tp'.
+
+        * textdomain.c (textdomain):
+        Avoid warning by using temporary variable in strdup code.
+
+        * finddomain.c (_nl_find_domain): Remove unused variable `application'.
+
+Thu Sep 21 15:51:44 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * localealias.c (alias_compare):
+        Use strcasecmp() only if available.  Else use
+        implementation in place.
+
+        * intl-compat.c:
+        Wrapper functions now call *__ functions instead of __*.
+
+        * libgettext.h: Declare prototypes for *__ functions instead for __*.
+
+        * cat-compat.c, loadmsgcat.c:
+        Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
+        of the standard libc and so prevent libintl.a from being used
+        standalone.
+
+        * bindtextdom.c:
+        Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
+        of the standard libc and so prevent libintl.a from being used
+        standalone.
+        Rename to bindtextdomain__ if not used in GNU C Library.
+
+        * dgettext.c:
+        Rename function to dgettext__ if not used in GNU C Library.
+
+        * gettext.c:
+        Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
+        of the standard libc and so prevent libintl.a from being used
+        standalone.
+        Functions now called gettext__ if not used in GNU C Library.
+
+        * dcgettext.c, localealias.c, textdomain.c, finddomain.c:
+        Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
+        of the standard libc and so prevent libintl.a from being used
+        standalone.
+
+Sun Sep 17 23:14:49 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c: Correct some bugs in handling of CEN standard
+         locale definitions.
+
+Thu Sep  7 01:49:28 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c: Implement CEN syntax.
+
+        * gettextP.h (loaded_domain): Extend number of successors to 31.
+
+Sat Aug 19 19:25:29 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (aliaspath): Remove path to X11 locale dir.
+
+        * Makefile.in: Make install-src depend on install.  This helps
+         gettext to install the sources and other packages can use the
+         install goal.
+
+Sat Aug 19 15:19:33 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (uninstall): Remove stuff installed by install-src.
+
+Tue Aug 15 13:13:53 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * VERSION.in: Initial revision.
+
+        * Makefile.in (DISTFILES):
+        Add VERSION file.  This is not necessary for gettext, but
+        for other packages using this library.
+
+Tue Aug 15 06:16:44 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * gettextP.h (_nl_find_domain):
+        New prototype after changing search strategy.
+
+        * finddomain.c (_nl_find_domain):
+        We now try only to find a specified catalog.  Fall back to other
+        catalogs listed in the locale list is now done in __dcgettext.
+
+        * dcgettext.c (__dcgettext):
+        Now we provide message fall back even to different languages.
+        I.e. if a message is not available in one language all the other
+         in the locale list a tried.  Formerly fall back was only possible
+         within one language.  Implemented by moving one loop from
+         _nl_find_domain to here.
+
+Mon Aug 14 23:45:50 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (gettextsrcdir):
+        Directory where source of GNU gettext library are made
+        available.
+        (INSTALL, INSTALL_DATA): Programs used for installing sources.
+        (gettext-src): New.  Rule to install GNU gettext sources for use in
+        gettextize shell script.
+
+Sun Aug 13 14:40:48 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * loadmsgcat.c (_nl_load_domain):
+        Use mmap for loading only when munmap function is
+        also available.
+
+        * Makefile.in (install): Depend on `all' goal.
+
+Wed Aug  9 11:04:33 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * localealias.c (read_alias_file):
+        Do not overwrite '\n' when terminating alias value string.
+
+        * localealias.c (read_alias_file):
+        Handle long lines.  Ignore the rest not fitting in
+        the buffer after the initial `fgets' call.
+
+Wed Aug  9 00:54:29 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * gettextP.h (_nl_load_domain):
+        Add prototype, replacing prototype for _nl_load_msg_cat.
+
+        * finddomain.c (_nl_find_domain):
+        Remove unneeded variable filename and filename_len.
+        (expand_alias): Remove prototype because functions does not
+         exist anymore.
+
+        * localealias.c (read_alias_file):
+        Change type of fname_len parameter to int.
+        (xmalloc): Add prototype.
+
+        * loadmsgcat.c: Better prototypes for xmalloc.
+
+Tue Aug  8 22:30:39 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (_nl_find_domain):
+        Allow alias name to be constructed from the four components.
+
+        * Makefile.in (aliaspath): New variable.  Set to preliminary value.
+        (SOURCES): Add localealias.c.
+        (OBJECTS): Add localealias.o.
+
+        * gettextP.h: Add prototype for _nl_expand_alias.
+
+        * finddomain.c: Aliasing handled in intl/localealias.c.
+
+        * localealias.c: Aliasing for locale names.
+
+        * bindtextdom.c: Better prototypes for xmalloc and xstrdup.
+
+Mon Aug  7 23:47:42 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (DISTFILES): gettext.perl is now found in misc/.
+
+        * cat-compat.c (bindtextdomain):
+        Correct implementation.  dirname parameter was not used.
+        Reported by Marcus Daniels.
+
+        * gettextP.h (loaded_domain):
+        New fields `successor' and `decided' for oo, lazy
+        message handling implementation.
+
+        * dcgettext.c:
+        Adopt for oo, lazy message handliing.
+          Now we can inherit translations from less specific locales.
+        (find_msg): New function.
+
+        * loadmsgcat.c, finddomain.c:
+        Complete rewrite.  Implement oo, lazy message handling :-).
+          We now have an additional environment variable `LANGUAGE' with
+         a higher priority than LC_ALL for the LC_MESSAGE locale.
+          Here we can set a colon separated list of specifications each
+         of the form `language[_territory[.codeset]][@modifier]'.
+
+Sat Aug  5 09:55:42 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (unistd.h):
+        Include to get _PC_PATH_MAX defined on system having it.
+
+Fri Aug  4 22:42:00 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * finddomain.c (stpcpy): Include prototype.
+
+        * Makefile.in (dist): Remove `copying instead' message.
+
+Wed Aug  2 18:52:03 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (ID, TAGS): Do not use $^.
+
+Tue Aug  1 20:07:11 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (TAGS, ID): Use $^ as command argument.
+        (TAGS): Give etags -o option t write to current directory,
+         not $(srcdir).
+        (ID): Use $(srcdir) instead os $(top_srcdir)/src.
+        (distclean): Remove ID.
+
+Sun Jul 30 11:51:46 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (gnulocaledir):
+        New variable, always using share/ for data directory.
+        (DEFS): Add GNULOCALEDIR, used in finddomain.c.
+
+        * finddomain.c (_nl_default_dirname):
+        Set to GNULOCALEDIR, because it always has to point
+        to the directory where GNU gettext Library writes it to.
+
+        * intl-compat.c (textdomain, bindtextdomain):
+        Undefine macros before function definition.
+
+Sat Jul 22 01:10:02 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * libgettext.h (_LIBINTL_H):
+        Protect definition in case where this file is included as
+        libgettext.h on Solaris machines.  Add comment about this.
+
+Wed Jul 19 02:36:42 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * intl-compat.c (textdomain): Correct typo.
+
+Wed Jul 19 01:51:35 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * dcgettext.c (dcgettext): Function now called __dcgettext.
+
+        * dgettext.c (dgettext): Now called __dgettext and calls
+         __dcgettext.
+
+        * gettext.c (gettext):
+        Function now called __gettext and calls __dgettext.
+
+        * textdomain.c (textdomain): Function now called __textdomain.
+
+        * bindtextdom.c (bindtextdomain): Function now called
+         __bindtextdomain.
+
+        * intl-compat.c: Initial revision.
+
+        * Makefile.in (SOURCES): Add intl-compat.c.
+        (OBJECTS): We always compile the GNU gettext library functions.
+          OBJECTS contains all objects but cat-compat.o, ../po/cat-if-tbl.o,
+         and intl-compat.o.
+          (GETTOBJS): Contains now only intl-compat.o.
+
+        * libgettext.h:
+        Re-include protection matches dualistic character of libgettext.h.
+        For all functions in GNU gettext library define __ counter part.
+
+        * finddomain.c (strchr): Define as index if not found in C library.
+        (_nl_find_domain): For relative paths paste / in between.
+
+Tue Jul 18 16:37:45 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * loadmsgcat.c, finddomain.c: Add inclusion of sys/types.h.
+
+        * xopen-msg.sed: Fix bug with `msgstr &quot;&quot;' lines.
+        A little bit better comments.
+
+Tue Jul 18 01:18:27 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in:
+        po-mode.el, makelinks, combine-sh are now found in ../misc.
+
+        * po-mode.el, makelinks, combine-sh, elisp-comp:
+        Moved to ../misc/.
+
+        * libgettext.h, gettextP.h, gettext.h: Uniform test for __STDC__.
+
+Sun Jul 16 22:33:02 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (INSTALL, INSTALL_DATA): New variables.
+        (install-data, uninstall): Install/uninstall .elc file.
+
+        * po-mode.el (Installation comment):
+        Add .pox as possible extension of .po files.
+
+Sun Jul 16 13:23:27 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * elisp-comp: Complete new version by Franc,ois: This does not
+         fail when not compiling in the source directory.
+
+Sun Jul 16 00:12:17 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (../po/cat-id-tbl.o):
+        Use $(MAKE) instead of make for recursive make.
+
+        * Makefile.in (.el.elc): Use $(SHELL) instead of /bin/sh.
+        (install-exec): Add missing dummy goal.
+        (install-data, uninstall): @ in multi-line shell command at
+         beginning, not in front of echo.  Reported by Eric Backus.
+
+Sat Jul 15 00:21:28 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (DISTFILES):
+        Rename libgettext.perl to gettext.perl to fit in 14 chars
+        file systems.
+
+        * gettext.perl:
+         Rename to gettext.perl to fit in 14 chars file systems.
+
+Thu Jul 13 23:17:20 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * cat-compat.c: If !STDC_HEADERS try to include malloc.h.
+
+Thu Jul 13 20:55:02 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * po2tbl.sed.in: Pretty printing.
+
+        * linux-msg.sed, xopen-msg.sed:
+        Correct bugs with handling substitute flags in branches.
+
+        * hash-string.h (hash_string):
+        Old K&amp;R compilers don't under stand `unsigned char'.
+
+        * gettext.h (nls_uint32):
+        Some old K&amp;R compilers (eg HP) don't understand `unsigned int'.
+
+        * cat-compat.c (msg_to_cat_id): De-ANSI-fy prototypes.
+
+Thu Jul 13 01:34:33 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (ELCFILES): New variable.
+        (DISTFILES): Add elisp-comp.
+        Add implicit rule for .el -&gt; .elc compilation.
+        (install-data): install $ELCFILES
+        (clean): renamed po-to-tbl and po-to-msg to po2tbl and po2msg resp.
+
+        * elisp-comp: Initial revision
+
+Wed Jul 12 16:14:52 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in:
+        cat-id-tbl.c is now found in po/.  This enables us to use an identical
+        intl/ directory in all packages.
+
+        * dcgettext.c (dcgettext): hashing does not work for table size &lt;= 2.
+
+        * textdomain.c: fix typo (#if def -&gt; #if defined)
+
+Tue Jul 11 18:44:43 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in (stamp-cat-id): use top_srcdir to address source files
+        (DISTFILES,distclean): move tupdate.perl to src/
+
+        * po-to-tbl.sed.in:
+        add additional jump to clear change flag to recognize multiline strings
+
+Tue Jul 11 01:32:50 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * textdomain.c: Protect inclusion of stdlib.h and string.h.
+
+        * loadmsgcat.c: Protect inclusion of stdlib.h.
+
+        * libgettext.h: Protect inclusion of locale.h.
+        Allow use in C++ programs.
+        Define NULL is not happened already.
+
+        * Makefile.in (DISTFILES): ship po-to-tbl.sed.in instead of
+        po-to-tbl.sed.
+        (distclean): remove po-to-tbl.sed and tupdate.perl.
+
+        * tupdate.perl.in: Substitute Perl path even in exec line.
+        Don't include entries without translation from old .po file.
+
+Tue Jul  4 00:41:51 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * tupdate.perl.in: use &quot;Updated: &quot; in msgid &quot;&quot;.
+
+        * cat-compat.c: Fix typo (LOCALDIR -&gt; LOCALEDIR).
+         Define getenv if !__STDC__.
+
+        * bindtextdom.c: Protect stdlib.h and string.h inclusion.
+         Define free if !__STDC__.
+
+        * finddomain.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
+         Define free if !__STDC__.
+
+        * cat-compat.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
+
+Mon Jul  3 23:56:30 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * Makefile.in: Use LOCALEDIR instead of DEF_MSG_DOM_DIR.
+        Remove unneeded $(srcdir) from Makefile.in dependency.
+
+        * makelinks: Add copyright and short description.
+
+        * po-mode.el: Last version for 0.7.
+
+        * tupdate.perl.in: Fix die message.
+
+        * dcgettext.c: Protect include of string.h.
+
+        * gettext.c: Protect include of stdlib.h and further tries to get NULL.
+
+        * finddomain.c: Some corrections in includes.
+
+        * Makefile.in (INCLUDES): Prune list correct path to Makefile.in.
+
+        * po-to-tbl.sed: Adopt for new .po file format.
+
+        * linux-msg.sed, xopen-msg.sed: Adopt for new .po file format.
+
+Sun Jul  2 23:55:03 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * tupdate.perl.in: Complete rewrite for new .po file format.
+
+Sun Jul  2 02:06:50 1995  Ulrich Drepper  &lt;drepper@myware&gt;
+
+        * First official release.  This directory contains all the code
+        needed to internationalize own packages.  It provides functions
+        which allow to use the X/Open catgets function with an interface
+        like the Uniforum gettext function.  For system which does not
+        have neither of those a complete implementation is provided.
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlMakefile"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,214 @@
</span><ins>+# Makefile for directory with message catalog handling in GNU NLS Utilities.
+# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+PACKAGE = gsmlib
+VERSION = 1.10
+
+SHELL = /bin/sh
+
+srcdir = .
+top_srcdir = ..
+top_builddir = ..
+
+
+prefix = /usr
+exec_prefix = ${prefix}
+transform = s,x,x,
+libdir = $(exec_prefix)/lib
+includedir = $(prefix)/include
+datadir = $(prefix)/share
+localedir = $(datadir)/locale
+gnulocaledir = $(prefix)/share/locale
+gettextsrcdir = ${prefix}/share/gettext/intl
+aliaspath = $(localedir):.
+subdir = intl
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+MKINSTALLDIRS = $(top_builddir)/scripts/mkinstalldirs
+
+l = @l@
+
+AR = ar
+CC = i486-linux-gnu-gcc
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+RANLIB = ranlib
+
+DEFS = -DGNULOCALEDIR=\&quot;$(gnulocaledir)\&quot; \
+-DLOCALE_ALIAS_PATH=\&quot;$(aliaspath)\&quot; -DHAVE_CONFIG_H
+CPPFLAGS = 
+CFLAGS = -D_REENTRANT 
+LDFLAGS = 
+
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+
+HEADERS = $(COMHDRS) libgettext.h loadinfo.h
+COMHDRS = gettext.h gettextP.h hash-string.h
+SOURCES = $(COMSRCS) intl-compat.c cat-compat.c
+COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
+finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
+explodename.c
+OBJECTS =  bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
+finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
+explodename.$lo
+CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo
+GETTOBJS = intl-compat.$lo
+DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
+xopen-msg.sed $(HEADERS) $(SOURCES)
+DISTFILES.normal = VERSION
+DISTFILES.gettext = libintl.glibc intlh.inst.in
+
+.SUFFIXES:
+.SUFFIXES: .c .o .lo
+.c.o:
+        $(COMPILE) $&lt;
+.c.lo:
+        $(LIBTOOL) --mode=compile $(COMPILE) $&lt;
+
+INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib
+
+all: all-no
+
+all-yes: libintl.$la intlh.inst
+all-no:
+
+libintl.a: $(OBJECTS)
+        rm -f $@
+        $(AR) cru $@ $(OBJECTS)
+        $(RANLIB) $@
+
+libintl.la: $(OBJECTS)
+        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
+                   -version-info 1:0 -rpath $(libdir)
+
+../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
+        cd ../po &amp;&amp; $(MAKE) cat-id-tbl.$lo
+
+check: all
+
+# This installation goal is only used in GNU gettext.  Packages which
+# only use the library should use install instead.
+
+# We must not install the libintl.h/libintl.a files if we are on a
+# system which has the gettext() function in its C library or in a
+# separate library or use the catgets interface.  A special case is
+# where configure found a previously installed GNU gettext library.
+# If you want to use the one which comes with this version of the
+# package, you have to use `configure --with-included-gettext'.
+install: install-exec install-data
+install-exec: all
+        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot; \
+           &amp;&amp; test '' = '$(GETTOBJS)'; then \
+          if test -r $(MKINSTALLDIRS); then \
+            $(MKINSTALLDIRS) $(libdir) $(includedir); \
+          else \
+            $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \
+          fi; \
+          $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \
+          $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \
+        else \
+          : ; \
+        fi
+install-data: all
+        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot;; then \
+          if test -r $(MKINSTALLDIRS); then \
+            $(MKINSTALLDIRS) $(gettextsrcdir); \
+          else \
+            $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
+          fi; \
+          $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \
+          dists=&quot;$(DISTFILES.common)&quot;; \
+          for file in $$dists; do \
+            $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \
+          done; \
+        else \
+          : ; \
+        fi
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall:
+        dists=&quot;$(DISTFILES.common)&quot;; \
+        for file in $$dists; do \
+          rm -f $(gettextsrcdir)/$$file; \
+        done
+
+info dvi:
+
+$(OBJECTS): ../gsm_config.h libgettext.h
+bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
+dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
+
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES)
+        here=`pwd`; cd $(srcdir) &amp;&amp; etags -o $$here/TAGS $(HEADERS) $(SOURCES)
+
+id: ID
+
+ID: $(HEADERS) $(SOURCES)
+        here=`pwd`; cd $(srcdir) &amp;&amp; mkid -f$$here/ID $(HEADERS) $(SOURCES)
+
+
+mostlyclean:
+        rm -f *.a *.o *.lo core core.*
+
+clean: mostlyclean
+
+distclean: clean
+        rm -f Makefile ID TAGS po2msg.sed po2tbl.sed
+
+maintainer-clean: distclean
+        @echo &quot;This command is intended for maintainers to use;&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+
+
+# GNU gettext needs not contain the file `VERSION' but contains some
+# other files which should not be distributed in other packages.
+distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+dist distdir: Makefile $(DISTFILES)
+        if test &quot;$(PACKAGE)&quot; = gettext; then \
+          additional=&quot;$(DISTFILES.gettext)&quot;; \
+        else \
+          additional=&quot;$(DISTFILES.normal)&quot;; \
+        fi; \
+        for file in $(DISTFILES.common) $$additional; do \
+          ln $(srcdir)/$$file $(distdir) 2&gt; /dev/null \
+            || cp -p $(srcdir)/$$file $(distdir); \
+        done
+
+dist-libc:
+        tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc
+
+Makefile: Makefile.in ../config.status
+        cd .. \
+          &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+# The dependency for intlh.inst is different in gettext and all other
+# packages.  Because we cannot you GNU make features we have to solve
+# the problem while rewriting Makefile.in.
+@GT_YES@intlh.inst: intlh.inst.in ../config.status
+@GT_YES@        cd .. \
+@GT_YES@        &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
+@GT_YES@          $(SHELL) ./config.status
+@GT_NO@.PHONY: intlh.inst
+@GT_NO@intlh.inst:
+
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,214 @@
</span><ins>+# Makefile for directory with message catalog handling in GNU NLS Utilities.
+# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+SHELL = /bin/sh
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+top_builddir = ..
+VPATH = @srcdir@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+transform = @program_transform_name@
+libdir = $(exec_prefix)/lib
+includedir = $(prefix)/include
+datadir = $(prefix)/@DATADIRNAME@
+localedir = $(datadir)/locale
+gnulocaledir = $(prefix)/share/locale
+gettextsrcdir = @datadir@/gettext/intl
+aliaspath = $(localedir):.
+subdir = intl
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+
+l = @l@
+
+AR = ar
+CC = @CC@
+LIBTOOL = @LIBTOOL@
+RANLIB = @RANLIB@
+
+DEFS = -DGNULOCALEDIR=\&quot;$(gnulocaledir)\&quot; \
+-DLOCALE_ALIAS_PATH=\&quot;$(aliaspath)\&quot; @DEFS@
+CPPFLAGS = @CPPFLAGS@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+
+HEADERS = $(COMHDRS) libgettext.h loadinfo.h
+COMHDRS = gettext.h gettextP.h hash-string.h
+SOURCES = $(COMSRCS) intl-compat.c cat-compat.c
+COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
+finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
+explodename.c
+OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
+finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
+explodename.$lo
+CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo
+GETTOBJS = intl-compat.$lo
+DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
+xopen-msg.sed $(HEADERS) $(SOURCES)
+DISTFILES.normal = VERSION
+DISTFILES.gettext = libintl.glibc intlh.inst.in
+
+.SUFFIXES:
+.SUFFIXES: .c .o .lo
+.c.o:
+        $(COMPILE) $&lt;
+.c.lo:
+        $(LIBTOOL) --mode=compile $(COMPILE) $&lt;
+
+INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib
+
+all: all-@USE_INCLUDED_LIBINTL@
+
+all-yes: libintl.$la intlh.inst
+all-no:
+
+libintl.a: $(OBJECTS)
+        rm -f $@
+        $(AR) cru $@ $(OBJECTS)
+        $(RANLIB) $@
+
+libintl.la: $(OBJECTS)
+        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
+                   -version-info 1:0 -rpath $(libdir)
+
+../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
+        cd ../po &amp;&amp; $(MAKE) cat-id-tbl.$lo
+
+check: all
+
+# This installation goal is only used in GNU gettext.  Packages which
+# only use the library should use install instead.
+
+# We must not install the libintl.h/libintl.a files if we are on a
+# system which has the gettext() function in its C library or in a
+# separate library or use the catgets interface.  A special case is
+# where configure found a previously installed GNU gettext library.
+# If you want to use the one which comes with this version of the
+# package, you have to use `configure --with-included-gettext'.
+install: install-exec install-data
+install-exec: all
+        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot; \
+           &amp;&amp; test '@INTLOBJS@' = '$(GETTOBJS)'; then \
+          if test -r $(MKINSTALLDIRS); then \
+            $(MKINSTALLDIRS) $(libdir) $(includedir); \
+          else \
+            $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \
+          fi; \
+          $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \
+          $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \
+        else \
+          : ; \
+        fi
+install-data: all
+        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot;; then \
+          if test -r $(MKINSTALLDIRS); then \
+            $(MKINSTALLDIRS) $(gettextsrcdir); \
+          else \
+            $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
+          fi; \
+          $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \
+          dists=&quot;$(DISTFILES.common)&quot;; \
+          for file in $$dists; do \
+            $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \
+          done; \
+        else \
+          : ; \
+        fi
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall:
+        dists=&quot;$(DISTFILES.common)&quot;; \
+        for file in $$dists; do \
+          rm -f $(gettextsrcdir)/$$file; \
+        done
+
+info dvi:
+
+$(OBJECTS): ../gsm_config.h libgettext.h
+bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
+dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
+
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES)
+        here=`pwd`; cd $(srcdir) &amp;&amp; etags -o $$here/TAGS $(HEADERS) $(SOURCES)
+
+id: ID
+
+ID: $(HEADERS) $(SOURCES)
+        here=`pwd`; cd $(srcdir) &amp;&amp; mkid -f$$here/ID $(HEADERS) $(SOURCES)
+
+
+mostlyclean:
+        rm -f *.a *.o *.lo core core.*
+
+clean: mostlyclean
+
+distclean: clean
+        rm -f Makefile ID TAGS po2msg.sed po2tbl.sed
+
+maintainer-clean: distclean
+        @echo &quot;This command is intended for maintainers to use;&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+
+
+# GNU gettext needs not contain the file `VERSION' but contains some
+# other files which should not be distributed in other packages.
+distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+dist distdir: Makefile $(DISTFILES)
+        if test &quot;$(PACKAGE)&quot; = gettext; then \
+          additional=&quot;$(DISTFILES.gettext)&quot;; \
+        else \
+          additional=&quot;$(DISTFILES.normal)&quot;; \
+        fi; \
+        for file in $(DISTFILES.common) $$additional; do \
+          ln $(srcdir)/$$file $(distdir) 2&gt; /dev/null \
+            || cp -p $(srcdir)/$$file $(distdir); \
+        done
+
+dist-libc:
+        tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc
+
+Makefile: Makefile.in ../config.status
+        cd .. \
+          &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+# The dependency for intlh.inst is different in gettext and all other
+# packages.  Because we cannot you GNU make features we have to solve
+# the problem while rewriting Makefile.in.
+@GT_YES@intlh.inst: intlh.inst.in ../config.status
+@GT_YES@        cd .. \
+@GT_YES@        &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
+@GT_YES@          $(SHELL) ./config.status
+@GT_NO@.PHONY: intlh.inst
+@GT_NO@intlh.inst:
+
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlVERSION"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/VERSION (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/VERSION                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/VERSION        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+GNU gettext library from gettext-0.10.35
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlbindtextdomc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/bindtextdom.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/bindtextdom.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/bindtextdom.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,203 @@
</span><ins>+/* Implementation of the bindtextdomain(3) function
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#else
+# ifdef HAVE_MALLOC_H
+#  include &lt;malloc.h&gt;
+# else
+void free ();
+# endif
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+# ifndef memcpy
+#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
+# endif
+#endif
+
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+#include &quot;gettext.h&quot;
+#include &quot;gettextP.h&quot;
+
+/* @@ end of prolog @@ */
+
+/* Contains the default location of the message catalogs.  */
+extern const char _nl_default_dirname[];
+
+/* List with bindings of specific domains.  */
+extern struct binding *_nl_domain_bindings;
+
+
+/* Names for the libintl functions are a problem.  They must not clash
+   with existing names and they should follow ANSI C.  But this source
+   code is also used in GNU C Library where the names have a __
+   prefix.  So we have to make a difference here.  */
+#ifdef _LIBC
+# define BINDTEXTDOMAIN __bindtextdomain
+# ifndef strdup
+#  define strdup(str) __strdup (str)
+# endif
+#else
+# define BINDTEXTDOMAIN bindtextdomain__
+#endif
+
+/* Specify that the DOMAINNAME message catalog will be found
+   in DIRNAME rather than in the system locale data base.  */
+char *
+BINDTEXTDOMAIN (domainname, dirname)
+     const char *domainname;
+     const char *dirname;
+{
+  struct binding *binding;
+
+  /* Some sanity checks.  */
+  if (domainname == NULL || domainname[0] == '\0')
+    return NULL;
+
+  for (binding = _nl_domain_bindings; binding != NULL; binding = binding-&gt;next)
+    {
+      int compare = strcmp (domainname, binding-&gt;domainname);
+      if (compare == 0)
+        /* We found it!  */
+        break;
+      if (compare &lt; 0)
+        {
+          /* It is not in the list.  */
+          binding = NULL;
+          break;
+        }
+    }
+
+  if (dirname == NULL)
+    /* The current binding has be to returned.  */
+    return binding == NULL ? (char *) _nl_default_dirname : binding-&gt;dirname;
+
+  if (binding != NULL)
+    {
+      /* The domain is already bound.  If the new value and the old
+         one are equal we simply do nothing.  Otherwise replace the
+         old binding.  */
+      if (strcmp (dirname, binding-&gt;dirname) != 0)
+        {
+          char *new_dirname;
+
+          if (strcmp (dirname, _nl_default_dirname) == 0)
+            new_dirname = (char *) _nl_default_dirname;
+          else
+            {
+#if defined _LIBC || defined HAVE_STRDUP
+              new_dirname = strdup (dirname);
+              if (new_dirname == NULL)
+                return NULL;
+#else
+              size_t len = strlen (dirname) + 1;
+              new_dirname = (char *) malloc (len);
+              if (new_dirname == NULL)
+                return NULL;
+
+              memcpy (new_dirname, dirname, len);
+#endif
+            }
+
+          if (binding-&gt;dirname != _nl_default_dirname)
+            free (binding-&gt;dirname);
+
+          binding-&gt;dirname = new_dirname;
+        }
+    }
+  else
+    {
+      /* We have to create a new binding.  */
+#if !defined _LIBC &amp;&amp; !defined HAVE_STRDUP
+      size_t len;
+#endif
+      struct binding *new_binding =
+        (struct binding *) malloc (sizeof (*new_binding));
+
+      if (new_binding == NULL)
+        return NULL;
+
+#if defined _LIBC || defined HAVE_STRDUP
+      new_binding-&gt;domainname = strdup (domainname);
+      if (new_binding-&gt;domainname == NULL)
+        return NULL;
+#else
+      len = strlen (domainname) + 1;
+      new_binding-&gt;domainname = (char *) malloc (len);
+      if (new_binding-&gt;domainname == NULL)
+        return NULL;
+      memcpy (new_binding-&gt;domainname, domainname, len);
+#endif
+
+      if (strcmp (dirname, _nl_default_dirname) == 0)
+        new_binding-&gt;dirname = (char *) _nl_default_dirname;
+      else
+        {
+#if defined _LIBC || defined HAVE_STRDUP
+          new_binding-&gt;dirname = strdup (dirname);
+          if (new_binding-&gt;dirname == NULL)
+            return NULL;
+#else
+          len = strlen (dirname) + 1;
+          new_binding-&gt;dirname = (char *) malloc (len);
+          if (new_binding-&gt;dirname == NULL)
+            return NULL;
+          memcpy (new_binding-&gt;dirname, dirname, len);
+#endif
+        }
+
+      /* Now enqueue it.  */
+      if (_nl_domain_bindings == NULL
+          || strcmp (domainname, _nl_domain_bindings-&gt;domainname) &lt; 0)
+        {
+          new_binding-&gt;next = _nl_domain_bindings;
+          _nl_domain_bindings = new_binding;
+        }
+      else
+        {
+          binding = _nl_domain_bindings;
+          while (binding-&gt;next != NULL
+                 &amp;&amp; strcmp (domainname, binding-&gt;next-&gt;domainname) &gt; 0)
+            binding = binding-&gt;next;
+
+          new_binding-&gt;next = binding-&gt;next;
+          binding-&gt;next = new_binding;
+        }
+
+      binding = new_binding;
+    }
+
+  return binding-&gt;dirname;
+}
+
+#ifdef _LIBC
+/* Alias for function name in GNU C Library.  */
+weak_alias (__bindtextdomain, bindtextdomain);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlcatcompatc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/cat-compat.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/cat-compat.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/cat-compat.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,262 @@
</span><ins>+/* Compatibility code for gettext-using-catgets interface.
+   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef STDC_HEADERS
+# include &lt;stdlib.h&gt;
+# include &lt;string.h&gt;
+#else
+char *getenv ();
+# ifdef HAVE_MALLOC_H
+#  include &lt;malloc.h&gt;
+# endif
+#endif
+
+#ifdef HAVE_NL_TYPES_H
+# include &lt;nl_types.h&gt;
+#endif
+
+#include &quot;libgettext.h&quot;
+
+/* @@ end of prolog @@ */
+
+/* XPG3 defines the result of `setlocale (category, NULL)' as:
+   ``Directs `setlocale()' to query `category' and return the current
+     setting of `local'.''
+   However it does not specify the exact format.  And even worse: POSIX
+   defines this not at all.  So we can use this feature only on selected
+   system (e.g. those using GNU C Library).  */
+#ifdef _LIBC
+# define HAVE_LOCALE_NULL
+#endif
+
+/* The catalog descriptor.  */
+static nl_catd catalog = (nl_catd) -1;
+
+/* Name of the default catalog.  */
+static const char default_catalog_name[] = &quot;messages&quot;;
+
+/* Name of currently used catalog.  */
+static const char *catalog_name = default_catalog_name;
+
+/* Get ID for given string.  If not found return -1.  */
+static int msg_to_cat_id PARAMS ((const char *msg));
+
+/* Substitution for systems lacking this function in their C library.  */
+#if !_LIBC &amp;&amp; !HAVE_STPCPY
+static char *stpcpy PARAMS ((char *dest, const char *src));
+#endif
+
+
+/* Set currently used domain/catalog.  */
+char *
+textdomain (domainname)
+     const char *domainname;
+{
+  nl_catd new_catalog;
+  char *new_name;
+  size_t new_name_len;
+  char *lang;
+
+#if defined HAVE_SETLOCALE &amp;&amp; defined HAVE_LC_MESSAGES \
+    &amp;&amp; defined HAVE_LOCALE_NULL
+  lang = setlocale (LC_MESSAGES, NULL);
+#else
+  lang = getenv (&quot;LC_ALL&quot;);
+  if (lang == NULL || lang[0] == '\0')
+    {
+      lang = getenv (&quot;LC_MESSAGES&quot;);
+      if (lang == NULL || lang[0] == '\0')
+        lang = getenv (&quot;LANG&quot;);
+    }
+#endif
+  if (lang == NULL || lang[0] == '\0')
+    lang = &quot;C&quot;;
+
+  /* See whether name of currently used domain is asked.  */
+  if (domainname == NULL)
+    return (char *) catalog_name;
+
+  if (domainname[0] == '\0')
+    domainname = default_catalog_name;
+
+  /* Compute length of added path element.  */
+  new_name_len = sizeof (LOCALEDIR) - 1 + 1 + strlen (lang)
+                 + sizeof (&quot;/LC_MESSAGES/&quot;) - 1 + sizeof (PACKAGE) - 1
+                 + sizeof (&quot;.cat&quot;);
+
+  new_name = (char *) malloc (new_name_len);
+  if (new_name == NULL)
+    return NULL;
+
+  strcpy (new_name, PACKAGE);
+  new_catalog = catopen (new_name, 0);
+
+  if (new_catalog == (nl_catd) -1)
+    {
+      /* NLSPATH search didn't work, try absolute path */
+      sprintf (new_name, &quot;%s/%s/LC_MESSAGES/%s.cat&quot;, LOCALEDIR, lang,
+               PACKAGE);
+      new_catalog = catopen (new_name, 0);
+
+      if (new_catalog == (nl_catd) -1)
+        {
+          free (new_name);
+          return (char *) catalog_name;
+        }
+    }
+
+  /* Close old catalog.  */
+  if (catalog != (nl_catd) -1)
+    catclose (catalog);
+  if (catalog_name != default_catalog_name)
+    free ((char *) catalog_name);
+
+  catalog = new_catalog;
+  catalog_name = new_name;
+
+  return (char *) catalog_name;
+}
+
+char *
+bindtextdomain (domainname, dirname)
+     const char *domainname;
+     const char *dirname;
+{
+#if HAVE_SETENV || HAVE_PUTENV
+  char *old_val, *new_val, *cp;
+  size_t new_val_len;
+
+  /* This does not make much sense here but to be compatible do it.  */
+  if (domainname == NULL)
+    return NULL;
+
+  /* Compute length of added path element.  If we use setenv we don't need
+     the first byts for NLSPATH=, but why complicate the code for this
+     peanuts.  */
+  new_val_len = sizeof (&quot;NLSPATH=&quot;) - 1 + strlen (dirname)
+                + sizeof (&quot;/%L/LC_MESSAGES/%N.cat&quot;);
+
+  old_val = getenv (&quot;NLSPATH&quot;);
+  if (old_val == NULL || old_val[0] == '\0')
+    {
+      old_val = NULL;
+      new_val_len += 1 + sizeof (LOCALEDIR) - 1
+                     + sizeof (&quot;/%L/LC_MESSAGES/%N.cat&quot;);
+    }
+  else
+    new_val_len += strlen (old_val);
+
+  new_val = (char *) malloc (new_val_len);
+  if (new_val == NULL)
+    return NULL;
+
+# if HAVE_SETENV
+  cp = new_val;
+# else
+  cp = stpcpy (new_val, &quot;NLSPATH=&quot;);
+# endif
+
+  cp = stpcpy (cp, dirname);
+  cp = stpcpy (cp, &quot;/%L/LC_MESSAGES/%N.cat:&quot;);
+
+  if (old_val == NULL)
+    {
+# if __STDC__
+      stpcpy (cp, LOCALEDIR &quot;/%L/LC_MESSAGES/%N.cat&quot;);
+# else
+
+      cp = stpcpy (cp, LOCALEDIR);
+      stpcpy (cp, &quot;/%L/LC_MESSAGES/%N.cat&quot;);
+# endif
+    }
+  else
+    stpcpy (cp, old_val);
+
+# if HAVE_SETENV
+  setenv (&quot;NLSPATH&quot;, new_val, 1);
+  free (new_val);
+# else
+  putenv (new_val);
+  /* Do *not* free the environment entry we just entered.  It is used
+     from now on.   */
+# endif
+
+#endif
+
+  return (char *) domainname;
+}
+
+#undef gettext
+char *
+gettext (msg)
+     const char *msg;
+{
+  int msgid;
+
+  if (msg == NULL || catalog == (nl_catd) -1)
+    return (char *) msg;
+
+  /* Get the message from the catalog.  We always use set number 1.
+     The message ID is computed by the function `msg_to_cat_id'
+     which works on the table generated by `po-to-tbl'.  */
+  msgid = msg_to_cat_id (msg);
+  if (msgid == -1)
+    return (char *) msg;
+
+  return catgets (catalog, 1, msgid, (char *) msg);
+}
+
+/* Look through the table `_msg_tbl' which has `_msg_tbl_length' entries
+   for the one equal to msg.  If it is found return the ID.  In case when
+   the string is not found return -1.  */
+static int
+msg_to_cat_id (msg)
+     const char *msg;
+{
+  int cnt;
+
+  for (cnt = 0; cnt &lt; _msg_tbl_length; ++cnt)
+    if (strcmp (msg, _msg_tbl[cnt]._msg) == 0)
+      return _msg_tbl[cnt]._msg_number;
+
+  return -1;
+}
+
+
+/* @@ begin of epilog @@ */
+
+/* We don't want libintl.a to depend on any other library.  So we
+   avoid the non-standard function stpcpy.  In GNU C Library this
+   function is available, though.  Also allow the symbol HAVE_STPCPY
+   to be defined.  */
+#if !_LIBC &amp;&amp; !HAVE_STPCPY
+static char *
+stpcpy (dest, src)
+     char *dest;
+     const char *src;
+{
+  while ((*dest++ = *src++) != '\0')
+    /* Do nothing. */ ;
+  return dest - 1;
+}
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intldcgettextc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dcgettext.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dcgettext.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dcgettext.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,624 @@
</span><ins>+/* Implementation of the dcgettext(3) function.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &lt;sys/types.h&gt;
+
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+# define HAVE_ALLOCA 1
+#else
+# if defined HAVE_ALLOCA_H || defined _LIBC
+#  include &lt;alloca.h&gt;
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifndef alloca
+char *alloca ();
+#   endif
+#  endif
+# endif
+#endif
+
+#include &lt;errno.h&gt;
+#ifndef errno
+extern int errno;
+#endif
+#ifndef __set_errno
+# define __set_errno(val) errno = (val)
+#endif
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#else
+char *getenv ();
+# ifdef HAVE_MALLOC_H
+#  include &lt;malloc.h&gt;
+# else
+void free ();
+# endif
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# ifndef _GNU_SOURCE
+#  define _GNU_SOURCE        1
+# endif
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+#endif
+#if !HAVE_STRCHR &amp;&amp; !defined _LIBC
+# ifndef strchr
+#  define strchr index
+# endif
+#endif
+
+#if defined HAVE_UNISTD_H || defined _LIBC
+# include &lt;unistd.h&gt;
+#endif
+
+#include &quot;gettext.h&quot;
+#include &quot;gettextP.h&quot;
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+#include &quot;hash-string.h&quot;
+
+/* @@ end of prolog @@ */
+
+#ifdef _LIBC
+/* Rename the non ANSI C functions.  This is required by the standard
+   because some ANSI C functions will require linking with this object
+   file and the name space must not be polluted.  */
+# define getcwd __getcwd
+# ifndef stpcpy
+#  define stpcpy __stpcpy
+# endif
+#else
+# if !defined HAVE_GETCWD
+char *getwd ();
+#  define getcwd(buf, max) getwd (buf)
+# else
+char *getcwd ();
+# endif
+# ifndef HAVE_STPCPY
+static char *stpcpy PARAMS ((char *dest, const char *src));
+# endif
+#endif
+
+/* Amount to increase buffer size by in each try.  */
+#define PATH_INCR 32
+
+/* The following is from pathmax.h.  */
+/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
+   PATH_MAX but might cause redefinition warnings when sys/param.h is
+   later included (as on MORE/BSD 4.3).  */
+#if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) &amp;&amp; !defined(__GNUC__))
+# include &lt;limits.h&gt;
+#endif
+
+#ifndef _POSIX_PATH_MAX
+# define _POSIX_PATH_MAX 255
+#endif
+
+#if !defined(PATH_MAX) &amp;&amp; defined(_PC_PATH_MAX)
+# define PATH_MAX (pathconf (&quot;/&quot;, _PC_PATH_MAX) &lt; 1 ? 1024 : pathconf (&quot;/&quot;, _PC_PATH_MAX))
+#endif
+
+/* Don't include sys/param.h if it already has been.  */
+#if defined(HAVE_SYS_PARAM_H) &amp;&amp; !defined(PATH_MAX) &amp;&amp; !defined(MAXPATHLEN)
+# include &lt;sys/param.h&gt;
+#endif
+
+#if !defined(PATH_MAX) &amp;&amp; defined(MAXPATHLEN)
+# define PATH_MAX MAXPATHLEN
+#endif
+
+#ifndef PATH_MAX
+# define PATH_MAX _POSIX_PATH_MAX
+#endif
+
+/* XPG3 defines the result of `setlocale (category, NULL)' as:
+   ``Directs `setlocale()' to query `category' and return the current
+     setting of `local'.''
+   However it does not specify the exact format.  And even worse: POSIX
+   defines this not at all.  So we can use this feature only on selected
+   system (e.g. those using GNU C Library).  */
+#ifdef _LIBC
+# define HAVE_LOCALE_NULL
+#endif
+
+/* Name of the default domain used for gettext(3) prior any call to
+   textdomain(3).  The default value for this is &quot;messages&quot;.  */
+const char _nl_default_default_domain[] = &quot;messages&quot;;
+
+/* Value used as the default domain for gettext(3).  */
+const char *_nl_current_default_domain = _nl_default_default_domain;
+
+/* Contains the default location of the message catalogs.  */
+const char _nl_default_dirname[] = GNULOCALEDIR;
+
+/* List with bindings of specific domains created by bindtextdomain()
+   calls.  */
+struct binding *_nl_domain_bindings;
+
+/* Prototypes for local functions.  */
+static char *find_msg PARAMS ((struct loaded_l10nfile *domain_file,
+                               const char *msgid)) internal_function;
+static const char *category_to_name PARAMS ((int category)) internal_function;
+static const char *guess_category_value PARAMS ((int category,
+                                                 const char *categoryname))
+     internal_function;
+
+
+/* For those loosing systems which don't have `alloca' we have to add
+   some additional code emulating it.  */
+#ifdef HAVE_ALLOCA
+/* Nothing has to be done.  */
+# define ADD_BLOCK(list, address) /* nothing */
+# define FREE_BLOCKS(list) /* nothing */
+#else
+struct block_list
+{
+  void *address;
+  struct block_list *next;
+};
+# define ADD_BLOCK(list, addr)                                                      \
+  do {                                                                              \
+    struct block_list *newp = (struct block_list *) malloc (sizeof (*newp));  \
+    /* If we cannot get a free block we cannot add the new element to              \
+       the list.  */                                                              \
+    if (newp != NULL) {                                                              \
+      newp-&gt;address = (addr);                                                      \
+      newp-&gt;next = (list);                                                      \
+      (list) = newp;                                                              \
+    }                                                                              \
+  } while (0)
+# define FREE_BLOCKS(list)                                                      \
+  do {                                                                              \
+    while (list != NULL) {                                                      \
+      struct block_list *old = list;                                              \
+      list = list-&gt;next;                                                      \
+      free (old);                                                              \
+    }                                                                              \
+  } while (0)
+# undef alloca
+# define alloca(size) (malloc (size))
+#endif        /* have alloca */
+
+
+/* Names for the libintl functions are a problem.  They must not clash
+   with existing names and they should follow ANSI C.  But this source
+   code is also used in GNU C Library where the names have a __
+   prefix.  So we have to make a difference here.  */
+#ifdef _LIBC
+# define DCGETTEXT __dcgettext
+#else
+# define DCGETTEXT dcgettext__
+#endif
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
+   locale.  */
+char *
+DCGETTEXT (domainname, msgid, category)
+     const char *domainname;
+     const char *msgid;
+     int category;
+{
+#ifndef HAVE_ALLOCA
+  struct block_list *block_list = NULL;
+#endif
+  struct loaded_l10nfile *domain;
+  struct binding *binding;
+  const char *categoryname;
+  const char *categoryvalue;
+  char *dirname, *xdomainname;
+  char *single_locale;
+  char *retval;
+  int saved_errno = errno;
+
+  /* If no real MSGID is given return NULL.  */
+  if (msgid == NULL)
+    return NULL;
+
+  /* If DOMAINNAME is NULL, we are interested in the default domain.  If
+     CATEGORY is not LC_MESSAGES this might not make much sense but the
+     defintion left this undefined.  */
+  if (domainname == NULL)
+    domainname = _nl_current_default_domain;
+
+  /* First find matching binding.  */
+  for (binding = _nl_domain_bindings; binding != NULL; binding = binding-&gt;next)
+    {
+      int compare = strcmp (domainname, binding-&gt;domainname);
+      if (compare == 0)
+        /* We found it!  */
+        break;
+      if (compare &lt; 0)
+        {
+          /* It is not in the list.  */
+          binding = NULL;
+          break;
+        }
+    }
+
+  if (binding == NULL)
+    dirname = (char *) _nl_default_dirname;
+  else if (binding-&gt;dirname[0] == '/')
+    dirname = binding-&gt;dirname;
+  else
+    {
+      /* We have a relative path.  Make it absolute now.  */
+      size_t dirname_len = strlen (binding-&gt;dirname) + 1;
+      size_t path_max;
+      char *ret;
+
+      path_max = (unsigned) PATH_MAX;
+      path_max += 2;                /* The getcwd docs say to do this.  */
+
+      dirname = (char *) alloca (path_max + dirname_len);
+      ADD_BLOCK (block_list, dirname);
+
+      __set_errno (0);
+      while ((ret = getcwd (dirname, path_max)) == NULL &amp;&amp; errno == ERANGE)
+        {
+          path_max += PATH_INCR;
+          dirname = (char *) alloca (path_max + dirname_len);
+          ADD_BLOCK (block_list, dirname);
+          __set_errno (0);
+        }
+
+      if (ret == NULL)
+        {
+          /* We cannot get the current working directory.  Don't signal an
+             error but simply return the default string.  */
+          FREE_BLOCKS (block_list);
+          __set_errno (saved_errno);
+          return (char *) msgid;
+        }
+
+      stpcpy (stpcpy (strchr (dirname, '\0'), &quot;/&quot;), binding-&gt;dirname);
+    }
+
+  /* Now determine the symbolic name of CATEGORY and its value.  */
+  categoryname = category_to_name (category);
+  categoryvalue = guess_category_value (category, categoryname);
+
+  xdomainname = (char *) alloca (strlen (categoryname)
+                                 + strlen (domainname) + 5);
+  ADD_BLOCK (block_list, xdomainname);
+
+  stpcpy (stpcpy (stpcpy (stpcpy (xdomainname, categoryname), &quot;/&quot;),
+                  domainname),
+          &quot;.mo&quot;);
+
+  /* Creating working area.  */
+  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
+  ADD_BLOCK (block_list, single_locale);
+
+
+  /* Search for the given string.  This is a loop because we perhaps
+     got an ordered list of languages to consider for th translation.  */
+  while (1)
+    {
+      /* Make CATEGORYVALUE point to the next element of the list.  */
+      while (categoryvalue[0] != '\0' &amp;&amp; categoryvalue[0] == ':')
+        ++categoryvalue;
+      if (categoryvalue[0] == '\0')
+        {
+          /* The whole contents of CATEGORYVALUE has been searched but
+             no valid entry has been found.  We solve this situation
+             by implicitly appending a &quot;C&quot; entry, i.e. no translation
+             will take place.  */
+          single_locale[0] = 'C';
+          single_locale[1] = '\0';
+        }
+      else
+        {
+          char *cp = single_locale;
+          while (categoryvalue[0] != '\0' &amp;&amp; categoryvalue[0] != ':')
+            *cp++ = *categoryvalue++;
+          *cp = '\0';
+        }
+
+      /* If the current locale value is C (or POSIX) we don't load a
+         domain.  Return the MSGID.  */
+      if (strcmp (single_locale, &quot;C&quot;) == 0
+          || strcmp (single_locale, &quot;POSIX&quot;) == 0)
+        {
+          FREE_BLOCKS (block_list);
+          __set_errno (saved_errno);
+          return (char *) msgid;
+        }
+
+
+      /* Find structure describing the message catalog matching the
+         DOMAINNAME and CATEGORY.  */
+      domain = _nl_find_domain (dirname, single_locale, xdomainname);
+
+      if (domain != NULL)
+        {
+          retval = find_msg (domain, msgid);
+
+          if (retval == NULL)
+            {
+              int cnt;
+
+              for (cnt = 0; domain-&gt;successor[cnt] != NULL; ++cnt)
+                {
+                  retval = find_msg (domain-&gt;successor[cnt], msgid);
+
+                  if (retval != NULL)
+                    break;
+                }
+            }
+
+          if (retval != NULL)
+            {
+              FREE_BLOCKS (block_list);
+              __set_errno (saved_errno);
+              return retval;
+            }
+        }
+    }
+  /* NOTREACHED */
+}
+
+#ifdef _LIBC
+/* Alias for function name in GNU C Library.  */
+weak_alias (__dcgettext, dcgettext);
+#endif
+
+
+static char *
+internal_function
+find_msg (domain_file, msgid)
+     struct loaded_l10nfile *domain_file;
+     const char *msgid;
+{
+  size_t top, act, bottom;
+  struct loaded_domain *domain;
+
+  if (domain_file-&gt;decided == 0)
+    _nl_load_domain (domain_file);
+
+  if (domain_file-&gt;data == NULL)
+    return NULL;
+
+  domain = (struct loaded_domain *) domain_file-&gt;data;
+
+  /* Locate the MSGID and its translation.  */
+  if (domain-&gt;hash_size &gt; 2 &amp;&amp; domain-&gt;hash_tab != NULL)
+    {
+      /* Use the hashing table.  */
+      nls_uint32 len = strlen (msgid);
+      nls_uint32 hash_val = hash_string (msgid);
+      nls_uint32 idx = hash_val % domain-&gt;hash_size;
+      nls_uint32 incr = 1 + (hash_val % (domain-&gt;hash_size - 2));
+      nls_uint32 nstr = W (domain-&gt;must_swap, domain-&gt;hash_tab[idx]);
+
+      if (nstr == 0)
+        /* Hash table entry is empty.  */
+        return NULL;
+
+      if (W (domain-&gt;must_swap, domain-&gt;orig_tab[nstr - 1].length) == len
+          &amp;&amp; strcmp (msgid,
+                     domain-&gt;data + W (domain-&gt;must_swap,
+                                       domain-&gt;orig_tab[nstr - 1].offset)) == 0)
+        return (char *) domain-&gt;data + W (domain-&gt;must_swap,
+                                          domain-&gt;trans_tab[nstr - 1].offset);
+
+      while (1)
+        {
+          if (idx &gt;= domain-&gt;hash_size - incr)
+            idx -= domain-&gt;hash_size - incr;
+          else
+            idx += incr;
+
+          nstr = W (domain-&gt;must_swap, domain-&gt;hash_tab[idx]);
+          if (nstr == 0)
+            /* Hash table entry is empty.  */
+            return NULL;
+
+          if (W (domain-&gt;must_swap, domain-&gt;orig_tab[nstr - 1].length) == len
+              &amp;&amp; strcmp (msgid,
+                         domain-&gt;data + W (domain-&gt;must_swap,
+                                           domain-&gt;orig_tab[nstr - 1].offset))
+                 == 0)
+            return (char *) domain-&gt;data
+              + W (domain-&gt;must_swap, domain-&gt;trans_tab[nstr - 1].offset);
+        }
+      /* NOTREACHED */
+    }
+
+  /* Now we try the default method:  binary search in the sorted
+     array of messages.  */
+  bottom = 0;
+  top = domain-&gt;nstrings;
+  while (bottom &lt; top)
+    {
+      int cmp_val;
+
+      act = (bottom + top) / 2;
+      cmp_val = strcmp (msgid, domain-&gt;data
+                               + W (domain-&gt;must_swap,
+                                    domain-&gt;orig_tab[act].offset));
+      if (cmp_val &lt; 0)
+        top = act;
+      else if (cmp_val &gt; 0)
+        bottom = act + 1;
+      else
+        break;
+    }
+
+  /* If an translation is found return this.  */
+  return bottom &gt;= top ? NULL : (char *) domain-&gt;data
+                                + W (domain-&gt;must_swap,
+                                     domain-&gt;trans_tab[act].offset);
+}
+
+
+/* Return string representation of locale CATEGORY.  */
+static const char *
+internal_function
+category_to_name (category)
+     int category;
+{
+  const char *retval;
+
+  switch (category)
+  {
+#ifdef LC_COLLATE
+  case LC_COLLATE:
+    retval = &quot;LC_COLLATE&quot;;
+    break;
+#endif
+#ifdef LC_CTYPE
+  case LC_CTYPE:
+    retval = &quot;LC_CTYPE&quot;;
+    break;
+#endif
+#ifdef LC_MONETARY
+  case LC_MONETARY:
+    retval = &quot;LC_MONETARY&quot;;
+    break;
+#endif
+#ifdef LC_NUMERIC
+  case LC_NUMERIC:
+    retval = &quot;LC_NUMERIC&quot;;
+    break;
+#endif
+#ifdef LC_TIME
+  case LC_TIME:
+    retval = &quot;LC_TIME&quot;;
+    break;
+#endif
+#ifdef LC_MESSAGES
+  case LC_MESSAGES:
+    retval = &quot;LC_MESSAGES&quot;;
+    break;
+#endif
+#ifdef LC_RESPONSE
+  case LC_RESPONSE:
+    retval = &quot;LC_RESPONSE&quot;;
+    break;
+#endif
+#ifdef LC_ALL
+  case LC_ALL:
+    /* This might not make sense but is perhaps better than any other
+       value.  */
+    retval = &quot;LC_ALL&quot;;
+    break;
+#endif
+  default:
+    /* If you have a better idea for a default value let me know.  */
+    retval = &quot;LC_XXX&quot;;
+  }
+
+  return retval;
+}
+
+/* Guess value of current locale from value of the environment variables.  */
+static const char *
+internal_function
+guess_category_value (category, categoryname)
+     int category;
+     const char *categoryname;
+{
+  const char *retval;
+
+  /* The highest priority value is the `LANGUAGE' environment
+     variable.  This is a GNU extension.  */
+  retval = getenv (&quot;LANGUAGE&quot;);
+  if (retval != NULL &amp;&amp; retval[0] != '\0')
+    return retval;
+
+  /* `LANGUAGE' is not set.  So we have to proceed with the POSIX
+     methods of looking to `LC_ALL', `LC_xxx', and `LANG'.  On some
+     systems this can be done by the `setlocale' function itself.  */
+#if defined HAVE_SETLOCALE &amp;&amp; defined HAVE_LC_MESSAGES &amp;&amp; defined HAVE_LOCALE_NULL
+  return setlocale (category, NULL);
+#else
+  /* Setting of LC_ALL overwrites all other.  */
+  retval = getenv (&quot;LC_ALL&quot;);
+  if (retval != NULL &amp;&amp; retval[0] != '\0')
+    return retval;
+
+  /* Next comes the name of the desired category.  */
+  retval = getenv (categoryname);
+  if (retval != NULL &amp;&amp; retval[0] != '\0')
+    return retval;
+
+  /* Last possibility is the LANG environment variable.  */
+  retval = getenv (&quot;LANG&quot;);
+  if (retval != NULL &amp;&amp; retval[0] != '\0')
+    return retval;
+
+  /* We use C as the default domain.  POSIX says this is implementation
+     defined.  */
+  return &quot;C&quot;;
+#endif
+}
+
+/* @@ begin of epilog @@ */
+
+/* We don't want libintl.a to depend on any other library.  So we
+   avoid the non-standard function stpcpy.  In GNU C Library this
+   function is available, though.  Also allow the symbol HAVE_STPCPY
+   to be defined.  */
+#if !_LIBC &amp;&amp; !HAVE_STPCPY
+static char *
+stpcpy (dest, src)
+     char *dest;
+     const char *src;
+{
+  while ((*dest++ = *src++) != '\0')
+    /* Do nothing. */ ;
+  return dest - 1;
+}
+#endif
+
+
+#ifdef _LIBC
+/* If we want to free all resources we have to do some work at
+   program's end.  */
+static void __attribute__ ((unused))
+free_mem (void)
+{
+  struct binding *runp;
+
+  for (runp = _nl_domain_bindings; runp != NULL; runp = runp-&gt;next)
+    {
+      free (runp-&gt;domainname);
+      if (runp-&gt;dirname != _nl_default_dirname)
+        /* Yes, this is a pointer comparison.  */
+        free (runp-&gt;dirname);
+    }
+
+  if (_nl_current_default_domain != _nl_default_default_domain)
+    /* Yes, again a pointer comparison.  */
+    free ((char *) _nl_current_default_domain);
+}
+
+text_set_element (__libc_subfreeres, free_mem);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intldgettextc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dgettext.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dgettext.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/dgettext.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+/* Implementation of the dgettext(3) function
+   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#if defined HAVE_LOCALE_H || defined _LIBC
+# include &lt;locale.h&gt;
+#endif
+
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+
+/* @@ end of prolog @@ */
+
+/* Names for the libintl functions are a problem.  They must not clash
+   with existing names and they should follow ANSI C.  But this source
+   code is also used in GNU C Library where the names have a __
+   prefix.  So we have to make a difference here.  */
+#ifdef _LIBC
+# define DGETTEXT __dgettext
+# define DCGETTEXT __dcgettext
+#else
+# define DGETTEXT dgettext__
+# define DCGETTEXT dcgettext__
+#endif
+
+/* Look up MSGID in the DOMAINNAME message catalog of the current
+   LC_MESSAGES locale.  */
+char *
+DGETTEXT (domainname, msgid)
+     const char *domainname;
+     const char *msgid;
+{
+  return DCGETTEXT (domainname, msgid, LC_MESSAGES);
+}
+
+#ifdef _LIBC
+/* Alias for function name in GNU C Library.  */
+weak_alias (__dgettext, dgettext);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlexplodenamec"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/explodename.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/explodename.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/explodename.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,188 @@
</span><ins>+/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Contributed by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+#endif
+#include &lt;sys/types.h&gt;
+
+#include &quot;loadinfo.h&quot;
+
+/* On some strange systems still no definition of NULL is found.  Sigh!  */
+#ifndef NULL
+# if defined __STDC__ &amp;&amp; __STDC__
+#  define NULL ((void *) 0)
+# else
+#  define NULL 0
+# endif
+#endif
+
+/* @@ end of prolog @@ */
+
+int
+_nl_explode_name (name, language, modifier, territory, codeset,
+                  normalized_codeset, special, sponsor, revision)
+     char *name;
+     const char **language;
+     const char **modifier;
+     const char **territory;
+     const char **codeset;
+     const char **normalized_codeset;
+     const char **special;
+     const char **sponsor;
+     const char **revision;
+{
+  enum { undecided, xpg, cen } syntax;
+  char *cp;
+  int mask;
+
+  *modifier = NULL;
+  *territory = NULL;
+  *codeset = NULL;
+  *normalized_codeset = NULL;
+  *special = NULL;
+  *sponsor = NULL;
+  *revision = NULL;
+
+  /* Now we determine the single parts of the locale name.  First
+     look for the language.  Termination symbols are `_' and `@' if
+     we use XPG4 style, and `_', `+', and `,' if we use CEN syntax.  */
+  mask = 0;
+  syntax = undecided;
+  *language = cp = name;
+  while (cp[0] != '\0' &amp;&amp; cp[0] != '_' &amp;&amp; cp[0] != '@'
+         &amp;&amp; cp[0] != '+' &amp;&amp; cp[0] != ',')
+    ++cp;
+
+  if (*language == cp)
+    /* This does not make sense: language has to be specified.  Use
+       this entry as it is without exploding.  Perhaps it is an alias.  */
+    cp = strchr (*language, '\0');
+  else if (cp[0] == '_')
+    {
+      /* Next is the territory.  */
+      cp[0] = '\0';
+      *territory = ++cp;
+
+      while (cp[0] != '\0' &amp;&amp; cp[0] != '.' &amp;&amp; cp[0] != '@'
+             &amp;&amp; cp[0] != '+' &amp;&amp; cp[0] != ',' &amp;&amp; cp[0] != '_')
+        ++cp;
+
+      mask |= TERRITORY;
+
+      if (cp[0] == '.')
+        {
+          /* Next is the codeset.  */
+          syntax = xpg;
+          cp[0] = '\0';
+          *codeset = ++cp;
+
+          while (cp[0] != '\0' &amp;&amp; cp[0] != '@')
+            ++cp;
+
+          mask |= XPG_CODESET;
+
+          if (*codeset != cp &amp;&amp; (*codeset)[0] != '\0')
+            {
+              *normalized_codeset = _nl_normalize_codeset (*codeset,
+                                                           cp - *codeset);
+              if (strcmp (*codeset, *normalized_codeset) == 0)
+                free ((char *) *normalized_codeset);
+              else
+                mask |= XPG_NORM_CODESET;
+            }
+        }
+    }
+
+  if (cp[0] == '@' || (syntax != xpg &amp;&amp; cp[0] == '+'))
+    {
+      /* Next is the modifier.  */
+      syntax = cp[0] == '@' ? xpg : cen;
+      cp[0] = '\0';
+      *modifier = ++cp;
+
+      while (syntax == cen &amp;&amp; cp[0] != '\0' &amp;&amp; cp[0] != '+'
+             &amp;&amp; cp[0] != ',' &amp;&amp; cp[0] != '_')
+        ++cp;
+
+      mask |= XPG_MODIFIER | CEN_AUDIENCE;
+    }
+
+  if (syntax != xpg &amp;&amp; (cp[0] == '+' || cp[0] == ',' || cp[0] == '_'))
+    {
+      syntax = cen;
+
+      if (cp[0] == '+')
+        {
+           /* Next is special application (CEN syntax).  */
+          cp[0] = '\0';
+          *special = ++cp;
+
+          while (cp[0] != '\0' &amp;&amp; cp[0] != ',' &amp;&amp; cp[0] != '_')
+            ++cp;
+
+          mask |= CEN_SPECIAL;
+        }
+
+      if (cp[0] == ',')
+        {
+           /* Next is sponsor (CEN syntax).  */
+          cp[0] = '\0';
+          *sponsor = ++cp;
+
+          while (cp[0] != '\0' &amp;&amp; cp[0] != '_')
+            ++cp;
+
+          mask |= CEN_SPONSOR;
+        }
+
+      if (cp[0] == '_')
+        {
+           /* Next is revision (CEN syntax).  */
+          cp[0] = '\0';
+          *revision = ++cp;
+
+          mask |= CEN_REVISION;
+        }
+    }
+
+  /* For CEN syntax values it might be important to have the
+     separator character in the file name, not for XPG syntax.  */
+  if (syntax == xpg)
+    {
+      if (*territory != NULL &amp;&amp; (*territory)[0] == '\0')
+        mask &amp;= ~TERRITORY;
+
+      if (*codeset != NULL &amp;&amp; (*codeset)[0] == '\0')
+        mask &amp;= ~XPG_CODESET;
+
+      if (*modifier != NULL &amp;&amp; (*modifier)[0] == '\0')
+        mask &amp;= ~XPG_MODIFIER;
+    }
+
+  return mask;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlfinddomainc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/finddomain.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/finddomain.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/finddomain.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,216 @@
</span><ins>+/* Handle list of needed message catalogs
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Written by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &lt;ctype.h&gt;
+#include &lt;errno.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;sys/types.h&gt;
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#else
+# ifdef HAVE_MALLOC_H
+#  include &lt;malloc.h&gt;
+# else
+void free ();
+# endif
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+# ifndef memcpy
+#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
+# endif
+#endif
+#if !HAVE_STRCHR &amp;&amp; !defined _LIBC
+# ifndef strchr
+#  define strchr index
+# endif
+#endif
+
+#if defined HAVE_UNISTD_H || defined _LIBC
+# include &lt;unistd.h&gt;
+#endif
+
+#include &quot;gettext.h&quot;
+#include &quot;gettextP.h&quot;
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+
+/* @@ end of prolog @@ */
+/* List of already loaded domains.  */
+static struct loaded_l10nfile *_nl_loaded_domains;
+
+
+/* Return a data structure describing the message catalog described by
+   the DOMAINNAME and CATEGORY parameters with respect to the currently
+   established bindings.  */
+struct loaded_l10nfile *
+internal_function
+_nl_find_domain (dirname, locale, domainname)
+     const char *dirname;
+     char *locale;
+     const char *domainname;
+{
+  struct loaded_l10nfile *retval;
+  const char *language;
+  const char *modifier;
+  const char *territory;
+  const char *codeset;
+  const char *normalized_codeset;
+  const char *special;
+  const char *sponsor;
+  const char *revision;
+  const char *alias_value;
+  int mask;
+
+  /* LOCALE can consist of up to four recognized parts for the XPG syntax:
+
+                language[_territory[.codeset]][@modifier]
+
+     and six parts for the CEN syntax:
+
+        language[_territory][+audience][+special][,[sponsor][_revision]]
+
+     Beside the first part all of them are allowed to be missing.  If
+     the full specified locale is not found, the less specific one are
+     looked for.  The various parts will be stripped off according to
+     the following order:
+                (1) revision
+                (2) sponsor
+                (3) special
+                (4) codeset
+                (5) normalized codeset
+                (6) territory
+                (7) audience/modifier
+   */
+
+  /* If we have already tested for this locale entry there has to
+     be one data set in the list of loaded domains.  */
+  retval = _nl_make_l10nflist (&amp;_nl_loaded_domains, dirname,
+                               strlen (dirname) + 1, 0, locale, NULL, NULL,
+                               NULL, NULL, NULL, NULL, NULL, domainname, 0);
+  if (retval != NULL)
+    {
+      /* We know something about this locale.  */
+      int cnt;
+
+      if (retval-&gt;decided == 0)
+        _nl_load_domain (retval);
+
+      if (retval-&gt;data != NULL)
+        return retval;
+
+      for (cnt = 0; retval-&gt;successor[cnt] != NULL; ++cnt)
+        {
+          if (retval-&gt;successor[cnt]-&gt;decided == 0)
+            _nl_load_domain (retval-&gt;successor[cnt]);
+
+          if (retval-&gt;successor[cnt]-&gt;data != NULL)
+            break;
+        }
+      return cnt &gt;= 0 ? retval : NULL;
+      /* NOTREACHED */
+    }
+
+  /* See whether the locale value is an alias.  If yes its value
+     *overwrites* the alias name.  No test for the original value is
+     done.  */
+  alias_value = _nl_expand_alias (locale);
+  if (alias_value != NULL)
+    {
+#if defined _LIBC || defined HAVE_STRDUP
+      locale = strdup (alias_value);
+      if (locale == NULL)
+        return NULL;
+#else
+      size_t len = strlen (alias_value) + 1;
+      locale = (char *) malloc (len);
+      if (locale == NULL)
+        return NULL;
+
+      memcpy (locale, alias_value, len);
+#endif
+    }
+
+  /* Now we determine the single parts of the locale name.  First
+     look for the language.  Termination symbols are `_' and `@' if
+     we use XPG4 style, and `_', `+', and `,' if we use CEN syntax.  */
+  mask = _nl_explode_name (locale, &amp;language, &amp;modifier, &amp;territory,
+                           &amp;codeset, &amp;normalized_codeset, &amp;special,
+                           &amp;sponsor, &amp;revision);
+
+  /* Create all possible locale entries which might be interested in
+     generalization.  */
+  retval = _nl_make_l10nflist (&amp;_nl_loaded_domains, dirname,
+                               strlen (dirname) + 1, mask, language, territory,
+                               codeset, normalized_codeset, modifier, special,
+                               sponsor, revision, domainname, 1);
+  if (retval == NULL)
+    /* This means we are out of core.  */
+    return NULL;
+
+  if (retval-&gt;decided == 0)
+    _nl_load_domain (retval);
+  if (retval-&gt;data == NULL)
+    {
+      int cnt;
+      for (cnt = 0; retval-&gt;successor[cnt] != NULL; ++cnt)
+        {
+          if (retval-&gt;successor[cnt]-&gt;decided == 0)
+            _nl_load_domain (retval-&gt;successor[cnt]);
+          if (retval-&gt;successor[cnt]-&gt;data != NULL)
+            break;
+        }
+    }
+
+  /* The room for an alias was dynamically allocated.  Free it now.  */
+  if (alias_value != NULL)
+    free (locale);
+
+  return retval;
+}
+
+
+#ifdef _LIBC
+static void __attribute__ ((unused))
+free_mem (void)
+{
+  struct loaded_l10nfile *runp = _nl_loaded_domains;
+
+  while (runp != NULL)
+    {
+      struct loaded_l10nfile *here = runp;
+      if (runp-&gt;data != NULL)
+        _nl_unload_domain ((struct loaded_domain *) runp-&gt;data);
+      runp = runp-&gt;next;
+      free (here);
+    }
+}
+
+text_set_element (__libc_subfreeres, free_mem);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettextc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+/* Implementation of gettext(3) function.
+   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#ifdef _LIBC
+# define __need_NULL
+# include &lt;stddef.h&gt;
+#else
+# ifdef STDC_HEADERS
+#  include &lt;stdlib.h&gt;                /* Just for NULL.  */
+# else
+#  ifdef HAVE_STRING_H
+#   include &lt;string.h&gt;
+#  else
+#   define NULL ((void *) 0)
+#  endif
+# endif
+#endif
+
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+
+/* @@ end of prolog @@ */
+
+/* Names for the libintl functions are a problem.  They must not clash
+   with existing names and they should follow ANSI C.  But this source
+   code is also used in GNU C Library where the names have a __
+   prefix.  So we have to make a difference here.  */
+#ifdef _LIBC
+# define GETTEXT __gettext
+# define DGETTEXT __dgettext
+#else
+# define GETTEXT gettext__
+# define DGETTEXT dgettext__
+#endif
+
+/* Look up MSGID in the current default message catalog for the current
+   LC_MESSAGES locale.  If not found, returns MSGID itself (the default
+   text).  */
+char *
+GETTEXT (msgid)
+     const char *msgid;
+{
+  return DGETTEXT (NULL, msgid);
+}
+
+#ifdef _LIBC
+/* Alias for function name in GNU C Library.  */
+weak_alias (__gettext, gettext);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettexth"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettext.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,105 @@
</span><ins>+/* Internal header for GNU gettext internationalization functions.
+   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _GETTEXT_H
+#define _GETTEXT_H 1
+
+#include &lt;stdio.h&gt;
+
+#if HAVE_LIMITS_H || _LIBC
+# include &lt;limits.h&gt;
+#endif
+
+/* @@ end of prolog @@ */
+
+/* The magic number of the GNU message catalog format.  */
+#define _MAGIC 0x950412de
+#define _MAGIC_SWAPPED 0xde120495
+
+/* Revision number of the currently used .mo (binary) file format.  */
+#define MO_REVISION_NUMBER 0
+
+/* The following contortions are an attempt to use the C preprocessor
+   to determine an unsigned integral type that is 32 bits wide.  An
+   alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
+   doing that would require that the configure script compile and *run*
+   the resulting executable.  Locally running cross-compiled executables
+   is usually not possible.  */
+
+#if __STDC__
+# define UINT_MAX_32_BITS 4294967295U
+#else
+# define UINT_MAX_32_BITS 0xFFFFFFFF
+#endif
+
+/* If UINT_MAX isn't defined, assume it's a 32-bit type.
+   This should be valid for all systems GNU cares about because
+   that doesn't include 16-bit systems, and only modern systems
+   (that certainly have &lt;limits.h&gt;) have 64+-bit integral types.  */
+
+#ifndef UINT_MAX
+# define UINT_MAX UINT_MAX_32_BITS
+#endif
+
+#if UINT_MAX == UINT_MAX_32_BITS
+typedef unsigned nls_uint32;
+#else
+# if USHRT_MAX == UINT_MAX_32_BITS
+typedef unsigned short nls_uint32;
+# else
+#  if ULONG_MAX == UINT_MAX_32_BITS
+typedef unsigned long nls_uint32;
+#  else
+  /* The following line is intended to throw an error.  Using #error is
+     not portable enough.  */
+  &quot;Cannot determine unsigned 32-bit data type.&quot;
+#  endif
+# endif
+#endif
+
+
+/* Header for binary .mo file format.  */
+struct mo_file_header
+{
+  /* The magic number.  */
+  nls_uint32 magic;
+  /* The revision number of the file format.  */
+  nls_uint32 revision;
+  /* The number of strings pairs.  */
+  nls_uint32 nstrings;
+  /* Offset of table with start offsets of original strings.  */
+  nls_uint32 orig_tab_offset;
+  /* Offset of table with start offsets of translation strings.  */
+  nls_uint32 trans_tab_offset;
+  /* Size of hashing table.  */
+  nls_uint32 hash_tab_size;
+  /* Offset of first hashing entry.  */
+  nls_uint32 hash_tab_offset;
+};
+
+struct string_desc
+{
+  /* Length of addressed string.  */
+  nls_uint32 length;
+  /* Offset of string in file.  */
+  nls_uint32 offset;
+};
+
+/* @@ begin of epilog @@ */
+
+#endif        /* gettext.h  */
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlgettextPh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettextP.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettextP.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/gettextP.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,89 @@
</span><ins>+/* Header describing internals of gettext library
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Written by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifndef _GETTEXTP_H
+#define _GETTEXTP_H
+
+#include &quot;loadinfo.h&quot;
+
+/* @@ end of prolog @@ */
+
+#ifndef PARAMS
+# if __STDC__
+#  define PARAMS(args) args
+# else
+#  define PARAMS(args) ()
+# endif
+#endif
+
+#ifndef internal_function
+# define internal_function
+#endif
+
+#ifndef W
+# define W(flag, data) ((flag) ? SWAP (data) : (data))
+#endif
+
+
+#ifdef _LIBC
+# include &lt;byteswap.h&gt;
+# define SWAP(i) bswap_32 (i)
+#else
+static nls_uint32 SWAP PARAMS ((nls_uint32 i));
+
+static inline nls_uint32
+SWAP (i)
+     nls_uint32 i;
+{
+  return (i &lt;&lt; 24) | ((i &amp; 0xff00) &lt;&lt; 8) | ((i &gt;&gt; 8) &amp; 0xff00) | (i &gt;&gt; 24);
+}
+#endif
+
+
+struct loaded_domain
+{
+  const char *data;
+  int use_mmap;
+  size_t mmap_size;
+  int must_swap;
+  nls_uint32 nstrings;
+  struct string_desc *orig_tab;
+  struct string_desc *trans_tab;
+  nls_uint32 hash_size;
+  nls_uint32 *hash_tab;
+};
+
+struct binding
+{
+  struct binding *next;
+  char *domainname;
+  char *dirname;
+};
+
+struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
+                                                 char *__locale,
+                                                 const char *__domainname))
+     internal_function;
+void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain))
+     internal_function;
+void _nl_unload_domain PARAMS ((struct loaded_domain *__domain))
+     internal_function;
+
+/* @@ begin of epilog @@ */
+
+#endif /* gettextP.h  */
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlhashstringh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/hash-string.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/hash-string.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/hash-string.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+/* Implements a string hashing function.
+   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* @@ end of prolog @@ */
+
+#ifndef PARAMS
+# if __STDC__
+#  define PARAMS(Args) Args
+# else
+#  define PARAMS(Args) ()
+# endif
+#endif
+
+/* We assume to have `unsigned long int' value with at least 32 bits.  */
+#define HASHWORDBITS 32
+
+
+/* Defines the so called `hashpjw' function by P.J. Weinberger
+   [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
+   1986, 1987 Bell Telephone Laboratories, Inc.]  */
+static unsigned long hash_string PARAMS ((const char *__str_param));
+
+static inline unsigned long
+hash_string (str_param)
+     const char *str_param;
+{
+  unsigned long int hval, g;
+  const char *str = str_param;
+
+  /* Compute the hash value for the given string.  */
+  hval = 0;
+  while (*str != '\0')
+    {
+      hval &lt;&lt;= 4;
+      hval += (unsigned long) *str++;
+      g = hval &amp; ((unsigned long) 0xf &lt;&lt; (HASHWORDBITS - 4));
+      if (g != 0)
+        {
+          hval ^= g &gt;&gt; (HASHWORDBITS - 8);
+          hval ^= g;
+        }
+    }
+  return hval;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlintlcompatc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/intl-compat.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/intl-compat.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/intl-compat.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+/* intl-compat.c - Stub functions to call gettext functions from GNU gettext
+   Library.
+   Copyright (C) 1995 Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &quot;libgettext.h&quot;
+
+/* @@ end of prolog @@ */
+
+
+#undef gettext
+#undef dgettext
+#undef dcgettext
+#undef textdomain
+#undef bindtextdomain
+
+
+char *
+bindtextdomain (domainname, dirname)
+     const char *domainname;
+     const char *dirname;
+{
+  return bindtextdomain__ (domainname, dirname);
+}
+
+
+char *
+dcgettext (domainname, msgid, category)
+     const char *domainname;
+     const char *msgid;
+     int category;
+{
+  return dcgettext__ (domainname, msgid, category);
+}
+
+
+char *
+dgettext (domainname, msgid)
+     const char *domainname;
+     const char *msgid;
+{
+  return dgettext__ (domainname, msgid);
+}
+
+
+char *
+gettext (msgid)
+     const char *msgid;
+{
+  return gettext__ (msgid);
+}
+
+
+char *
+textdomain (domainname)
+     const char *domainname;
+{
+  return textdomain__ (domainname);
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intll10nflistc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/l10nflist.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/l10nflist.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/l10nflist.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,411 @@
</span><ins>+/* Handle list of needed message catalogs
+   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Contributed by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+
+#if defined HAVE_STRING_H || defined _LIBC
+# ifndef _GNU_SOURCE
+#  define _GNU_SOURCE        1
+# endif
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+# ifndef memcpy
+#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
+# endif
+#endif
+#if !HAVE_STRCHR &amp;&amp; !defined _LIBC
+# ifndef strchr
+#  define strchr index
+# endif
+#endif
+
+#if defined _LIBC || defined HAVE_ARGZ_H
+# include &lt;argz.h&gt;
+#endif
+#include &lt;ctype.h&gt;
+#include &lt;sys/types.h&gt;
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#endif
+
+#include &quot;loadinfo.h&quot;
+
+/* On some strange systems still no definition of NULL is found.  Sigh!  */
+#ifndef NULL
+# if defined __STDC__ &amp;&amp; __STDC__
+#  define NULL ((void *) 0)
+# else
+#  define NULL 0
+# endif
+#endif
+
+/* @@ end of prolog @@ */
+
+#ifdef _LIBC
+/* Rename the non ANSI C functions.  This is required by the standard
+   because some ANSI C functions will require linking with this object
+   file and the name space must not be polluted.  */
+# ifndef stpcpy
+#  define stpcpy(dest, src) __stpcpy(dest, src)
+# endif
+#else
+# ifndef HAVE_STPCPY
+static char *stpcpy PARAMS ((char *dest, const char *src));
+# endif
+#endif
+
+/* Define function which are usually not available.  */
+
+#if !defined _LIBC &amp;&amp; !defined HAVE___ARGZ_COUNT
+/* Returns the number of strings in ARGZ.  */
+static size_t argz_count__ PARAMS ((const char *argz, size_t len));
+
+static size_t
+argz_count__ (argz, len)
+     const char *argz;
+     size_t len;
+{
+  size_t count = 0;
+  while (len &gt; 0)
+    {
+      size_t part_len = strlen (argz);
+      argz += part_len + 1;
+      len -= part_len + 1;
+      count++;
+    }
+  return count;
+}
+# undef __argz_count
+# define __argz_count(argz, len) argz_count__ (argz, len)
+#endif        /* !_LIBC &amp;&amp; !HAVE___ARGZ_COUNT */
+
+#if !defined _LIBC &amp;&amp; !defined HAVE___ARGZ_STRINGIFY
+/* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
+   except the last into the character SEP.  */
+static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep));
+
+static void
+argz_stringify__ (argz, len, sep)
+     char *argz;
+     size_t len;
+     int sep;
+{
+  while (len &gt; 0)
+    {
+      size_t part_len = strlen (argz);
+      argz += part_len;
+      len -= part_len + 1;
+      if (len &gt; 0)
+        *argz++ = sep;
+    }
+}
+# undef __argz_stringify
+# define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep)
+#endif        /* !_LIBC &amp;&amp; !HAVE___ARGZ_STRINGIFY */
+
+#if !defined _LIBC &amp;&amp; !defined HAVE___ARGZ_NEXT
+static char *argz_next__ PARAMS ((char *argz, size_t argz_len,
+                                  const char *entry));
+
+static char *
+argz_next__ (argz, argz_len, entry)
+     char *argz;
+     size_t argz_len;
+     const char *entry;
+{
+  if (entry)
+    {
+      if (entry &lt; argz + argz_len)
+        entry = strchr (entry, '\0') + 1;
+
+      return entry &gt;= argz + argz_len ? NULL : (char *) entry;
+    }
+  else
+    if (argz_len &gt; 0)
+      return argz;
+    else
+      return 0;
+}
+# undef __argz_next
+# define __argz_next(argz, len, entry) argz_next__ (argz, len, entry)
+#endif        /* !_LIBC &amp;&amp; !HAVE___ARGZ_NEXT */
+
+
+/* Return number of bits set in X.  */
+static int pop PARAMS ((int x));
+
+static inline int
+pop (x)
+     int x;
+{
+  /* We assume that no more than 16 bits are used.  */
+  x = ((x &amp; ~0x5555) &gt;&gt; 1) + (x &amp; 0x5555);
+  x = ((x &amp; ~0x3333) &gt;&gt; 2) + (x &amp; 0x3333);
+  x = ((x &gt;&gt; 4) + x) &amp; 0x0f0f;
+  x = ((x &gt;&gt; 8) + x) &amp; 0xff;
+
+  return x;
+}
+
+
+struct loaded_l10nfile *
+_nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
+                    territory, codeset, normalized_codeset, modifier, special,
+                    sponsor, revision, filename, do_allocate)
+     struct loaded_l10nfile **l10nfile_list;
+     const char *dirlist;
+     size_t dirlist_len;
+     int mask;
+     const char *language;
+     const char *territory;
+     const char *codeset;
+     const char *normalized_codeset;
+     const char *modifier;
+     const char *special;
+     const char *sponsor;
+     const char *revision;
+     const char *filename;
+     int do_allocate;
+{
+  char *abs_filename;
+  struct loaded_l10nfile *last = NULL;
+  struct loaded_l10nfile *retval;
+  char *cp;
+  size_t entries;
+  int cnt;
+
+  /* Allocate room for the full file name.  */
+  abs_filename = (char *) malloc (dirlist_len
+                                  + strlen (language)
+                                  + ((mask &amp; TERRITORY) != 0
+                                     ? strlen (territory) + 1 : 0)
+                                  + ((mask &amp; XPG_CODESET) != 0
+                                     ? strlen (codeset) + 1 : 0)
+                                  + ((mask &amp; XPG_NORM_CODESET) != 0
+                                     ? strlen (normalized_codeset) + 1 : 0)
+                                  + (((mask &amp; XPG_MODIFIER) != 0
+                                      || (mask &amp; CEN_AUDIENCE) != 0)
+                                     ? strlen (modifier) + 1 : 0)
+                                  + ((mask &amp; CEN_SPECIAL) != 0
+                                     ? strlen (special) + 1 : 0)
+                                  + (((mask &amp; CEN_SPONSOR) != 0
+                                      || (mask &amp; CEN_REVISION) != 0)
+                                     ? (1 + ((mask &amp; CEN_SPONSOR) != 0
+                                             ? strlen (sponsor) + 1 : 0)
+                                        + ((mask &amp; CEN_REVISION) != 0
+                                           ? strlen (revision) + 1 : 0)) : 0)
+                                  + 1 + strlen (filename) + 1);
+
+  if (abs_filename == NULL)
+    return NULL;
+
+  retval = NULL;
+  last = NULL;
+
+  /* Construct file name.  */
+  memcpy (abs_filename, dirlist, dirlist_len);
+  __argz_stringify (abs_filename, dirlist_len, ':');
+  cp = abs_filename + (dirlist_len - 1);
+  *cp++ = '/';
+  cp = stpcpy (cp, language);
+
+  if ((mask &amp; TERRITORY) != 0)
+    {
+      *cp++ = '_';
+      cp = stpcpy (cp, territory);
+    }
+  if ((mask &amp; XPG_CODESET) != 0)
+    {
+      *cp++ = '.';
+      cp = stpcpy (cp, codeset);
+    }
+  if ((mask &amp; XPG_NORM_CODESET) != 0)
+    {
+      *cp++ = '.';
+      cp = stpcpy (cp, normalized_codeset);
+    }
+  if ((mask &amp; (XPG_MODIFIER | CEN_AUDIENCE)) != 0)
+    {
+      /* This component can be part of both syntaces but has different
+         leading characters.  For CEN we use `+', else `@'.  */
+      *cp++ = (mask &amp; CEN_AUDIENCE) != 0 ? '+' : '@';
+      cp = stpcpy (cp, modifier);
+    }
+  if ((mask &amp; CEN_SPECIAL) != 0)
+    {
+      *cp++ = '+';
+      cp = stpcpy (cp, special);
+    }
+  if ((mask &amp; (CEN_SPONSOR | CEN_REVISION)) != 0)
+    {
+      *cp++ = ',';
+      if ((mask &amp; CEN_SPONSOR) != 0)
+        cp = stpcpy (cp, sponsor);
+      if ((mask &amp; CEN_REVISION) != 0)
+        {
+          *cp++ = '_';
+          cp = stpcpy (cp, revision);
+        }
+    }
+
+  *cp++ = '/';
+  stpcpy (cp, filename);
+
+  /* Look in list of already loaded domains whether it is already
+     available.  */
+  last = NULL;
+  for (retval = *l10nfile_list; retval != NULL; retval = retval-&gt;next)
+    if (retval-&gt;filename != NULL)
+      {
+        int compare = strcmp (retval-&gt;filename, abs_filename);
+        if (compare == 0)
+          /* We found it!  */
+          break;
+        if (compare &lt; 0)
+          {
+            /* It's not in the list.  */
+            retval = NULL;
+            break;
+          }
+
+        last = retval;
+      }
+
+  if (retval != NULL || do_allocate == 0)
+    {
+      free (abs_filename);
+      return retval;
+    }
+
+  retval = (struct loaded_l10nfile *)
+    malloc (sizeof (*retval) + (__argz_count (dirlist, dirlist_len)
+                                * (1 &lt;&lt; pop (mask))
+                                * sizeof (struct loaded_l10nfile *)));
+  if (retval == NULL)
+    return NULL;
+
+  retval-&gt;filename = abs_filename;
+  retval-&gt;decided = (__argz_count (dirlist, dirlist_len) != 1
+                     || ((mask &amp; XPG_CODESET) != 0
+                         &amp;&amp; (mask &amp; XPG_NORM_CODESET) != 0));
+  retval-&gt;data = NULL;
+
+  if (last == NULL)
+    {
+      retval-&gt;next = *l10nfile_list;
+      *l10nfile_list = retval;
+    }
+  else
+    {
+      retval-&gt;next = last-&gt;next;
+      last-&gt;next = retval;
+    }
+
+  entries = 0;
+  /* If the DIRLIST is a real list the RETVAL entry corresponds not to
+     a real file.  So we have to use the DIRLIST separation mechanism
+     of the inner loop.  */
+  cnt = __argz_count (dirlist, dirlist_len) == 1 ? mask - 1 : mask;
+  for (; cnt &gt;= 0; --cnt)
+    if ((cnt &amp; ~mask) == 0
+        &amp;&amp; ((cnt &amp; CEN_SPECIFIC) == 0 || (cnt &amp; XPG_SPECIFIC) == 0)
+        &amp;&amp; ((cnt &amp; XPG_CODESET) == 0 || (cnt &amp; XPG_NORM_CODESET) == 0))
+      {
+        /* Iterate over all elements of the DIRLIST.  */
+        char *dir = NULL;
+
+        while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir))
+               != NULL)
+          retval-&gt;successor[entries++]
+            = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt,
+                                  language, territory, codeset,
+                                  normalized_codeset, modifier, special,
+                                  sponsor, revision, filename, 1);
+      }
+  retval-&gt;successor[entries] = NULL;
+
+  return retval;
+}
+
+/* Normalize codeset name.  There is no standard for the codeset
+   names.  Normalization allows the user to use any of the common
+   names.  */
+const char *
+_nl_normalize_codeset (codeset, name_len)
+     const unsigned char *codeset;
+     size_t name_len;
+{
+  int len = 0;
+  int only_digit = 1;
+  char *retval;
+  char *wp;
+  size_t cnt;
+
+  for (cnt = 0; cnt &lt; name_len; ++cnt)
+    if (isalnum (codeset[cnt]))
+      {
+        ++len;
+
+        if (isalpha (codeset[cnt]))
+          only_digit = 0;
+      }
+
+  retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1);
+
+  if (retval != NULL)
+    {
+      if (only_digit)
+        wp = stpcpy (retval, &quot;iso&quot;);
+      else
+        wp = retval;
+
+      for (cnt = 0; cnt &lt; name_len; ++cnt)
+        if (isalpha (codeset[cnt]))
+          *wp++ = tolower (codeset[cnt]);
+        else if (isdigit (codeset[cnt]))
+          *wp++ = codeset[cnt];
+
+      *wp = '\0';
+    }
+
+  return (const char *) retval;
+}
+
+
+/* @@ begin of epilog @@ */
+
+/* We don't want libintl.a to depend on any other library.  So we
+   avoid the non-standard function stpcpy.  In GNU C Library this
+   function is available, though.  Also allow the symbol HAVE_STPCPY
+   to be defined.  */
+#if !_LIBC &amp;&amp; !HAVE_STPCPY
+static char *
+stpcpy (dest, src)
+     char *dest;
+     const char *src;
+{
+  while ((*dest++ = *src++) != '\0')
+    /* Do nothing. */ ;
+  return dest - 1;
+}
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllibgettexth"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/libgettext.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/libgettext.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/libgettext.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,182 @@
</span><ins>+/* Message catalogs for internationalization.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+/* Because on some systems (e.g. Solaris) we sometimes have to include
+   the systems libintl.h as well as this file we have more complex
+   include protection above.  But the systems header might perhaps also
+   define _LIBINTL_H and therefore we have to protect the definition here.  */
+
+#if !defined _LIBINTL_H || !defined _LIBGETTEXT_H
+#ifndef _LIBINTL_H
+# define _LIBINTL_H        1
+#endif
+#define _LIBGETTEXT_H        1
+
+/* We define an additional symbol to signal that we use the GNU
+   implementation of gettext.  */
+#define __USE_GNU_GETTEXT 1
+
+#include &lt;sys/types.h&gt;
+
+#if HAVE_LOCALE_H
+# include &lt;locale.h&gt;
+#endif
+
+
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+/* @@ end of prolog @@ */
+
+#ifndef PARAMS
+# if __STDC__ || defined __cplusplus
+#  define PARAMS(args) args
+# else
+#  define PARAMS(args) ()
+# endif
+#endif
+
+#ifndef NULL
+# if !defined __cplusplus || defined __GNUC__
+#  define NULL ((void *) 0)
+# else
+#  define NULL (0)
+# endif
+#endif
+
+#if !HAVE_LC_MESSAGES
+/* This value determines the behaviour of the gettext() and dgettext()
+   function.  But some system does not have this defined.  Define it
+   to a default value.  */
+# define LC_MESSAGES (-1)
+#endif
+
+
+/* Declarations for gettext-using-catgets interface.  Derived from
+   Jim Meyering's libintl.h.  */
+struct _msg_ent
+{
+  const char *_msg;
+  int _msg_number;
+};
+
+
+#if HAVE_CATGETS
+/* These two variables are defined in the automatically by po-to-tbl.sed
+   generated file `cat-id-tbl.c'.  */
+extern const struct _msg_ent _msg_tbl[];
+extern int _msg_tbl_length;
+#endif
+
+
+/* For automatical extraction of messages sometimes no real
+   translation is needed.  Instead the string itself is the result.  */
+#define gettext_noop(Str) (Str)
+
+/* Look up MSGID in the current default message catalog for the current
+   LC_MESSAGES locale.  If not found, returns MSGID itself (the default
+   text).  */
+extern char *gettext PARAMS ((const char *__msgid));
+extern char *gettext__ PARAMS ((const char *__msgid));
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current
+   LC_MESSAGES locale.  */
+extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid));
+extern char *dgettext__ PARAMS ((const char *__domainname,
+                                 const char *__msgid));
+
+/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
+   locale.  */
+extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid,
+                                int __category));
+extern char *dcgettext__ PARAMS ((const char *__domainname,
+                                  const char *__msgid, int __category));
+
+
+/* Set the current default message catalog to DOMAINNAME.
+   If DOMAINNAME is null, return the current default.
+   If DOMAINNAME is &quot;&quot;, reset to the default of &quot;messages&quot;.  */
+extern char *textdomain PARAMS ((const char *__domainname));
+extern char *textdomain__ PARAMS ((const char *__domainname));
+
+/* Specify that the DOMAINNAME message catalog will be found
+   in DIRNAME rather than in the system locale data base.  */
+extern char *bindtextdomain PARAMS ((const char *__domainname,
+                                  const char *__dirname));
+extern char *bindtextdomain__ PARAMS ((const char *__domainname,
+                                    const char *__dirname));
+
+#if ENABLE_NLS
+
+/* Solaris 2.3 has the gettext function but dcgettext is missing.
+   So we omit this optimization for Solaris 2.3.  BTW, Solaris 2.4
+   has dcgettext.  */
+# if !HAVE_CATGETS &amp;&amp; (!HAVE_GETTEXT || HAVE_DCGETTEXT)
+
+#  define gettext(Msgid)                                                      \
+     dgettext (NULL, Msgid)
+
+#  define dgettext(Domainname, Msgid)                                              \
+     dcgettext (Domainname, Msgid, LC_MESSAGES)
+
+#  if defined __GNUC__ &amp;&amp; __GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 7
+/* This global variable is defined in loadmsgcat.c.  We need a sign,
+   whether a new catalog was loaded, which can be associated with all
+   translations.  */
+extern int _nl_msg_cat_cntr;
+
+#   define dcgettext(Domainname, Msgid, Category)                              \
+  (__extension__                                                              \
+   ({                                                                              \
+     char *__result;                                                              \
+     if (__builtin_constant_p (Msgid))                                              \
+       {                                                                      \
+         static char *__translation__;                                              \
+         static int __catalog_counter__;                                      \
+         if (! __translation__ || __catalog_counter__ != _nl_msg_cat_cntr)    \
+           {                                                                      \
+             __translation__ =                                                      \
+               dcgettext__ (Domainname, Msgid, Category);                      \
+             __catalog_counter__ = _nl_msg_cat_cntr;                              \
+           }                                                                      \
+         __result = __translation__;                                              \
+       }                                                                      \
+     else                                                                      \
+       __result = dcgettext__ (Domainname, Msgid, Category);                      \
+     __result;                                                                      \
+    }))
+#  endif
+# endif
+
+#else
+
+# define gettext(Msgid) (Msgid)
+# define dgettext(Domainname, Msgid) (Msgid)
+# define dcgettext(Domainname, Msgid, Category) (Msgid)
+# define textdomain(Domainname) ((char *) Domainname)
+# define bindtextdomain(Domainname, Dirname) ((char *) Dirname)
+
+#endif
+
+/* @@ begin of epilog @@ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllinuxmsgsed"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/linux-msg.sed (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/linux-msg.sed                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/linux-msg.sed        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+# po2msg.sed - Convert Uniforum style .po file to Linux style .msg file
+# Copyright (C) 1995 Free Software Foundation, Inc.
+# Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+#
+# The first directive in the .msg should be the definition of the
+# message set number.  We use always set number 1.
+#
+1 {
+  i\
+$set 1 # Automatically created by po2msg.sed
+  h
+  s/.*/0/
+  x
+}
+#
+# Mitch's old catalog format does not allow comments.
+#
+# We copy the original message as a comment into the .msg file.
+#
+/^msgid/ {
+  s/msgid[         ]*&quot;//
+#
+# This does not work now with the new format.
+# /&quot;$/! {
+#   s/\\$//
+#   s/$/ ... (more lines following)&quot;/
+# }
+  x
+# The following nice solution is by
+# Bruno &lt;Haible@ma2s2.mathematik.uni-karlsruhe.de&gt;
+  td
+# Increment a decimal number in pattern space.
+# First hide trailing `9' digits.
+  :d
+  s/9\(_*\)$/_\1/
+  td
+# Assure at least one digit is available.
+  s/^\(_*\)$/0\1/
+# Increment the last digit.
+  s/8\(_*\)$/9\1/
+  s/7\(_*\)$/8\1/
+  s/6\(_*\)$/7\1/
+  s/5\(_*\)$/6\1/
+  s/4\(_*\)$/5\1/
+  s/3\(_*\)$/4\1/
+  s/2\(_*\)$/3\1/
+  s/1\(_*\)$/2\1/
+  s/0\(_*\)$/1\1/
+# Convert the hidden `9' digits to `0's.
+  s/_/0/g
+  x
+  G
+  s/\(.*\)&quot;\n\([0-9]*\)/$ #\2 Original Message:(\1)/p
+}
+#
+# The .msg file contains, other then the .po file, only the translations
+# but each given a unique ID.  Starting from 1 and incrementing by 1 for
+# each message we assign them to the messages.
+# It is important that the .po file used to generate the cat-id-tbl.c file
+# (with po-to-tbl) is the same as the one used here.  (At least the order
+# of declarations must not be changed.)
+#
+/^msgstr/ {
+  s/msgstr[         ]*&quot;\(.*\)&quot;/# \1/
+# Clear substitution flag.
+  tb
+# Append the next line.
+  :b
+  N
+# Look whether second part is continuation line.
+  s/\(.*\n\)&quot;\(.*\)&quot;/\1\2/
+# Yes, then branch.
+  ta
+  P
+  D
+# Note that D includes a jump to the start!!
+# We found a continuation line.  But before printing insert '\'.
+  :a
+  s/\(.*\)\(\n.*\)/\1\\\2/
+  P
+# We cannot use D here.
+  s/.*\n\(.*\)/\1/
+  tb
+}
+d
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlloadinfoh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadinfo.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadinfo.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadinfo.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,76 @@
</span><ins>+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1996.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifndef PARAMS
+# if __STDC__
+#  define PARAMS(args) args
+# else
+#  define PARAMS(args) ()
+# endif
+#endif
+
+/* Encoding of locale name parts.  */
+#define CEN_REVISION                1
+#define CEN_SPONSOR                2
+#define CEN_SPECIAL                4
+#define XPG_NORM_CODESET        8
+#define XPG_CODESET                16
+#define TERRITORY                32
+#define CEN_AUDIENCE                64
+#define XPG_MODIFIER                128
+
+#define CEN_SPECIFIC        (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
+#define XPG_SPECIFIC        (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
+
+
+struct loaded_l10nfile
+{
+  const char *filename;
+  int decided;
+
+  const void *data;
+
+  struct loaded_l10nfile *next;
+  struct loaded_l10nfile *successor[1];
+};
+
+
+extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset,
+                                                  size_t name_len));
+
+extern struct loaded_l10nfile *
+_nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
+                            const char *dirlist, size_t dirlist_len, int mask,
+                            const char *language, const char *territory,
+                            const char *codeset,
+                            const char *normalized_codeset,
+                            const char *modifier, const char *special,
+                            const char *sponsor, const char *revision,
+                            const char *filename, int do_allocate));
+
+
+extern const char *_nl_expand_alias PARAMS ((const char *name));
+
+extern int _nl_explode_name PARAMS ((char *name, const char **language,
+                                     const char **modifier,
+                                     const char **territory,
+                                     const char **codeset,
+                                     const char **normalized_codeset,
+                                     const char **special,
+                                     const char **sponsor,
+                                     const char **revision));
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlloadmsgcatc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadmsgcat.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadmsgcat.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/loadmsgcat.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,222 @@
</span><ins>+/* Load needed message catalogs.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &lt;fcntl.h&gt;
+#include &lt;sys/types.h&gt;
+#include &lt;sys/stat.h&gt;
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#endif
+
+#if defined HAVE_UNISTD_H || defined _LIBC
+# include &lt;unistd.h&gt;
+#endif
+
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP) || defined _LIBC
+# include &lt;sys/mman.h&gt;
+#endif
+
+#include &quot;gettext.h&quot;
+#include &quot;gettextP.h&quot;
+
+/* @@ end of prolog @@ */
+
+#ifdef _LIBC
+/* Rename the non ISO C functions.  This is required by the standard
+   because some ISO C functions will require linking with this object
+   file and the name space must not be polluted.  */
+# define open   __open
+# define close  __close
+# define read   __read
+# define mmap   __mmap
+# define munmap __munmap
+#endif
+
+/* We need a sign, whether a new catalog was loaded, which can be associated
+   with all translations.  This is important if the translations are
+   cached by one of GCC's features.  */
+int _nl_msg_cat_cntr = 0;
+
+
+/* Load the message catalogs specified by FILENAME.  If it is no valid
+   message catalog do nothing.  */
+void
+internal_function
+_nl_load_domain (domain_file)
+     struct loaded_l10nfile *domain_file;
+{
+  int fd;
+  size_t size;
+  struct stat st;
+  struct mo_file_header *data = (struct mo_file_header *) -1;
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP &amp;&amp; !defined DISALLOW_MMAP) \
+    || defined _LIBC
+  int use_mmap = 0;
+#endif
+  struct loaded_domain *domain;
+
+  domain_file-&gt;decided = 1;
+  domain_file-&gt;data = NULL;
+
+  /* If the record does not represent a valid locale the FILENAME
+     might be NULL.  This can happen when according to the given
+     specification the locale file name is different for XPG and CEN
+     syntax.  */
+  if (domain_file-&gt;filename == NULL)
+    return;
+
+  /* Try to open the addressed file.  */
+  fd = open (domain_file-&gt;filename, O_RDONLY);
+  if (fd == -1)
+    return;
+
+  /* We must know about the size of the file.  */
+  if (fstat (fd, &amp;st) != 0
+      || (size = (size_t) st.st_size) != st.st_size
+      || size &lt; sizeof (struct mo_file_header))
+    {
+      /* Something went wrong.  */
+      close (fd);
+      return;
+    }
+
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP &amp;&amp; !defined DISALLOW_MMAP) \
+    || defined _LIBC
+  /* Now we are ready to load the file.  If mmap() is available we try
+     this first.  If not available or it failed we try to load it.  */
+  data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
+                                         MAP_PRIVATE, fd, 0);
+
+  if (data != (struct mo_file_header *) -1)
+    {
+      /* mmap() call was successful.  */
+      close (fd);
+      use_mmap = 1;
+    }
+#endif
+
+  /* If the data is not yet available (i.e. mmap'ed) we try to load
+     it manually.  */
+  if (data == (struct mo_file_header *) -1)
+    {
+      size_t to_read;
+      char *read_ptr;
+
+      data = (struct mo_file_header *) malloc (size);
+      if (data == NULL)
+        return;
+
+      to_read = size;
+      read_ptr = (char *) data;
+      do
+        {
+          long int nb = (long int) read (fd, read_ptr, to_read);
+          if (nb == -1)
+            {
+              close (fd);
+              return;
+            }
+
+          read_ptr += nb;
+          to_read -= nb;
+        }
+      while (to_read &gt; 0);
+
+      close (fd);
+    }
+
+  /* Using the magic number we can test whether it really is a message
+     catalog file.  */
+  if (data-&gt;magic != _MAGIC &amp;&amp; data-&gt;magic != _MAGIC_SWAPPED)
+    {
+      /* The magic number is wrong: not a message catalog file.  */
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP &amp;&amp; !defined DISALLOW_MMAP) \
+    || defined _LIBC
+      if (use_mmap)
+        munmap ((caddr_t) data, size);
+      else
+#endif
+        free (data);
+      return;
+    }
+
+  domain_file-&gt;data
+    = (struct loaded_domain *) malloc (sizeof (struct loaded_domain));
+  if (domain_file-&gt;data == NULL)
+    return;
+
+  domain = (struct loaded_domain *) domain_file-&gt;data;
+  domain-&gt;data = (char *) data;
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP &amp;&amp; !defined DISALLOW_MMAP) \
+    || defined _LIBC
+  domain-&gt;use_mmap = use_mmap;
+#endif
+  domain-&gt;mmap_size = size;
+  domain-&gt;must_swap = data-&gt;magic != _MAGIC;
+
+  /* Fill in the information about the available tables.  */
+  switch (W (domain-&gt;must_swap, data-&gt;revision))
+    {
+    case 0:
+      domain-&gt;nstrings = W (domain-&gt;must_swap, data-&gt;nstrings);
+      domain-&gt;orig_tab = (struct string_desc *)
+        ((char *) data + W (domain-&gt;must_swap, data-&gt;orig_tab_offset));
+      domain-&gt;trans_tab = (struct string_desc *)
+        ((char *) data + W (domain-&gt;must_swap, data-&gt;trans_tab_offset));
+      domain-&gt;hash_size = W (domain-&gt;must_swap, data-&gt;hash_tab_size);
+      domain-&gt;hash_tab = (nls_uint32 *)
+        ((char *) data + W (domain-&gt;must_swap, data-&gt;hash_tab_offset));
+      break;
+    default:
+      /* This is an illegal revision.  */
+#if (defined HAVE_MMAP &amp;&amp; defined HAVE_MUNMAP &amp;&amp; !defined DISALLOW_MMAP) \
+    || defined _LIBC
+      if (use_mmap)
+        munmap ((caddr_t) data, size);
+      else
+#endif
+        free (data);
+      free (domain);
+      domain_file-&gt;data = NULL;
+      return;
+    }
+
+  /* Show that one domain is changed.  This might make some cached
+     translations invalid.  */
+  ++_nl_msg_cat_cntr;
+}
+
+
+#ifdef _LIBC
+void
+internal_function
+_nl_unload_domain (domain)
+     struct loaded_domain *domain;
+{
+  if (domain-&gt;use_mmap)
+    munmap ((caddr_t) domain-&gt;data, domain-&gt;mmap_size);
+  else
+    free ((void *) domain-&gt;data);
+
+  free (domain);
+}
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intllocalealiasc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/localealias.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/localealias.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/localealias.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,424 @@
</span><ins>+/* Handle aliases for locale names.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Written by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#include &lt;ctype.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;sys/types.h&gt;
+
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+# define HAVE_ALLOCA 1
+#else
+# if defined HAVE_ALLOCA_H || defined _LIBC
+#  include &lt;alloca.h&gt;
+# else
+#  ifdef _AIX
+ #pragma alloca
+#  else
+#   ifndef alloca
+char *alloca ();
+#   endif
+#  endif
+# endif
+#endif
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#else
+char *getenv ();
+# ifdef HAVE_MALLOC_H
+#  include &lt;malloc.h&gt;
+# else
+void free ();
+# endif
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# ifndef _GNU_SOURCE
+#  define _GNU_SOURCE        1
+# endif
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+# ifndef memcpy
+#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
+# endif
+#endif
+#if !HAVE_STRCHR &amp;&amp; !defined _LIBC
+# ifndef strchr
+#  define strchr index
+# endif
+#endif
+
+#include &quot;gettext.h&quot;
+#include &quot;gettextP.h&quot;
+
+/* @@ end of prolog @@ */
+
+#ifdef _LIBC
+/* Rename the non ANSI C functions.  This is required by the standard
+   because some ANSI C functions will require linking with this object
+   file and the name space must not be polluted.  */
+# define strcasecmp __strcasecmp
+
+# define mempcpy __mempcpy
+# define HAVE_MEMPCPY        1
+
+/* We need locking here since we can be called from different places.  */
+# include &lt;bits/libc-lock.h&gt;
+
+__libc_lock_define_initialized (static, lock);
+#endif
+
+
+/* For those loosing systems which don't have `alloca' we have to add
+   some additional code emulating it.  */
+#ifdef HAVE_ALLOCA
+/* Nothing has to be done.  */
+# define ADD_BLOCK(list, address) /* nothing */
+# define FREE_BLOCKS(list) /* nothing */
+#else
+struct block_list
+{
+  void *address;
+  struct block_list *next;
+};
+# define ADD_BLOCK(list, addr)                                                      \
+  do {                                                                              \
+    struct block_list *newp = (struct block_list *) malloc (sizeof (*newp));  \
+    /* If we cannot get a free block we cannot add the new element to              \
+       the list.  */                                                              \
+    if (newp != NULL) {                                                              \
+      newp-&gt;address = (addr);                                                      \
+      newp-&gt;next = (list);                                                      \
+      (list) = newp;                                                              \
+    }                                                                              \
+  } while (0)
+# define FREE_BLOCKS(list)                                                      \
+  do {                                                                              \
+    while (list != NULL) {                                                      \
+      struct block_list *old = list;                                              \
+      list = list-&gt;next;                                                      \
+      free (old);                                                              \
+    }                                                                              \
+  } while (0)
+# undef alloca
+# define alloca(size) (malloc (size))
+#endif        /* have alloca */
+
+
+struct alias_map
+{
+  const char *alias;
+  const char *value;
+};
+
+
+static char *string_space = NULL;
+static size_t string_space_act = 0;
+static size_t string_space_max = 0;
+static struct alias_map *map;
+static size_t nmap = 0;
+static size_t maxmap = 0;
+
+
+/* Prototypes for local functions.  */
+static size_t read_alias_file PARAMS ((const char *fname, int fname_len))
+     internal_function;
+static void extend_alias_table PARAMS ((void));
+static int alias_compare PARAMS ((const struct alias_map *map1,
+                                  const struct alias_map *map2));
+
+
+const char *
+_nl_expand_alias (name)
+    const char *name;
+{
+  static const char *locale_alias_path = LOCALE_ALIAS_PATH;
+  struct alias_map *retval;
+  const char *result = NULL;
+  size_t added;
+
+#ifdef _LIBC
+  __libc_lock_lock (lock);
+#endif
+
+  do
+    {
+      struct alias_map item;
+
+      item.alias = name;
+
+      if (nmap &gt; 0)
+        retval = (struct alias_map *) bsearch (&amp;item, map, nmap,
+                                               sizeof (struct alias_map),
+                                               (int (*) PARAMS ((const void *,
+                                                                 const void *))
+                                                ) alias_compare);
+      else
+        retval = NULL;
+
+      /* We really found an alias.  Return the value.  */
+      if (retval != NULL)
+        {
+          result = retval-&gt;value;
+          break;
+        }
+
+      /* Perhaps we can find another alias file.  */
+      added = 0;
+      while (added == 0 &amp;&amp; locale_alias_path[0] != '\0')
+        {
+          const char *start;
+
+          while (locale_alias_path[0] == ':')
+            ++locale_alias_path;
+          start = locale_alias_path;
+
+          while (locale_alias_path[0] != '\0' &amp;&amp; locale_alias_path[0] != ':')
+            ++locale_alias_path;
+
+          if (start &lt; locale_alias_path)
+            added = read_alias_file (start, locale_alias_path - start);
+        }
+    }
+  while (added != 0);
+
+#ifdef _LIBC
+  __libc_lock_unlock (lock);
+#endif
+
+  return result;
+}
+
+
+static size_t
+internal_function
+read_alias_file (fname, fname_len)
+     const char *fname;
+     int fname_len;
+{
+#ifndef HAVE_ALLOCA
+  struct block_list *block_list = NULL;
+#endif
+  FILE *fp;
+  char *full_fname;
+  size_t added;
+  static const char aliasfile[] = &quot;/locale.alias&quot;;
+
+  full_fname = (char *) alloca (fname_len + sizeof aliasfile);
+  ADD_BLOCK (block_list, full_fname);
+#ifdef HAVE_MEMPCPY
+  mempcpy (mempcpy (full_fname, fname, fname_len),
+           aliasfile, sizeof aliasfile);
+#else
+  memcpy (full_fname, fname, fname_len);
+  memcpy (&amp;full_fname[fname_len], aliasfile, sizeof aliasfile);
+#endif
+
+  fp = fopen (full_fname, &quot;r&quot;);
+  if (fp == NULL)
+    {
+      FREE_BLOCKS (block_list);
+      return 0;
+    }
+
+  added = 0;
+  while (!feof (fp))
+    {
+      /* It is a reasonable approach to use a fix buffer here because
+         a) we are only interested in the first two fields
+         b) these fields must be usable as file names and so must not
+            be that long
+       */
+      unsigned char buf[BUFSIZ];
+      unsigned char *alias;
+      unsigned char *value;
+      unsigned char *cp;
+
+      if (fgets (buf, sizeof buf, fp) == NULL)
+        /* EOF reached.  */
+        break;
+
+      /* Possibly not the whole line fits into the buffer.  Ignore
+         the rest of the line.  */
+      if (strchr (buf, '\n') == NULL)
+        {
+          char altbuf[BUFSIZ];
+          do
+            if (fgets (altbuf, sizeof altbuf, fp) == NULL)
+              /* Make sure the inner loop will be left.  The outer loop
+                 will exit at the `feof' test.  */
+              break;
+          while (strchr (altbuf, '\n') == NULL);
+        }
+
+      cp = buf;
+      /* Ignore leading white space.  */
+      while (isspace (cp[0]))
+        ++cp;
+
+      /* A leading '#' signals a comment line.  */
+      if (cp[0] != '\0' &amp;&amp; cp[0] != '#')
+        {
+          alias = cp++;
+          while (cp[0] != '\0' &amp;&amp; !isspace (cp[0]))
+            ++cp;
+          /* Terminate alias name.  */
+          if (cp[0] != '\0')
+            *cp++ = '\0';
+
+          /* Now look for the beginning of the value.  */
+          while (isspace (cp[0]))
+            ++cp;
+
+          if (cp[0] != '\0')
+            {
+              size_t alias_len;
+              size_t value_len;
+
+              value = cp++;
+              while (cp[0] != '\0' &amp;&amp; !isspace (cp[0]))
+                ++cp;
+              /* Terminate value.  */
+              if (cp[0] == '\n')
+                {
+                  /* This has to be done to make the following test
+                     for the end of line possible.  We are looking for
+                     the terminating '\n' which do not overwrite here.  */
+                  *cp++ = '\0';
+                  *cp = '\n';
+                }
+              else if (cp[0] != '\0')
+                *cp++ = '\0';
+
+              if (nmap &gt;= maxmap)
+                extend_alias_table ();
+
+              alias_len = strlen (alias) + 1;
+              value_len = strlen (value) + 1;
+
+              if (string_space_act + alias_len + value_len &gt; string_space_max)
+                {
+                  /* Increase size of memory pool.  */
+                  size_t new_size = (string_space_max
+                                     + (alias_len + value_len &gt; 1024
+                                        ? alias_len + value_len : 1024));
+                  char *new_pool = (char *) realloc (string_space, new_size);
+                  if (new_pool == NULL)
+                    {
+                      FREE_BLOCKS (block_list);
+                      return added;
+                    }
+                  string_space = new_pool;
+                  string_space_max = new_size;
+                }
+
+              map[nmap].alias = memcpy (&amp;string_space[string_space_act],
+                                        alias, alias_len);
+              string_space_act += alias_len;
+
+              map[nmap].value = memcpy (&amp;string_space[string_space_act],
+                                        value, value_len);
+              string_space_act += value_len;
+
+              ++nmap;
+              ++added;
+            }
+        }
+    }
+
+  /* Should we test for ferror()?  I think we have to silently ignore
+     errors.  --drepper  */
+  fclose (fp);
+
+  if (added &gt; 0)
+    qsort (map, nmap, sizeof (struct alias_map),
+           (int (*) PARAMS ((const void *, const void *))) alias_compare);
+
+  FREE_BLOCKS (block_list);
+  return added;
+}
+
+
+static void
+extend_alias_table ()
+{
+  size_t new_size;
+  struct alias_map *new_map;
+
+  new_size = maxmap == 0 ? 100 : 2 * maxmap;
+  new_map = (struct alias_map *) realloc (map, (new_size
+                                                * sizeof (struct alias_map)));
+  if (new_map == NULL)
+    /* Simply don't extend: we don't have any more core.  */
+    return;
+
+  map = new_map;
+  maxmap = new_size;
+}
+
+
+#ifdef _LIBC
+static void __attribute__ ((unused))
+free_mem (void)
+{
+  if (string_space != NULL)
+    free (string_space);
+  if (map != NULL)
+    free (map);
+}
+text_set_element (__libc_subfreeres, free_mem);
+#endif
+
+
+static int
+alias_compare (map1, map2)
+     const struct alias_map *map1;
+     const struct alias_map *map2;
+{
+#if defined _LIBC || defined HAVE_STRCASECMP
+  return strcasecmp (map1-&gt;alias, map2-&gt;alias);
+#else
+  const unsigned char *p1 = (const unsigned char *) map1-&gt;alias;
+  const unsigned char *p2 = (const unsigned char *) map2-&gt;alias;
+  unsigned char c1, c2;
+
+  if (p1 == p2)
+    return 0;
+
+  do
+    {
+      /* I know this seems to be odd but the tolower() function in
+         some systems libc cannot handle nonalpha characters.  */
+      c1 = isupper (*p1) ? tolower (*p1) : *p1;
+      c2 = isupper (*p2) ? tolower (*p2) : *p2;
+      if (c1 == '\0')
+        break;
+      ++p1;
+      ++p2;
+    }
+  while (c1 == c2);
+
+  return c1 - c2;
+#endif
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlpo2tblsedin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/po2tbl.sed.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/po2tbl.sed.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/po2tbl.sed.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,102 @@
</span><ins>+# po2tbl.sed - Convert Uniforum style .po file to lookup table for catgets
+# Copyright (C) 1995 Free Software Foundation, Inc.
+# Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+1 {
+  i\
+/* Automatically generated by po2tbl.sed from @PACKAGE NAME@.pot.  */\
+\
+#if HAVE_CONFIG_H\
+# include &lt;config.h&gt;\
+#endif\
+\
+#include &quot;libgettext.h&quot;\
+\
+const struct _msg_ent _msg_tbl[] = {
+  h
+  s/.*/0/
+  x
+}
+#
+# Write msgid entries in C array form.
+#
+/^msgid/ {
+  s/msgid[         ]*\(&quot;.*&quot;\)/  {\1/
+  tb
+# Append the next line
+  :b
+  N
+# Look whether second part is continuation line.
+  s/\(.*\)&quot;\(\n\)&quot;\(.*&quot;\)/\1\2\3/
+# Yes, then branch.
+  ta
+# Because we assume that the input file correctly formed the line
+# just read cannot be again be a msgid line.  So it's safe to ignore
+# it.
+  s/\(.*\)\n.*/\1/
+  bc
+# We found a continuation line.  But before printing insert '\'.
+  :a
+  s/\(.*\)\(\n.*\)/\1\\\2/
+  P
+# We cannot use D here.
+  s/.*\n\(.*\)/\1/
+# Some buggy seds do not clear the `successful substitution since last ``t'''
+# flag on `N', so we do a `t' here to clear it.
+  tb
+# Not reached
+  :c
+  x
+# The following nice solution is by
+# Bruno &lt;Haible@ma2s2.mathematik.uni-karlsruhe.de&gt;
+  td
+# Increment a decimal number in pattern space.
+# First hide trailing `9' digits.
+  :d
+  s/9\(_*\)$/_\1/
+  td
+# Assure at least one digit is available.
+  s/^\(_*\)$/0\1/
+# Increment the last digit.
+  s/8\(_*\)$/9\1/
+  s/7\(_*\)$/8\1/
+  s/6\(_*\)$/7\1/
+  s/5\(_*\)$/6\1/
+  s/4\(_*\)$/5\1/
+  s/3\(_*\)$/4\1/
+  s/2\(_*\)$/3\1/
+  s/1\(_*\)$/2\1/
+  s/0\(_*\)$/1\1/
+# Convert the hidden `9' digits to `0's.
+  s/_/0/g
+  x
+  G
+  s/\(.*\)\n\([0-9]*\)/\1, \2},/
+  s/\(.*\)&quot;$/\1/
+  p
+}
+#
+# Last line.
+#
+$ {
+  i\
+};\
+
+  g
+  s/0*\(.*\)/int _msg_tbl_length = \1;/p
+}
+d
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intltextdomainc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/textdomain.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/textdomain.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/textdomain.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,108 @@
</span><ins>+/* Implementation of the textdomain(3) function.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Written by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifdef HAVE_CONFIG_H
+# include &lt;gsm_config.h&gt;
+#endif
+
+#if defined STDC_HEADERS || defined _LIBC
+# include &lt;stdlib.h&gt;
+#endif
+
+#if defined STDC_HEADERS || defined HAVE_STRING_H || defined _LIBC
+# include &lt;string.h&gt;
+#else
+# include &lt;strings.h&gt;
+# ifndef memcpy
+#  define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
+# endif
+#endif
+
+#ifdef _LIBC
+# include &lt;libintl.h&gt;
+#else
+# include &quot;libgettext.h&quot;
+#endif
+
+/* @@ end of prolog @@ */
+
+/* Name of the default text domain.  */
+extern const char _nl_default_default_domain[];
+
+/* Default text domain in which entries for gettext(3) are to be found.  */
+extern const char *_nl_current_default_domain;
+
+
+/* Names for the libintl functions are a problem.  They must not clash
+   with existing names and they should follow ANSI C.  But this source
+   code is also used in GNU C Library where the names have a __
+   prefix.  So we have to make a difference here.  */
+#ifdef _LIBC
+# define TEXTDOMAIN __textdomain
+# ifndef strdup
+#  define strdup(str) __strdup (str)
+# endif
+#else
+# define TEXTDOMAIN textdomain__
+#endif
+
+/* Set the current default message catalog to DOMAINNAME.
+   If DOMAINNAME is null, return the current default.
+   If DOMAINNAME is &quot;&quot;, reset to the default of &quot;messages&quot;.  */
+char *
+TEXTDOMAIN (domainname)
+     const char *domainname;
+{
+  char *old;
+
+  /* A NULL pointer requests the current setting.  */
+  if (domainname == NULL)
+    return (char *) _nl_current_default_domain;
+
+  old = (char *) _nl_current_default_domain;
+
+  /* If domain name is the null string set to default domain &quot;messages&quot;.  */
+  if (domainname[0] == '\0'
+      || strcmp (domainname, _nl_default_default_domain) == 0)
+    _nl_current_default_domain = _nl_default_default_domain;
+  else
+    {
+      /* If the following malloc fails `_nl_current_default_domain'
+         will be NULL.  This value will be returned and so signals we
+         are out of core.  */
+#if defined _LIBC || defined HAVE_STRDUP
+      _nl_current_default_domain = strdup (domainname);
+#else
+      size_t len = strlen (domainname) + 1;
+      char *cp = (char *) malloc (len);
+      if (cp != NULL)
+        memcpy (cp, domainname, len);
+      _nl_current_default_domain = cp;
+#endif
+    }
+
+  if (old != _nl_default_default_domain)
+    free (old);
+
+  return (char *) _nl_current_default_domain;
+}
+
+#ifdef _LIBC
+/* Alias for function name in GNU C Library.  */
+weak_alias (__textdomain, textdomain);
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1intlxopenmsgsed"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/xopen-msg.sed (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/xopen-msg.sed                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/intl/xopen-msg.sed        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,104 @@
</span><ins>+# po2msg.sed - Convert Uniforum style .po file to X/Open style .msg file
+# Copyright (C) 1995 Free Software Foundation, Inc.
+# Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;, 1995.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+#
+# The first directive in the .msg should be the definition of the
+# message set number.  We use always set number 1.
+#
+1 {
+  i\
+$set 1 # Automatically created by po2msg.sed
+  h
+  s/.*/0/
+  x
+}
+#
+# We copy all comments into the .msg file.  Perhaps they can help.
+#
+/^#/ s/^#[         ]*/$ /p
+#
+# We copy the original message as a comment into the .msg file.
+#
+/^msgid/ {
+# Does not work now
+#  /&quot;$/! {
+#    s/\\$//
+#    s/$/ ... (more lines following)&quot;/
+#  }
+  s/^msgid[         ]*&quot;\(.*\)&quot;$/$ Original Message: \1/
+  p
+}
+#
+# The .msg file contains, other then the .po file, only the translations
+# but each given a unique ID.  Starting from 1 and incrementing by 1 for
+# each message we assign them to the messages.
+# It is important that the .po file used to generate the cat-id-tbl.c file
+# (with po-to-tbl) is the same as the one used here.  (At least the order
+# of declarations must not be changed.)
+#
+/^msgstr/ {
+  s/msgstr[         ]*&quot;\(.*\)&quot;/\1/
+  x
+# The following nice solution is by
+# Bruno &lt;Haible@ma2s2.mathematik.uni-karlsruhe.de&gt;
+  td
+# Increment a decimal number in pattern space.
+# First hide trailing `9' digits.
+  :d
+  s/9\(_*\)$/_\1/
+  td
+# Assure at least one digit is available.
+  s/^\(_*\)$/0\1/
+# Increment the last digit.
+  s/8\(_*\)$/9\1/
+  s/7\(_*\)$/8\1/
+  s/6\(_*\)$/7\1/
+  s/5\(_*\)$/6\1/
+  s/4\(_*\)$/5\1/
+  s/3\(_*\)$/4\1/
+  s/2\(_*\)$/3\1/
+  s/1\(_*\)$/2\1/
+  s/0\(_*\)$/1\1/
+# Convert the hidden `9' digits to `0's.
+  s/_/0/g
+  x
+# Bring the line in the format `&lt;number&gt; &lt;message&gt;'
+  G
+  s/^[^\n]*$/&amp; /
+  s/\(.*\)\n\([0-9]*\)/\2 \1/
+# Clear flag from last substitution.
+  tb
+# Append the next line.
+  :b
+  N
+# Look whether second part is a continuation line.
+  s/\(.*\n\)&quot;\(.*\)&quot;/\1\2/
+# Yes, then branch.
+  ta
+  P
+  D
+# Note that `D' includes a jump to the start!!
+# We found a continuation line.  But before printing insert '\'.
+  :a
+  s/\(.*\)\(\n.*\)/\1\\\2/
+  P
+# We cannot use the sed command `D' here
+  s/.*\n\(.*\)/\1/
+  tb
+}
+d
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1poMakefileinin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/Makefile.in.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/Makefile.in.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/Makefile.in.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,250 @@
</span><ins>+# Makefile for program source directory in GNU NLS utilities package.
+# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper &lt;drepper@gnu.ai.mit.edu&gt;
+#
+# This file file be copied and used freely without restrictions.  It can
+# be used in projects which are not available under the GNU Public License
+# but which still want to provide support for the GNU gettext functionality.
+# Please note that the actual code is *not* freely available.
+
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+DESTDIR =
+
+SHELL = /bin/sh
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+
+prefix = $(DESTDIR)@prefix@
+exec_prefix = @exec_prefix@
+datadir = $(prefix)/@DATADIRNAME@
+localedir = $(datadir)/locale
+gnulocaledir = $(prefix)/share/locale
+gettextsrcdir = $(prefix)/share/gettext/po
+subdir = po
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+MKINSTALLDIRS = ../scripts/mkinstalldirs
+
+CC = @CC@
+GENCAT = @GENCAT@
+GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
+MSGFMT = @MSGFMT@
+XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
+MSGMERGE = PATH=../src:$$PATH msgmerge
+
+DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+
+INCLUDES = -I.. -I$(top_srcdir)/intl
+
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+
+SOURCES = cat-id-tbl.c
+POFILES = @POFILES@
+GMOFILES = @GMOFILES@
+DISTFILES = Makefile.in.in POTFILES.in $(PACKAGE).pot \
+stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
+
+POTFILES = \
+
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+INSTOBJEXT = @INSTOBJEXT@
+
+.SUFFIXES:
+.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
+
+.c.o:
+        $(COMPILE) $&lt;
+
+.po.pox:
+        $(MAKE) $(PACKAGE).pot
+        $(MSGMERGE) $&lt; $(srcdir)/$(PACKAGE).pot -o $*.pox
+
+.po.mo:
+        $(MSGFMT) -o $@ $&lt;
+
+.po.gmo:
+        file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+          &amp;&amp; rm -f $$file &amp;&amp; $(GMSGFMT) -o $$file $&lt;
+
+.po.cat:
+        sed -f ../intl/po2msg.sed &lt; $&lt; &gt; $*.msg \
+          &amp;&amp; rm -f $@ &amp;&amp; $(GENCAT) $@ $*.msg
+
+
+all: all-@USE_NLS@
+
+all-yes: cat-id-tbl.c $(CATALOGS)
+all-no:
+
+$(srcdir)/$(PACKAGE).pot: $(POTFILES)
+        $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
+          --add-comments --keyword=_ --keyword=N_ \
+          --files-from=$(srcdir)/POTFILES.in \
+        &amp;&amp; test ! -f $(PACKAGE).po \
+           || ( rm -f $(srcdir)/$(PACKAGE).pot \
+                &amp;&amp; mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
+
+$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
+$(srcdir)/stamp-cat-id: $(PACKAGE).pot
+        rm -f cat-id-tbl.tmp
+        sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
+                | sed -e &quot;s/@PACKAGE NAME@/$(PACKAGE)/&quot; &gt; cat-id-tbl.tmp
+        if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
+          rm cat-id-tbl.tmp; \
+        else \
+          echo cat-id-tbl.c changed; \
+          rm -f $(srcdir)/cat-id-tbl.c; \
+          mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
+        fi
+        cd $(srcdir) &amp;&amp; rm -f stamp-cat-id &amp;&amp; echo timestamp &gt; stamp-cat-id
+
+
+install: install-exec install-data
+install-exec:
+install-data: install-data-@USE_NLS@
+install-data-no: all
+install-data-yes: all
+        if test -r &quot;$(MKINSTALLDIRS)&quot;; then \
+          $(MKINSTALLDIRS) $(datadir); \
+        else \
+          $(SHELL) ../scripts/mkinstalldirs $(datadir); \
+        fi
+        @catalogs='$(CATALOGS)'; \
+        for cat in $$catalogs; do \
+          cat=`basename $$cat`; \
+          case &quot;$$cat&quot; in \
+            *.gmo) destdir=$(gnulocaledir);; \
+            *)     destdir=$(localedir);; \
+          esac; \
+          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+          dir=$$destdir/$$lang/LC_MESSAGES; \
+          if test -r &quot;$(MKINSTALLDIRS)&quot;; then \
+            $(MKINSTALLDIRS) $$dir; \
+          else \
+            $(SHELL) ../scripts/mkinstalldirs $$dir; \
+          fi; \
+          if test -r $$cat; then \
+            $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
+            echo &quot;installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)&quot;; \
+          else \
+            $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
+            echo &quot;installing $(srcdir)/$$cat as&quot; \
+                 &quot;$$dir/$(PACKAGE)$(INSTOBJEXT)&quot;; \
+          fi; \
+          if test -r $$cat.m; then \
+            $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+            echo &quot;installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m&quot;; \
+          else \
+            if test -r $(srcdir)/$$cat.m ; then \
+              $(INSTALL_DATA) $(srcdir)/$$cat.m \
+                $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+              echo &quot;installing $(srcdir)/$$cat as&quot; \
+                   &quot;$$dir/$(PACKAGE)$(INSTOBJEXT).m&quot;; \
+            else \
+              true; \
+            fi; \
+          fi; \
+        done
+        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot;; then \
+          if test -r &quot;$(MKINSTALLDIRS)&quot;; then \
+            $(MKINSTALLDIRS) $(gettextsrcdir); \
+          else \
+            $(SHELL) ../scripts/mkinstalldirs $(gettextsrcdir); \
+          fi; \
+          $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+                          $(gettextsrcdir)/Makefile.in.in; \
+        else \
+          : ; \
+        fi
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall:
+        catalogs='$(CATALOGS)'; \
+        for cat in $$catalogs; do \
+          cat=`basename $$cat`; \
+          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+          rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
+          rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
+          rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
+          rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
+        done
+        rm -f $(gettextsrcdir)/po-Makefile.in.in
+
+check: all
+
+cat-id-tbl.o: ../intl/libgettext.h
+
+dvi info tags TAGS ID:
+
+mostlyclean:
+        rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
+        rm -fr *.o
+
+clean: mostlyclean
+
+distclean: clean
+        rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
+
+maintainer-clean: distclean
+        @echo &quot;This command is intended for maintainers to use;&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+        rm -f $(GMOFILES)
+
+distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+dist distdir: update-po $(DISTFILES)
+        dists=&quot;$(DISTFILES)&quot;; \
+        for file in $$dists; do \
+          ln $(srcdir)/$$file $(distdir) 2&gt; /dev/null \
+            || cp -p $(srcdir)/$$file $(distdir) || echo ignore; \
+        done
+
+update-po: Makefile
+        $(MAKE) $(PACKAGE).pot
+        PATH=`pwd`/../src:$$PATH; \
+        cd $(srcdir); \
+        catalogs='$(CATALOGS)'; \
+        for cat in $$catalogs; do \
+          cat=`basename $$cat`; \
+          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+          mv $$lang.po $$lang.old.po; \
+          echo &quot;$$lang:&quot;; \
+          if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
+            rm -f $$lang.old.po; \
+          else \
+            echo &quot;msgmerge for $$cat failed!&quot;; \
+            rm -f $$lang.po; \
+            mv $$lang.old.po $$lang.po; \
+          fi; \
+        done
+
+POTFILES: POTFILES.in
+        ( if test 'x$(srcdir)' != 'x.'; then \
+            posrcprefix='$(top_srcdir)/'; \
+          else \
+            posrcprefix=&quot;../&quot;; \
+          fi; \
+          rm -f $@-t $@ \
+            &amp;&amp; (sed -e '/^#/d' -e '/^[         ]*$$/d' \
+                    -e &quot;s@.*@        $$posrcprefix&amp; \\\\@&quot; &lt; $(srcdir)/$@.in \
+                | sed -e '$$s/\\$$//') &gt; $@-t \
+            &amp;&amp; chmod a-w $@-t \
+            &amp;&amp; mv $@-t $@ )
+
+Makefile: Makefile.in.in ../config.status POTFILES
+        cd .. \
+          &amp;&amp; CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
+               $(SHELL) ./config.status
+
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1poPOTFILESin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/POTFILES.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/POTFILES.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/POTFILES.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+apps/gsmsmsd.cc
+apps/gsmsendsms.cc
+apps/gsmpb.cc
+apps/gsmctl.cc
+apps/gsmsmsstore.cc
+gsmlib/gsm_at.cc
+gsmlib/gsm_error.cc
+gsmlib/gsm_event.cc
+gsmlib/gsm_me_ta.cc
+gsmlib/gsm_nls.cc
+gsmlib/gsm_parser.cc
+gsmlib/gsm_phonebook.cc
+gsmlib/gsm_sms.cc
+gsmlib/gsm_sms_codec.cc
+gsmlib/gsm_sms_store.cc
+gsmlib/gsm_unix_serial.cc
+gsmlib/gsm_util.cc
+gsmlib/gsm_sorted_phonebook.cc
+gsmlib/gsm_sorted_sms_store.cc
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1pocatidtblc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/cat-id-tbl.c ( => )</h4>
<pre class="diff"><span>
<span class="info">
Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.gmo
</span><span class="cx">===================================================================
</span><span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1podegmo"></a>
<div class="propset"><h4>Property changes: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.gmo</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mime-type
</span><span class="cx">   + application/octet-stream
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1podepo"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.po (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.po                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/de.po        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1758 @@
</span><ins>+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    de.po
+# *
+# * Purpose: German translations
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 11.11.1999
+# *************************************************************************
+# , fuzzy
+msgid &quot;&quot;
+msgstr &quot;&quot;
+&quot;Project-Id-Version: gsmlib 1.5\n&quot;
+&quot;POT-Creation-Date: 2002-10-22 22:48+0200\n&quot;
+&quot;PO-Revision-Date: 2002-10-16 23:21+0200\n&quot;
+&quot;Last-Translator: Peter Hofmann &lt;software@pxh.de&gt;\n&quot;
+&quot;Language-Team: Peter Hofmann\n&quot;
+&quot;MIME-Version: 1.0\n&quot;
+&quot;Content-Type: text/plain; charset=ISO-8859-15\n&quot;
+&quot;Content-Transfer-Encoding: 8bit\n&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:164
+#, c-format
+msgid &quot;could not execute '%s'&quot;
+msgstr &quot;konnte '%s' nicht ausf\xFChren&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:168
+#, c-format
+msgid &quot;error writing to '%s'&quot;
+msgstr &quot;Fehler beim Schreiben zu '%s'&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:196
+#, c-format
+msgid &quot;error when calling opendir('%s')(errno: %d/%s)&quot;
+msgstr &quot;Fehler beim Aufruf von opendir('%s') (errno: %d/%s)&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:225
+#, c-format
+msgid &quot;count not open SMS spool file %s&quot;
+msgstr &quot;kann SMS Spool-Datei '%s' nicht \xF6ffnen&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:341 apps/gsmsendsms.cc:144 apps/gsmpb.cc:311
+#: apps/gsmctl.cc:380 apps/gsmsmsstore.cc:179
+#, c-format
+msgid &quot;: version %s [compiled %s]&quot;
+msgstr &quot;: Version %s [kompiliert am %s]&quot;
+
+#: apps/gsmsmsd.cc:346
+msgid &quot;&quot;
+&quot;: [-a action][-b baudrate][-C sca][-d device][-f][-h][-I init string]\n&quot;
+&quot;  [-s spool dir][-t][-v]{sms_type}&quot;
+msgstr &quot;&quot;
+&quot;: [-a Aktion][-b Baud-Rate][-C sca][-d Ger\xE4t][-f][-h][-I Init String]\n&quot;
+&quot;  [-s Spoolverzeichnis][-t][-v]{SMS-Typ}&quot;
+
+#: apps/gsmsmsd.cc:350
+msgid &quot;&quot;
+&quot;  -a, --action      the action to execute when an SMS arrives\n&quot;
+&quot;                    (SMS is send to stdin of action)&quot;
+msgstr &quot;&quot;
+&quot;  -a, --action      die auszuf\xFChrende Aktion, wenn eine SMS eintrifft\n&quot;
+&quot;                    (Kurznachricht wird zur Standardeingabe der Aktion\n&quot;
+&quot;                    geschrieben)&quot;
+
+#: apps/gsmsmsd.cc:354 apps/gsmsendsms.cc:153 apps/gsmpb.cc:322
+#: apps/gsmctl.cc:389 apps/gsmsmsstore.cc:194
+msgid &quot;  -b, --baudrate    baudrate to use for device (default: 38400)&quot;
+msgstr &quot;&quot;
+&quot;  -b, --baudrate    f\xFCr das Ger\xE4t zu verwendende Baud-Rate\n&quot;
+&quot;                    (Voreinstellung: 38400)&quot;
+
+#: apps/gsmsmsd.cc:357
+msgid &quot;  -c, --concatenate start ID for concatenated SMS messages&quot;
+msgstr &quot;  -c, --concatenate Start-ID f\xFCr verbundene SMS-Nachrichten&quot;
+
+#: apps/gsmsmsd.cc:359 apps/gsmsendsms.cc:158 apps/gsmsmsstore.cc:200
+msgid &quot;  -C, --sca         SMS service centre address&quot;
+msgstr &quot;  -C, --sca         SMS service centre address&quot;
+
+#: apps/gsmsmsd.cc:360
+msgid &quot;  -d, --device      sets the device to connect to&quot;
+msgstr &quot;  -d, --device      stellt das Ziel-Ger\xE4t ein&quot;
+
+#: apps/gsmsmsd.cc:361
+msgid &quot;  -D, --direct      enable direct routing of SMSs&quot;
+msgstr &quot;&quot;
+&quot;  -D, --direct      direkte Weiterleitung von SMSs ohne Zwischenspeicherung&quot;
+
+#: apps/gsmsmsd.cc:362
+msgid &quot;  -f, --flush       flush SMS from store&quot;
+msgstr &quot;  -f, --flush       l\xF6sche und bearbeite SMS im Speicher&quot;
+
+#: apps/gsmsmsd.cc:363 apps/gsmsendsms.cc:161 apps/gsmpb.cc:332
+#: apps/gsmctl.cc:394 apps/gsmsmsstore.cc:204
+msgid &quot;  -h, --help        prints this message&quot;
+msgstr &quot;  -h, --help        gibt diesen Hilfetext aus&quot;
+
+#: apps/gsmsmsd.cc:364 apps/gsmsendsms.cc:162 apps/gsmpb.cc:335
+#: apps/gsmctl.cc:395 apps/gsmsmsstore.cc:205
+msgid &quot;  -I, --init        device AT init sequence&quot;
+msgstr &quot;  -I, --init        AT-Initialisierungssequenz&quot;
+
+#: apps/gsmsmsd.cc:365 apps/gsmsendsms.cc:163
+msgid &quot;  -r, --requeststat request SMS status report&quot;
+msgstr &quot;  -r, --requeststat fordert SMS-Statusreport an&quot;
+
+#: apps/gsmsmsd.cc:366
+msgid &quot;  -s, --spool       spool directory for outgoing SMS&quot;
+msgstr &quot;  -s, --spool       Spool-Verzeichnis f\xFCr zu sendende SMS&quot;
+
+#: apps/gsmsmsd.cc:368
+msgid &quot;&quot;
+&quot;  -t, --store       name of SMS store to use for flush\n&quot;
+&quot;                    and/or temporary SMS storage&quot;
+msgstr &quot;&quot;
+&quot;  -t, --store       gibt den zu verwendenden SMS-Speicher an (f\xFCr flush-\n&quot;
+&quot;                    Option und/oder tempor\xE4ren SMS-Speicher)&quot;
+
+#: apps/gsmsmsd.cc:371 apps/gsmsendsms.cc:167 apps/gsmpb.cc:343
+#: apps/gsmctl.cc:399 apps/gsmsmsstore.cc:213
+msgid &quot;  -v, --version     prints version and exits&quot;
+msgstr &quot;  -v, --version     gibt Versionsnummer aus und terminiert&quot;
+
+#: apps/gsmsmsd.cc:372 apps/gsmsendsms.cc:169 apps/gsmpb.cc:346
+#: apps/gsmctl.cc:400 apps/gsmsmsstore.cc:218
+msgid &quot;  -X, --xonxoff     switch on software handshake&quot;
+msgstr &quot;  -X, --xonxoff     Software Handshake anschalten&quot;
+
+#: apps/gsmsmsd.cc:374
+msgid &quot;  sms_type may be any combination of&quot;
+msgstr &quot;  SMS-Typ kann aus den folgenden Parametern kombiniert werden:&quot;
+
+#: apps/gsmsmsd.cc:375
+msgid &quot;    sms, no_sms     controls reception of normal SMS&quot;
+msgstr &quot;    sms, no_sms     schaltet Empfang von normalen SMS an bzw. aus&quot;
+
+#: apps/gsmsmsd.cc:377
+msgid &quot;    cb, no_cb       controls reception of cell broadcast messages&quot;
+msgstr &quot;&quot;
+&quot;    cb, no_cb       schaltet Empfang von Zellen-weiten Nachrichten an bzw. &quot;
+&quot;aus&quot;
+
+#: apps/gsmsmsd.cc:379
+msgid &quot;    stat, no_stat   controls reception of status reports&quot;
+msgstr &quot;    stat, no_stat   schaltet Empfang von Status-Reports an bzw. aus&quot;
+
+#: apps/gsmsmsd.cc:381
+msgid &quot;  default is \&quot;sms cb stat\&quot;&quot;
+msgstr &quot;  Die Voreinstellung ist \&quot;sms cb stat\&quot;.&quot;
+
+#: apps/gsmsmsd.cc:382
+msgid &quot;If no action is given, the SMS is printed to stdout&quot;
+msgstr &quot;&quot;
+&quot;Wenn keine Aktion angegeben ist, wird die SMS auf der Standardausgabe\n&quot;
+&quot;angezeigt.&quot;
+
+#: apps/gsmsmsd.cc:387 apps/gsmsendsms.cc:178 apps/gsmpb.cc:354
+#: apps/gsmctl.cc:414 apps/gsmsmsstore.cc:223
+msgid &quot;unknown option&quot;
+msgstr &quot;unbekannte Option&quot;
+
+# , c-format
+#: apps/gsmsmsd.cc:426
+#, c-format
+msgid &quot;error when calling sigaction() (errno: %d/%s)&quot;
+msgstr &quot;Fehler beim Aufruf von sigaction() (errno: %d/%s)&quot;
+
+#: apps/gsmsmsd.cc:446
+msgid &quot;store name must be given for flush option&quot;
+msgstr &quot;Speichername mu\xDF angegeben werden f\xFCr flush-Option&quot;
+
+#. process the new message
+#: apps/gsmsmsd.cc:454 apps/gsmsmsd.cc:522
+msgid &quot;Type of message: &quot;
+msgstr &quot;Typ der Nachricht: &quot;
+
+#: apps/gsmsmsd.cc:458 apps/gsmsmsd.cc:526
+msgid &quot;SMS message\n&quot;
+msgstr &quot;SMS Nachricht\n&quot;
+
+#: apps/gsmsmsd.cc:461
+msgid &quot;submit report message\n&quot;
+msgstr &quot;Submit-Report-Nachricht\n&quot;
+
+#: apps/gsmsmsd.cc:464 apps/gsmsmsd.cc:532
+msgid &quot;status report message\n&quot;
+msgstr &quot;Status-Report-Nachricht\n&quot;
+
+#: apps/gsmsmsd.cc:529
+msgid &quot;cell broadcast message\n&quot;
+msgstr &quot;Zellen-weite Nachricht\n&quot;
+
+#: apps/gsmsmsd.cc:585 apps/gsmsmsd.cc:587 apps/gsmsendsms.cc:253
+#: apps/gsmpb.cc:503 apps/gsmctl.cc:631 apps/gsmsmsstore.cc:435
+msgid &quot;[ERROR]: &quot;
+msgstr &quot;[FEHLER]: &quot;
+
+#: apps/gsmsmsd.cc:588
+msgid &quot;(try setting sms_type, please refer to gsmsmsd manpage)&quot;
+msgstr &quot;&quot;
+&quot;(versuchen Sie, den sms_type zu setzen; siehe auch gsmsmsd Manual-Seite)&quot;
+
+#: apps/gsmsendsms.cc:149
+msgid &quot;&quot;
+&quot;: [-b baudrate][-c concatenatedID][-C sca][-d device][-h][-I init string]\n&quot;
+&quot;  [-t][-v][-X] phonenumber [text]&quot;
+msgstr &quot;&quot;
+&quot;: [-b Baud-Rate][-c concatenatedID][-C sca][-d Ger\xE4t][-h][-I Init String]\n&quot;
+&quot;  [-t][-v][-X]  Telefonnummer [Text]&quot;
+
+#: apps/gsmsendsms.cc:156
+msgid &quot;  -c, --concatenate ID for concatenated SMS messages&quot;
+msgstr &quot;  -c, --concatenate ID f\xFCr verbundene SMS-Nachrichten&quot;
+
+#: apps/gsmsendsms.cc:159 apps/gsmctl.cc:392
+msgid &quot;  -d, --device      sets the destination device to connect to&quot;
+msgstr &quot;  -d, --device      stellt das Ziel-Ger\xE4t ein&quot;
+
+#: apps/gsmsendsms.cc:164
+msgid &quot;&quot;
+&quot;  -t, --test        convert text to GSM alphabet and vice\n&quot;
+&quot;                    versa, no SMS message is sent&quot;
+msgstr &quot;&quot;
+&quot;  -t, --test        konvertiert den Text in das GSM-Alphabet und\n&quot;
+&quot;                    wieder zur\xFCck. Es wird keine SMS-Nachricht versendet.&quot;
+
+#: apps/gsmsendsms.cc:171
+msgid &quot;  phonenumber       recipient's phone number&quot;
+msgstr &quot;  Telefonummer      die Telefonnummer des Empf\xE4ngers&quot;
+
+#: apps/gsmsendsms.cc:172
+msgid &quot;&quot;
+&quot;  text              optional text of the SMS message\n&quot;
+&quot;                    if omitted: read from stdin&quot;
+msgstr &quot;&quot;
+&quot;  text              Text der SMS-Nachricht (optional),\n&quot;
+&quot;                    wenn nicht angegeben: lese von der Standardeingabe&quot;
+
+#: apps/gsmsendsms.cc:205
+msgid &quot;phone number and text missing&quot;
+msgstr &quot;weder Telefonnummer noch Text angegeben&quot;
+
+#: apps/gsmsendsms.cc:208 apps/gsmsmsstore.cc:261
+msgid &quot;more than two parameters given&quot;
+msgstr &quot;mehr als zwei Parameter angegeben&quot;
+
+#: apps/gsmsendsms.cc:224
+msgid &quot;text is larger than 160 characters&quot;
+msgstr &quot;der Text ist l\xE4nger als 160 Zeichen&quot;
+
+# , c-format
+#: apps/gsmpb.cc:102 apps/gsmpb.cc:491
+#, c-format
+msgid &quot;inserting '%s' tel# %s&quot;
+msgstr &quot;f\xFCge ein '%s' Tel# %s&quot;
+
+# , c-format
+#: apps/gsmpb.cc:105 apps/gsmpb.cc:230 apps/gsmpb.cc:494
+#, c-format
+msgid &quot; (index #%d)&quot;
+msgstr &quot; (Index #%d)&quot;
+
+# , c-format
+#: apps/gsmpb.cc:144
+#, c-format
+msgid &quot;updating '%s' tel# %s to new tel# %s&quot;
+msgstr &quot;\xFCberschreibe '%s' Tel# %s mit neuer Tel# %s&quot;
+
+# , c-format
+#: apps/gsmpb.cc:177
+#, c-format
+msgid &quot;updating '%s' tel# %s to new tel# %s(index %d)&quot;
+msgstr &quot;\xFCberschreibe '%s' Tel# %s mit neuer Tel# %s (Index %d)&quot;
+
+# , c-format
+#: apps/gsmpb.cc:227
+#, c-format
+msgid &quot;deleting '%s' tel# %s&quot;
+msgstr &quot;l\xF6sche '%s' Tel# %s&quot;
+
+#: apps/gsmpb.cc:316
+msgid &quot;&quot;
+&quot;: [-b baudrate][-c][-d device or file][-h][-I init string]\n&quot;
+&quot;  [-p phonebook name][-s device or file][-t charset][-v][-V][-y][-X]&quot;
+msgstr &quot;&quot;
+&quot;: [-b Baud-Rate][-c][-d Ger\xE4t oder Datei][-h][-I Init String]\n&quot;
+&quot;  [-p Telefonbuchname][-s Ger\xE4t oder Datei][-t Zeichensatz][-v][-V][-y][-X]&quot;
+
+#: apps/gsmpb.cc:325
+msgid &quot;  -c, --copy        copy source entries to destination&quot;
+msgstr &quot;  -c, --copy        kopiere Quell-Eintr\xE4ge zum Zielger\xE4t/-datei&quot;
+
+#: apps/gsmpb.cc:327
+msgid &quot;&quot;
+&quot;  -d, --destination sets the destination device to connect \n&quot;
+&quot;                    to, or the file to write&quot;
+msgstr &quot;  -d, --destination setzt das Zielger\xE4t bzw. die Zieldatei&quot;
+
+#: apps/gsmpb.cc:330
+msgid &quot;  -D, --destination-backend sets the destination backend&quot;
+msgstr &quot;  -D, --destination-backend stellt den Typ des Ziel-Backends ein&quot;
+
+#: apps/gsmpb.cc:333
+msgid &quot;  -i, --index       takes index positions into account&quot;
+msgstr &quot;  -i, --index       ber\xFCcksichtige die Indexpositionen der Eintr\xE4ge&quot;
+
+#: apps/gsmpb.cc:336
+msgid &quot;  -p, --phonebook   name of phonebook to use&quot;
+msgstr &quot;  -p, --phonebook   Name des zu verwendenden Telefonbuchs&quot;
+
+#: apps/gsmpb.cc:337 apps/gsmsmsstore.cc:210
+msgid &quot;&quot;
+&quot;  -s, --source      sets the source device to connect to,\n&quot;
+&quot;                    or the file to read&quot;
+msgstr &quot;  -s, --source      setzt das Quellger\xE4t bzw. die Quelldatei&quot;
+
+#: apps/gsmpb.cc:339
+msgid &quot;&quot;
+&quot;  -t, --charset     sets the character set to use for\n&quot;
+&quot;                    phonebook entries&quot;
+msgstr &quot;  -t, --charset     setzt den Zeichensatz f\xFCr Telefonbucheintr\xE4ge&quot;
+
+#: apps/gsmpb.cc:341
+msgid &quot;  -S, --source-backend sets the source backend&quot;
+msgstr &quot;  -S, --source-backend stellt den Typ des Ziel-Backends ein&quot;
+
+#: apps/gsmpb.cc:344 apps/gsmsmsstore.cc:214
+msgid &quot;  -V, --verbose     print detailed progress messages&quot;
+msgstr &quot;  -V, --verbose     gibt detaillierte Fortschrittsmeldungen aus&quot;
+
+#: apps/gsmpb.cc:347
+msgid &quot;&quot;
+&quot;  -y, --synchronize synchronize destination with source\n&quot;
+&quot;                    entries (destination is overwritten)\n&quot;
+&quot;                    (see gsmpb(1) for details)&quot;
+msgstr &quot;&quot;
+&quot;  -y, --synchronize synchronisiere das Zielger\xE4t/-datei mit der Quelle\n&quot;
+&quot;                    (Zieleintr\xE4ge werden eventuell \xFCberschrieben)\n&quot;
+&quot;                    (siehe gsmpb(1) f\xFCr weitere Details)&quot;
+
+#: apps/gsmpb.cc:360
+msgid &quot;both source and destination must be given&quot;
+msgstr &quot;sowohl Quellger\xE4t/-datei als auch Zielger\xE4t/-datei erforderlich&quot;
+
+#: apps/gsmpb.cc:374 apps/gsmpb.cc:416
+msgid &quot;phonebook name must be given&quot;
+msgstr &quot;ein Telefonbuchname mu\xDF angegeben werden&quot;
+
+# , c-format
+#: apps/gsmpb.cc:441
+#, c-format
+msgid &quot;&quot;
+&quot;text '%s' is too large to fit into destination (maximum size %d characters)&quot;
+msgstr &quot;&quot;
+&quot;Text '%s' ist zu gro\xDF f\xFCr das Zielger\xE4t (maximale Textl\xE4nge %d Zeichen)&quot;
+
+# , c-format
+#: apps/gsmpb.cc:447
+#, c-format
+msgid &quot;&quot;
+&quot;phone number '%s' is too large to fit into destination (maximum size %d &quot;
+&quot;characters)&quot;
+msgstr &quot;&quot;
+&quot;Telefonnummer '%s' ist zu gro\xDF f\xFCr das Zielger\xE4t (maximale L\xE4nge %d Zeichen)&quot;
+
+#: apps/gsmctl.cc:90
+msgid &quot;active &quot;
+msgstr &quot;aktiv&quot;
+
+#: apps/gsmctl.cc:90
+msgid &quot;inactive &quot;
+msgstr &quot;inaktiv&quot;
+
+#: apps/gsmctl.cc:91
+msgid &quot;number: &quot;
+msgstr &quot;Telefonnummer: &quot;
+
+#: apps/gsmctl.cc:92
+msgid &quot;  subaddr: &quot;
+msgstr &quot;  Unteradresse: &quot;
+
+#: apps/gsmctl.cc:93
+msgid &quot;  time: &quot;
+msgstr &quot;  Zeit: &quot;
+
+#: apps/gsmctl.cc:105
+msgid &quot;&lt;ME0&gt;  Manufacturer: &quot;
+msgstr &quot;&lt;ME0&gt;  Hersteller: &quot;
+
+#: apps/gsmctl.cc:106
+msgid &quot;&lt;ME1&gt;  Model: &quot;
+msgstr &quot;&lt;ME1&gt;  Modell: &quot;
+
+#: apps/gsmctl.cc:107
+msgid &quot;&lt;ME2&gt;  Revision: &quot;
+msgstr &quot;&lt;ME2&gt;  Revision: &quot;
+
+#: apps/gsmctl.cc:108
+msgid &quot;&lt;ME3&gt;  Serial Number: &quot;
+msgstr &quot;&lt;ME3&gt;  Seriennummer: &quot;
+
+#: apps/gsmctl.cc:116 apps/gsmctl.cc:118
+msgid &quot;&lt;FUN&gt;  Functionality Level: &quot;
+msgstr &quot;&lt;FUN&gt;  Funktionalit\xE4ts-Level: &quot;
+
+#: apps/gsmctl.cc:118
+msgid &quot;unsupported&quot;
+msgstr &quot;Kommando nicht unterst\xFCtzt&quot;
+
+#: apps/gsmctl.cc:128
+msgid &quot;&gt;  Status: &quot;
+msgstr &quot;&gt;  Status: &quot;
+
+#: apps/gsmctl.cc:131 gsmlib/gsm_error.cc:104 gsmlib/gsm_sms.cc:441
+#: gsmlib/gsm_sms_codec.cc:204
+msgid &quot;unknown&quot;
+msgstr &quot;unbekannt&quot;
+
+#: apps/gsmctl.cc:132
+msgid &quot;current&quot;
+msgstr &quot;aktuell&quot;
+
+#: apps/gsmctl.cc:133
+msgid &quot;available&quot;
+msgstr &quot;verf\xFCgbar&quot;
+
+#: apps/gsmctl.cc:134
+msgid &quot;forbidden&quot;
+msgstr &quot;nicht w\xE4hlbar&quot;
+
+#: apps/gsmctl.cc:136 apps/gsmctl.cc:147
+msgid &quot;  Long name: '&quot;
+msgstr &quot;  Langname: '&quot;
+
+#: apps/gsmctl.cc:137 apps/gsmctl.cc:148
+msgid &quot;  Short name: '&quot;
+msgstr &quot;  Kurzname: '&quot;
+
+#: apps/gsmctl.cc:138 apps/gsmctl.cc:149
+msgid &quot;  Numeric name: &quot;
+msgstr &quot;  Numerischer Name: &quot;
+
+#: apps/gsmctl.cc:150
+msgid &quot;  Mode: &quot;
+msgstr &quot;  Modus: &quot;
+
+#: apps/gsmctl.cc:153
+msgid &quot;automatic&quot;
+msgstr &quot;automatisch&quot;
+
+#: apps/gsmctl.cc:154
+msgid &quot;manual&quot;
+msgstr &quot;manuell&quot;
+
+#: apps/gsmctl.cc:155
+msgid &quot;deregister&quot;
+msgstr &quot;abmelden&quot;
+
+#: apps/gsmctl.cc:156
+msgid &quot;manual/automatic&quot;
+msgstr &quot;manuell/automatisch&quot;
+
+#: apps/gsmctl.cc:172 apps/gsmctl.cc:247
+msgid &quot;  Voice&quot;
+msgstr &quot;  Sprache&quot;
+
+#: apps/gsmctl.cc:176 apps/gsmctl.cc:185 apps/gsmctl.cc:194
+msgid &quot;  unknown&quot;
+msgstr &quot;  unbekannt&quot;
+
+#: apps/gsmctl.cc:181 apps/gsmctl.cc:249
+msgid &quot;  Data&quot;
+msgstr &quot;  Daten&quot;
+
+#: apps/gsmctl.cc:190 apps/gsmctl.cc:251
+msgid &quot;  Fax&quot;
+msgstr &quot;  Fax&quot;
+
+#: apps/gsmctl.cc:229
+msgid &quot;on&quot;
+msgstr &quot;an&quot;
+
+#: apps/gsmctl.cc:229
+msgid &quot;off&quot;
+msgstr &quot;aus&quot;
+
+#: apps/gsmctl.cc:239
+msgid &quot;UnconditionalReason&quot;
+msgstr &quot;\&quot;Alle Anrufe\&quot;&quot;
+
+#: apps/gsmctl.cc:240
+msgid &quot;MobileBusyReason&quot;
+msgstr &quot;\&quot;Mobiltelefon besetzt\&quot;&quot;
+
+#: apps/gsmctl.cc:241
+msgid &quot;NoReplyReason&quot;
+msgstr &quot;\&quot;Keine Antwort\&quot;&quot;
+
+#: apps/gsmctl.cc:242
+msgid &quot;NotReachableReason&quot;
+msgstr &quot;\&quot;Nicht erreichbar\&quot;&quot;
+
+#: apps/gsmctl.cc:261
+msgid &quot;0 ME is powered by the battery&quot;
+msgstr &quot;0 ME wird von der Batterie gespeist&quot;
+
+#: apps/gsmctl.cc:262
+msgid &quot;1 ME has a battery connected, but is not powered by it&quot;
+msgstr &quot;1 ME-Batterie ist vorhanden, liefert aber keinen Strom&quot;
+
+#: apps/gsmctl.cc:264
+msgid &quot;2 ME does not have a battery connected&quot;
+msgstr &quot;2 ME-Batterie nicht angeschlossen&quot;
+
+#: apps/gsmctl.cc:266
+msgid &quot;3 Recognized power fault, calls inhibited&quot;
+msgstr &quot;3 Problem mit der Energieversorgung, keine Anrufe m\xF6glich&quot;
+
+# , c-format
+#: apps/gsmctl.cc:323
+#, c-format
+msgid &quot;unknown facility class parameter '%c'&quot;
+msgstr &quot;unbekannter Dienstmerkmal-Parameter '%c'&quot;
+
+# , c-format
+#: apps/gsmctl.cc:336
+#, c-format
+msgid &quot;not enough parameters, minimum number of parameters is %d&quot;
+msgstr &quot;nicht gen\xFCgend Parameter, die Mindestanzahl der Parameter ist %d&quot;
+
+# , c-format
+#: apps/gsmctl.cc:340
+#, c-format
+msgid &quot;too many parameters, maximum number of parameters is %d&quot;
+msgstr &quot;zu viele Parameter, die Maximalanzahl der Parameter ist %d&quot;
+
+#: apps/gsmctl.cc:385
+msgid &quot;&quot;
+&quot;: [-b baudrate][-d device][-h][-I init string][-o operation]\n&quot;
+&quot;  [-v][-X]{parameters}&quot;
+msgstr &quot;&quot;
+&quot;: [-b Baud-Rate][-d Ger\xE4t][-h][-I Init String][-o Operation]\n&quot;
+&quot;  [-v][-X]{Parameter}&quot;
+
+#: apps/gsmctl.cc:396
+msgid &quot;&quot;
+&quot;  -o, --operation   operation to perform on the mobile \n&quot;
+&quot;                    phone with the specified parameters&quot;
+msgstr &quot;&quot;
+&quot;  -o, --operation   gibt die Operation an, die auf dem Mobiltelefon\n&quot;
+&quot;                    mit den angegebenen Parametern ausgef\xFChrt werden soll&quot;
+
+#: apps/gsmctl.cc:402
+msgid &quot;&quot;
+&quot;  parameters        parameters to use for the operation\n&quot;
+&quot;                    (if an operation is given) or\n&quot;
+&quot;                    a specification which kind of\n&quot;
+&quot;                    information to read from the mobile phone&quot;
+msgstr &quot;&quot;
+&quot;  Parameter         die f\xFCr die Operation zu verwendenden Parameter\n&quot;
+&quot;                    (wenn eine Operation ausgef\xFChrt werden soll) oder\n&quot;
+&quot;                    die Spezifikation der vom Mobiltelefon zu lesenden\n&quot;
+&quot;                    Informationen&quot;
+
+#: apps/gsmctl.cc:408
+msgid &quot;&quot;
+&quot;Refer to gsmctl(1) for details on the available parameters and operations.&quot;
+msgstr &quot;&quot;
+&quot;Bitte beziehen Sie sich auf die Manual-Seite gsmctl(1) f\xFCr weitere Details\n&quot;
+&quot;\xFCber die unterst\xFCtzten Parameter und Operationen.&quot;
+
+# , c-format
+#: apps/gsmctl.cc:471
+#, c-format
+msgid &quot;unknown information parameter '%s'&quot;
+msgstr &quot;unbekannter Informations-Parameter '%s'&quot;
+
+# , c-format
+#: apps/gsmctl.cc:520
+#, c-format
+msgid &quot;unknown opmode parameter '%s'&quot;
+msgstr &quot;Unbekannter (Operations-)Modus-Parameter '%s'&quot;
+
+# , c-format
+#: apps/gsmctl.cc:588
+#, c-format
+msgid &quot;unknown forward reason parameter '%s'&quot;
+msgstr &quot;unbekannter Weiterleitungsgrund-Parameter '%s'&quot;
+
+# , c-format
+#: apps/gsmctl.cc:604
+#, c-format
+msgid &quot;unknown forward mode parameter '%s'&quot;
+msgstr &quot;unbekannter Weiterleitungs-Modus-Parameter '%s'&quot;
+
+# , c-format
+#: apps/gsmctl.cc:625
+#, c-format
+msgid &quot;unknown operation '%s'&quot;
+msgstr &quot;unbekannte Operation '%s'&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:91 apps/gsmsmsstore.cc:363 apps/gsmsmsstore.cc:380
+#, c-format
+msgid &quot;inserting entry #%d from source into destination&quot;
+msgstr &quot;f\xFCge Eintrag #%d von Quellger\xE4t/-datei in Zielger\xE4t/-datei ein&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:102
+#, c-format
+msgid &quot;incompatible options '%c' and '%c'&quot;
+msgstr &quot;inkompatible Optionen '%c' und '%c'&quot;
+
+#: apps/gsmsmsstore.cc:184
+msgid &quot;&quot;
+&quot;: [-a][-b baudrate][-c][-C sca][-d device or file]\n&quot;
+&quot;  [-h][-I init string][-k][-l][-s device or file][-t SMS store name]\n&quot;
+&quot;  [-v][-V][-x][-X]{indices}|[phonenumber text]&quot;
+msgstr &quot;&quot;
+&quot;: [-a][-b Baud-Rate][-c][-C sca][-d Ger\xE4t oder Datei]\n&quot;
+&quot;  [-h][-I Init String][-k][-l][-s Ger\xE4t oder Datei][-t SMS Speichername]\n&quot;
+&quot;  [-v][-V][-x][-X]{Indices}|[Telefonnummer Text]&quot;
+
+#: apps/gsmsmsstore.cc:191
+msgid &quot;&quot;
+&quot;  -a, --add         add new SMS submit message\n&quot;
+&quot;                    (phonenumber and text) to destination&quot;
+msgstr &quot;&quot;
+&quot;  -a, --add         f\xFCge neue SMS-Submit-Nachricht (Telefonnummer und\n&quot;
+&quot;                    Text) in das Zielger\xE4t/-datei ein&quot;
+
+#: apps/gsmsmsstore.cc:197
+msgid &quot;&quot;
+&quot;  -c, --copy        copy source entries to destination\n&quot;
+&quot;                    (if indices are given, copy only these entries)&quot;
+msgstr &quot;&quot;
+&quot;  -c, --copy        kopiere Quell-Eintr\xE4ge in das Zielger\xE4t/-datei\n&quot;
+&quot;                    (wenn Indices angegeben sind, kopiere nur diese Eintr\xE4ge)&quot;
+
+#: apps/gsmsmsstore.cc:201
+msgid &quot;&quot;
+&quot;  -d, --destination sets the destination device to\n&quot;
+&quot;                    connect to, or the file to write to&quot;
+msgstr &quot;  -d, --destination setzt das Zielger\xE4t bzw. die Zieldatei&quot;
+
+#: apps/gsmsmsstore.cc:206
+msgid &quot;&quot;
+&quot;  -k, --backup      backup new entries to destination\n&quot;
+&quot;                    (if indices are given, copy only these entries)&quot;
+msgstr &quot;&quot;
+&quot;  -k, --backup      sichert alle neuen Eintr\xE4ge in die Zieldatei/-ger\xE4t\n&quot;
+&quot;                    (wenn Indices angegeben sind, sichere nur diese Eintr\xE4ge)&quot;
+
+#: apps/gsmsmsstore.cc:209
+msgid &quot;  -l, --list        list source to stdout&quot;
+msgstr &quot;&quot;
+&quot;  -l, --list        schreibe Liste der Quelleintr\xE4ge auf die Standardausgabe&quot;
+
+#: apps/gsmsmsstore.cc:212
+msgid &quot;  -t, --store       name of SMS store to use&quot;
+msgstr &quot;  -t, --store       gibt den zu verwendenden SMS-Speicher an&quot;
+
+#: apps/gsmsmsstore.cc:216
+msgid &quot;  -x, --delete      delete entries denoted by indices&quot;
+msgstr &quot;&quot;
+&quot;  -x, --delete      l\xF6sche die durch die Indices spezifizierten Eintr\xE4ge&quot;
+
+#: apps/gsmsmsstore.cc:229
+msgid &quot;no operation option given&quot;
+msgstr &quot;keine Operations-Option angegeben&quot;
+
+#: apps/gsmsmsstore.cc:232
+msgid &quot;both source and destination required&quot;
+msgstr &quot;sowohl Quellger\xE4t/-datei als auch Zielger\xE4t/-datei erforderlich&quot;
+
+#: apps/gsmsmsstore.cc:237
+msgid &quot;destination must not be given&quot;
+msgstr &quot;Zielger\xE4t/-datei darf nicht angegeben werden&quot;
+
+#: apps/gsmsmsstore.cc:239
+msgid &quot;source required&quot;
+msgstr &quot;Quellger\xE4t/-datei erforderlich&quot;
+
+#: apps/gsmsmsstore.cc:244
+msgid &quot;source must not be given&quot;
+msgstr &quot;Quellger\xE4t/-datei darf nicht angegeben werden&quot;
+
+#: apps/gsmsmsstore.cc:246
+msgid &quot;destination required&quot;
+msgstr &quot;Zielger\xE4t/-datei erforderlich&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:254 gsmlib/gsm_util.cc:285
+#, c-format
+msgid &quot;expected number, got '%s'&quot;
+msgstr &quot;Zahl erwartet, nicht '%s'&quot;
+
+#: apps/gsmsmsstore.cc:264
+msgid &quot;not enough parameters given&quot;
+msgstr &quot;nicht gen\xFCgend Parameter angegeben&quot;
+
+#: apps/gsmsmsstore.cc:269
+msgid &quot;unexpected parameters&quot;
+msgstr &quot;unerwartete Parameter&quot;
+
+#: apps/gsmsmsstore.cc:280 apps/gsmsmsstore.cc:317
+msgid &quot;store name must be given&quot;
+msgstr &quot;Speichername mu\xDF angegeben werden&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:344 apps/gsmsmsstore.cc:377
+#, c-format
+msgid &quot;no index '%s' in source&quot;
+msgstr &quot;kein Index '%s' in der Quelldatei/-ger\xE4t&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:392
+#, c-format
+msgid &quot;index #%d&quot;
+msgstr &quot;Index #%d&quot;
+
+#: apps/gsmsmsstore.cc:406
+msgid &quot;inserting new entry into destination&quot;
+msgstr &quot;f\xFCge neuen Eintrag in das Zielger\xE4t/-datei ein&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:421
+#, c-format
+msgid &quot;deleting entry #%d from destination&quot;
+msgstr &quot;l\xF6sche Eintrag #%d von Zielger\xE4t/-datei&quot;
+
+# , c-format
+#: apps/gsmsmsstore.cc:426
+#, c-format
+msgid &quot;no index '%s' in destination&quot;
+msgstr &quot;kein Index '%s' in Zielger\xE4t/-datei&quot;
+
+#: gsmlib/gsm_at.cc:66
+msgid &quot;unspecified ME/TA error&quot;
+msgstr &quot;unspezifizierter ME/TA-Fehler&quot;
+
+#: gsmlib/gsm_at.cc:76
+msgid &quot;ME/TA error '&quot;
+msgstr &quot;ME/TA-Fehler '&quot;
+
+# , c-format
+#: gsmlib/gsm_at.cc:80
+#, c-format
+msgid &quot;(code %s)&quot;
+msgstr &quot;(Code %s)&quot;
+
+#: gsmlib/gsm_at.cc:125 gsmlib/gsm_at.cc:215 gsmlib/gsm_at.cc:344
+msgid &quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;
+msgstr &quot;ME/TA-Fehler '&lt;unspezifiziert&gt;' (Code nicht bekannt)&quot;
+
+# , c-format
+#: gsmlib/gsm_at.cc:184 gsmlib/gsm_at.cc:365
+#, c-format
+msgid &quot;unexpected response '%s' when sending 'AT%s'&quot;
+msgstr &quot;unerwartete Antwort '%s' beim Senden von 'AT%s'&quot;
+
+#: gsmlib/gsm_at.cc:318
+msgid &quot;unexpected character in PDU handshake&quot;
+msgstr &quot;unerwartetes Zeichen im PDU-Handshake&quot;
+
+#: gsmlib/gsm_error.cc:29
+msgid &quot;phone failure&quot;
+msgstr &quot;Telefon-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:32
+msgid &quot;no connection to phone&quot;
+msgstr &quot;keine Verbindung zum Telefon&quot;
+
+#: gsmlib/gsm_error.cc:35
+msgid &quot;phone adaptor link reserved&quot;
+msgstr &quot;Telefonadapter-Verbindung reserviert&quot;
+
+#: gsmlib/gsm_error.cc:38 gsmlib/gsm_error.cc:259
+msgid &quot;operation not allowed&quot;
+msgstr &quot;Operation nicht erlaubt&quot;
+
+#: gsmlib/gsm_error.cc:41 gsmlib/gsm_error.cc:262
+msgid &quot;operation not supported&quot;
+msgstr &quot;Operation nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:44
+msgid &quot;ph SIM PIN required&quot;
+msgstr &quot;ph SIM PIN erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:47 gsmlib/gsm_error.cc:271
+msgid &quot;SIM not inserted&quot;
+msgstr &quot;SIM nicht eingesteckt&quot;
+
+#: gsmlib/gsm_error.cc:50 gsmlib/gsm_error.cc:274
+msgid &quot;SIM PIN required&quot;
+msgstr &quot;SIM PIN erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:53 gsmlib/gsm_error.cc:289
+msgid &quot;SIM PUK required&quot;
+msgstr &quot;SIM PUK erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:56 gsmlib/gsm_error.cc:280
+msgid &quot;SIM failure&quot;
+msgstr &quot;SIM-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:59 gsmlib/gsm_error.cc:283
+msgid &quot;SIM busy&quot;
+msgstr &quot;SIM besch\xE4ftigt&quot;
+
+#: gsmlib/gsm_error.cc:62 gsmlib/gsm_error.cc:286
+msgid &quot;SIM wrong&quot;
+msgstr &quot;falsche SIM&quot;
+
+#: gsmlib/gsm_error.cc:65
+msgid &quot;incorrect password&quot;
+msgstr &quot;falsches Pa\xDFwort&quot;
+
+#: gsmlib/gsm_error.cc:68 gsmlib/gsm_error.cc:292
+msgid &quot;SIM PIN2 required&quot;
+msgstr &quot;SIM PIN2 erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:71 gsmlib/gsm_error.cc:295
+msgid &quot;SIM PUK2 required&quot;
+msgstr &quot;SIM PUK2 erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:74 gsmlib/gsm_error.cc:304
+msgid &quot;memory full&quot;
+msgstr &quot;Speicher voll&quot;
+
+#: gsmlib/gsm_error.cc:77
+msgid &quot;invalid index&quot;
+msgstr &quot;ung\xFCltiger Index&quot;
+
+#: gsmlib/gsm_error.cc:80
+msgid &quot;not found&quot;
+msgstr &quot;nicht gefunden&quot;
+
+#: gsmlib/gsm_error.cc:83 gsmlib/gsm_error.cc:298
+msgid &quot;memory failure&quot;
+msgstr &quot;Speicher-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:86
+msgid &quot;text string too long&quot;
+msgstr &quot;Zeichenkette zu lang&quot;
+
+#: gsmlib/gsm_error.cc:89
+msgid &quot;invalid characters in text string&quot;
+msgstr &quot;ung\xFCltige Zeichen in der Zeichenkette&quot;
+
+#: gsmlib/gsm_error.cc:92
+msgid &quot;dial string too long&quot;
+msgstr &quot;zu w\xE4hlende Telefonnummer zu lang&quot;
+
+#: gsmlib/gsm_error.cc:95
+msgid &quot;invalid characters in dial string&quot;
+msgstr &quot;ung\xFCltige Zeichen in zu w\xE4hlender Telefonnummer&quot;
+
+#: gsmlib/gsm_error.cc:98 gsmlib/gsm_error.cc:310
+msgid &quot;no network service&quot;
+msgstr &quot;kein Netz&quot;
+
+#: gsmlib/gsm_error.cc:101 gsmlib/gsm_error.cc:313
+msgid &quot;network timeout&quot;
+msgstr &quot;Netz-Zeit\xFCberschreitung&quot;
+
+# , c-format
+#: gsmlib/gsm_error.cc:107
+#, c-format
+msgid &quot;invalid ME error %d&quot;
+msgstr &quot;ung\xFCltiger ME-Fehler %d&quot;
+
+#: gsmlib/gsm_error.cc:117
+msgid &quot;Unassigned (unallocated) number&quot;
+msgstr &quot;nicht zugewiesene Nummer&quot;
+
+#: gsmlib/gsm_error.cc:120
+msgid &quot;Operator determined barring&quot;
+msgstr &quot;vom Operator geschaltete Sperre&quot;
+
+#: gsmlib/gsm_error.cc:123
+msgid &quot;Call barred&quot;
+msgstr &quot;Rufsperre&quot;
+
+#: gsmlib/gsm_error.cc:126
+msgid &quot;Network failure&quot;
+msgstr &quot;Netz-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:129
+msgid &quot;Short message transfer rejected&quot;
+msgstr &quot;Kurznachrichten-\xDCbertragung zur\xFCckgewiesen&quot;
+
+#: gsmlib/gsm_error.cc:133 gsmlib/gsm_error.cc:355
+msgid &quot;Congestion&quot;
+msgstr &quot;Netz\xFCberlastung&quot;
+
+#: gsmlib/gsm_error.cc:136
+msgid &quot;Destination out of service&quot;
+msgstr &quot;Ziel au\xDFer Betrieb&quot;
+
+#: gsmlib/gsm_error.cc:139
+msgid &quot;Unidentified subscriber&quot;
+msgstr &quot;unidentifizierter Teilnehmer&quot;
+
+#: gsmlib/gsm_error.cc:142
+msgid &quot;Facility rejected&quot;
+msgstr &quot;Dienstmerkmal zur\xFCckgewiesen&quot;
+
+#: gsmlib/gsm_error.cc:145
+msgid &quot;Unknown subscriber&quot;
+msgstr &quot;unbekannter Teilnehmer&quot;
+
+#: gsmlib/gsm_error.cc:148
+msgid &quot;Network out of order&quot;
+msgstr &quot;Netz au\xDFer Betrieb&quot;
+
+#: gsmlib/gsm_error.cc:151
+msgid &quot;Temporary failure&quot;
+msgstr &quot;tempor\xE4rer Fehler&quot;
+
+#: gsmlib/gsm_error.cc:154
+msgid &quot;Resources unavailable, unspecified&quot;
+msgstr &quot;Ressourcen nicht verf\xFCgbar, nicht spezifiziert&quot;
+
+#: gsmlib/gsm_error.cc:157
+msgid &quot;Requested facility not subscribed&quot;
+msgstr &quot;angefordertes Dienstmerkmal nicht freigeschaltet&quot;
+
+#: gsmlib/gsm_error.cc:160
+msgid &quot;Requested facility not implemented&quot;
+msgstr &quot;angefordertes Dienstmerkmal nicht implementiert&quot;
+
+#: gsmlib/gsm_error.cc:163
+msgid &quot;Invalid Transaction Identifier&quot;
+msgstr &quot;ung\xFCltiger Transaktionsbezeichner&quot;
+
+#: gsmlib/gsm_error.cc:166
+msgid &quot;Semantically incorrect message&quot;
+msgstr &quot;semantisch fehlerhafte Nachricht&quot;
+
+#: gsmlib/gsm_error.cc:169
+msgid &quot;Invalid mandatory information&quot;
+msgstr &quot;ung\xFCltige, obligatorische Information&quot;
+
+#: gsmlib/gsm_error.cc:172
+msgid &quot;Message type non-existent or not implemented&quot;
+msgstr &quot;Nachrichtentyp nicht existent bzw. nicht implementiert&quot;
+
+#: gsmlib/gsm_error.cc:175
+msgid &quot;Message not compatible with short message protocol state&quot;
+msgstr &quot;Nachricht nicht vereinbar mit Kurznachrichten-Protokollstatus&quot;
+
+#: gsmlib/gsm_error.cc:178
+msgid &quot;Information element non-existent or not implemented&quot;
+msgstr &quot;Informationselement nicht existent oder nicht implementiert&quot;
+
+#: gsmlib/gsm_error.cc:181
+msgid &quot;Protocol error, unspecified&quot;
+msgstr &quot;Protokollfehler, nicht spezifiziert&quot;
+
+#: gsmlib/gsm_error.cc:184
+msgid &quot;Interworking, unspecified&quot;
+msgstr &quot;Interworking, nicht spezifiziert&quot;
+
+#: gsmlib/gsm_error.cc:187
+msgid &quot;Telematic interworking not supported&quot;
+msgstr &quot;Telematisches Interworking nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:190
+msgid &quot;Short message Type 0 not supported&quot;
+msgstr &quot;Kurznachrichtentyp 0 nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:193
+msgid &quot;Cannot replace short message&quot;
+msgstr &quot;kann Kurznachricht nicht ersetzen&quot;
+
+#: gsmlib/gsm_error.cc:196
+msgid &quot;Unspecified TP-PID error&quot;
+msgstr &quot;unspezifizierter TP-PID-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:199
+msgid &quot;Data coding scheme (alphabet) not supported&quot;
+msgstr &quot;Datenkodierungsschema (Alphabet) nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:202
+msgid &quot;Message class not supported&quot;
+msgstr &quot;Nachrichtenklasse nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:205
+msgid &quot;Unspecifiec TP-DCS error&quot;
+msgstr &quot;unspezifizierter TP-DCS-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:208
+msgid &quot;Command cannot be actioned&quot;
+msgstr &quot;Kommando kann nicht ausgef\xFChrt werden&quot;
+
+#: gsmlib/gsm_error.cc:211
+msgid &quot;Command unsupported&quot;
+msgstr &quot;Kommando nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:214
+msgid &quot;Unspecified TP-Command error&quot;
+msgstr &quot;unspezifizierter TP-Kommando-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:217
+msgid &quot;TPDU not supported&quot;
+msgstr &quot;TPDU nicht unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_error.cc:220
+msgid &quot;SC busy&quot;
+msgstr &quot;SC besetzt&quot;
+
+#: gsmlib/gsm_error.cc:223
+msgid &quot;No SC subscription&quot;
+msgstr &quot;SC nicht freigeschaltet&quot;
+
+#: gsmlib/gsm_error.cc:226
+msgid &quot;SC system failure&quot;
+msgstr &quot;SC-Systemfehler&quot;
+
+#: gsmlib/gsm_error.cc:229
+msgid &quot;Invalid SME address&quot;
+msgstr &quot;ung\xFCltige SME-Adresse&quot;
+
+#: gsmlib/gsm_error.cc:232
+msgid &quot;Destination SME barred&quot;
+msgstr &quot;Ziel-SME gesperrt&quot;
+
+#: gsmlib/gsm_error.cc:235
+msgid &quot;SM Rejected-Duplicated SM&quot;
+msgstr &quot;Kurznachricht zur\xFCckgewiesen - doppelte Kurznachricht&quot;
+
+#: gsmlib/gsm_error.cc:238
+msgid &quot;SIM SMS storage full&quot;
+msgstr &quot;SIM-SMS-Speicher voll&quot;
+
+#: gsmlib/gsm_error.cc:241
+msgid &quot;No SMS storage capability in SIM&quot;
+msgstr &quot;Keine SMS-Speicherf\xE4higkeit in SIM&quot;
+
+#: gsmlib/gsm_error.cc:244
+msgid &quot;Error in MS&quot;
+msgstr &quot;Fehler im MS&quot;
+
+#: gsmlib/gsm_error.cc:247
+msgid &quot;Memory Capacity Exceed&quot;
+msgstr &quot;Speicherkapazit\xE4t \xFCberschritten&quot;
+
+#: gsmlib/gsm_error.cc:250
+msgid &quot;Unspecified error cause&quot;
+msgstr &quot;unspezifizierter Fehlergrund&quot;
+
+#: gsmlib/gsm_error.cc:253
+msgid &quot;ME failure&quot;
+msgstr &quot;ME-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:256
+msgid &quot;SMS service of ME reserved&quot;
+msgstr &quot;SMS-Dienst im ME reserviert&quot;
+
+#: gsmlib/gsm_error.cc:265
+msgid &quot;invalid PDU mode parameter&quot;
+msgstr &quot;ung\xFCltiger PDU-Modus-Parameter&quot;
+
+#: gsmlib/gsm_error.cc:268
+msgid &quot;invalid text mode parameter&quot;
+msgstr &quot;ung\xFCltiger Text-Modus-Parameter&quot;
+
+#: gsmlib/gsm_error.cc:277
+msgid &quot;PH-SIM PIN required&quot;
+msgstr &quot;PH-SIM PIN erforderlich&quot;
+
+#: gsmlib/gsm_error.cc:301
+msgid &quot;invalid memory index&quot;
+msgstr &quot;ung\xFCltiger Speicherindex&quot;
+
+#: gsmlib/gsm_error.cc:307
+msgid &quot;SMSC address unknown&quot;
+msgstr &quot;SMSC-Adresse nicht bekannt&quot;
+
+#: gsmlib/gsm_error.cc:316
+msgid &quot;no +CNMA acknowledgement expected&quot;
+msgstr &quot;keine +CNMA-Best\xE4tigung erwartet&quot;
+
+#: gsmlib/gsm_error.cc:319
+msgid &quot;unknown error&quot;
+msgstr &quot;unbekannter Fehler&quot;
+
+# , c-format
+#: gsmlib/gsm_error.cc:322
+#, c-format
+msgid &quot;invalid SMS error %d&quot;
+msgstr &quot;ung\xFCltiger SMS-Fehler %d&quot;
+
+#: gsmlib/gsm_error.cc:335
+msgid &quot;Short message received by the SME&quot;
+msgstr &quot;Kurznachricht von der SME empfangen&quot;
+
+#: gsmlib/gsm_error.cc:338
+msgid &quot;&quot;
+&quot;Short message forwarded by the SC to the SME but the SC is unable to confirm &quot;
+&quot;delivery&quot;
+msgstr &quot;&quot;
+&quot;die Kurznachricht wurde vom SC zur SME weitergeleitet, aber das SC ist nicht &quot;
+&quot;in der Lage, den Empfang zu best\xE4tigen&quot;
+
+#: gsmlib/gsm_error.cc:342
+msgid &quot;Short message replaced by the SC&quot;
+msgstr &quot;Kurznachricht wurde vom SC ersetzt&quot;
+
+#: gsmlib/gsm_error.cc:345 gsmlib/gsm_error.cc:373 gsmlib/gsm_error.cc:418
+msgid &quot;reserved&quot;
+msgstr &quot;reserviert&quot;
+
+#: gsmlib/gsm_error.cc:358
+msgid &quot;SME busy&quot;
+msgstr &quot;SME besetzt&quot;
+
+#: gsmlib/gsm_error.cc:361
+msgid &quot;No response from SME&quot;
+msgstr &quot;keine Antwort vom SME&quot;
+
+#: gsmlib/gsm_error.cc:364
+msgid &quot;Service rejected&quot;
+msgstr &quot;Dienst zur\xFCckgewiesen&quot;
+
+#: gsmlib/gsm_error.cc:367 gsmlib/gsm_error.cc:400
+msgid &quot;Quality of service not available&quot;
+msgstr &quot;Dienstqualit\xE4t nicht verf\xFCgbar&quot;
+
+#: gsmlib/gsm_error.cc:370
+msgid &quot;Error in SME&quot;
+msgstr &quot;Fehler im SME&quot;
+
+#: gsmlib/gsm_error.cc:377
+msgid &quot; (Temporary error, SC is not making any more transfer attempts)&quot;
+msgstr &quot; (tempor\xE4rer Fehler, SC macht keine weiteren \xDCbertragungsversuche)&quot;
+
+#: gsmlib/gsm_error.cc:380
+msgid &quot; (Temporary error, SC still trying to transfer SM)&quot;
+msgstr &quot; (tempor\xE4rer Fehler, SC versucht weiterhin die SM zu \xFCbertragen)&quot;
+
+#: gsmlib/gsm_error.cc:388
+msgid &quot;Remote Procedure Error&quot;
+msgstr &quot;Fern-Prozedur-Aufrufs-Fehler&quot;
+
+#: gsmlib/gsm_error.cc:391
+msgid &quot;Incompatible destination&quot;
+msgstr &quot;inkompatibles Ziel&quot;
+
+#: gsmlib/gsm_error.cc:394
+msgid &quot;Connection rejected by SME&quot;
+msgstr &quot;Verbindung vom SME zur\xFCckgewiesen&quot;
+
+#: gsmlib/gsm_error.cc:397
+msgid &quot;Not obtainable&quot;
+msgstr &quot;nicht verf\xFCgbar&quot;
+
+#: gsmlib/gsm_error.cc:403
+msgid &quot;No interworking available&quot;
+msgstr &quot;kein Interworking verf\xFCgbar&quot;
+
+#: gsmlib/gsm_error.cc:406
+msgid &quot;SM validity period expired&quot;
+msgstr &quot;SM-G\xFCltigkeitszeitraum \xFCberschritten&quot;
+
+#: gsmlib/gsm_error.cc:409
+msgid &quot;SM deleted by originating SME&quot;
+msgstr &quot;SM von der sendenden SME gel\xF6scht&quot;
+
+#: gsmlib/gsm_error.cc:412
+msgid &quot;SM deleted by SC administration&quot;
+msgstr &quot;SM von der SC-Administration gel\xF6scht&quot;
+
+#: gsmlib/gsm_error.cc:415
+msgid &quot;SM does not exit&quot;
+msgstr &quot;SM macht keinen Exit&quot;
+
+#: gsmlib/gsm_error.cc:421
+msgid &quot; (Permanent Error, SC is not making any more transfer attempts)&quot;
+msgstr &quot; (permanenter Fehler, SC macht keine weiteren \xDCbertragungsversuche)&quot;
+
+# , c-format
+#: gsmlib/gsm_event.cc:80
+#, c-format
+msgid &quot;unexpected number format %d&quot;
+msgstr &quot;unerwartetes Telefonnummernformat %d&quot;
+
+# , c-format
+#: gsmlib/gsm_event.cc:100
+#, c-format
+msgid &quot;unexpected unsolicited event '%s'&quot;
+msgstr &quot;unerwartetes asynchrones Ereignis '%s'&quot;
+
+#: gsmlib/gsm_me_ta.cc:536
+msgid &quot;unable to set operator&quot;
+msgstr &quot;kann den Netzbetreiber nicht setzen&quot;
+
+#: gsmlib/gsm_me_ta.cc:663
+msgid &quot;call forward time must be in the range 0..30&quot;
+msgstr &quot;Rufumleitungszeit muss im Bereich 0..30 sein&quot;
+
+#: gsmlib/gsm_me_ta.cc:811
+msgid &quot;Functionality Level commands not supported by ME&quot;
+msgstr &quot;&quot;
+&quot;Funktionalit\xE4ts-Level-Kommandos werden vom Ger\xE4t (ME) nicht unterst\xFCtzt&quot;
+
+#. If the number was just out of range, we get here.
+#: gsmlib/gsm_me_ta.cc:830
+msgid &quot;Requested Functionality Level out of range&quot;
+msgstr &quot;Angeforderter Funktionalit\xE4ts-Level au\xDFerhalb des erlaubten Bereichs&quot;
+
+#: gsmlib/gsm_me_ta.cc:941
+msgid &quot;unsupported alphabet for SMS&quot;
+msgstr &quot;nicht unterst\xFCtztes Alphabet f\xFCr SMS&quot;
+
+#: gsmlib/gsm_me_ta.cc:950
+msgid &quot;SMS text is larger than allowed&quot;
+msgstr &quot;SMS-Text ist l\xE4nger als erlaubt&quot;
+
+#: gsmlib/gsm_me_ta.cc:962
+msgid &quot;not more than 255 concatenated SMSs allowed&quot;
+msgstr &quot;nicht mehr als 255 verbundene SMSs erlaubt&quot;
+
+#: gsmlib/gsm_me_ta.cc:995
+msgid &quot;only serviceLevel 0 or 1 supported&quot;
+msgstr &quot;nur Dienst-Level 0 oder 1 unterst\xFCtzt&quot;
+
+#: gsmlib/gsm_me_ta.cc:1108 gsmlib/gsm_me_ta.cc:1150
+msgid &quot;cannot route SMS messages to TE&quot;
+msgstr &quot;kann keine Kurznachrichten zum TE weiterleiten&quot;
+
+#: gsmlib/gsm_me_ta.cc:1122 gsmlib/gsm_me_ta.cc:1164
+msgid &quot;cannot route cell broadcast messages to TE&quot;
+msgstr &quot;kann keine Zellen-weiten Nachrichten zum TE weiterleiten&quot;
+
+#: gsmlib/gsm_me_ta.cc:1134
+msgid &quot;cannot route status reports messages to TE&quot;
+msgstr &quot;kann keine Status-Report-Nachrichten zum TE weiterleiten&quot;
+
+#: gsmlib/gsm_me_ta.cc:1178
+msgid &quot;cannot route status report messages to TE&quot;
+msgstr &quot;kann keine Status-Report-Nachrichten zum TE weiterleiten&quot;
+
+#: gsmlib/gsm_parser.cc:51
+msgid &quot;expected parameter&quot;
+msgstr &quot;Parameter erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:71
+msgid &quot;expected '\&quot;'&quot;
+msgstr &quot;'\&quot;' erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:109
+msgid &quot;expected number&quot;
+msgstr &quot;Zahl erwartet&quot;
+
+# , c-format
+#: gsmlib/gsm_parser.cc:120
+#, c-format
+msgid &quot;unexpected end of string '%s'&quot;
+msgstr &quot;unerwartetes Ende der Zeichenkette '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_parser.cc:124
+#, c-format
+msgid &quot; (at position %d of string '%s')&quot;
+msgstr &quot; (an Position %d der Zeichenkette '%s')&quot;
+
+# , c-format
+#: gsmlib/gsm_parser.cc:141
+#, c-format
+msgid &quot;expected '%c'&quot;
+msgstr &quot;'%c' erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:165
+msgid &quot;expected ')' or ','&quot;
+msgstr &quot;')' oder ',' erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:251
+msgid &quot;expected ')', ',' or '-'&quot;
+msgstr &quot;')', ',' oder '-' erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:257
+msgid &quot;range of the form a-b-c not allowed&quot;
+msgstr &quot;Bereich der Form a-b-c nicht erlaubt&quot;
+
+#: gsmlib/gsm_parser.cc:264
+msgid &quot;range of the form a- no allowed&quot;
+msgstr &quot;Bereich der Form a- nicht erlaubt&quot;
+
+#: gsmlib/gsm_parser.cc:350
+msgid &quot;expected comma&quot;
+msgstr &quot;Komma erwartet&quot;
+
+#: gsmlib/gsm_parser.cc:367
+msgid &quot;expected end of line&quot;
+msgstr &quot;Zeilenende erwartet&quot;
+
+# , c-format
+#: gsmlib/gsm_phonebook.cc:47
+#, c-format
+msgid &quot;&quot;
+&quot;length of text '%s' exceeds maximum text length (%d characters) of phonebook &quot;
+&quot;'%s'&quot;
+msgstr &quot;&quot;
+&quot;die L\xE4nge des Texts '%s' \xFCberschreitet die maximale Textl\xE4nge (%d Zeichen) &quot;
+&quot;des Telefonbuchs '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_phonebook.cc:55
+#, c-format
+msgid &quot;&quot;
+&quot;length of telephone number '%s' exceeds maximum telephone number length (%d &quot;
+&quot;characters) of phonebook '%s'&quot;
+msgstr &quot;&quot;
+&quot;die L\xE4nge der Telefonnummer '%s' \xFCberschreitet die maximale &quot;
+&quot;Telefonnummernl\xE4nge (%d Zeichen) des Telefonbuchs '%s'&quot;
+
+#: gsmlib/gsm_phonebook.cc:275
+msgid &quot;phonebook full&quot;
+msgstr &quot;Telefonbuch voll&quot;
+
+#: gsmlib/gsm_phonebook.cc:291
+msgid &quot;attempt to overwrite phonebook entry&quot;
+msgstr &quot;Versuch, einen Telefonbucheintrag zu \xFCberschreiben&quot;
+
+#: gsmlib/gsm_phonebook.cc:569
+msgid &quot;SIM card changed while accessing phonebook&quot;
+msgstr &quot;SIM-Karte wurde gewechselt beim Zugriff auf Telefonbuch&quot;
+
+#: gsmlib/gsm_sms.cc:66 gsmlib/gsm_sms.cc:85 gsmlib/gsm_sms.cc:175
+msgid &quot;unhandled SMS TPDU type&quot;
+msgstr &quot;unerwarteter SMS TPDU-Typ&quot;
+
+#: gsmlib/gsm_sms.cc:107
+msgid &quot;can only send SMS-SUBMIT and SMS-COMMAND TPDUs&quot;
+msgstr &quot;kann nur SMS-SUBMIT und SMS-COMMAND TPDUs senden&quot;
+
+#: gsmlib/gsm_sms.cc:111
+msgid &quot;no device given for sending SMS&quot;
+msgstr &quot;kein Ger\xE4t zum Versenden von SMS angegeben&quot;
+
+#: gsmlib/gsm_sms.cc:283
+msgid &quot;Message type: SMS-DELIVER&quot;
+msgstr &quot;Nachrichtentyp: SMS-DELIVER&quot;
+
+#: gsmlib/gsm_sms.cc:284 gsmlib/gsm_sms.cc:426 gsmlib/gsm_sms.cc:531
+#: gsmlib/gsm_sms.cc:618 gsmlib/gsm_sms.cc:723 gsmlib/gsm_sms.cc:829
+msgid &quot;SC address: '&quot;
+msgstr &quot;SC-Adresse: '&quot;
+
+#: gsmlib/gsm_sms.cc:285 gsmlib/gsm_sms.cc:532
+msgid &quot;More messages to send: &quot;
+msgstr &quot;Mehr Nachrichten zu versenden: &quot;
+
+#: gsmlib/gsm_sms.cc:286 gsmlib/gsm_sms.cc:445
+msgid &quot;Reply path: &quot;
+msgstr &quot;Antwortpfad: &quot;
+
+#: gsmlib/gsm_sms.cc:287 gsmlib/gsm_sms.cc:446
+msgid &quot;User data header indicator: &quot;
+msgstr &quot;Benutzerdatenvorspann (Indikation): &quot;
+
+#: gsmlib/gsm_sms.cc:289
+msgid &quot;Status report indication: &quot;
+msgstr &quot;Status-Report-Indikation: &quot;
+
+#: gsmlib/gsm_sms.cc:290
+msgid &quot;Originating address: '&quot;
+msgstr &quot;Senderadresse: '&quot;
+
+#: gsmlib/gsm_sms.cc:292 gsmlib/gsm_sms.cc:452 gsmlib/gsm_sms.cc:621
+#: gsmlib/gsm_sms.cc:729 gsmlib/gsm_sms.cc:836
+msgid &quot;Protocol identifier: 0x&quot;
+msgstr &quot;Protokollbezeichner: 0x&quot;
+
+#: gsmlib/gsm_sms.cc:294 gsmlib/gsm_sms.cc:454 gsmlib/gsm_sms.cc:733
+#: gsmlib/gsm_sms.cc:840
+msgid &quot;Data coding scheme: &quot;
+msgstr &quot;Datenkodierungsschema: &quot;
+
+#: gsmlib/gsm_sms.cc:295 gsmlib/gsm_sms.cc:536 gsmlib/gsm_sms.cc:830
+msgid &quot;SC timestamp: &quot;
+msgstr &quot;SC-Zeitstempel: &quot;
+
+#: gsmlib/gsm_sms.cc:296 gsmlib/gsm_sms.cc:456 gsmlib/gsm_sms.cc:735
+#: gsmlib/gsm_sms.cc:842
+msgid &quot;User data length: &quot;
+msgstr &quot;Benutzerdatenl\xE4nge: &quot;
+
+#: gsmlib/gsm_sms.cc:297 gsmlib/gsm_sms.cc:457
+msgid &quot;User data header: 0x&quot;
+msgstr &quot;Benutzerdatenvorspann: 0x&quot;
+
+#: gsmlib/gsm_sms.cc:302 gsmlib/gsm_sms.cc:461 gsmlib/gsm_sms.cc:736
+#: gsmlib/gsm_sms.cc:843
+msgid &quot;User data: '&quot;
+msgstr &quot;Benutzerdaten: '&quot;
+
+#: gsmlib/gsm_sms.cc:425
+msgid &quot;Message type: SMS-SUBMIT&quot;
+msgstr &quot;Nachrichtentyp: SMS-SUBMIT&quot;
+
+#: gsmlib/gsm_sms.cc:427
+msgid &quot;Reject duplicates: &quot;
+msgstr &quot;Duplikate zur\xFCckweisen: &quot;
+
+#: gsmlib/gsm_sms.cc:428
+msgid &quot;Validity period format: &quot;
+msgstr &quot;G\xFCltigkeitszeitraum-Format: &quot;
+
+#: gsmlib/gsm_sms.cc:432 gsmlib/gsm_sms_codec.cc:183
+msgid &quot;not present&quot;
+msgstr &quot;nicht vorhanden&quot;
+
+#: gsmlib/gsm_sms.cc:435
+msgid &quot;relative&quot;
+msgstr &quot;relativ&quot;
+
+#: gsmlib/gsm_sms.cc:438
+msgid &quot;absolute&quot;
+msgstr &quot;absolut&quot;
+
+#: gsmlib/gsm_sms.cc:448 gsmlib/gsm_sms.cc:620
+msgid &quot;Status report request: &quot;
+msgstr &quot;Status-Report-Anforderung: &quot;
+
+#: gsmlib/gsm_sms.cc:449 gsmlib/gsm_sms.cc:534 gsmlib/gsm_sms.cc:619
+msgid &quot;Message reference: &quot;
+msgstr &quot;Nachrichtenreferenz: &quot;
+
+#: gsmlib/gsm_sms.cc:450 gsmlib/gsm_sms.cc:626
+msgid &quot;Destination address: '&quot;
+msgstr &quot;Zieladresse: '&quot;
+
+#: gsmlib/gsm_sms.cc:455
+msgid &quot;Validity period: &quot;
+msgstr &quot;G\xFCltigkeitszeitraum: &quot;
+
+#: gsmlib/gsm_sms.cc:530
+msgid &quot;Message type: SMS-STATUS-REPORT&quot;
+msgstr &quot;Nachrichtentyp: SMS-STATUS-REPORT&quot;
+
+#: gsmlib/gsm_sms.cc:533
+msgid &quot;Status report qualifier: &quot;
+msgstr &quot;Status-Report-Attribut: &quot;
+
+#: gsmlib/gsm_sms.cc:535
+msgid &quot;Recipient address: '&quot;
+msgstr &quot;Empf\xE4ngeradresse: '&quot;
+
+#: gsmlib/gsm_sms.cc:537
+msgid &quot;Discharge time: &quot;
+msgstr &quot;Aussendezeit: &quot;
+
+#: gsmlib/gsm_sms.cc:538
+msgid &quot;Status: 0x&quot;
+msgstr &quot;Status: 0x&quot;
+
+#: gsmlib/gsm_sms.cc:617
+msgid &quot;Message type: SMS-COMMAND&quot;
+msgstr &quot;Nachrichtentyp: SMS-COMMAND&quot;
+
+#: gsmlib/gsm_sms.cc:623
+msgid &quot;Command type: 0x&quot;
+msgstr &quot;Kommandotyp: 0x&quot;
+
+#: gsmlib/gsm_sms.cc:625
+msgid &quot;Message number: &quot;
+msgstr &quot;Nachrichtennummer: &quot;
+
+#: gsmlib/gsm_sms.cc:628
+msgid &quot;Command data length: &quot;
+msgstr &quot;Kommandodatenl\xE4nge: &quot;
+
+#: gsmlib/gsm_sms.cc:629
+msgid &quot;Command data: '&quot;
+msgstr &quot;Kommandodaten: '&quot;
+
+#: gsmlib/gsm_sms.cc:722
+msgid &quot;Message type: SMS-DELIVER-REPORT&quot;
+msgstr &quot;Nachrichtentyp: SMS-DELIVER-REPORT&quot;
+
+#: gsmlib/gsm_sms.cc:724 gsmlib/gsm_sms.cc:831
+msgid &quot;Protocol identifier present: &quot;
+msgstr &quot;Protokollbezeichner pr\xE4sent: &quot;
+
+#: gsmlib/gsm_sms.cc:726 gsmlib/gsm_sms.cc:833
+msgid &quot;Data coding scheme present: &quot;
+msgstr &quot;Datenkodierungsschema pr\xE4sent:  &quot;
+
+#: gsmlib/gsm_sms.cc:727 gsmlib/gsm_sms.cc:834
+msgid &quot;User data length present: &quot;
+msgstr &quot;Benutzerdatenl\xE4nge pr\xE4sent: &quot;
+
+#: gsmlib/gsm_sms.cc:828
+msgid &quot;Message type: SMS-SUBMIT-REPORT&quot;
+msgstr &quot;Nachrichtentyp: SMS-SUBMIT-REPORT&quot;
+
+#: gsmlib/gsm_sms_codec.cc:188 gsmlib/gsm_sms_codec.cc:190
+msgid &quot; minutes&quot;
+msgstr &quot; Minuten&quot;
+
+#: gsmlib/gsm_sms_codec.cc:192
+msgid &quot; days&quot;
+msgstr &quot; Tage&quot;
+
+#: gsmlib/gsm_sms_codec.cc:194
+msgid &quot; weeks&quot;
+msgstr &quot; Wochen&quot;
+
+#: gsmlib/gsm_sms_codec.cc:213
+msgid &quot;compressed   &quot;
+msgstr &quot;komprimiert   &quot;
+
+#: gsmlib/gsm_sms_codec.cc:218
+msgid &quot;voicemail message waiting&quot;
+msgstr &quot;Sprachnachricht abrufbar&quot;
+
+#: gsmlib/gsm_sms_codec.cc:221
+msgid &quot;fax message waiting&quot;
+msgstr &quot;Faxnachricht abrufbar&quot;
+
+#: gsmlib/gsm_sms_codec.cc:224
+msgid &quot;electronic mail message waiting&quot;
+msgstr &quot;E-Mail-Nachricht abrufbar&quot;
+
+#: gsmlib/gsm_sms_codec.cc:227
+msgid &quot;other message waiting&quot;
+msgstr &quot;andere Nachricht abrufbar&quot;
+
+#: gsmlib/gsm_sms_codec.cc:234
+msgid &quot;default alphabet&quot;
+msgstr &quot;Standardalphabet&quot;
+
+#: gsmlib/gsm_sms_codec.cc:237
+msgid &quot;8-bit alphabet&quot;
+msgstr &quot;8-Bit Alphabet&quot;
+
+#: gsmlib/gsm_sms_codec.cc:240
+msgid &quot;16-bit alphabet&quot;
+msgstr &quot;16-bit Alphabet&quot;
+
+#: gsmlib/gsm_sms_codec.cc:243
+msgid &quot;reserved alphabet&quot;
+msgstr &quot;reserviertes Alphabet&quot;
+
+#: gsmlib/gsm_sms_codec.cc:256
+msgid &quot;bad hexadecimal PDU format&quot;
+msgstr &quot;fehlerhaftes hexadezimales PDU-Format&quot;
+
+#: gsmlib/gsm_sms_codec.cc:285 gsmlib/gsm_sms_codec.cc:295
+#: gsmlib/gsm_sms_codec.cc:310 gsmlib/gsm_sms_codec.cc:318
+#: gsmlib/gsm_sms_codec.cc:339 gsmlib/gsm_sms_codec.cc:347
+#: gsmlib/gsm_sms_codec.cc:368 gsmlib/gsm_sms_codec.cc:382
+msgid &quot;premature end of PDU&quot;
+msgstr &quot;Vorzeitiges Ende der PDU&quot;
+
+#: gsmlib/gsm_sms_codec.cc:473
+msgid &quot;unknown time period format&quot;
+msgstr &quot;Unbekanntes Zeitperiodenformat&quot;
+
+#: gsmlib/gsm_unix_serial.cc:119
+msgid &quot;interrupted when reading from TA&quot;
+msgstr &quot;Unterbrechung beim Lesen vom TA&quot;
+
+#: gsmlib/gsm_unix_serial.cc:144
+msgid &quot;reading from TA&quot;
+msgstr &quot;beim Lesen vom TA&quot;
+
+#: gsmlib/gsm_unix_serial.cc:149
+msgid &quot;timeout when reading from TA&quot;
+msgstr &quot;Zeit\xFCberschreitung beim Lesen vom TA&quot;
+
+# , c-format
+#: gsmlib/gsm_unix_serial.cc:176
+#, c-format
+msgid &quot;opening device '%s'&quot;
+msgstr &quot;beim \xD6ffnen von Ger\xE4t '%s'&quot;
+
+#: gsmlib/gsm_unix_serial.cc:182
+msgid &quot;getting file status flags failed&quot;
+msgstr &quot;Lesen der Dateistatus-Flags fehlgeschlagen&quot;
+
+#: gsmlib/gsm_unix_serial.cc:185
+msgid &quot;switching of non-blocking mode failed&quot;
+msgstr &quot;Abschalten des Non-Blocking Mode fehlgeschlagen&quot;
+
+#: gsmlib/gsm_unix_serial.cc:198
+msgid &quot;clearing DTR failed&quot;
+msgstr &quot;Zur\xFCcksetzen von DTR fehlgeschlagen&quot;
+
+#: gsmlib/gsm_unix_serial.cc:202
+msgid &quot;setting DTR failed&quot;
+msgstr &quot;Setzen von DTR fehlgeschlagen&quot;
+
+# , c-format
+#: gsmlib/gsm_unix_serial.cc:206
+#, c-format
+msgid &quot;tcgetattr device '%s'&quot;
+msgstr &quot;tcgetattr Ger\xE4t '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_unix_serial.cc:233
+#, c-format
+msgid &quot;tcsetattr device '%s'&quot;
+msgstr &quot;tcsetattr Ger\xE4t '%s'&quot;
+
+# , c-format
+#. no response after 3 tries
+#: gsmlib/gsm_unix_serial.cc:287
+#, c-format
+msgid &quot;reset modem failed '%s'&quot;
+msgstr &quot;Zur\xFCcksetzen des Modems '%s' fehlgeschlagen&quot;
+
+#: gsmlib/gsm_unix_serial.cc:332 gsmlib/gsm_unix_serial.cc:364
+msgid &quot;interrupted when writing to TA&quot;
+msgstr &quot;Unterbrechnung beim Schreiben auf den TA&quot;
+
+#: gsmlib/gsm_unix_serial.cc:347 gsmlib/gsm_unix_serial.cc:356
+msgid &quot;writing to TA&quot;
+msgstr &quot;beim Schreiben auf den TA&quot;
+
+#: gsmlib/gsm_unix_serial.cc:377
+msgid &quot;timeout when writing to TA&quot;
+msgstr &quot;Zeit\xFCberschreitung beim Schreiben auf den TA&quot;
+
+# , c-format
+#: gsmlib/gsm_unix_serial.cc:438
+#, c-format
+msgid &quot;unknown baudrate '%s'&quot;
+msgstr &quot;unbekannte Baud-Rate '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_util.cc:205
+#, c-format
+msgid &quot;error when calling stat('%s') (errno: %d/%s)&quot;
+msgstr &quot;Fehler beim Aufruf von stat('%s') (errno: %d/%s)&quot;
+
+# , c-format
+#: gsmlib/gsm_util.cc:236
+#, c-format
+msgid &quot;file '%s' is neither file nor character device&quot;
+msgstr &quot;Datei '%s' ist weder eine regul\xE4re Datei noch einen Zeichenger\xE4t&quot;
+
+#: gsmlib/gsm_util.cc:240
+msgid &quot;maxmimum number of symbolic links exceeded&quot;
+msgstr &quot;maximale Anzahl der symbolischen Links \xFCberschritten&quot;
+
+# , c-format
+#: gsmlib/gsm_util.cc:250
+#, c-format
+msgid &quot;error renaming '%s' to '%s'&quot;
+msgstr &quot;Fehler beim Umbenennen von '%s' zu '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_util.cc:348
+#, c-format
+msgid &quot;text '%s' contains illegal character '\&quot;'&quot;
+msgstr &quot;der Text '%s' enth\xE4lt das illegale Zeichen '\&quot;'&quot;
+
+# , c-format
+#: gsmlib/gsm_util.cc:358
+#, c-format
+msgid &quot;illegal character in telephone number '%s'&quot;
+msgstr &quot;ung\xFCltiges Zeichen in der Telefonnummer '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:95
+#, c-format
+msgid &quot;error reading from file '%s&quot;
+msgstr &quot;Fehler beim Lesen von Datei '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:109
+#, c-format
+msgid &quot;entry '%s' lacks index&quot;
+msgstr &quot;Eintrag '%s' hat keinen Index&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:118 gsmlib/gsm_sorted_phonebook.cc:124
+#, c-format
+msgid &quot;line '%s' has invalid format&quot;
+msgstr &quot;Zeile '%s' hat ung\xFCltiges Format&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:173 gsmlib/gsm_sorted_sms_store.cc:159
+#, c-format
+msgid &quot;error opening file '%s' for writing&quot;
+msgstr &quot;Fehler beim \xD6ffnen der Datei '%s' zum Schreiben&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:174 gsmlib/gsm_sorted_phonebook.cc:193
+#: gsmlib/gsm_sorted_sms_store.cc:67 gsmlib/gsm_sorted_sms_store.cc:160
+msgid &quot;&lt;STDOUT&gt;&quot;
+msgstr &quot;&lt;Standardausgabe&gt;&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:192 gsmlib/gsm_sorted_sms_store.cc:66
+#, c-format
+msgid &quot;error writing to file '%s'&quot;
+msgstr &quot;Fehler beim Schreiben in die Datei '%s'&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:216
+msgid &quot;attempt to change phonebook read from &lt;STDIN&gt;&quot;
+msgstr &quot;Versuch, von der Standardeingabe gelesenes Telefonbuch zu ver\xE4ndern&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_phonebook.cc:229 gsmlib/gsm_sorted_sms_store.cc:215
+#, c-format
+msgid &quot;cannot open file '%s'&quot;
+msgstr &quot;kann Datei '%s' nicht \xF6ffnen&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:244 gsmlib/gsm_sorted_sms_store.cc:55
+#: gsmlib/gsm_sorted_sms_store.cc:228
+msgid &quot;&lt;STDIN&gt;&quot;
+msgstr &quot;&lt;Standardeingabe&gt;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:361
+msgid &quot;indices must be unique in phonebook&quot;
+msgstr &quot;Indices im Telefonbuch m\xFCssen eindeutig sein&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_sms_store.cc:54
+#, c-format
+msgid &quot;error reading from file '%s'&quot;
+msgstr &quot;Fehler beim Lesen aus der Datei '%s'&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_sms_store.cc:87
+#, c-format
+msgid &quot;file '%s' has wrong version&quot;
+msgstr &quot;Datei '%s' hat die falsche Version&quot;
+
+# , c-format
+#: gsmlib/gsm_sorted_sms_store.cc:99 gsmlib/gsm_sorted_sms_store.cc:111
+#, c-format
+msgid &quot;corrupt SMS store file '%s'&quot;
+msgstr &quot;besch\xE4digte SMS-Speicherdatei '%s'&quot;
+
+#: gsmlib/gsm_sorted_sms_store.cc:204
+msgid &quot;attempt to change SMS store read from &lt;STDIN&gt;&quot;
+msgstr &quot;&quot;
+&quot;Versuch, SMS-Speicher zu ver\xE4ndern, der von der Standardeingabe gelesen wurde&quot;
+
+#~ msgid &quot;cannot read current network operator&quot;
+#~ msgstr &quot;kann den aktuellen Netzbetreiber nicht lesen&quot;
+
+#~ msgid &quot;Message type: SMS&quot;
+#~ msgstr &quot;Nachrichtentyp: SMS&quot;
+
+#~ msgid &quot;(no further information available)&quot;
+#~ msgstr &quot;(keine weitere Information verf\xFCgbar)&quot;
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1pogsmlibpot"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/gsmlib.pot (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/gsmlib.pot                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/gsmlib.pot        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1689 @@
</span><ins>+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR &lt;EMAIL@ADDRESS&gt;, YEAR.
+#
+#, fuzzy
+msgid &quot;&quot;
+msgstr &quot;&quot;
+&quot;Project-Id-Version: PACKAGE VERSION\n&quot;
+&quot;Report-Msgid-Bugs-To: \n&quot;
+&quot;POT-Creation-Date: 2007-09-29 18:24+0100\n&quot;
+&quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&quot;
+&quot;Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n&quot;
+&quot;Language-Team: LANGUAGE &lt;LL@li.org&gt;\n&quot;
+&quot;MIME-Version: 1.0\n&quot;
+&quot;Content-Type: text/plain; charset=CHARSET\n&quot;
+&quot;Content-Transfer-Encoding: 8bit\n&quot;
+
+#: apps/gsmsmsd.cc:171
+#, c-format
+msgid &quot;could not execute '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:175
+#, c-format
+msgid &quot;error writing to '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:196 apps/gsmsmsd.cc:197 apps/gsmsmsd.cc:198
+#, c-format
+msgid &quot;%d&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:215
+#, c-format
+msgid &quot;error when calling opendir('%s')(errno: %d/%s)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:259
+#, c-format
+msgid &quot;count not open SMS spool file %s&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:435 apps/gsmsendsms.cc:144 apps/gsmpb.cc:311
+#: apps/gsmctl.cc:380 apps/gsmsmsstore.cc:179
+#, c-format
+msgid &quot;: version %s [compiled %s]&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:440
+msgid &quot;&quot;
+&quot;: [-a action][-b baudrate][-C sca][-d device][-f][-h][-I init string]\n&quot;
+&quot;  [-s spool dir][-t][-v]{sms_type}&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:444
+msgid &quot;&quot;
+&quot;  -a, --action      the action to execute when an SMS arrives\n&quot;
+&quot;                    (SMS is send to stdin of action)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:448 apps/gsmsendsms.cc:153 apps/gsmpb.cc:322
+#: apps/gsmctl.cc:389 apps/gsmsmsstore.cc:194
+msgid &quot;  -b, --baudrate    baudrate to use for device (default: 38400)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:451
+msgid &quot;  -c, --concatenate start ID for concatenated SMS messages&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:453 apps/gsmsendsms.cc:158 apps/gsmsmsstore.cc:200
+msgid &quot;  -C, --sca         SMS service centre address&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:454
+msgid &quot;  -d, --device      sets the device to connect to&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:455
+msgid &quot;  -D, --direct      enable direct routing of SMSs&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:456
+msgid &quot;  -f, --flush       flush SMS from store&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:457
+msgid &quot;  -F, --failed      directory to move failed SMS to,&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:458 apps/gsmsmsd.cc:471
+msgid &quot;                    if unset, the SMS will be deleted&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:459 apps/gsmsendsms.cc:161 apps/gsmpb.cc:332
+#: apps/gsmctl.cc:394 apps/gsmsmsstore.cc:204
+msgid &quot;  -h, --help        prints this message&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:460 apps/gsmsendsms.cc:162 apps/gsmpb.cc:335
+#: apps/gsmctl.cc:395 apps/gsmsmsstore.cc:205
+msgid &quot;  -I, --init        device AT init sequence&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:462
+msgid &quot;  -L, --syslog      log errors and information to syslog&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:465
+msgid &quot;  -P, --priorities  number of priority levels to use,&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:466
+msgid &quot;                    (default: none)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:467 apps/gsmsendsms.cc:163
+msgid &quot;  -r, --requeststat request SMS status report&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:468
+msgid &quot;  -s, --spool       spool directory for outgoing SMS&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:470
+msgid &quot;  -S, --sent        directory to move sent SMS to,&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:472
+msgid &quot;&quot;
+&quot;  -t, --store       name of SMS store to use for flush\n&quot;
+&quot;                    and/or temporary SMS storage&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:475 apps/gsmsendsms.cc:167 apps/gsmpb.cc:343
+#: apps/gsmctl.cc:399 apps/gsmsmsstore.cc:213
+msgid &quot;  -v, --version     prints version and exits&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:476 apps/gsmsendsms.cc:169 apps/gsmpb.cc:346
+#: apps/gsmctl.cc:400 apps/gsmsmsstore.cc:218
+msgid &quot;  -X, --xonxoff     switch on software handshake&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:478
+msgid &quot;  sms_type may be any combination of&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:479
+msgid &quot;    sms, no_sms     controls reception of normal SMS&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:481
+msgid &quot;    cb, no_cb       controls reception of cell broadcast messages&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:483
+msgid &quot;    stat, no_stat   controls reception of status reports&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:485
+msgid &quot;  default is \&quot;sms cb stat\&quot;&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:486
+msgid &quot;If no action is given, the SMS is printed to stdout&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:488
+msgid &quot;If -P is given, it activates the priority system and sets the&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:489
+msgid &quot;number or levels to use. For every level, there must be directories&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:490
+msgid &quot;named &lt;spool directory&gt;+&lt;priority level&gt;.&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:491
+msgid &quot;For example \&quot;-P 2 -s queue -S send -F failed\&quot; needs the following&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:492
+msgid &quot;directories: queue1/ queue2/ send1/ send2/ failed1/ failed2/&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:493
+msgid &quot;Before sending one SMS from queue2, all pending SMS from queue1&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:494
+msgid &quot;will be sent.&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:499 apps/gsmsendsms.cc:178 apps/gsmpb.cc:354
+#: apps/gsmctl.cc:414 apps/gsmsmsstore.cc:223
+msgid &quot;unknown option&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:538
+#, c-format
+msgid &quot;error when calling sigaction() (errno: %d/%s)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:558
+msgid &quot;store name must be given for flush option&quot;
+msgstr &quot;&quot;
+
+#. process the new message
+#: apps/gsmsmsd.cc:566 apps/gsmsmsd.cc:634
+msgid &quot;Type of message: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:570 apps/gsmsmsd.cc:638
+msgid &quot;SMS message\n&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:573
+msgid &quot;submit report message\n&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:576 apps/gsmsmsd.cc:644
+msgid &quot;status report message\n&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:641
+msgid &quot;cell broadcast message\n&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:697 apps/gsmsmsd.cc:699 apps/gsmsendsms.cc:253
+#: apps/gsmpb.cc:503 apps/gsmctl.cc:631 apps/gsmsmsstore.cc:435
+msgid &quot;[ERROR]: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsd.cc:700
+msgid &quot;(try setting sms_type, please refer to gsmsmsd manpage)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:149
+msgid &quot;&quot;
+&quot;: [-b baudrate][-c concatenatedID][-C sca][-d device][-h][-I init string]\n&quot;
+&quot;  [-t][-v][-X] phonenumber [text]&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:156
+msgid &quot;  -c, --concatenate ID for concatenated SMS messages&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:159 apps/gsmctl.cc:392
+msgid &quot;  -d, --device      sets the destination device to connect to&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:164
+msgid &quot;&quot;
+&quot;  -t, --test        convert text to GSM alphabet and vice\n&quot;
+&quot;                    versa, no SMS message is sent&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:171
+msgid &quot;  phonenumber       recipient's phone number&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:172
+msgid &quot;&quot;
+&quot;  text              optional text of the SMS message\n&quot;
+&quot;                    if omitted: read from stdin&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:205
+msgid &quot;phone number and text missing&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:208 apps/gsmsmsstore.cc:261
+msgid &quot;more than two parameters given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsendsms.cc:224
+msgid &quot;text is larger than 160 characters&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:102 apps/gsmpb.cc:491
+#, c-format
+msgid &quot;inserting '%s' tel# %s&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:105 apps/gsmpb.cc:230 apps/gsmpb.cc:494
+#, c-format
+msgid &quot; (index #%d)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:144
+#, c-format
+msgid &quot;updating '%s' tel# %s to new tel# %s&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:177
+#, c-format
+msgid &quot;updating '%s' tel# %s to new tel# %s(index %d)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:227
+#, c-format
+msgid &quot;deleting '%s' tel# %s&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:316
+msgid &quot;&quot;
+&quot;: [-b baudrate][-c][-d device or file][-h][-I init string]\n&quot;
+&quot;  [-p phonebook name][-s device or file][-t charset][-v][-V][-y][-X]&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:325
+msgid &quot;  -c, --copy        copy source entries to destination&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:327
+msgid &quot;&quot;
+&quot;  -d, --destination sets the destination device to connect \n&quot;
+&quot;                    to, or the file to write&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:330
+msgid &quot;  -D, --destination-backend sets the destination backend&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:333
+msgid &quot;  -i, --index       takes index positions into account&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:336
+msgid &quot;  -p, --phonebook   name of phonebook to use&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:337 apps/gsmsmsstore.cc:210
+msgid &quot;&quot;
+&quot;  -s, --source      sets the source device to connect to,\n&quot;
+&quot;                    or the file to read&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:339
+msgid &quot;&quot;
+&quot;  -t, --charset     sets the character set to use for\n&quot;
+&quot;                    phonebook entries&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:341
+msgid &quot;  -S, --source-backend sets the source backend&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:344 apps/gsmsmsstore.cc:214
+msgid &quot;  -V, --verbose     print detailed progress messages&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:347
+msgid &quot;&quot;
+&quot;  -y, --synchronize synchronize destination with source\n&quot;
+&quot;                    entries (destination is overwritten)\n&quot;
+&quot;                    (see gsmpb(1) for details)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:360
+msgid &quot;both source and destination must be given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:374 apps/gsmpb.cc:416
+msgid &quot;phonebook name must be given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:441
+#, c-format
+msgid &quot;&quot;
+&quot;text '%s' is too large to fit into destination (maximum size %d characters)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmpb.cc:447
+#, c-format
+msgid &quot;&quot;
+&quot;phone number '%s' is too large to fit into destination (maximum size %d &quot;
+&quot;characters)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:90
+msgid &quot;active &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:90
+msgid &quot;inactive &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:91
+msgid &quot;number: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:92
+msgid &quot;  subaddr: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:93
+msgid &quot;  time: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:105
+msgid &quot;&lt;ME0&gt;  Manufacturer: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:106
+msgid &quot;&lt;ME1&gt;  Model: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:107
+msgid &quot;&lt;ME2&gt;  Revision: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:108
+msgid &quot;&lt;ME3&gt;  Serial Number: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:116 apps/gsmctl.cc:118
+msgid &quot;&lt;FUN&gt;  Functionality Level: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:118
+msgid &quot;unsupported&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:128
+msgid &quot;&gt;  Status: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:131 gsmlib/gsm_error.cc:104 gsmlib/gsm_sms.cc:441
+#: gsmlib/gsm_sms_codec.cc:205
+msgid &quot;unknown&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:132
+msgid &quot;current&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:133
+msgid &quot;available&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:134
+msgid &quot;forbidden&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:136 apps/gsmctl.cc:147
+msgid &quot;  Long name: '&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:137 apps/gsmctl.cc:148
+msgid &quot;  Short name: '&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:138 apps/gsmctl.cc:149
+msgid &quot;  Numeric name: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:150
+msgid &quot;  Mode: &quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:153
+msgid &quot;automatic&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:154
+msgid &quot;manual&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:155
+msgid &quot;deregister&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:156
+msgid &quot;manual/automatic&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:172 apps/gsmctl.cc:247
+msgid &quot;  Voice&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:176 apps/gsmctl.cc:185 apps/gsmctl.cc:194
+msgid &quot;  unknown&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:181 apps/gsmctl.cc:249
+msgid &quot;  Data&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:190 apps/gsmctl.cc:251
+msgid &quot;  Fax&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:229
+msgid &quot;on&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:229
+msgid &quot;off&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:239
+msgid &quot;UnconditionalReason&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:240
+msgid &quot;MobileBusyReason&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:241
+msgid &quot;NoReplyReason&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:242
+msgid &quot;NotReachableReason&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:261
+msgid &quot;0 ME is powered by the battery&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:262
+msgid &quot;1 ME has a battery connected, but is not powered by it&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:264
+msgid &quot;2 ME does not have a battery connected&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:266
+msgid &quot;3 Recognized power fault, calls inhibited&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:323
+#, c-format
+msgid &quot;unknown facility class parameter '%c'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:336
+#, c-format
+msgid &quot;not enough parameters, minimum number of parameters is %d&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:340
+#, c-format
+msgid &quot;too many parameters, maximum number of parameters is %d&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:385
+msgid &quot;&quot;
+&quot;: [-b baudrate][-d device][-h][-I init string][-o operation]\n&quot;
+&quot;  [-v][-X]{parameters}&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:396
+msgid &quot;&quot;
+&quot;  -o, --operation   operation to perform on the mobile \n&quot;
+&quot;                    phone with the specified parameters&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:402
+msgid &quot;&quot;
+&quot;  parameters        parameters to use for the operation\n&quot;
+&quot;                    (if an operation is given) or\n&quot;
+&quot;                    a specification which kind of\n&quot;
+&quot;                    information to read from the mobile phone&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:408
+msgid &quot;&quot;
+&quot;Refer to gsmctl(1) for details on the available parameters and operations.&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:471
+#, c-format
+msgid &quot;unknown information parameter '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:520
+#, c-format
+msgid &quot;unknown opmode parameter '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:588
+#, c-format
+msgid &quot;unknown forward reason parameter '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:604
+#, c-format
+msgid &quot;unknown forward mode parameter '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmctl.cc:625
+#, c-format
+msgid &quot;unknown operation '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:91 apps/gsmsmsstore.cc:363 apps/gsmsmsstore.cc:380
+#, c-format
+msgid &quot;inserting entry #%d from source into destination&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:102
+#, c-format
+msgid &quot;incompatible options '%c' and '%c'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:184
+msgid &quot;&quot;
+&quot;: [-a][-b baudrate][-c][-C sca][-d device or file]\n&quot;
+&quot;  [-h][-I init string][-k][-l][-s device or file][-t SMS store name]\n&quot;
+&quot;  [-v][-V][-x][-X]{indices}|[phonenumber text]&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:191
+msgid &quot;&quot;
+&quot;  -a, --add         add new SMS submit message\n&quot;
+&quot;                    (phonenumber and text) to destination&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:197
+msgid &quot;&quot;
+&quot;  -c, --copy        copy source entries to destination\n&quot;
+&quot;                    (if indices are given, copy only these entries)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:201
+msgid &quot;&quot;
+&quot;  -d, --destination sets the destination device to\n&quot;
+&quot;                    connect to, or the file to write to&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:206
+msgid &quot;&quot;
+&quot;  -k, --backup      backup new entries to destination\n&quot;
+&quot;                    (if indices are given, copy only these entries)&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:209
+msgid &quot;  -l, --list        list source to stdout&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:212
+msgid &quot;  -t, --store       name of SMS store to use&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:216
+msgid &quot;  -x, --delete      delete entries denoted by indices&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:229
+msgid &quot;no operation option given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:232
+msgid &quot;both source and destination required&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:237
+msgid &quot;destination must not be given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:239
+msgid &quot;source required&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:244
+msgid &quot;source must not be given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:246
+msgid &quot;destination required&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:254 gsmlib/gsm_util.cc:286
+#, c-format
+msgid &quot;expected number, got '%s'&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:264
+msgid &quot;not enough parameters given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:269
+msgid &quot;unexpected parameters&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:280 apps/gsmsmsstore.cc:317
+msgid &quot;store name must be given&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:344 apps/gsmsmsstore.cc:377
+#, c-format
+msgid &quot;no index '%s' in source&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:392
+#, c-format
+msgid &quot;index #%d&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:406
+msgid &quot;inserting new entry into destination&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:421
+#, c-format
+msgid &quot;deleting entry #%d from destination&quot;
+msgstr &quot;&quot;
+
+#: apps/gsmsmsstore.cc:426
+#, c-format
+msgid &quot;no index '%s' in destination&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:66
+msgid &quot;unspecified ME/TA error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:76
+msgid &quot;ME/TA error '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:80
+#, c-format
+msgid &quot;(code %s)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:125 gsmlib/gsm_at.cc:215 gsmlib/gsm_at.cc:344
+msgid &quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:184 gsmlib/gsm_at.cc:365
+#, c-format
+msgid &quot;unexpected response '%s' when sending 'AT%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_at.cc:318
+msgid &quot;unexpected character in PDU handshake&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:29
+msgid &quot;phone failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:32
+msgid &quot;no connection to phone&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:35
+msgid &quot;phone adaptor link reserved&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:38 gsmlib/gsm_error.cc:259
+msgid &quot;operation not allowed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:41 gsmlib/gsm_error.cc:262
+msgid &quot;operation not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:44
+msgid &quot;ph SIM PIN required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:47 gsmlib/gsm_error.cc:271
+msgid &quot;SIM not inserted&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:50 gsmlib/gsm_error.cc:274
+msgid &quot;SIM PIN required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:53 gsmlib/gsm_error.cc:289
+msgid &quot;SIM PUK required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:56 gsmlib/gsm_error.cc:280
+msgid &quot;SIM failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:59 gsmlib/gsm_error.cc:283
+msgid &quot;SIM busy&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:62 gsmlib/gsm_error.cc:286
+msgid &quot;SIM wrong&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:65
+msgid &quot;incorrect password&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:68 gsmlib/gsm_error.cc:292
+msgid &quot;SIM PIN2 required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:71 gsmlib/gsm_error.cc:295
+msgid &quot;SIM PUK2 required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:74 gsmlib/gsm_error.cc:304
+msgid &quot;memory full&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:77
+msgid &quot;invalid index&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:80
+msgid &quot;not found&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:83 gsmlib/gsm_error.cc:298
+msgid &quot;memory failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:86
+msgid &quot;text string too long&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:89
+msgid &quot;invalid characters in text string&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:92
+msgid &quot;dial string too long&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:95
+msgid &quot;invalid characters in dial string&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:98 gsmlib/gsm_error.cc:310
+msgid &quot;no network service&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:101 gsmlib/gsm_error.cc:313
+msgid &quot;network timeout&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:107
+#, c-format
+msgid &quot;invalid ME error %d&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:117
+msgid &quot;Unassigned (unallocated) number&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:120
+msgid &quot;Operator determined barring&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:123
+msgid &quot;Call barred&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:126
+msgid &quot;Network failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:129
+msgid &quot;Short message transfer rejected&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:133 gsmlib/gsm_error.cc:355
+msgid &quot;Congestion&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:136
+msgid &quot;Destination out of service&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:139
+msgid &quot;Unidentified subscriber&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:142
+msgid &quot;Facility rejected&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:145
+msgid &quot;Unknown subscriber&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:148
+msgid &quot;Network out of order&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:151
+msgid &quot;Temporary failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:154
+msgid &quot;Resources unavailable, unspecified&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:157
+msgid &quot;Requested facility not subscribed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:160
+msgid &quot;Requested facility not implemented&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:163
+msgid &quot;Invalid Transaction Identifier&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:166
+msgid &quot;Semantically incorrect message&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:169
+msgid &quot;Invalid mandatory information&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:172
+msgid &quot;Message type non-existent or not implemented&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:175
+msgid &quot;Message not compatible with short message protocol state&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:178
+msgid &quot;Information element non-existent or not implemented&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:181
+msgid &quot;Protocol error, unspecified&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:184
+msgid &quot;Interworking, unspecified&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:187
+msgid &quot;Telematic interworking not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:190
+msgid &quot;Short message Type 0 not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:193
+msgid &quot;Cannot replace short message&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:196
+msgid &quot;Unspecified TP-PID error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:199
+msgid &quot;Data coding scheme (alphabet) not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:202
+msgid &quot;Message class not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:205
+msgid &quot;Unspecifiec TP-DCS error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:208
+msgid &quot;Command cannot be actioned&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:211
+msgid &quot;Command unsupported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:214
+msgid &quot;Unspecified TP-Command error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:217
+msgid &quot;TPDU not supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:220
+msgid &quot;SC busy&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:223
+msgid &quot;No SC subscription&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:226
+msgid &quot;SC system failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:229
+msgid &quot;Invalid SME address&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:232
+msgid &quot;Destination SME barred&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:235
+msgid &quot;SM Rejected-Duplicated SM&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:238
+msgid &quot;SIM SMS storage full&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:241
+msgid &quot;No SMS storage capability in SIM&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:244
+msgid &quot;Error in MS&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:247
+msgid &quot;Memory Capacity Exceed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:250
+msgid &quot;Unspecified error cause&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:253
+msgid &quot;ME failure&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:256
+msgid &quot;SMS service of ME reserved&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:265
+msgid &quot;invalid PDU mode parameter&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:268
+msgid &quot;invalid text mode parameter&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:277
+msgid &quot;PH-SIM PIN required&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:301
+msgid &quot;invalid memory index&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:307
+msgid &quot;SMSC address unknown&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:316
+msgid &quot;no +CNMA acknowledgement expected&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:319
+msgid &quot;unknown error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:322
+#, c-format
+msgid &quot;invalid SMS error %d&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:335
+msgid &quot;Short message received by the SME&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:338
+msgid &quot;&quot;
+&quot;Short message forwarded by the SC to the SME but the SC is unable to confirm &quot;
+&quot;delivery&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:342
+msgid &quot;Short message replaced by the SC&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:345 gsmlib/gsm_error.cc:373 gsmlib/gsm_error.cc:418
+msgid &quot;reserved&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:358
+msgid &quot;SME busy&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:361
+msgid &quot;No response from SME&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:364
+msgid &quot;Service rejected&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:367 gsmlib/gsm_error.cc:400
+msgid &quot;Quality of service not available&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:370
+msgid &quot;Error in SME&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:377
+msgid &quot; (Temporary error, SC is not making any more transfer attempts)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:380
+msgid &quot; (Temporary error, SC still trying to transfer SM)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:388
+msgid &quot;Remote Procedure Error&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:391
+msgid &quot;Incompatible destination&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:394
+msgid &quot;Connection rejected by SME&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:397
+msgid &quot;Not obtainable&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:403
+msgid &quot;No interworking available&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:406
+msgid &quot;SM validity period expired&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:409
+msgid &quot;SM deleted by originating SME&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:412
+msgid &quot;SM deleted by SC administration&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:415
+msgid &quot;SM does not exit&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_error.cc:421
+msgid &quot; (Permanent Error, SC is not making any more transfer attempts)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_event.cc:80
+#, c-format
+msgid &quot;unexpected number format %d&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_event.cc:100
+#, c-format
+msgid &quot;unexpected unsolicited event '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:538
+msgid &quot;unable to set operator&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:665
+msgid &quot;call forward time must be in the range 0..30&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:813
+msgid &quot;Functionality Level commands not supported by ME&quot;
+msgstr &quot;&quot;
+
+#. If the number was just out of range, we get here.
+#: gsmlib/gsm_me_ta.cc:832
+msgid &quot;Requested Functionality Level out of range&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:943
+msgid &quot;unsupported alphabet for SMS&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:952
+msgid &quot;SMS text is larger than allowed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:964
+msgid &quot;not more than 255 concatenated SMSs allowed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:997
+msgid &quot;only serviceLevel 0 or 1 supported&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:1110 gsmlib/gsm_me_ta.cc:1152
+msgid &quot;cannot route SMS messages to TE&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:1124 gsmlib/gsm_me_ta.cc:1166
+msgid &quot;cannot route cell broadcast messages to TE&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:1136
+msgid &quot;cannot route status reports messages to TE&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_me_ta.cc:1180
+msgid &quot;cannot route status report messages to TE&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:51
+msgid &quot;expected parameter&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:71
+msgid &quot;expected '\&quot;'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:109
+msgid &quot;expected number&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:120
+#, c-format
+msgid &quot;unexpected end of string '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:124
+#, c-format
+msgid &quot; (at position %d of string '%s')&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:141
+#, c-format
+msgid &quot;expected '%c'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:165
+msgid &quot;expected ')' or ','&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:251
+msgid &quot;expected ')', ',' or '-'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:257
+msgid &quot;range of the form a-b-c not allowed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:264
+msgid &quot;range of the form a- no allowed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:350
+msgid &quot;expected comma&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_parser.cc:367
+msgid &quot;expected end of line&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_phonebook.cc:47
+#, c-format
+msgid &quot;&quot;
+&quot;length of text '%s' exceeds maximum text length (%d characters) of phonebook &quot;
+&quot;'%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_phonebook.cc:55
+#, c-format
+msgid &quot;&quot;
+&quot;length of telephone number '%s' exceeds maximum telephone number length (%d &quot;
+&quot;characters) of phonebook '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_phonebook.cc:275
+msgid &quot;phonebook full&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_phonebook.cc:291
+msgid &quot;attempt to overwrite phonebook entry&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_phonebook.cc:569
+msgid &quot;SIM card changed while accessing phonebook&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:66 gsmlib/gsm_sms.cc:85 gsmlib/gsm_sms.cc:175
+msgid &quot;unhandled SMS TPDU type&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:107
+msgid &quot;can only send SMS-SUBMIT and SMS-COMMAND TPDUs&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:111
+msgid &quot;no device given for sending SMS&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:283
+msgid &quot;Message type: SMS-DELIVER&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:284 gsmlib/gsm_sms.cc:426 gsmlib/gsm_sms.cc:531
+#: gsmlib/gsm_sms.cc:618 gsmlib/gsm_sms.cc:723 gsmlib/gsm_sms.cc:829
+msgid &quot;SC address: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:285 gsmlib/gsm_sms.cc:532
+msgid &quot;More messages to send: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:286 gsmlib/gsm_sms.cc:445
+msgid &quot;Reply path: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:287 gsmlib/gsm_sms.cc:446
+msgid &quot;User data header indicator: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:289
+msgid &quot;Status report indication: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:290
+msgid &quot;Originating address: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:292 gsmlib/gsm_sms.cc:452 gsmlib/gsm_sms.cc:621
+#: gsmlib/gsm_sms.cc:729 gsmlib/gsm_sms.cc:836
+msgid &quot;Protocol identifier: 0x&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:294 gsmlib/gsm_sms.cc:454 gsmlib/gsm_sms.cc:733
+#: gsmlib/gsm_sms.cc:840
+msgid &quot;Data coding scheme: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:295 gsmlib/gsm_sms.cc:536 gsmlib/gsm_sms.cc:830
+msgid &quot;SC timestamp: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:296 gsmlib/gsm_sms.cc:456 gsmlib/gsm_sms.cc:735
+#: gsmlib/gsm_sms.cc:842
+msgid &quot;User data length: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:297 gsmlib/gsm_sms.cc:457
+msgid &quot;User data header: 0x&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:302 gsmlib/gsm_sms.cc:461 gsmlib/gsm_sms.cc:736
+#: gsmlib/gsm_sms.cc:843
+msgid &quot;User data: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:425
+msgid &quot;Message type: SMS-SUBMIT&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:427
+msgid &quot;Reject duplicates: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:428
+msgid &quot;Validity period format: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:432 gsmlib/gsm_sms_codec.cc:184
+msgid &quot;not present&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:435
+msgid &quot;relative&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:438
+msgid &quot;absolute&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:448 gsmlib/gsm_sms.cc:620
+msgid &quot;Status report request: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:449 gsmlib/gsm_sms.cc:534 gsmlib/gsm_sms.cc:619
+msgid &quot;Message reference: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:450 gsmlib/gsm_sms.cc:626
+msgid &quot;Destination address: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:455
+msgid &quot;Validity period: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:530
+msgid &quot;Message type: SMS-STATUS-REPORT&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:533
+msgid &quot;Status report qualifier: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:535
+msgid &quot;Recipient address: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:537
+msgid &quot;Discharge time: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:538
+msgid &quot;Status: 0x&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:617
+msgid &quot;Message type: SMS-COMMAND&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:623
+msgid &quot;Command type: 0x&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:625
+msgid &quot;Message number: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:628
+msgid &quot;Command data length: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:629
+msgid &quot;Command data: '&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:722
+msgid &quot;Message type: SMS-DELIVER-REPORT&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:724 gsmlib/gsm_sms.cc:831
+msgid &quot;Protocol identifier present: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:726 gsmlib/gsm_sms.cc:833
+msgid &quot;Data coding scheme present: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:727 gsmlib/gsm_sms.cc:834
+msgid &quot;User data length present: &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms.cc:828
+msgid &quot;Message type: SMS-SUBMIT-REPORT&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:189 gsmlib/gsm_sms_codec.cc:191
+msgid &quot; minutes&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:193
+msgid &quot; days&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:195
+msgid &quot; weeks&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:214
+msgid &quot;compressed   &quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:219
+msgid &quot;voicemail message waiting&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:222
+msgid &quot;fax message waiting&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:225
+msgid &quot;electronic mail message waiting&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:228
+msgid &quot;other message waiting&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:235
+msgid &quot;default alphabet&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:238
+msgid &quot;8-bit alphabet&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:241
+msgid &quot;16-bit alphabet&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:244
+msgid &quot;reserved alphabet&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:257
+msgid &quot;bad hexadecimal PDU format&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:286 gsmlib/gsm_sms_codec.cc:296
+#: gsmlib/gsm_sms_codec.cc:311 gsmlib/gsm_sms_codec.cc:319
+#: gsmlib/gsm_sms_codec.cc:340 gsmlib/gsm_sms_codec.cc:348
+#: gsmlib/gsm_sms_codec.cc:369 gsmlib/gsm_sms_codec.cc:383
+msgid &quot;premature end of PDU&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sms_codec.cc:474
+msgid &quot;unknown time period format&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:120
+msgid &quot;interrupted when reading from TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:135
+msgid &quot;end of file when reading from TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:145
+msgid &quot;reading from TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:150
+msgid &quot;timeout when reading from TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:177
+#, c-format
+msgid &quot;opening device '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:184
+msgid &quot;getting file status flags failed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:189
+msgid &quot;switching of non-blocking mode failed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:204
+msgid &quot;clearing DTR failed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:210
+msgid &quot;setting DTR failed&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:215
+#, c-format
+msgid &quot;tcgetattr device '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:244
+#, c-format
+msgid &quot;tcsetattr device '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:302
+#, c-format
+msgid &quot;reset modem failed '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:347 gsmlib/gsm_unix_serial.cc:379
+msgid &quot;interrupted when writing to TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:362 gsmlib/gsm_unix_serial.cc:371
+msgid &quot;writing to TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:392
+msgid &quot;timeout when writing to TA&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_unix_serial.cc:453
+#, c-format
+msgid &quot;unknown baudrate '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:206
+#, c-format
+msgid &quot;error when calling stat('%s') (errno: %d/%s)&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:237
+#, c-format
+msgid &quot;file '%s' is neither file nor character device&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:241
+msgid &quot;maxmimum number of symbolic links exceeded&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:251
+#, c-format
+msgid &quot;error renaming '%s' to '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:349
+#, c-format
+msgid &quot;text '%s' contains illegal character '\&quot;'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_util.cc:359
+#, c-format
+msgid &quot;illegal character in telephone number '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:95
+#, c-format
+msgid &quot;error reading from file '%s&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:109
+#, c-format
+msgid &quot;entry '%s' lacks index&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:118 gsmlib/gsm_sorted_phonebook.cc:124
+#, c-format
+msgid &quot;line '%s' has invalid format&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:173 gsmlib/gsm_sorted_sms_store.cc:159
+#, c-format
+msgid &quot;error opening file '%s' for writing&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:174 gsmlib/gsm_sorted_phonebook.cc:193
+#: gsmlib/gsm_sorted_sms_store.cc:67 gsmlib/gsm_sorted_sms_store.cc:160
+msgid &quot;&lt;STDOUT&gt;&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:192 gsmlib/gsm_sorted_sms_store.cc:66
+#, c-format
+msgid &quot;error writing to file '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:216
+msgid &quot;attempt to change phonebook read from &lt;STDIN&gt;&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:229 gsmlib/gsm_sorted_sms_store.cc:215
+#, c-format
+msgid &quot;cannot open file '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:244 gsmlib/gsm_sorted_sms_store.cc:55
+#: gsmlib/gsm_sorted_sms_store.cc:228
+msgid &quot;&lt;STDIN&gt;&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_phonebook.cc:361
+msgid &quot;indices must be unique in phonebook&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_sms_store.cc:54
+#, c-format
+msgid &quot;error reading from file '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_sms_store.cc:87
+#, c-format
+msgid &quot;file '%s' has wrong version&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_sms_store.cc:99 gsmlib/gsm_sorted_sms_store.cc:111
+#, c-format
+msgid &quot;corrupt SMS store file '%s'&quot;
+msgstr &quot;&quot;
+
+#: gsmlib/gsm_sorted_sms_store.cc:204
+msgid &quot;attempt to change SMS store read from &lt;STDIN&gt;&quot;
+msgstr &quot;&quot;
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1postampcatid"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/stamp-cat-id (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/stamp-cat-id                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/po/stamp-cat-id        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+timestamp
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: scripts Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.6.1999
+# *************************************************************************
+
+EXTRA_DIST =        config.sub ltconfig missing \
+                config.guess install-sh ltmain.sh mkinstalldirs debugconfig.sh
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,259 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: scripts Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 5.6.1999
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+EXTRA_DIST = config.sub ltconfig missing \
+                config.guess install-sh ltmain.sh mkinstalldirs debugconfig.sh
+
+subdir = scripts
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+DIST_COMMON = Makefile.am Makefile.in config.guess config.rpath \
+        config.sub depcomp install-sh ltconfig ltmain.sh missing \
+        mkinstalldirs
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  scripts/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile
+
+installdirs:
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+uninstall-am: uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+        distclean distclean-generic distclean-libtool distdir dvi \
+        dvi-am info info-am install install-am install-data \
+        install-data-am install-exec install-exec-am install-info \
+        install-info-am install-man install-strip installcheck \
+        installcheck-am installdirs maintainer-clean \
+        maintainer-clean-generic mostlyclean mostlyclean-generic \
+        mostlyclean-libtool uninstall uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigguess"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.guess (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.guess                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.guess        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1516 @@
</span><ins>+#! /bin/sh
+# Attempt to guess a canonical system name.
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+#   Inc.
+
+timestamp='2007-03-06'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner &lt;per@bothner.com&gt;.
+# Please send patches to &lt;config-patches@gnu.org&gt;.  Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub.  If it succeeds, it prints the system name on stdout, and
+# exits with 0.  Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo &quot;$0&quot; | sed -e 's,.*/,,'`
+
+usage=&quot;\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+  -h, --help         print this help, then exit
+  -t, --time-stamp   print date of last modification, then exit
+  -v, --version      print version number, then exit
+
+Report bugs and patches to &lt;config-patches@gnu.org&gt;.&quot;
+
+version=&quot;\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&quot;
+
+help=&quot;
+Try \`$me --help' for more information.&quot;
+
+# Parse command line
+while test $# -gt 0 ; do
+  case $1 in
+    --time-stamp | --time* | -t )
+       echo &quot;$timestamp&quot; ; exit ;;
+    --version | -v )
+       echo &quot;$version&quot; ; exit ;;
+    --help | --h* | -h )
+       echo &quot;$usage&quot;; exit ;;
+    -- )     # Stop option processing
+       shift; break ;;
+    - )        # Use stdin as input.
+       break ;;
+    -* )
+       echo &quot;$me: invalid option $1$help&quot; &gt;&amp;2
+       exit 1 ;;
+    * )
+       break ;;
+  esac
+done
+
+if test $# != 0; then
+  echo &quot;$me: too many arguments$help&quot; &gt;&amp;2
+  exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap &quot;exitcode=\$?; (rm -f \$tmpfiles 2&gt;/dev/null; rmdir \$tmp 2&gt;/dev/null) &amp;&amp; exit \$exitcode&quot; 0 ;
+trap &quot;rm -f \$tmpfiles 2&gt;/dev/null; rmdir \$tmp 2&gt;/dev/null; exit 1&quot; 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 &amp;&amp; mktemp -d &quot;$TMPDIR/cgXXXXXX&quot;) 2&gt;/dev/null` &amp;&amp; test -n &quot;$tmp&quot; &amp;&amp; test -d &quot;$tmp&quot; ; } ||
+ { test -n &quot;$RANDOM&quot; &amp;&amp; tmp=$TMPDIR/cg$$-$RANDOM &amp;&amp; (umask 077 &amp;&amp; mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ &amp;&amp; (umask 077 &amp;&amp; mkdir $tmp) &amp;&amp; echo &quot;Warning: creating insecure temp directory&quot; &gt;&amp;2 ; } ||
+ { echo &quot;$me: cannot create a temporary directory in $TMPDIR&quot; &gt;&amp;2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles=&quot;$dummy.c $dummy.o $dummy.rel $dummy&quot; ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,)    echo &quot;int x;&quot; &gt; $dummy.c ;
+        for c in cc gcc c89 c99 ; do
+          if ($c -c -o $dummy.o $dummy.c) &gt;/dev/null 2&gt;&amp;1 ; then
+             CC_FOR_BUILD=&quot;$c&quot;; break ;
+          fi ;
+        done ;
+        if test x&quot;$CC_FOR_BUILD&quot; = x ; then
+          CC_FOR_BUILD=no_compiler_found ;
+        fi
+        ;
+ ,,*)   CC_FOR_BUILD=$CC ;;
+ ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) &gt;/dev/null 2&gt;&amp;1 ; then
+        PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2&gt;/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2&gt;/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2&gt;/dev/null`  || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2&gt;/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case &quot;${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}&quot; in
+    *:NetBSD:*:*)
+        # NetBSD (nbsd) targets should (where applicable) match one or
+        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
+        # switched to ELF, *-*-netbsd* would select the old
+        # object file format.  This provides both forward
+        # compatibility and a consistent mechanism for selecting the
+        # object file format.
+        #
+        # Note: NetBSD doesn't particularly care about the vendor
+        # portion of the name.  We always set it to &quot;unknown&quot;.
+        sysctl=&quot;sysctl -n hw.machine_arch&quot;
+        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2&gt;/dev/null || \
+            /usr/sbin/$sysctl 2&gt;/dev/null || echo unknown)`
+        case &quot;${UNAME_MACHINE_ARCH}&quot; in
+            armeb) machine=armeb-unknown ;;
+            arm*) machine=arm-unknown ;;
+            sh3el) machine=shl-unknown ;;
+            sh3eb) machine=sh-unknown ;;
+            sh5el) machine=sh5le-unknown ;;
+            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+        esac
+        # The Operating System including object format, if it has switched
+        # to ELF recently, or will in the future.
+        case &quot;${UNAME_MACHINE_ARCH}&quot; in
+            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+                eval $set_cc_for_build
+                if echo __ELF__ | $CC_FOR_BUILD -E - 2&gt;/dev/null \
+                        | grep __ELF__ &gt;/dev/null
+                then
+                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+                    # Return netbsd for either.  FIX?
+                    os=netbsd
+                else
+                    os=netbsdelf
+                fi
+                ;
+            *)
+                os=netbsd
+                ;
+        esac
+        # The OS release
+        # Debian GNU/NetBSD machines have a different userland, and
+        # thus, need a distinct triplet. However, they do not need
+        # kernel version information, so it can be replaced with a
+        # suitable tag, in the style of linux-gnu.
+        case &quot;${UNAME_VERSION}&quot; in
+            Debian*)
+                release='-gnu'
+                ;
+            *)
+                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+                ;
+        esac
+        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+        # contains redundant information, the shorter form:
+        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+        echo &quot;${machine}-${os}${release}&quot;
+        exit ;;
+    *:OpenBSD:*:*)
+        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+        exit ;;
+    *:ekkoBSD:*:*)
+        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+        exit ;;
+    *:SolidBSD:*:*)
+        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+        exit ;;
+    macppc:MirBSD:*:*)
+        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+        exit ;;
+    *:MirBSD:*:*)
+        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+        exit ;;
+    alpha:OSF1:*:*)
+        case $UNAME_RELEASE in
+        *4.0)
+                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+                ;
+        *5.*)
+                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+                ;
+        esac
+        # According to Compaq, /usr/sbin/psrinfo has been available on
+        # OSF/1 and Tru64 systems produced since 1995.  I hope that
+        # covers most systems running today.  This code pipes the CPU
+        # types through head -n 1, so we only detect the type of CPU 0.
+        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+        case &quot;$ALPHA_CPU_TYPE&quot; in
+            &quot;EV4 (21064)&quot;)
+                UNAME_MACHINE=&quot;alpha&quot; ;;
+            &quot;EV4.5 (21064)&quot;)
+                UNAME_MACHINE=&quot;alpha&quot; ;;
+            &quot;LCA4 (21066/21068)&quot;)
+                UNAME_MACHINE=&quot;alpha&quot; ;;
+            &quot;EV5 (21164)&quot;)
+                UNAME_MACHINE=&quot;alphaev5&quot; ;;
+            &quot;EV5.6 (21164A)&quot;)
+                UNAME_MACHINE=&quot;alphaev56&quot; ;;
+            &quot;EV5.6 (21164PC)&quot;)
+                UNAME_MACHINE=&quot;alphapca56&quot; ;;
+            &quot;EV5.7 (21164PC)&quot;)
+                UNAME_MACHINE=&quot;alphapca57&quot; ;;
+            &quot;EV6 (21264)&quot;)
+                UNAME_MACHINE=&quot;alphaev6&quot; ;;
+            &quot;EV6.7 (21264A)&quot;)
+                UNAME_MACHINE=&quot;alphaev67&quot; ;;
+            &quot;EV6.8CB (21264C)&quot;)
+                UNAME_MACHINE=&quot;alphaev68&quot; ;;
+            &quot;EV6.8AL (21264B)&quot;)
+                UNAME_MACHINE=&quot;alphaev68&quot; ;;
+            &quot;EV6.8CX (21264D)&quot;)
+                UNAME_MACHINE=&quot;alphaev68&quot; ;;
+            &quot;EV6.9A (21264/EV69A)&quot;)
+                UNAME_MACHINE=&quot;alphaev69&quot; ;;
+            &quot;EV7 (21364)&quot;)
+                UNAME_MACHINE=&quot;alphaev7&quot; ;;
+            &quot;EV7.9 (21364A)&quot;)
+                UNAME_MACHINE=&quot;alphaev79&quot; ;;
+        esac
+        # A Pn.n version is a patched version.
+        # A Vn.n version is a released version.
+        # A Tn.n version is a released field test version.
+        # A Xn.n version is an unreleased experimental baselevel.
+        # 1.2 uses &quot;1.2&quot; for uname -r.
+        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+        exit ;;
+    Alpha\ *:Windows_NT*:*)
+        # How do we know it's Interix rather than the generic POSIX subsystem?
+        # Should we change UNAME_MACHINE based on the output of uname instead
+        # of the specific Alpha model?
+        echo alpha-pc-interix
+        exit ;;
+    21064:Windows_NT:50:3)
+        echo alpha-dec-winnt3.5
+        exit ;;
+    Amiga*:UNIX_System_V:4.0:*)
+        echo m68k-unknown-sysv4
+        exit ;;
+    *:[Aa]miga[Oo][Ss]:*:*)
+        echo ${UNAME_MACHINE}-unknown-amigaos
+        exit ;;
+    *:[Mm]orph[Oo][Ss]:*:*)
+        echo ${UNAME_MACHINE}-unknown-morphos
+        exit ;;
+    *:OS/390:*:*)
+        echo i370-ibm-openedition
+        exit ;;
+    *:z/VM:*:*)
+        echo s390-ibm-zvmoe
+        exit ;;
+    *:OS400:*:*)
+        echo powerpc-ibm-os400
+        exit ;;
+    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+        echo arm-acorn-riscix${UNAME_RELEASE}
+        exit ;;
+    arm:riscos:*:*|arm:RISCOS:*:*)
+        echo arm-unknown-riscos
+        exit ;;
+    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+        echo hppa1.1-hitachi-hiuxmpp
+        exit ;;
+    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+        if test &quot;`(/bin/universe) 2&gt;/dev/null`&quot; = att ; then
+                echo pyramid-pyramid-sysv3
+        else
+                echo pyramid-pyramid-bsd
+        fi
+        exit ;;
+    NILE*:*:*:dcosx)
+        echo pyramid-pyramid-svr4
+        exit ;;
+    DRS?6000:unix:4.0:6*)
+        echo sparc-icl-nx6
+        exit ;;
+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+        case `/usr/bin/uname -p` in
+            sparc) echo sparc-icl-nx7; exit ;;
+        esac ;;
+    sun4H:SunOS:5.*:*)
+        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+        exit ;;
+    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+        exit ;;
+    i86pc:SunOS:5.*:*)
+        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+        exit ;;
+    sun4*:SunOS:6*:*)
+        # According to config.sub, this is the proper way to canonicalize
+        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
+        # it's likely to be more like Solaris than SunOS4.
+        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+        exit ;;
+    sun4*:SunOS:*:*)
+        case &quot;`/usr/bin/arch -k`&quot; in
+            Series*|S4*)
+                UNAME_RELEASE=`uname -v`
+                ;
+        esac
+        # Japanese Language versions have a version number like `4.1.3-JL'.
+        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+        exit ;;
+    sun3*:SunOS:*:*)
+        echo m68k-sun-sunos${UNAME_RELEASE}
+        exit ;;
+    sun*:*:4.2BSD:*)
+        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2&gt;/dev/null`
+        test &quot;x${UNAME_RELEASE}&quot; = &quot;x&quot; &amp;&amp; UNAME_RELEASE=3
+        case &quot;`/bin/arch`&quot; in
+            sun3)
+                echo m68k-sun-sunos${UNAME_RELEASE}
+                ;
+            sun4)
+                echo sparc-sun-sunos${UNAME_RELEASE}
+                ;
+        esac
+        exit ;;
+    aushp:SunOS:*:*)
+        echo sparc-auspex-sunos${UNAME_RELEASE}
+        exit ;;
+    # The situation for MiNT is a little confusing.  The machine name
+    # can be virtually everything (everything which is not
+    # &quot;atarist&quot; or &quot;atariste&quot; at least should have a processor
+    # &gt; m68000).  The system name ranges from &quot;MiNT&quot; over &quot;FreeMiNT&quot;
+    # to the lowercase version &quot;mint&quot; (or &quot;freemint&quot;).  Finally
+    # the system name &quot;TOS&quot; denotes a system which is actually not
+    # MiNT.  But MiNT is downward compatible to TOS, so this should
+    # be no problem.
+    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+        echo m68k-atari-mint${UNAME_RELEASE}
+        exit ;;
+    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+        echo m68k-atari-mint${UNAME_RELEASE}
+        exit ;;
+    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+        echo m68k-atari-mint${UNAME_RELEASE}
+        exit ;;
+    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+        echo m68k-milan-mint${UNAME_RELEASE}
+        exit ;;
+    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+        echo m68k-hades-mint${UNAME_RELEASE}
+        exit ;;
+    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+        echo m68k-unknown-mint${UNAME_RELEASE}
+        exit ;;
+    m68k:machten:*:*)
+        echo m68k-apple-machten${UNAME_RELEASE}
+        exit ;;
+    powerpc:machten:*:*)
+        echo powerpc-apple-machten${UNAME_RELEASE}
+        exit ;;
+    RISC*:Mach:*:*)
+        echo mips-dec-mach_bsd4.3
+        exit ;;
+    RISC*:ULTRIX:*:*)
+        echo mips-dec-ultrix${UNAME_RELEASE}
+        exit ;;
+    VAX*:ULTRIX*:*:*)
+        echo vax-dec-ultrix${UNAME_RELEASE}
+        exit ;;
+    2020:CLIX:*:* | 2430:CLIX:*:*)
+        echo clipper-intergraph-clix${UNAME_RELEASE}
+        exit ;;
+    mips:*:*:UMIPS | mips:*:*:RISCos)
+        eval $set_cc_for_build
+        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+#ifdef __cplusplus
+#include &lt;stdio.h&gt;  /* for printf() prototype */
+        int main (int argc, char *argv[]) {
+#else
+        int main (argc, argv) int argc; char *argv[]; {
+#endif
+        #if defined (host_mips) &amp;&amp; defined (MIPSEB)
+        #if defined (SYSTYPE_SYSV)
+          printf (&quot;mips-mips-riscos%ssysv\n&quot;, argv[1]); exit (0);
+        #endif
+        #if defined (SYSTYPE_SVR4)
+          printf (&quot;mips-mips-riscos%ssvr4\n&quot;, argv[1]); exit (0);
+        #endif
+        #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+          printf (&quot;mips-mips-riscos%sbsd\n&quot;, argv[1]); exit (0);
+        #endif
+        #endif
+          exit (-1);
+        }
+EOF
+        $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp;
+          dummyarg=`echo &quot;${UNAME_RELEASE}&quot; | sed -n 's/\([0-9]*\).*/\1/p'` &amp;&amp;
+          SYSTEM_NAME=`$dummy $dummyarg` &amp;&amp;
+            { echo &quot;$SYSTEM_NAME&quot;; exit; }
+        echo mips-mips-riscos${UNAME_RELEASE}
+        exit ;;
+    Motorola:PowerMAX_OS:*:*)
+        echo powerpc-motorola-powermax
+        exit ;;
+    Motorola:*:4.3:PL8-*)
+        echo powerpc-harris-powermax
+        exit ;;
+    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+        echo powerpc-harris-powermax
+        exit ;;
+    Night_Hawk:Power_UNIX:*:*)
+        echo powerpc-harris-powerunix
+        exit ;;
+    m88k:CX/UX:7*:*)
+        echo m88k-harris-cxux7
+        exit ;;
+    m88k:*:4*:R4*)
+        echo m88k-motorola-sysv4
+        exit ;;
+    m88k:*:3*:R3*)
+        echo m88k-motorola-sysv3
+        exit ;;
+    AViiON:dgux:*:*)
+        # DG/UX returns AViiON for all architectures
+        UNAME_PROCESSOR=`/usr/bin/uname -p`
+        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+        then
+            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+               [ ${TARGET_BINARY_INTERFACE}x = x ]
+            then
+                echo m88k-dg-dgux${UNAME_RELEASE}
+            else
+                echo m88k-dg-dguxbcs${UNAME_RELEASE}
+            fi
+        else
+            echo i586-dg-dgux${UNAME_RELEASE}
+        fi
+         exit ;;
+    M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
+        echo m88k-dolphin-sysv3
+        exit ;;
+    M88*:*:R3*:*)
+        # Delta 88k system running SVR3
+        echo m88k-motorola-sysv3
+        exit ;;
+    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+        echo m88k-tektronix-sysv3
+        exit ;;
+    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+        echo m68k-tektronix-bsd
+        exit ;;
+    *:IRIX*:*:*)
+        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+        exit ;;
+    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
+        exit ;;               # Note that: echo &quot;'`uname -s`'&quot; gives 'AIX '
+    i*86:AIX:*:*)
+        echo i386-ibm-aix
+        exit ;;
+    ia64:AIX:*:*)
+        if [ -x /usr/bin/oslevel ] ; then
+                IBM_REV=`/usr/bin/oslevel`
+        else
+                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+        fi
+        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+        exit ;;
+    *:AIX:2:3)
+        if grep bos325 /usr/include/stdio.h &gt;/dev/null 2&gt;&amp;1; then
+                eval $set_cc_for_build
+                sed 's/^                //' &lt;&lt; EOF &gt;$dummy.c
+                #include &lt;sys/systemcfg.h&gt;
+
+                main()
+                        {
+                        if (!__power_pc())
+                                exit(1);
+                        puts(&quot;powerpc-ibm-aix3.2.5&quot;);
+                        exit(0);
+                        }
+EOF
+                if $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp; SYSTEM_NAME=`$dummy`
+                then
+                        echo &quot;$SYSTEM_NAME&quot;
+                else
+                        echo rs6000-ibm-aix3.2.5
+                fi
+        elif grep bos324 /usr/include/stdio.h &gt;/dev/null 2&gt;&amp;1; then
+                echo rs6000-ibm-aix3.2.4
+        else
+                echo rs6000-ibm-aix3.2
+        fi
+        exit ;;
+    *:AIX:*:[45])
+        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' &gt;/dev/null 2&gt;&amp;1; then
+                IBM_ARCH=rs6000
+        else
+                IBM_ARCH=powerpc
+        fi
+        if [ -x /usr/bin/oslevel ] ; then
+                IBM_REV=`/usr/bin/oslevel`
+        else
+                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+        fi
+        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+        exit ;;
+    *:AIX:*:*)
+        echo rs6000-ibm-aix
+        exit ;;
+    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+        echo romp-ibm-bsd4.4
+        exit ;;
+    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
+        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
+        exit ;;                             # report: romp-ibm BSD 4.3
+    *:BOSX:*:*)
+        echo rs6000-bull-bosx
+        exit ;;
+    DPX/2?00:B.O.S.:*:*)
+        echo m68k-bull-sysv3
+        exit ;;
+    9000/[34]??:4.3bsd:1.*:*)
+        echo m68k-hp-bsd
+        exit ;;
+    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+        echo m68k-hp-bsd4.4
+        exit ;;
+    9000/[34678]??:HP-UX:*:*)
+        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+        case &quot;${UNAME_MACHINE}&quot; in
+            9000/31? )            HP_ARCH=m68000 ;;
+            9000/[34]?? )         HP_ARCH=m68k ;;
+            9000/[678][0-9][0-9])
+                if [ -x /usr/bin/getconf ]; then
+                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2&gt;/dev/null`
+                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2&gt;/dev/null`
+                    case &quot;${sc_cpu_version}&quot; in
+                      523) HP_ARCH=&quot;hppa1.0&quot; ;; # CPU_PA_RISC1_0
+                      528) HP_ARCH=&quot;hppa1.1&quot; ;; # CPU_PA_RISC1_1
+                      532)                      # CPU_PA_RISC2_0
+                        case &quot;${sc_kernel_bits}&quot; in
+                          32) HP_ARCH=&quot;hppa2.0n&quot; ;;
+                          64) HP_ARCH=&quot;hppa2.0w&quot; ;;
+                          '') HP_ARCH=&quot;hppa2.0&quot; ;;   # HP-UX 10.20
+                        esac ;;
+                    esac
+                fi
+                if [ &quot;${HP_ARCH}&quot; = &quot;&quot; ]; then
+                    eval $set_cc_for_build
+                    sed 's/^              //' &lt;&lt; EOF &gt;$dummy.c
+
+              #define _HPUX_SOURCE
+              #include &lt;stdlib.h&gt;
+              #include &lt;unistd.h&gt;
+
+              int main ()
+              {
+              #if defined(_SC_KERNEL_BITS)
+                  long bits = sysconf(_SC_KERNEL_BITS);
+              #endif
+                  long cpu  = sysconf (_SC_CPU_VERSION);
+
+                  switch (cpu)
+                      {
+                      case CPU_PA_RISC1_0: puts (&quot;hppa1.0&quot;); break;
+                      case CPU_PA_RISC1_1: puts (&quot;hppa1.1&quot;); break;
+                      case CPU_PA_RISC2_0:
+              #if defined(_SC_KERNEL_BITS)
+                          switch (bits)
+                              {
+                              case 64: puts (&quot;hppa2.0w&quot;); break;
+                              case 32: puts (&quot;hppa2.0n&quot;); break;
+                              default: puts (&quot;hppa2.0&quot;); break;
+                              } break;
+              #else  /* !defined(_SC_KERNEL_BITS) */
+                          puts (&quot;hppa2.0&quot;); break;
+              #endif
+                      default: puts (&quot;hppa1.0&quot;); break;
+                      }
+                  exit (0);
+              }
+EOF
+                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2&gt;/dev/null) &amp;&amp; HP_ARCH=`$dummy`
+                    test -z &quot;$HP_ARCH&quot; &amp;&amp; HP_ARCH=hppa
+                fi ;;
+        esac
+        if [ ${HP_ARCH} = &quot;hppa2.0w&quot; ]
+        then
+            eval $set_cc_for_build
+
+            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
+            # generating 64-bit code.  GNU and HP use different nomenclature:
+            #
+            # $ CC_FOR_BUILD=cc ./config.guess
+            # =&gt; hppa2.0w-hp-hpux11.23
+            # $ CC_FOR_BUILD=&quot;cc +DA2.0w&quot; ./config.guess
+            # =&gt; hppa64-hp-hpux11.23
+
+            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2&gt;/dev/null) |
+                grep __LP64__ &gt;/dev/null
+            then
+                HP_ARCH=&quot;hppa2.0w&quot;
+            else
+                HP_ARCH=&quot;hppa64&quot;
+            fi
+        fi
+        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+        exit ;;
+    ia64:HP-UX:*:*)
+        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+        echo ia64-hp-hpux${HPUX_REV}
+        exit ;;
+    3050*:HI-UX:*:*)
+        eval $set_cc_for_build
+        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+        #include &lt;unistd.h&gt;
+        int
+        main ()
+        {
+          long cpu = sysconf (_SC_CPU_VERSION);
+          /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+             true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
+             results, however.  */
+          if (CPU_IS_PA_RISC (cpu))
+            {
+              switch (cpu)
+                {
+                  case CPU_PA_RISC1_0: puts (&quot;hppa1.0-hitachi-hiuxwe2&quot;); break;
+                  case CPU_PA_RISC1_1: puts (&quot;hppa1.1-hitachi-hiuxwe2&quot;); break;
+                  case CPU_PA_RISC2_0: puts (&quot;hppa2.0-hitachi-hiuxwe2&quot;); break;
+                  default: puts (&quot;hppa-hitachi-hiuxwe2&quot;); break;
+                }
+            }
+          else if (CPU_IS_HP_MC68K (cpu))
+            puts (&quot;m68k-hitachi-hiuxwe2&quot;);
+          else puts (&quot;unknown-hitachi-hiuxwe2&quot;);
+          exit (0);
+        }
+EOF
+        $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp; SYSTEM_NAME=`$dummy` &amp;&amp;
+                { echo &quot;$SYSTEM_NAME&quot;; exit; }
+        echo unknown-hitachi-hiuxwe2
+        exit ;;
+    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+        echo hppa1.1-hp-bsd
+        exit ;;
+    9000/8??:4.3bsd:*:*)
+        echo hppa1.0-hp-bsd
+        exit ;;
+    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+        echo hppa1.0-hp-mpeix
+        exit ;;
+    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+        echo hppa1.1-hp-osf
+        exit ;;
+    hp8??:OSF1:*:*)
+        echo hppa1.0-hp-osf
+        exit ;;
+    i*86:OSF1:*:*)
+        if [ -x /usr/sbin/sysversion ] ; then
+            echo ${UNAME_MACHINE}-unknown-osf1mk
+        else
+            echo ${UNAME_MACHINE}-unknown-osf1
+        fi
+        exit ;;
+    parisc*:Lites*:*:*)
+        echo hppa1.1-hp-lites
+        exit ;;
+    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+        echo c1-convex-bsd
+        exit ;;
+    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+        if getsysinfo -f scalar_acc
+        then echo c32-convex-bsd
+        else echo c2-convex-bsd
+        fi
+        exit ;;
+    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+        echo c34-convex-bsd
+        exit ;;
+    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+        echo c38-convex-bsd
+        exit ;;
+    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+        echo c4-convex-bsd
+        exit ;;
+    CRAY*Y-MP:*:*:*)
+        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+        exit ;;
+    CRAY*[A-Z]90:*:*:*)
+        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+              -e 's/\.[^.]*$/.X/'
+        exit ;;
+    CRAY*TS:*:*:*)
+        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+        exit ;;
+    CRAY*T3E:*:*:*)
+        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+        exit ;;
+    CRAY*SV1:*:*:*)
+        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+        exit ;;
+    *:UNICOS/mp:*:*)
+        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+        exit ;;
+    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+        echo &quot;${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}&quot;
+        exit ;;
+    5000:UNIX_System_V:4.*:*)
+        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+        echo &quot;sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}&quot;
+        exit ;;
+    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+        exit ;;
+    sparc*:BSD/OS:*:*)
+        echo sparc-unknown-bsdi${UNAME_RELEASE}
+        exit ;;
+    *:BSD/OS:*:*)
+        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+        exit ;;
+    *:FreeBSD:*:*)
+        case ${UNAME_MACHINE} in
+            pc98)
+                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+            amd64)
+                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+            *)
+                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+        esac
+        exit ;;
+    i*:CYGWIN*:*)
+        echo ${UNAME_MACHINE}-pc-cygwin
+        exit ;;
+    *:MINGW*:*)
+        echo ${UNAME_MACHINE}-pc-mingw32
+        exit ;;
+    i*:windows32*:*)
+            # uname -m includes &quot;-pc&quot; on this system.
+            echo ${UNAME_MACHINE}-mingw32
+        exit ;;
+    i*:PW*:*)
+        echo ${UNAME_MACHINE}-pc-pw32
+        exit ;;
+    *:Interix*:[3456]*)
+            case ${UNAME_MACHINE} in
+            x86) 
+                echo i586-pc-interix${UNAME_RELEASE}
+                exit ;;
+            EM64T | authenticamd)
+                echo x86_64-unknown-interix${UNAME_RELEASE}
+                exit ;;
+        esac ;;
+    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+        echo i${UNAME_MACHINE}-pc-mks
+        exit ;;
+    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+        # How do we know it's Interix rather than the generic POSIX subsystem?
+        # It also conflicts with pre-2.0 versions of AT&amp;T UWIN. Should we
+        # UNAME_MACHINE based on the output of uname instead of i386?
+        echo i586-pc-interix
+        exit ;;
+    i*:UWIN*:*)
+        echo ${UNAME_MACHINE}-pc-uwin
+        exit ;;
+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+        echo x86_64-unknown-cygwin
+        exit ;;
+    p*:CYGWIN*:*)
+        echo powerpcle-unknown-cygwin
+        exit ;;
+    prep*:SunOS:5.*:*)
+        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+        exit ;;
+    *:GNU:*:*)
+        # the GNU system
+        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+        exit ;;
+    *:GNU/*:*:*)
+        # other systems with GNU libc and userland
+        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+        exit ;;
+    i*86:Minix:*:*)
+        echo ${UNAME_MACHINE}-pc-minix
+        exit ;;
+    arm*:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    avr32*:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    cris:Linux:*:*)
+        echo cris-axis-linux-gnu
+        exit ;;
+    crisv32:Linux:*:*)
+        echo crisv32-axis-linux-gnu
+        exit ;;
+    frv:Linux:*:*)
+            echo frv-unknown-linux-gnu
+        exit ;;
+    ia64:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    m32r*:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    m68*:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    mips:Linux:*:*)
+        eval $set_cc_for_build
+        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+        #undef CPU
+        #undef mips
+        #undef mipsel
+        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+        CPU=mipsel
+        #else
+        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+        CPU=mips
+        #else
+        CPU=
+        #endif
+        #endif
+EOF
+        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
+            /^CPU/{
+                s: ::g
+                p
+            }'`&quot;
+        test x&quot;${CPU}&quot; != x &amp;&amp; { echo &quot;${CPU}-unknown-linux-gnu&quot;; exit; }
+        ;
+    mips64:Linux:*:*)
+        eval $set_cc_for_build
+        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+        #undef CPU
+        #undef mips64
+        #undef mips64el
+        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+        CPU=mips64el
+        #else
+        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+        CPU=mips64
+        #else
+        CPU=
+        #endif
+        #endif
+EOF
+        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
+            /^CPU/{
+                s: ::g
+                p
+            }'`&quot;
+        test x&quot;${CPU}&quot; != x &amp;&amp; { echo &quot;${CPU}-unknown-linux-gnu&quot;; exit; }
+        ;
+    or32:Linux:*:*)
+        echo or32-unknown-linux-gnu
+        exit ;;
+    ppc:Linux:*:*)
+        echo powerpc-unknown-linux-gnu
+        exit ;;
+    ppc64:Linux:*:*)
+        echo powerpc64-unknown-linux-gnu
+        exit ;;
+    alpha:Linux:*:*)
+        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' &lt; /proc/cpuinfo` in
+          EV5)   UNAME_MACHINE=alphaev5 ;;
+          EV56)  UNAME_MACHINE=alphaev56 ;;
+          PCA56) UNAME_MACHINE=alphapca56 ;;
+          PCA57) UNAME_MACHINE=alphapca56 ;;
+          EV6)   UNAME_MACHINE=alphaev6 ;;
+          EV67)  UNAME_MACHINE=alphaev67 ;;
+          EV68*) UNAME_MACHINE=alphaev68 ;;
+        esac
+        objdump --private-headers /bin/sh | grep ld.so.1 &gt;/dev/null
+        if test &quot;$?&quot; = 0 ; then LIBC=&quot;libc1&quot; ; else LIBC=&quot;&quot; ; fi
+        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+        exit ;;
+    parisc:Linux:*:* | hppa:Linux:*:*)
+        # Look for CPU level
+        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2&gt;/dev/null | cut -d' ' -f2` in
+          PA7*) echo hppa1.1-unknown-linux-gnu ;;
+          PA8*) echo hppa2.0-unknown-linux-gnu ;;
+          *)    echo hppa-unknown-linux-gnu ;;
+        esac
+        exit ;;
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
+        echo hppa64-unknown-linux-gnu
+        exit ;;
+    s390:Linux:*:* | s390x:Linux:*:*)
+        echo ${UNAME_MACHINE}-ibm-linux
+        exit ;;
+    sh64*:Linux:*:*)
+            echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    sh*:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    sparc:Linux:*:* | sparc64:Linux:*:*)
+        echo ${UNAME_MACHINE}-unknown-linux-gnu
+        exit ;;
+    vax:Linux:*:*)
+        echo ${UNAME_MACHINE}-dec-linux-gnu
+        exit ;;
+    x86_64:Linux:*:*)
+        echo x86_64-unknown-linux-gnu
+        exit ;;
+    xtensa:Linux:*:*)
+            echo xtensa-unknown-linux-gnu
+        exit ;;
+    i*86:Linux:*:*)
+        # The BFD linker knows what the default object file format is, so
+        # first see if it will tell us. cd to the root directory to prevent
+        # problems with other programs or directories called `ld' in the path.
+        # Set LC_ALL=C to ensure ld outputs messages in English.
+        ld_supported_targets=`cd /; LC_ALL=C ld --help 2&gt;&amp;1 \
+                         | sed -ne '/supported targets:/!d
+                                    s/[         ][         ]*/ /g
+                                    s/.*supported targets: *//
+                                    s/ .*//
+                                    p'`
+        case &quot;$ld_supported_targets&quot; in
+          elf32-i386)
+                TENTATIVE=&quot;${UNAME_MACHINE}-pc-linux-gnu&quot;
+                ;
+          a.out-i386-linux)
+                echo &quot;${UNAME_MACHINE}-pc-linux-gnuaout&quot;
+                exit ;;
+          coff-i386)
+                echo &quot;${UNAME_MACHINE}-pc-linux-gnucoff&quot;
+                exit ;;
+          &quot;&quot;)
+                # Either a pre-BFD a.out linker (linux-gnuoldld) or
+                # one that does not give us useful --help.
+                echo &quot;${UNAME_MACHINE}-pc-linux-gnuoldld&quot;
+                exit ;;
+        esac
+        # Determine whether the default compiler is a.out or elf
+        eval $set_cc_for_build
+        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+        #include &lt;features.h&gt;
+        #ifdef __ELF__
+        # ifdef __GLIBC__
+        #  if __GLIBC__ &gt;= 2
+        LIBC=gnu
+        #  else
+        LIBC=gnulibc1
+        #  endif
+        # else
+        LIBC=gnulibc1
+        # endif
+        #else
+        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+        LIBC=gnu
+        #else
+        LIBC=gnuaout
+        #endif
+        #endif
+        #ifdef __dietlibc__
+        LIBC=dietlibc
+        #endif
+EOF
+        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
+            /^LIBC/{
+                s: ::g
+                p
+            }'`&quot;
+        test x&quot;${LIBC}&quot; != x &amp;&amp; {
+                echo &quot;${UNAME_MACHINE}-pc-linux-${LIBC}&quot;
+                exit
+        }
+        test x&quot;${TENTATIVE}&quot; != x &amp;&amp; { echo &quot;${TENTATIVE}&quot;; exit; }
+        ;
+    i*86:DYNIX/ptx:4*:*)
+        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+        # earlier versions are messed up and put the nodename in both
+        # sysname and nodename.
+        echo i386-sequent-sysv4
+        exit ;;
+    i*86:UNIX_SV:4.2MP:2.*)
+        # Unixware is an offshoot of SVR4, but it has its own version
+        # number series starting with 2...
+        # I am not positive that other SVR4 systems won't match this,
+        # I just have to hope.  -- rms.
+        # Use sysv4.2uw... so that sysv4* matches it.
+        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+        exit ;;
+    i*86:OS/2:*:*)
+        # If we were able to find `uname', then EMX Unix compatibility
+        # is probably installed.
+        echo ${UNAME_MACHINE}-pc-os2-emx
+        exit ;;
+    i*86:XTS-300:*:STOP)
+        echo ${UNAME_MACHINE}-unknown-stop
+        exit ;;
+    i*86:atheos:*:*)
+        echo ${UNAME_MACHINE}-unknown-atheos
+        exit ;;
+    i*86:syllable:*:*)
+        echo ${UNAME_MACHINE}-pc-syllable
+        exit ;;
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+        echo i386-unknown-lynxos${UNAME_RELEASE}
+        exit ;;
+    i*86:*DOS:*:*)
+        echo ${UNAME_MACHINE}-pc-msdosdjgpp
+        exit ;;
+    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+        if grep Novell /usr/include/link.h &gt;/dev/null 2&gt;/dev/null; then
+                echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+        else
+                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+        fi
+        exit ;;
+    i*86:*:5:[678]*)
+            # UnixWare 7.x, OpenUNIX and OpenServer 6.
+        case `/bin/uname -X | grep &quot;^Machine&quot;` in
+            *486*)             UNAME_MACHINE=i486 ;;
+            *Pentium)             UNAME_MACHINE=i586 ;;
+            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+        esac
+        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+        exit ;;
+    i*86:*:3.2:*)
+        if test -f /usr/options/cb.name; then
+                UNAME_REL=`sed -n 's/.*Version //p' &lt;/usr/options/cb.name`
+                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+        elif /bin/uname -X 2&gt;/dev/null &gt;/dev/null ; then
+                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+                (/bin/uname -X|grep i80486 &gt;/dev/null) &amp;&amp; UNAME_MACHINE=i486
+                (/bin/uname -X|grep '^Machine.*Pentium' &gt;/dev/null) \
+                        &amp;&amp; UNAME_MACHINE=i586
+                (/bin/uname -X|grep '^Machine.*Pent *II' &gt;/dev/null) \
+                        &amp;&amp; UNAME_MACHINE=i686
+                (/bin/uname -X|grep '^Machine.*Pentium Pro' &gt;/dev/null) \
+                        &amp;&amp; UNAME_MACHINE=i686
+                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+        else
+                echo ${UNAME_MACHINE}-pc-sysv32
+        fi
+        exit ;;
+    pc:*:*:*)
+        # Left here for compatibility:
+        # uname -m prints for DJGPP always 'pc', but it prints nothing about
+        # the processor, so we play safe by assuming i386.
+        echo i386-pc-msdosdjgpp
+        exit ;;
+    Intel:Mach:3*:*)
+        echo i386-pc-mach3
+        exit ;;
+    paragon:*:*:*)
+        echo i860-intel-osf1
+        exit ;;
+    i860:*:4.*:*) # i860-SVR4
+        if grep Stardent /usr/include/sys/uadmin.h &gt;/dev/null 2&gt;&amp;1 ; then
+          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+        else # Add other i860-SVR4 vendors below as they are discovered.
+          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
+        fi
+        exit ;;
+    mini*:CTIX:SYS*5:*)
+        # &quot;miniframe&quot;
+        echo m68010-convergent-sysv
+        exit ;;
+    mc68k:UNIX:SYSTEM5:3.51m)
+        echo m68k-convergent-sysv
+        exit ;;
+    M680?0:D-NIX:5.3:*)
+        echo m68k-diab-dnix
+        exit ;;
+    M68*:*:R3V[5678]*:*)
+        test -r /sysV68 &amp;&amp; { echo 'm68k-motorola-sysv'; exit; } ;;
+    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+        OS_REL=''
+        test -r /etc/.relid \
+        &amp;&amp; OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' &lt; /etc/.relid`
+        /bin/uname -p 2&gt;/dev/null | grep 86 &gt;/dev/null \
+          &amp;&amp; { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+        /bin/uname -p 2&gt;/dev/null | /bin/grep entium &gt;/dev/null \
+          &amp;&amp; { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+        /bin/uname -p 2&gt;/dev/null | grep 86 &gt;/dev/null \
+          &amp;&amp; { echo i486-ncr-sysv4; exit; } ;;
+    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+        echo m68k-unknown-lynxos${UNAME_RELEASE}
+        exit ;;
+    mc68030:UNIX_System_V:4.*:*)
+        echo m68k-atari-sysv4
+        exit ;;
+    TSUNAMI:LynxOS:2.*:*)
+        echo sparc-unknown-lynxos${UNAME_RELEASE}
+        exit ;;
+    rs6000:LynxOS:2.*:*)
+        echo rs6000-unknown-lynxos${UNAME_RELEASE}
+        exit ;;
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+        echo powerpc-unknown-lynxos${UNAME_RELEASE}
+        exit ;;
+    SM[BE]S:UNIX_SV:*:*)
+        echo mips-dde-sysv${UNAME_RELEASE}
+        exit ;;
+    RM*:ReliantUNIX-*:*:*)
+        echo mips-sni-sysv4
+        exit ;;
+    RM*:SINIX-*:*:*)
+        echo mips-sni-sysv4
+        exit ;;
+    *:SINIX-*:*:*)
+        if uname -p 2&gt;/dev/null &gt;/dev/null ; then
+                UNAME_MACHINE=`(uname -p) 2&gt;/dev/null`
+                echo ${UNAME_MACHINE}-sni-sysv4
+        else
+                echo ns32k-sni-sysv
+        fi
+        exit ;;
+    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+                      # says &lt;Richard.M.Bartel@ccMail.Census.GOV&gt;
+        echo i586-unisys-sysv4
+        exit ;;
+    *:UNIX_System_V:4*:FTX*)
+        # From Gerald Hewes &lt;hewes@openmarket.com&gt;.
+        # How about differentiating between stratus architectures? -djm
+        echo hppa1.1-stratus-sysv4
+        exit ;;
+    *:*:*:FTX*)
+        # From seanf@swdc.stratus.com.
+        echo i860-stratus-sysv4
+        exit ;;
+    i*86:VOS:*:*)
+        # From Paul.Green@stratus.com.
+        echo ${UNAME_MACHINE}-stratus-vos
+        exit ;;
+    *:VOS:*:*)
+        # From Paul.Green@stratus.com.
+        echo hppa1.1-stratus-vos
+        exit ;;
+    mc68*:A/UX:*:*)
+        echo m68k-apple-aux${UNAME_RELEASE}
+        exit ;;
+    news*:NEWS-OS:6*:*)
+        echo mips-sony-newsos6
+        exit ;;
+    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+        if [ -d /usr/nec ]; then
+                echo mips-nec-sysv${UNAME_RELEASE}
+        else
+                echo mips-unknown-sysv${UNAME_RELEASE}
+        fi
+        exit ;;
+    BeBox:BeOS:*:*)        # BeOS running on hardware made by Be, PPC only.
+        echo powerpc-be-beos
+        exit ;;
+    BeMac:BeOS:*:*)        # BeOS running on Mac or Mac clone, PPC only.
+        echo powerpc-apple-beos
+        exit ;;
+    BePC:BeOS:*:*)        # BeOS running on Intel PC compatible.
+        echo i586-pc-beos
+        exit ;;
+    SX-4:SUPER-UX:*:*)
+        echo sx4-nec-superux${UNAME_RELEASE}
+        exit ;;
+    SX-5:SUPER-UX:*:*)
+        echo sx5-nec-superux${UNAME_RELEASE}
+        exit ;;
+    SX-6:SUPER-UX:*:*)
+        echo sx6-nec-superux${UNAME_RELEASE}
+        exit ;;
+    SX-7:SUPER-UX:*:*)
+        echo sx7-nec-superux${UNAME_RELEASE}
+        exit ;;
+    SX-8:SUPER-UX:*:*)
+        echo sx8-nec-superux${UNAME_RELEASE}
+        exit ;;
+    SX-8R:SUPER-UX:*:*)
+        echo sx8r-nec-superux${UNAME_RELEASE}
+        exit ;;
+    Power*:Rhapsody:*:*)
+        echo powerpc-apple-rhapsody${UNAME_RELEASE}
+        exit ;;
+    *:Rhapsody:*:*)
+        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+        exit ;;
+    *:Darwin:*:*)
+        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+        case $UNAME_PROCESSOR in
+            unknown) UNAME_PROCESSOR=powerpc ;;
+        esac
+        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+        exit ;;
+    *:procnto*:*:* | *:QNX:[0123456789]*:*)
+        UNAME_PROCESSOR=`uname -p`
+        if test &quot;$UNAME_PROCESSOR&quot; = &quot;x86&quot;; then
+                UNAME_PROCESSOR=i386
+                UNAME_MACHINE=pc
+        fi
+        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+        exit ;;
+    *:QNX:*:4*)
+        echo i386-pc-qnx
+        exit ;;
+    NSE-?:NONSTOP_KERNEL:*:*)
+        echo nse-tandem-nsk${UNAME_RELEASE}
+        exit ;;
+    NSR-?:NONSTOP_KERNEL:*:*)
+        echo nsr-tandem-nsk${UNAME_RELEASE}
+        exit ;;
+    *:NonStop-UX:*:*)
+        echo mips-compaq-nonstopux
+        exit ;;
+    BS2000:POSIX*:*:*)
+        echo bs2000-siemens-sysv
+        exit ;;
+    DS/*:UNIX_System_V:*:*)
+        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+        exit ;;
+    *:Plan9:*:*)
+        # &quot;uname -m&quot; is not consistent, so use $cputype instead. 386
+        # is converted to i386 for consistency with other x86
+        # operating systems.
+        if test &quot;$cputype&quot; = &quot;386&quot;; then
+            UNAME_MACHINE=i386
+        else
+            UNAME_MACHINE=&quot;$cputype&quot;
+        fi
+        echo ${UNAME_MACHINE}-unknown-plan9
+        exit ;;
+    *:TOPS-10:*:*)
+        echo pdp10-unknown-tops10
+        exit ;;
+    *:TENEX:*:*)
+        echo pdp10-unknown-tenex
+        exit ;;
+    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+        echo pdp10-dec-tops20
+        exit ;;
+    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+        echo pdp10-xkl-tops20
+        exit ;;
+    *:TOPS-20:*:*)
+        echo pdp10-unknown-tops20
+        exit ;;
+    *:ITS:*:*)
+        echo pdp10-unknown-its
+        exit ;;
+    SEI:*:*:SEIUX)
+        echo mips-sei-seiux${UNAME_RELEASE}
+        exit ;;
+    *:DragonFly:*:*)
+        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+        exit ;;
+    *:*VMS:*:*)
+            UNAME_MACHINE=`(uname -p) 2&gt;/dev/null`
+        case &quot;${UNAME_MACHINE}&quot; in
+            A*) echo alpha-dec-vms ; exit ;;
+            I*) echo ia64-dec-vms ; exit ;;
+            V*) echo vax-dec-vms ; exit ;;
+        esac ;;
+    *:XENIX:*:SysV)
+        echo i386-pc-xenix
+        exit ;;
+    i*86:skyos:*:*)
+        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+        exit ;;
+    i*86:rdos:*:*)
+        echo ${UNAME_MACHINE}-pc-rdos
+        exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1&gt;&amp;2
+#echo &quot;${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}&quot; 1&gt;&amp;2
+
+eval $set_cc_for_build
+cat &gt;$dummy.c &lt;&lt;EOF
+#ifdef _SEQUENT_
+# include &lt;sys/types.h&gt;
+# include &lt;sys/utsname.h&gt;
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+  /* BFD wants &quot;bsd&quot; instead of &quot;newsos&quot;.  Perhaps BFD should be changed,
+     I don't know....  */
+  printf (&quot;mips-sony-bsd\n&quot;); exit (0);
+#else
+#include &lt;sys/param.h&gt;
+  printf (&quot;m68k-sony-newsos%s\n&quot;,
+#ifdef NEWSOS4
+          &quot;4&quot;
+#else
+          &quot;&quot;
+#endif
+         ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) &amp;&amp; defined (__acorn) &amp;&amp; defined (__unix)
+  printf (&quot;arm-acorn-riscix\n&quot;); exit (0);
+#endif
+
+#if defined (hp300) &amp;&amp; !defined (hpux)
+  printf (&quot;m68k-hp-bsd\n&quot;); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ &quot;m68k&quot;
+#endif
+  int version;
+  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2&gt;/dev/null`;
+  if (version &lt; 4)
+    printf (&quot;%s-next-nextstep%d\n&quot;, __ARCHITECTURE__, version);
+  else
+    printf (&quot;%s-next-openstep%d\n&quot;, __ARCHITECTURE__, version);
+  exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+  printf (&quot;ns32k-encore-sysv\n&quot;); exit (0);
+#else
+#if defined (CMU)
+  printf (&quot;ns32k-encore-mach\n&quot;); exit (0);
+#else
+  printf (&quot;ns32k-encore-bsd\n&quot;); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+  printf (&quot;i386-pc-bsd\n&quot;); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+  printf (&quot;i386-sequent-dynix\n&quot;); exit (0);
+#endif
+#if defined (ns32000)
+  printf (&quot;ns32k-sequent-dynix\n&quot;); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+    struct utsname un;
+
+    uname(&amp;un);
+
+    if (strncmp(un.version, &quot;V2&quot;, 2) == 0) {
+        printf (&quot;i386-sequent-ptx2\n&quot;); exit (0);
+    }
+    if (strncmp(un.version, &quot;V1&quot;, 2) == 0) { /* XXX is V1 correct? */
+        printf (&quot;i386-sequent-ptx1\n&quot;); exit (0);
+    }
+    printf (&quot;i386-sequent-ptx\n&quot;); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+#  include &lt;sys/param.h&gt;
+#  if defined (BSD)
+#   if BSD == 43
+      printf (&quot;vax-dec-bsd4.3\n&quot;); exit (0);
+#   else
+#    if BSD == 199006
+      printf (&quot;vax-dec-bsd4.3reno\n&quot;); exit (0);
+#    else
+      printf (&quot;vax-dec-bsd\n&quot;); exit (0);
+#    endif
+#   endif
+#  else
+    printf (&quot;vax-dec-bsd\n&quot;); exit (0);
+#  endif
+# else
+    printf (&quot;vax-dec-ultrix\n&quot;); exit (0);
+# endif
+#endif
+
+#if defined (alliant) &amp;&amp; defined (i860)
+  printf (&quot;i860-alliant-bsd\n&quot;); exit (0);
+#endif
+
+  exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2&gt;/dev/null &amp;&amp; SYSTEM_NAME=`$dummy` &amp;&amp;
+        { echo &quot;$SYSTEM_NAME&quot;; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo &amp;&amp; { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+    case `getsysinfo -f cpu_type` in
+    c1*)
+        echo c1-convex-bsd
+        exit ;;
+    c2*)
+        if getsysinfo -f scalar_acc
+        then echo c32-convex-bsd
+        else echo c2-convex-bsd
+        fi
+        exit ;;
+    c34*)
+        echo c34-convex-bsd
+        exit ;;
+    c38*)
+        echo c38-convex-bsd
+        exit ;;
+    c4*)
+        echo c4-convex-bsd
+        exit ;;
+    esac
+fi
+
+cat &gt;&amp;2 &lt;&lt;EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
+and
+  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to &lt;config-patches@gnu.org&gt; in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2&gt;/dev/null || echo unknown`
+uname -r = `(uname -r) 2&gt;/dev/null || echo unknown`
+uname -s = `(uname -s) 2&gt;/dev/null || echo unknown`
+uname -v = `(uname -v) 2&gt;/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2&gt;/dev/null`
+/bin/uname -X     = `(/bin/uname -X) 2&gt;/dev/null`
+
+hostinfo               = `(hostinfo) 2&gt;/dev/null`
+/bin/universe          = `(/bin/universe) 2&gt;/dev/null`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2&gt;/dev/null`
+/bin/arch              = `(/bin/arch) 2&gt;/dev/null`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2&gt;/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2&gt;/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM  = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: &quot;timestamp='&quot;
+# time-stamp-format: &quot;%:y-%02m-%02d&quot;
+# time-stamp-end: &quot;'&quot;
+# End:
</ins><span class="cx">Property changes on: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.guess
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigrpath"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.rpath (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.rpath                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.rpath        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,513 @@
</span><ins>+#! /bin/sh
+# Output a system dependent set of variables, describing how to set the
+# run time search path of shared libraries in an executable.
+#
+#   Copyright 1996-2002 Free Software Foundation, Inc.
+#   Taken from GNU libtool, 2001
+#   Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2 of the License, or
+#   (at your option) any later version.
+#
+#   This program is distributed in the hope that it will be useful, but
+#   WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#   General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with this program; if not, write to the Free Software
+#   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+#   As a special exception to the GNU General Public License, if you
+#   distribute this file as part of a program that contains a
+#   configuration script generated by Autoconf, you may include it under
+#   the same distribution terms that you use for the rest of that program.
+#
+# The first argument passed to this file is the canonical host specification,
+#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or
+#    CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
+# should be set by the caller.
+#
+# The set of defined variables is at the end of this script.
+
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+libext=a
+shlibext=
+
+host=&quot;$1&quot;
+host_cpu=`echo &quot;$host&quot; | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo &quot;$host&quot; | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo &quot;$host&quot; | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+wl=
+if test &quot;$GCC&quot; = yes; then
+  wl='-Wl,'
+else
+  case &quot;$host_os&quot; in
+    aix3* | aix4* | aix5*)
+      wl='-Wl,'
+      ;;
+    hpux9* | hpux10* | hpux11*)
+      wl='-Wl,'
+      ;;
+    irix5* | irix6*)
+      wl='-Wl,'
+      ;;
+    linux*)
+      echo '__INTEL_COMPILER' &gt; conftest.$ac_ext
+      if $CC -E conftest.$ac_ext &gt;/dev/null | grep __INTEL_COMPILER &gt;/dev/null
+      then
+        :
+      else
+        # Intel icc
+        wl='-Qoption,ld,'
+      fi
+      ;;
+    osf3* | osf4* | osf5*)
+      wl='-Wl,'
+      ;;
+    solaris*)
+      wl='-Wl,'
+      ;;
+    sunos4*)
+      wl='-Qoption ld '
+      ;;
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      if test &quot;x$host_vendor&quot; = xsni; then
+        wl='-LD'
+      else
+        wl='-Wl,'
+      fi
+      ;;
+  esac
+fi
+
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+
+case &quot;$host_os&quot; in
+  cygwin* | mingw* | pw32*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test &quot;$GCC&quot; != yes; then
+      with_gnu_ld=no
+    fi
+    ;;
+  openbsd*)
+    with_gnu_ld=no
+    ;;
+esac
+
+ld_shlibs=yes
+if test &quot;$with_gnu_ld&quot; = yes; then
+  case &quot;$host_os&quot; in
+    aix3* | aix4* | aix5*)
+      # On AIX, the GNU linker is very broken
+      ld_shlibs=no
+      ;;
+    amigaos*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+      # that the semantics of dynamic libraries on AmigaOS, at least up
+      # to version 4, is to share data among multiple programs linked
+      # with the same dynamic library.  Since this doesn't match the
+      # behavior of shared libraries on other platforms, we can use
+      # them.
+      ld_shlibs=no
+      ;;
+    beos*)
+      if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    cygwin* | mingw* | pw32*)
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec='-L$libdir'
+      ;;
+    solaris* | sysv5*)
+      if $LD -v 2&gt;&amp;1 | egrep 'BFD 2\.8' &gt; /dev/null; then
+        ld_shlibs=no
+      elif $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+    sunos4*)
+      hardcode_direct=yes
+      ;;
+    *)
+      if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+        :
+      else
+        ld_shlibs=no
+      fi
+      ;;
+  esac
+  if test &quot;$ld_shlibs&quot; = yes; then
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+  fi
+else
+  case &quot;$host_os&quot; in
+    aix3*)
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L=yes
+      if test &quot;$GCC&quot; = yes; then
+        # Neither direct hardcoding nor static linking is supported with a
+        # broken collect2.
+        hardcode_direct=unsupported
+      fi
+      ;;
+    aix4* | aix5*)
+      if test &quot;$host_cpu&quot; = ia64; then
+        # On IA64, the linker does run time linking by default, so we don't
+        # have to do anything special.
+        aix_use_runtimelinking=no
+      else
+        aix_use_runtimelinking=no
+        # Test if we are trying to use run time linking or normal
+        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+        # need to do runtime linking.
+        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+          for ld_flag in $LDFLAGS; do
+            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+              aix_use_runtimelinking=yes
+              break
+            fi
+          done
+        esac
+      fi
+      hardcode_direct=yes
+      hardcode_libdir_separator=':'
+      if test &quot;$GCC&quot; = yes; then
+        case $host_os in aix4.[012]|aix4.[012].*)
+          collect2name=`${CC} -print-prog-name=collect2`
+          if test -f &quot;$collect2name&quot; &amp;&amp; \
+            strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+          then
+            # We have reworked collect2
+            hardcode_direct=yes
+          else
+            # We have old collect2
+            hardcode_direct=unsupported
+            hardcode_minus_L=yes
+            hardcode_libdir_flag_spec='-L$libdir'
+            hardcode_libdir_separator=
+          fi
+        esac
+      fi
+      if test &quot;$aix_use_runtimelinking&quot; = yes; then
+        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
+      else
+        if test &quot;$host_cpu&quot; = ia64; then
+          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+        else
+          hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
+        fi
+      fi
+      ;;
+    amigaos*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      # see comment about different semantics on the GNU ld section
+      ld_shlibs=no
+      ;;
+    cygwin* | mingw* | pw32*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      hardcode_libdir_flag_spec=' '
+      libext=lib
+      ;;
+    darwin* | rhapsody*)
+      hardcode_direct=yes
+      ;;
+    freebsd1*)
+      ld_shlibs=no
+      ;;
+    freebsd2.2*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    freebsd2*)
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      ;;
+    freebsd*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    hpux9* | hpux10* | hpux11*)
+      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+      hardcode_libdir_separator=:
+      hardcode_direct=yes
+      hardcode_minus_L=yes # Not in the search PATH, but as the default
+                           # location of the library.
+      ;;
+    irix5* | irix6*)
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    netbsd*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      ;;
+    newsos6)
+      hardcode_direct=yes
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    openbsd*)
+      hardcode_direct=yes
+      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+      else
+        case &quot;$host_os&quot; in
+          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+            hardcode_libdir_flag_spec='-R$libdir'
+            ;;
+          *)
+            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+            ;;
+        esac
+      fi
+      ;;
+    os2*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      ;;
+    osf3*)
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      hardcode_libdir_separator=:
+      ;;
+    osf4* | osf5*)
+      if test &quot;$GCC&quot; = yes; then
+        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+      else
+        # Both cc and cxx compiler support -rpath directly
+        hardcode_libdir_flag_spec='-rpath $libdir'
+      fi
+      hardcode_libdir_separator=:
+      ;;
+    sco3.2v5*)
+      ;;
+    solaris*)
+      hardcode_libdir_flag_spec='-R$libdir'
+      ;;
+    sunos4*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      ;;
+    sysv4)
+      if test &quot;x$host_vendor&quot; = xsno; then
+        hardcode_direct=yes # is this really true???
+      else
+        hardcode_direct=no # Motorola manual says yes, but my tests say they lie
+      fi
+      ;;
+    sysv4.3*)
+      ;;
+    sysv5*)
+      hardcode_libdir_flag_spec=
+      ;;
+    uts4*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      ;;
+    dgux*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+        ld_shlibs=yes
+      fi
+      ;;
+    sysv4.2uw2*)
+      hardcode_direct=yes
+      hardcode_minus_L=no
+      ;;
+    sysv5uw7* | unixware7*)
+      ;;
+    *)
+      ld_shlibs=no
+      ;;
+  esac
+fi
+
+# Check dynamic linker characteristics
+libname_spec='lib$name'
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+case &quot;$host_os&quot; in
+  aix3*)
+    shlibext=so
+    ;;
+  aix4* | aix5*)
+    shlibext=so
+    ;;
+  amigaos*)
+    shlibext=ixlibrary
+    ;;
+  beos*)
+    shlibext=so
+    ;;
+  bsdi4*)
+    shlibext=so
+    sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+    sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+    ;;
+  cygwin* | mingw* | pw32*)
+    case $GCC,$host_os in
+      yes,cygwin*)
+        shlibext=dll.a
+        ;;
+      yes,mingw*)
+        shlibext=dll
+        sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s/;/ /g&quot;`
+        ;;
+      yes,pw32*)
+        shlibext=dll
+        ;;
+      *)
+        shlibext=dll
+        ;;
+    esac
+    ;;
+  darwin* | rhapsody*)
+    shlibext=dylib
+    ;;
+  freebsd1*)
+    ;;
+  freebsd*)
+    shlibext=so
+    ;;
+  gnu*)
+    shlibext=so
+    ;;
+  hpux9* | hpux10* | hpux11*)
+    shlibext=sl
+    ;;
+  irix5* | irix6*)
+    shlibext=so
+    case &quot;$host_os&quot; in
+      irix5*)
+        libsuff= shlibsuff=
+        ;;
+      *)
+        case $LD in
+          *-32|*&quot;-32 &quot;) libsuff= shlibsuff= ;;
+          *-n32|*&quot;-n32 &quot;) libsuff=32 shlibsuff=N32 ;;
+          *-64|*&quot;-64 &quot;) libsuff=64 shlibsuff=64 ;;
+          *) libsuff= shlibsuff= ;;
+        esac
+        ;;
+    esac
+    sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+    sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+    ;;
+  linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
+    ;;
+  linux-gnu*)
+    shlibext=so
+    ;;
+  netbsd*)
+    shlibext=so
+    ;;
+  newsos6)
+    shlibext=so
+    ;;
+  openbsd*)
+    shlibext=so
+    ;;
+  os2*)
+    libname_spec='$name'
+    shlibext=dll
+    ;;
+  osf3* | osf4* | osf5*)
+    shlibext=so
+    sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+    sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+    ;;
+  sco3.2v5*)
+    shlibext=so
+    ;;
+  solaris*)
+    shlibext=so
+    ;;
+  sunos4*)
+    shlibext=so
+    ;;
+  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+    shlibext=so
+    case &quot;$host_vendor&quot; in
+      motorola)
+        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+        ;;
+    esac
+    ;;
+  uts4*)
+    shlibext=so
+    ;;
+  dgux*)
+    shlibext=so
+    ;;
+  sysv4*MP*)
+    if test -d /usr/nec; then
+      shlibext=so
+    fi
+    ;;
+esac
+
+sed_quote_subst='s/\([&quot;`$\\]\)/\\\1/g'
+escaped_wl=`echo &quot;X$wl&quot; | sed -e 's/^X//' -e &quot;$sed_quote_subst&quot;`
+escaped_hardcode_libdir_flag_spec=`echo &quot;X$hardcode_libdir_flag_spec&quot; | sed -e 's/^X//' -e &quot;$sed_quote_subst&quot;`
+escaped_sys_lib_search_path_spec=`echo &quot;X$sys_lib_search_path_spec&quot; | sed -e 's/^X//' -e &quot;$sed_quote_subst&quot;`
+escaped_sys_lib_dlsearch_path_spec=`echo &quot;X$sys_lib_dlsearch_path_spec&quot; | sed -e 's/^X//' -e &quot;$sed_quote_subst&quot;`
+
+sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' &lt;&lt;EOF
+
+# How to pass a linker flag through the compiler.
+wl=&quot;$escaped_wl&quot;
+
+# Static library suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Shared library suffix (normally &quot;so&quot;).
+shlibext=&quot;$shlibext&quot;
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=&quot;$escaped_hardcode_libdir_flag_spec&quot;
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=&quot;$hardcode_libdir_separator&quot;
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=&quot;$hardcode_direct&quot;
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=&quot;$hardcode_minus_L&quot;
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=&quot;$escaped_sys_lib_search_path_spec&quot;
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=&quot;$escaped_sys_lib_dlsearch_path_spec&quot;
+
+EOF
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsconfigsub"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.sub (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.sub                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.sub        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,1622 @@
</span><ins>+#! /bin/sh
+# Configuration validation subroutine script.
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+#   Inc.
+
+timestamp='2007-01-18'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine.  It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to &lt;config-patches@gnu.org&gt;.  Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support.  The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+#        CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+#        CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo &quot;$0&quot; | sed -e 's,.*/,,'`
+
+usage=&quot;\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+       $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+  -h, --help         print this help, then exit
+  -t, --time-stamp   print date of last modification, then exit
+  -v, --version      print version number, then exit
+
+Report bugs and patches to &lt;config-patches@gnu.org&gt;.&quot;
+
+version=&quot;\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&quot;
+
+help=&quot;
+Try \`$me --help' for more information.&quot;
+
+# Parse command line
+while test $# -gt 0 ; do
+  case $1 in
+    --time-stamp | --time* | -t )
+       echo &quot;$timestamp&quot; ; exit ;;
+    --version | -v )
+       echo &quot;$version&quot; ; exit ;;
+    --help | --h* | -h )
+       echo &quot;$usage&quot;; exit ;;
+    -- )     # Stop option processing
+       shift; break ;;
+    - )        # Use stdin as input.
+       break ;;
+    -* )
+       echo &quot;$me: invalid option $1$help&quot;
+       exit 1 ;;
+
+    *local*)
+       # First pass through any local machine types.
+       echo $1
+       exit ;;
+
+    * )
+       break ;;
+  esac
+done
+
+case $# in
+ 0) echo &quot;$me: missing argument$help&quot; &gt;&amp;2
+    exit 1;;
+ 1) ;;
+ *) echo &quot;$me: too many arguments$help&quot; &gt;&amp;2
+    exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+  storm-chaos* | os2-emx* | rtmk-nova*)
+    os=-$maybe_os
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+    ;;
+  *)
+    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+    if [ $basic_machine != $1 ]
+    then os=`echo $1 | sed 's/.*-/-/'`
+    else os=; fi
+    ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work.  We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+        -sun*os*)
+                # Prevent following clause from handling this invalid input.
+                ;
+        -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+        -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+        -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+        -apple | -axis | -knuth | -cray)
+                os=
+                basic_machine=$1
+                ;
+        -sim | -cisco | -oki | -wec | -winbond)
+                os=
+                basic_machine=$1
+                ;
+        -scout)
+                ;
+        -wrs)
+                os=-vxworks
+                basic_machine=$1
+                ;
+        -chorusos*)
+                os=-chorusos
+                basic_machine=$1
+                ;
+         -chorusrdb)
+                 os=-chorusrdb
+                basic_machine=$1
+                 ;
+        -hiux*)
+                os=-hiuxwe2
+                ;
+        -sco6)
+                os=-sco5v6
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco5)
+                os=-sco3.2v5
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco4)
+                os=-sco3.2v4
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco3.2.[4-9]*)
+                os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco3.2v[4-9]*)
+                # Don't forget version if it is 3.2v4 or newer.
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco5v6*)
+                # Don't forget version if it is 3.2v4 or newer.
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -sco*)
+                os=-sco3.2v2
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -udk*)
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -isc)
+                os=-isc2.2
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -clix*)
+                basic_machine=clipper-intergraph
+                ;
+        -isc*)
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                ;
+        -lynx*)
+                os=-lynxos
+                ;
+        -ptx*)
+                basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+                ;
+        -windowsnt*)
+                os=`echo $os | sed -e 's/windowsnt/winnt/'`
+                ;
+        -psos*)
+                os=-psos
+                ;
+        -mint | -mint[0-9]*)
+                basic_machine=m68k-atari
+                os=-mint
+                ;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+        # Recognize the basic CPU types without company name.
+        # Some are omitted here because they have special meanings below.
+        1750a | 580 \
+        | a29k \
+        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+        | am33_2.0 \
+        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+        | bfin \
+        | c4x | clipper \
+        | d10v | d30v | dlx | dsp16xx \
+        | fido | fr30 | frv \
+        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+        | i370 | i860 | i960 | ia64 \
+        | ip2k | iq2000 \
+        | m32c | m32r | m32rle | m68000 | m68k | m88k \
+        | maxq | mb | microblaze | mcore | mep \
+        | mips | mipsbe | mipseb | mipsel | mipsle \
+        | mips16 \
+        | mips64 | mips64el \
+        | mips64vr | mips64vrel \
+        | mips64orion | mips64orionel \
+        | mips64vr4100 | mips64vr4100el \
+        | mips64vr4300 | mips64vr4300el \
+        | mips64vr5000 | mips64vr5000el \
+        | mips64vr5900 | mips64vr5900el \
+        | mipsisa32 | mipsisa32el \
+        | mipsisa32r2 | mipsisa32r2el \
+        | mipsisa64 | mipsisa64el \
+        | mipsisa64r2 | mipsisa64r2el \
+        | mipsisa64sb1 | mipsisa64sb1el \
+        | mipsisa64sr71k | mipsisa64sr71kel \
+        | mipstx39 | mipstx39el \
+        | mn10200 | mn10300 \
+        | mt \
+        | msp430 \
+        | nios | nios2 \
+        | ns16k | ns32k \
+        | or32 \
+        | pdp10 | pdp11 | pj | pjl \
+        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+        | pyramid \
+        | score \
+        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+        | sh64 | sh64le \
+        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+        | spu | strongarm \
+        | tahoe | thumb | tic4x | tic80 | tron \
+        | v850 | v850e \
+        | we32k \
+        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+        | z8k)
+                basic_machine=$basic_machine-unknown
+                ;
+        m6811 | m68hc11 | m6812 | m68hc12)
+                # Motorola 68HC11/12.
+                basic_machine=$basic_machine-unknown
+                os=-none
+                ;
+        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+                ;
+        ms1)
+                basic_machine=mt-unknown
+                ;
+
+        # We use `pc' rather than `unknown'
+        # because (1) that's what they normally are, and
+        # (2) the word &quot;unknown&quot; tends to confuse beginning users.
+        i*86 | x86_64)
+          basic_machine=$basic_machine-pc
+          ;;
+        # Object if more than one company name word.
+        *-*-*)
+                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1&gt;&amp;2
+                exit 1
+                ;
+        # Recognize the basic CPU types with company name.
+        580-* \
+        | a29k-* \
+        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
+        | avr-* | avr32-* \
+        | bfin-* | bs2000-* \
+        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+        | clipper-* | craynv-* | cydra-* \
+        | d10v-* | d30v-* | dlx-* \
+        | elxsi-* \
+        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+        | h8300-* | h8500-* \
+        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+        | i*86-* | i860-* | i960-* | ia64-* \
+        | ip2k-* | iq2000-* \
+        | m32c-* | m32r-* | m32rle-* \
+        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+        | m88110-* | m88k-* | maxq-* | mcore-* \
+        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+        | mips16-* \
+        | mips64-* | mips64el-* \
+        | mips64vr-* | mips64vrel-* \
+        | mips64orion-* | mips64orionel-* \
+        | mips64vr4100-* | mips64vr4100el-* \
+        | mips64vr4300-* | mips64vr4300el-* \
+        | mips64vr5000-* | mips64vr5000el-* \
+        | mips64vr5900-* | mips64vr5900el-* \
+        | mipsisa32-* | mipsisa32el-* \
+        | mipsisa32r2-* | mipsisa32r2el-* \
+        | mipsisa64-* | mipsisa64el-* \
+        | mipsisa64r2-* | mipsisa64r2el-* \
+        | mipsisa64sb1-* | mipsisa64sb1el-* \
+        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+        | mipstx39-* | mipstx39el-* \
+        | mmix-* \
+        | mt-* \
+        | msp430-* \
+        | nios-* | nios2-* \
+        | none-* | np1-* | ns16k-* | ns32k-* \
+        | orion-* \
+        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+        | pyramid-* \
+        | romp-* | rs6000-* \
+        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+        | sparclite-* \
+        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+        | tahoe-* | thumb-* \
+        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+        | tron-* \
+        | v850-* | v850e-* | vax-* \
+        | we32k-* \
+        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+        | xstormy16-* | xtensa-* \
+        | ymp-* \
+        | z8k-*)
+                ;
+        # Recognize the various machine names and aliases which stand
+        # for a CPU type and a company and sometimes even an OS.
+        386bsd)
+                basic_machine=i386-unknown
+                os=-bsd
+                ;
+        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+                basic_machine=m68000-att
+                ;
+        3b*)
+                basic_machine=we32k-att
+                ;
+        a29khif)
+                basic_machine=a29k-amd
+                os=-udi
+                ;
+            abacus)
+                basic_machine=abacus-unknown
+                ;
+        adobe68k)
+                basic_machine=m68010-adobe
+                os=-scout
+                ;
+        alliant | fx80)
+                basic_machine=fx80-alliant
+                ;
+        altos | altos3068)
+                basic_machine=m68k-altos
+                ;
+        am29k)
+                basic_machine=a29k-none
+                os=-bsd
+                ;
+        amd64)
+                basic_machine=x86_64-pc
+                ;
+        amd64-*)
+                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        amdahl)
+                basic_machine=580-amdahl
+                os=-sysv
+                ;
+        amiga | amiga-*)
+                basic_machine=m68k-unknown
+                ;
+        amigaos | amigados)
+                basic_machine=m68k-unknown
+                os=-amigaos
+                ;
+        amigaunix | amix)
+                basic_machine=m68k-unknown
+                os=-sysv4
+                ;
+        apollo68)
+                basic_machine=m68k-apollo
+                os=-sysv
+                ;
+        apollo68bsd)
+                basic_machine=m68k-apollo
+                os=-bsd
+                ;
+        aux)
+                basic_machine=m68k-apple
+                os=-aux
+                ;
+        balance)
+                basic_machine=ns32k-sequent
+                os=-dynix
+                ;
+        c90)
+                basic_machine=c90-cray
+                os=-unicos
+                ;
+        convex-c1)
+                basic_machine=c1-convex
+                os=-bsd
+                ;
+        convex-c2)
+                basic_machine=c2-convex
+                os=-bsd
+                ;
+        convex-c32)
+                basic_machine=c32-convex
+                os=-bsd
+                ;
+        convex-c34)
+                basic_machine=c34-convex
+                os=-bsd
+                ;
+        convex-c38)
+                basic_machine=c38-convex
+                os=-bsd
+                ;
+        cray | j90)
+                basic_machine=j90-cray
+                os=-unicos
+                ;
+        craynv)
+                basic_machine=craynv-cray
+                os=-unicosmp
+                ;
+        cr16c)
+                basic_machine=cr16c-unknown
+                os=-elf
+                ;
+        crds | unos)
+                basic_machine=m68k-crds
+                ;
+        crisv32 | crisv32-* | etraxfs*)
+                basic_machine=crisv32-axis
+                ;
+        cris | cris-* | etrax*)
+                basic_machine=cris-axis
+                ;
+        crx)
+                basic_machine=crx-unknown
+                os=-elf
+                ;
+        da30 | da30-*)
+                basic_machine=m68k-da30
+                ;
+        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+                basic_machine=mips-dec
+                ;
+        decsystem10* | dec10*)
+                basic_machine=pdp10-dec
+                os=-tops10
+                ;
+        decsystem20* | dec20*)
+                basic_machine=pdp10-dec
+                os=-tops20
+                ;
+        delta | 3300 | motorola-3300 | motorola-delta \
+              | 3300-motorola | delta-motorola)
+                basic_machine=m68k-motorola
+                ;
+        delta88)
+                basic_machine=m88k-motorola
+                os=-sysv3
+                ;
+        djgpp)
+                basic_machine=i586-pc
+                os=-msdosdjgpp
+                ;
+        dpx20 | dpx20-*)
+                basic_machine=rs6000-bull
+                os=-bosx
+                ;
+        dpx2* | dpx2*-bull)
+                basic_machine=m68k-bull
+                os=-sysv3
+                ;
+        ebmon29k)
+                basic_machine=a29k-amd
+                os=-ebmon
+                ;
+        elxsi)
+                basic_machine=elxsi-elxsi
+                os=-bsd
+                ;
+        encore | umax | mmax)
+                basic_machine=ns32k-encore
+                ;
+        es1800 | OSE68k | ose68k | ose | OSE)
+                basic_machine=m68k-ericsson
+                os=-ose
+                ;
+        fx2800)
+                basic_machine=i860-alliant
+                ;
+        genix)
+                basic_machine=ns32k-ns
+                ;
+        gmicro)
+                basic_machine=tron-gmicro
+                os=-sysv
+                ;
+        go32)
+                basic_machine=i386-pc
+                os=-go32
+                ;
+        h3050r* | hiux*)
+                basic_machine=hppa1.1-hitachi
+                os=-hiuxwe2
+                ;
+        h8300hms)
+                basic_machine=h8300-hitachi
+                os=-hms
+                ;
+        h8300xray)
+                basic_machine=h8300-hitachi
+                os=-xray
+                ;
+        h8500hms)
+                basic_machine=h8500-hitachi
+                os=-hms
+                ;
+        harris)
+                basic_machine=m88k-harris
+                os=-sysv3
+                ;
+        hp300-*)
+                basic_machine=m68k-hp
+                ;
+        hp300bsd)
+                basic_machine=m68k-hp
+                os=-bsd
+                ;
+        hp300hpux)
+                basic_machine=m68k-hp
+                os=-hpux
+                ;
+        hp3k9[0-9][0-9] | hp9[0-9][0-9])
+                basic_machine=hppa1.0-hp
+                ;
+        hp9k2[0-9][0-9] | hp9k31[0-9])
+                basic_machine=m68000-hp
+                ;
+        hp9k3[2-9][0-9])
+                basic_machine=m68k-hp
+                ;
+        hp9k6[0-9][0-9] | hp6[0-9][0-9])
+                basic_machine=hppa1.0-hp
+                ;
+        hp9k7[0-79][0-9] | hp7[0-79][0-9])
+                basic_machine=hppa1.1-hp
+                ;
+        hp9k78[0-9] | hp78[0-9])
+                # FIXME: really hppa2.0-hp
+                basic_machine=hppa1.1-hp
+                ;
+        hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+                # FIXME: really hppa2.0-hp
+                basic_machine=hppa1.1-hp
+                ;
+        hp9k8[0-9][13679] | hp8[0-9][13679])
+                basic_machine=hppa1.1-hp
+                ;
+        hp9k8[0-9][0-9] | hp8[0-9][0-9])
+                basic_machine=hppa1.0-hp
+                ;
+        hppa-next)
+                os=-nextstep3
+                ;
+        hppaosf)
+                basic_machine=hppa1.1-hp
+                os=-osf
+                ;
+        hppro)
+                basic_machine=hppa1.1-hp
+                os=-proelf
+                ;
+        i370-ibm* | ibm*)
+                basic_machine=i370-ibm
+                ;
+# I'm not sure what &quot;Sysv32&quot; means.  Should this be sysv3.2?
+        i*86v32)
+                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+                os=-sysv32
+                ;
+        i*86v4*)
+                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+                os=-sysv4
+                ;
+        i*86v)
+                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+                os=-sysv
+                ;
+        i*86sol2)
+                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+                os=-solaris2
+                ;
+        i386mach)
+                basic_machine=i386-mach
+                os=-mach
+                ;
+        i386-vsta | vsta)
+                basic_machine=i386-unknown
+                os=-vsta
+                ;
+        iris | iris4d)
+                basic_machine=mips-sgi
+                case $os in
+                    -irix*)
+                        ;
+                    *)
+                        os=-irix4
+                        ;
+                esac
+                ;
+        isi68 | isi)
+                basic_machine=m68k-isi
+                os=-sysv
+                ;
+        m88k-omron*)
+                basic_machine=m88k-omron
+                ;
+        magnum | m3230)
+                basic_machine=mips-mips
+                os=-sysv
+                ;
+        merlin)
+                basic_machine=ns32k-utek
+                os=-sysv
+                ;
+        mingw32)
+                basic_machine=i386-pc
+                os=-mingw32
+                ;
+        miniframe)
+                basic_machine=m68000-convergent
+                ;
+        *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+                basic_machine=m68k-atari
+                os=-mint
+                ;
+        mips3*-*)
+                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+                ;
+        mips3*)
+                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+                ;
+        monitor)
+                basic_machine=m68k-rom68k
+                os=-coff
+                ;
+        morphos)
+                basic_machine=powerpc-unknown
+                os=-morphos
+                ;
+        msdos)
+                basic_machine=i386-pc
+                os=-msdos
+                ;
+        ms1-*)
+                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+                ;
+        mvs)
+                basic_machine=i370-ibm
+                os=-mvs
+                ;
+        ncr3000)
+                basic_machine=i486-ncr
+                os=-sysv4
+                ;
+        netbsd386)
+                basic_machine=i386-unknown
+                os=-netbsd
+                ;
+        netwinder)
+                basic_machine=armv4l-rebel
+                os=-linux
+                ;
+        news | news700 | news800 | news900)
+                basic_machine=m68k-sony
+                os=-newsos
+                ;
+        news1000)
+                basic_machine=m68030-sony
+                os=-newsos
+                ;
+        news-3600 | risc-news)
+                basic_machine=mips-sony
+                os=-newsos
+                ;
+        necv70)
+                basic_machine=v70-nec
+                os=-sysv
+                ;
+        next | m*-next )
+                basic_machine=m68k-next
+                case $os in
+                    -nextstep* )
+                        ;
+                    -ns2*)
+                      os=-nextstep2
+                        ;
+                    *)
+                      os=-nextstep3
+                        ;
+                esac
+                ;
+        nh3000)
+                basic_machine=m68k-harris
+                os=-cxux
+                ;
+        nh[45]000)
+                basic_machine=m88k-harris
+                os=-cxux
+                ;
+        nindy960)
+                basic_machine=i960-intel
+                os=-nindy
+                ;
+        mon960)
+                basic_machine=i960-intel
+                os=-mon960
+                ;
+        nonstopux)
+                basic_machine=mips-compaq
+                os=-nonstopux
+                ;
+        np1)
+                basic_machine=np1-gould
+                ;
+        nsr-tandem)
+                basic_machine=nsr-tandem
+                ;
+        op50n-* | op60c-*)
+                basic_machine=hppa1.1-oki
+                os=-proelf
+                ;
+        openrisc | openrisc-*)
+                basic_machine=or32-unknown
+                ;
+        os400)
+                basic_machine=powerpc-ibm
+                os=-os400
+                ;
+        OSE68000 | ose68000)
+                basic_machine=m68000-ericsson
+                os=-ose
+                ;
+        os68k)
+                basic_machine=m68k-none
+                os=-os68k
+                ;
+        pa-hitachi)
+                basic_machine=hppa1.1-hitachi
+                os=-hiuxwe2
+                ;
+        paragon)
+                basic_machine=i860-intel
+                os=-osf
+                ;
+        pbd)
+                basic_machine=sparc-tti
+                ;
+        pbb)
+                basic_machine=m68k-tti
+                ;
+        pc532 | pc532-*)
+                basic_machine=ns32k-pc532
+                ;
+        pc98)
+                basic_machine=i386-pc
+                ;
+        pc98-*)
+                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        pentium | p5 | k5 | k6 | nexgen | viac3)
+                basic_machine=i586-pc
+                ;
+        pentiumpro | p6 | 6x86 | athlon | athlon_*)
+                basic_machine=i686-pc
+                ;
+        pentiumii | pentium2 | pentiumiii | pentium3)
+                basic_machine=i686-pc
+                ;
+        pentium4)
+                basic_machine=i786-pc
+                ;
+        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        pentiumpro-* | p6-* | 6x86-* | athlon-*)
+                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        pentium4-*)
+                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        pn)
+                basic_machine=pn-gould
+                ;
+        power)        basic_machine=power-ibm
+                ;
+        ppc)        basic_machine=powerpc-unknown
+                ;
+        ppc-*)        basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        ppcle | powerpclittle | ppc-le | powerpc-little)
+                basic_machine=powerpcle-unknown
+                ;
+        ppcle-* | powerpclittle-*)
+                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        ppc64)        basic_machine=powerpc64-unknown
+                ;
+        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+                basic_machine=powerpc64le-unknown
+                ;
+        ppc64le-* | powerpc64little-*)
+                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+                ;
+        ps2)
+                basic_machine=i386-ibm
+                ;
+        pw32)
+                basic_machine=i586-unknown
+                os=-pw32
+                ;
+        rdos)
+                basic_machine=i386-pc
+                os=-rdos
+                ;
+        rom68k)
+                basic_machine=m68k-rom68k
+                os=-coff
+                ;
+        rm[46]00)
+                basic_machine=mips-siemens
+                ;
+        rtpc | rtpc-*)
+                basic_machine=romp-ibm
+                ;
+        s390 | s390-*)
+                basic_machine=s390-ibm
+                ;
+        s390x | s390x-*)
+                basic_machine=s390x-ibm
+                ;
+        sa29200)
+                basic_machine=a29k-amd
+                os=-udi
+                ;
+        sb1)
+                basic_machine=mipsisa64sb1-unknown
+                ;
+        sb1el)
+                basic_machine=mipsisa64sb1el-unknown
+                ;
+        sde)
+                basic_machine=mipsisa32-sde
+                os=-elf
+                ;
+        sei)
+                basic_machine=mips-sei
+                os=-seiux
+                ;
+        sequent)
+                basic_machine=i386-sequent
+                ;
+        sh)
+                basic_machine=sh-hitachi
+                os=-hms
+                ;
+        sh5el)
+                basic_machine=sh5le-unknown
+                ;
+        sh64)
+                basic_machine=sh64-unknown
+                ;
+        sparclite-wrs | simso-wrs)
+                basic_machine=sparclite-wrs
+                os=-vxworks
+                ;
+        sps7)
+                basic_machine=m68k-bull
+                os=-sysv2
+                ;
+        spur)
+                basic_machine=spur-unknown
+                ;
+        st2000)
+                basic_machine=m68k-tandem
+                ;
+        stratus)
+                basic_machine=i860-stratus
+                os=-sysv4
+                ;
+        sun2)
+                basic_machine=m68000-sun
+                ;
+        sun2os3)
+                basic_machine=m68000-sun
+                os=-sunos3
+                ;
+        sun2os4)
+                basic_machine=m68000-sun
+                os=-sunos4
+                ;
+        sun3os3)
+                basic_machine=m68k-sun
+                os=-sunos3
+                ;
+        sun3os4)
+                basic_machine=m68k-sun
+                os=-sunos4
+                ;
+        sun4os3)
+                basic_machine=sparc-sun
+                os=-sunos3
+                ;
+        sun4os4)
+                basic_machine=sparc-sun
+                os=-sunos4
+                ;
+        sun4sol2)
+                basic_machine=sparc-sun
+                os=-solaris2
+                ;
+        sun3 | sun3-*)
+                basic_machine=m68k-sun
+                ;
+        sun4)
+                basic_machine=sparc-sun
+                ;
+        sun386 | sun386i | roadrunner)
+                basic_machine=i386-sun
+                ;
+        sv1)
+                basic_machine=sv1-cray
+                os=-unicos
+                ;
+        symmetry)
+                basic_machine=i386-sequent
+                os=-dynix
+                ;
+        t3e)
+                basic_machine=alphaev5-cray
+                os=-unicos
+                ;
+        t90)
+                basic_machine=t90-cray
+                os=-unicos
+                ;
+        tic54x | c54x*)
+                basic_machine=tic54x-unknown
+                os=-coff
+                ;
+        tic55x | c55x*)
+                basic_machine=tic55x-unknown
+                os=-coff
+                ;
+        tic6x | c6x*)
+                basic_machine=tic6x-unknown
+                os=-coff
+                ;
+        tx39)
+                basic_machine=mipstx39-unknown
+                ;
+        tx39el)
+                basic_machine=mipstx39el-unknown
+                ;
+        toad1)
+                basic_machine=pdp10-xkl
+                os=-tops20
+                ;
+        tower | tower-32)
+                basic_machine=m68k-ncr
+                ;
+        tpf)
+                basic_machine=s390x-ibm
+                os=-tpf
+                ;
+        udi29k)
+                basic_machine=a29k-amd
+                os=-udi
+                ;
+        ultra3)
+                basic_machine=a29k-nyu
+                os=-sym1
+                ;
+        v810 | necv810)
+                basic_machine=v810-nec
+                os=-none
+                ;
+        vaxv)
+                basic_machine=vax-dec
+                os=-sysv
+                ;
+        vms)
+                basic_machine=vax-dec
+                os=-vms
+                ;
+        vpp*|vx|vx-*)
+                basic_machine=f301-fujitsu
+                ;
+        vxworks960)
+                basic_machine=i960-wrs
+                os=-vxworks
+                ;
+        vxworks68)
+                basic_machine=m68k-wrs
+                os=-vxworks
+                ;
+        vxworks29k)
+                basic_machine=a29k-wrs
+                os=-vxworks
+                ;
+        w65*)
+                basic_machine=w65-wdc
+                os=-none
+                ;
+        w89k-*)
+                basic_machine=hppa1.1-winbond
+                os=-proelf
+                ;
+        xbox)
+                basic_machine=i686-pc
+                os=-mingw32
+                ;
+        xps | xps100)
+                basic_machine=xps100-honeywell
+                ;
+        ymp)
+                basic_machine=ymp-cray
+                os=-unicos
+                ;
+        z8k-*-coff)
+                basic_machine=z8k-unknown
+                os=-sim
+                ;
+        none)
+                basic_machine=none-none
+                os=-none
+                ;
+
+# Here we handle the default manufacturer of certain CPU types.  It is in
+# some cases the only manufacturer, in others, it is the most popular.
+        w89k)
+                basic_machine=hppa1.1-winbond
+                ;
+        op50n)
+                basic_machine=hppa1.1-oki
+                ;
+        op60c)
+                basic_machine=hppa1.1-oki
+                ;
+        romp)
+                basic_machine=romp-ibm
+                ;
+        mmix)
+                basic_machine=mmix-knuth
+                ;
+        rs6000)
+                basic_machine=rs6000-ibm
+                ;
+        vax)
+                basic_machine=vax-dec
+                ;
+        pdp10)
+                # there are many clones, so DEC is not a safe bet
+                basic_machine=pdp10-unknown
+                ;
+        pdp11)
+                basic_machine=pdp11-dec
+                ;
+        we32k)
+                basic_machine=we32k-att
+                ;
+        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
+                basic_machine=sh-unknown
+                ;
+        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+                basic_machine=sparc-sun
+                ;
+        cydra)
+                basic_machine=cydra-cydrome
+                ;
+        orion)
+                basic_machine=orion-highlevel
+                ;
+        orion105)
+                basic_machine=clipper-highlevel
+                ;
+        mac | mpw | mac-mpw)
+                basic_machine=m68k-apple
+                ;
+        pmac | pmac-mpw)
+                basic_machine=powerpc-apple
+                ;
+        *-unknown)
+                # Make sure to match an already-canonicalized machine name.
+                ;
+        *)
+                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1&gt;&amp;2
+                exit 1
+                ;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+        *-digital*)
+                basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+                ;
+        *-commodore*)
+                basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+                ;
+        *)
+                ;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x&quot;$os&quot; != x&quot;&quot; ]
+then
+case $os in
+        # First match some system type aliases
+        # that might get confused with valid system types.
+        # -solaris* is a basic system type, with this one exception.
+        -solaris1 | -solaris1.*)
+                os=`echo $os | sed -e 's|solaris1|sunos4|'`
+                ;
+        -solaris)
+                os=-solaris2
+                ;
+        -svr4*)
+                os=-sysv4
+                ;
+        -unixware*)
+                os=-sysv4.2uw
+                ;
+        -gnu/linux*)
+                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+                ;
+        # First accept the basic system types.
+        # The portable systems comes first.
+        # Each alternative MUST END IN A *, to match a version number.
+        # -sysv* is not here because it comes later, after sysvr4.
+        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+              | -aos* \
+              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+              | -openbsd* | -solidbsd* \
+              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+              | -chorusos* | -chorusrdb* \
+              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+              | -uxpv* | -beos* | -mpeix* | -udk* \
+              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
+        # Remember, each alternative MUST END IN *, to match a version number.
+                ;
+        -qnx*)
+                case $basic_machine in
+                    x86-* | i*86-*)
+                        ;
+                    *)
+                        os=-nto$os
+                        ;
+                esac
+                ;
+        -nto-qnx*)
+                ;
+        -nto*)
+                os=`echo $os | sed -e 's|nto|nto-qnx|'`
+                ;
+        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+                ;
+        -mac*)
+                os=`echo $os | sed -e 's|mac|macos|'`
+                ;
+        -linux-dietlibc)
+                os=-linux-dietlibc
+                ;
+        -linux*)
+                os=`echo $os | sed -e 's|linux|linux-gnu|'`
+                ;
+        -sunos5*)
+                os=`echo $os | sed -e 's|sunos5|solaris2|'`
+                ;
+        -sunos6*)
+                os=`echo $os | sed -e 's|sunos6|solaris3|'`
+                ;
+        -opened*)
+                os=-openedition
+                ;
+        -os400*)
+                os=-os400
+                ;
+        -wince*)
+                os=-wince
+                ;
+        -osfrose*)
+                os=-osfrose
+                ;
+        -osf*)
+                os=-osf
+                ;
+        -utek*)
+                os=-bsd
+                ;
+        -dynix*)
+                os=-bsd
+                ;
+        -acis*)
+                os=-aos
+                ;
+        -atheos*)
+                os=-atheos
+                ;
+        -syllable*)
+                os=-syllable
+                ;
+        -386bsd)
+                os=-bsd
+                ;
+        -ctix* | -uts*)
+                os=-sysv
+                ;
+        -nova*)
+                os=-rtmk-nova
+                ;
+        -ns2 )
+                os=-nextstep2
+                ;
+        -nsk*)
+                os=-nsk
+                ;
+        # Preserve the version number of sinix5.
+        -sinix5.*)
+                os=`echo $os | sed -e 's|sinix|sysv|'`
+                ;
+        -sinix*)
+                os=-sysv4
+                ;
+        -tpf*)
+                os=-tpf
+                ;
+        -triton*)
+                os=-sysv3
+                ;
+        -oss*)
+                os=-sysv3
+                ;
+        -svr4)
+                os=-sysv4
+                ;
+        -svr3)
+                os=-sysv3
+                ;
+        -sysvr4)
+                os=-sysv4
+                ;
+        # This must come after -sysvr4.
+        -sysv*)
+                ;
+        -ose*)
+                os=-ose
+                ;
+        -es1800*)
+                os=-ose
+                ;
+        -xenix)
+                os=-xenix
+                ;
+        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+                os=-mint
+                ;
+        -aros*)
+                os=-aros
+                ;
+        -kaos*)
+                os=-kaos
+                ;
+        -zvmoe)
+                os=-zvmoe
+                ;
+        -none)
+                ;
+        *)
+                # Get rid of the `-' at the beginning of $os.
+                os=`echo $os | sed 's/[^-]*-//'`
+                echo Invalid configuration \`$1\': system \`$os\' not recognized 1&gt;&amp;2
+                exit 1
+                ;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match &quot;-MANUFACTURER&quot; here (say,
+# &quot;-sun&quot;), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system.  Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+        score-*)
+                os=-elf
+                ;
+        spu-*)
+                os=-elf
+                ;
+        *-acorn)
+                os=-riscix1.2
+                ;
+        arm*-rebel)
+                os=-linux
+                ;
+        arm*-semi)
+                os=-aout
+                ;
+        c4x-* | tic4x-*)
+                os=-coff
+                ;
+        # This must come before the *-dec entry.
+        pdp10-*)
+                os=-tops20
+                ;
+        pdp11-*)
+                os=-none
+                ;
+        *-dec | vax-*)
+                os=-ultrix4.2
+                ;
+        m68*-apollo)
+                os=-domain
+                ;
+        i386-sun)
+                os=-sunos4.0.2
+                ;
+        m68000-sun)
+                os=-sunos3
+                # This also exists in the configure program, but was not the
+                # default.
+                # os=-sunos4
+                ;
+        m68*-cisco)
+                os=-aout
+                ;
+        mep-*)
+                os=-elf
+                ;
+        mips*-cisco)
+                os=-elf
+                ;
+        mips*-*)
+                os=-elf
+                ;
+        or32-*)
+                os=-coff
+                ;
+        *-tti)        # must be before sparc entry or we get the wrong os.
+                os=-sysv3
+                ;
+        sparc-* | *-sun)
+                os=-sunos4.1.1
+                ;
+        *-be)
+                os=-beos
+                ;
+        *-haiku)
+                os=-haiku
+                ;
+        *-ibm)
+                os=-aix
+                ;
+            *-knuth)
+                os=-mmixware
+                ;
+        *-wec)
+                os=-proelf
+                ;
+        *-winbond)
+                os=-proelf
+                ;
+        *-oki)
+                os=-proelf
+                ;
+        *-hp)
+                os=-hpux
+                ;
+        *-hitachi)
+                os=-hiux
+                ;
+        i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+                os=-sysv
+                ;
+        *-cbm)
+                os=-amigaos
+                ;
+        *-dg)
+                os=-dgux
+                ;
+        *-dolphin)
+                os=-sysv3
+                ;
+        m68k-ccur)
+                os=-rtu
+                ;
+        m88k-omron*)
+                os=-luna
+                ;
+        *-next )
+                os=-nextstep
+                ;
+        *-sequent)
+                os=-ptx
+                ;
+        *-crds)
+                os=-unos
+                ;
+        *-ns)
+                os=-genix
+                ;
+        i370-*)
+                os=-mvs
+                ;
+        *-next)
+                os=-nextstep3
+                ;
+        *-gould)
+                os=-sysv
+                ;
+        *-highlevel)
+                os=-bsd
+                ;
+        *-encore)
+                os=-bsd
+                ;
+        *-sgi)
+                os=-irix
+                ;
+        *-siemens)
+                os=-sysv4
+                ;
+        *-masscomp)
+                os=-rtu
+                ;
+        f30[01]-fujitsu | f700-fujitsu)
+                os=-uxpv
+                ;
+        *-rom68k)
+                os=-coff
+                ;
+        *-*bug)
+                os=-coff
+                ;
+        *-apple)
+                os=-macos
+                ;
+        *-atari*)
+                os=-mint
+                ;
+        *)
+                os=-none
+                ;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer.  We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+        *-unknown)
+                case $os in
+                        -riscix*)
+                                vendor=acorn
+                                ;
+                        -sunos*)
+                                vendor=sun
+                                ;
+                        -aix*)
+                                vendor=ibm
+                                ;
+                        -beos*)
+                                vendor=be
+                                ;
+                        -hpux*)
+                                vendor=hp
+                                ;
+                        -mpeix*)
+                                vendor=hp
+                                ;
+                        -hiux*)
+                                vendor=hitachi
+                                ;
+                        -unos*)
+                                vendor=crds
+                                ;
+                        -dgux*)
+                                vendor=dg
+                                ;
+                        -luna*)
+                                vendor=omron
+                                ;
+                        -genix*)
+                                vendor=ns
+                                ;
+                        -mvs* | -opened*)
+                                vendor=ibm
+                                ;
+                        -os400*)
+                                vendor=ibm
+                                ;
+                        -ptx*)
+                                vendor=sequent
+                                ;
+                        -tpf*)
+                                vendor=ibm
+                                ;
+                        -vxsim* | -vxworks* | -windiss*)
+                                vendor=wrs
+                                ;
+                        -aux*)
+                                vendor=apple
+                                ;
+                        -hms*)
+                                vendor=hitachi
+                                ;
+                        -mpw* | -macos*)
+                                vendor=apple
+                                ;
+                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+                                vendor=atari
+                                ;
+                        -vos*)
+                                vendor=stratus
+                                ;
+                esac
+                basic_machine=`echo $basic_machine | sed &quot;s/unknown/$vendor/&quot;`
+                ;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: &quot;timestamp='&quot;
+# time-stamp-format: &quot;%:y-%02m-%02d&quot;
+# time-stamp-end: &quot;'&quot;
+# End:
</ins><span class="cx">Property changes on: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/config.sub
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsdebugconfigsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/debugconfig.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/debugconfig.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/debugconfig.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+#! /bin/sh
+
+CXXFLAGS=&quot;-g -Wall&quot; ./configure --disable-shared
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsdepcomp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/depcomp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/depcomp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/depcomp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,423 @@
</span><ins>+#! /bin/sh
+
+# depcomp - compile a program generating dependencies as side-effects
+# Copyright 1999, 2000 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva &lt;oliva@dcc.unicamp.br&gt;.
+
+if test -z &quot;$depmode&quot; || test -z &quot;$source&quot; || test -z &quot;$object&quot;; then
+  echo &quot;depcomp: Variables source, object and depmode must be set&quot; 1&gt;&amp;2
+  exit 1
+fi
+# `libtool' can also be set to `yes' or `no'.
+
+if test -z &quot;$depfile&quot;; then
+   base=`echo &quot;$object&quot; | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
+   dir=`echo &quot;$object&quot; | sed 's,/.*$,/,'`
+   if test &quot;$dir&quot; = &quot;$object&quot;; then
+      dir=
+   fi
+   # FIXME: should be _deps on DOS.
+   depfile=&quot;$dir.deps/$base&quot;
+fi
+
+tmpdepfile=${tmpdepfile-`echo &quot;$depfile&quot; | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f &quot;$tmpdepfile&quot;
+
+# Some modes work just like other modes, but use different flags.  We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write.  Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test &quot;$depmode&quot; = hp; then
+  # HP compiler uses -M and no extra arg.
+  gccflag=-M
+  depmode=gcc
+fi
+
+if test &quot;$depmode&quot; = dashXmstdout; then
+   # This is just like dashmstdout with a different argument.
+   dashmflag=-xM
+   depmode=dashmstdout
+fi
+
+case &quot;$depmode&quot; in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff.  Hmm.
+  &quot;$@&quot; -MT &quot;$object&quot; -MD -MP -MF &quot;$tmpdepfile&quot;
+  stat=$?
+  if test $stat -eq 0; then :
+  else
+    rm -f &quot;$tmpdepfile&quot;
+    exit $stat
+  fi
+  mv &quot;$tmpdepfile&quot; &quot;$depfile&quot;
+  ;;
+
+gcc)
+## There are various ways to get dependency output from gcc.  Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+##   up in a subdir.  Having to rename by hand is ugly.
+##   (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+##   -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+##   than renaming).
+  if test -z &quot;$gccflag&quot;; then
+    gccflag=-MD,
+  fi
+  &quot;$@&quot; -Wp,&quot;$gccflag$tmpdepfile&quot;
+  stat=$?
+  if test $stat -eq 0; then :
+  else
+    rm -f &quot;$tmpdepfile&quot;
+    exit $stat
+  fi
+  rm -f &quot;$depfile&quot;
+  echo &quot;$object : \\&quot; &gt; &quot;$depfile&quot;
+  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+  sed -e 's/^[^:]*: / /' \
+      -e 's/^['$alpha']:\/[^:]*: / /' &lt; &quot;$tmpdepfile&quot; &gt;&gt; &quot;$depfile&quot;
+## This next piece of magic avoids the `deleted header file' problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header).  We avoid this by adding
+## dummy dependencies for each header file.  Too bad gcc doesn't do
+## this for us directly.
+  tr ' ' '
+' &lt; &quot;$tmpdepfile&quot; |
+## Some versions of gcc put a space before the `:'.  On the theory
+## that the space means something, we add a space to the output as
+## well.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly.  Breaking it into two sed invocations is a workaround.
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' &gt;&gt; &quot;$depfile&quot;
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+hp)
+  # This case exists only to let depend.m4 do its work.  It works by
+  # looking at the text of this script.  This case will never be run,
+  # since it is checked for above.
+  exit 1
+  ;;
+
+sgi)
+  if test &quot;$libtool&quot; = yes; then
+    &quot;$@&quot; &quot;-Wp,-MDupdate,$tmpdepfile&quot;
+  else
+    &quot;$@&quot; -MDupdate &quot;$tmpdepfile&quot;
+  fi
+  stat=$?
+  if test $stat -eq 0; then :
+  else
+    rm -f &quot;$tmpdepfile&quot;
+    exit $stat
+  fi
+  rm -f &quot;$depfile&quot;
+
+  if test -f &quot;$tmpdepfile&quot;; then  # yes, the sourcefile depend on other files
+    echo &quot;$object : \\&quot; &gt; &quot;$depfile&quot;
+
+    # Clip off the initial element (the dependent).  Don't try to be
+    # clever and replace this with sed code, as IRIX sed won't handle
+    # lines with more than a fixed number of characters (4096 in
+    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
+    # the IRIX cc adds comments like `#:fec' to the end of the
+    # dependency line.
+    tr ' ' '
+' &lt; &quot;$tmpdepfile&quot; \
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+    tr '
+' ' ' &gt;&gt; $depfile
+    echo &gt;&gt; $depfile
+
+    # The second pass generates a dummy entry for each header file.
+    tr ' ' '
+' &lt; &quot;$tmpdepfile&quot; \
+   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+   &gt;&gt; $depfile
+  else
+    # The sourcefile does not contain any dependencies, so just
+    # store a dummy comment line, to avoid errors with the Makefile
+    # &quot;include basename.Plo&quot; scheme.
+    echo &quot;#dummy&quot; &gt; &quot;$depfile&quot;
+  fi
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+aix)
+  # The C for AIX Compiler uses -M and outputs the dependencies
+  # in a .u file.  This file always lives in the current directory.
+  # Also, the AIX compiler puts `$object:' at the start of each line;
+  # $object doesn't have directory information.
+  stripped=`echo &quot;$object&quot; | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
+  tmpdepfile=&quot;$stripped.u&quot;
+  outname=&quot;$stripped.o&quot;
+  if test &quot;$libtool&quot; = yes; then
+    &quot;$@&quot; -Wc,-M
+  else
+    &quot;$@&quot; -M
+  fi
+
+  stat=$?
+  if test $stat -eq 0; then :
+  else
+    rm -f &quot;$tmpdepfile&quot;
+    exit $stat
+  fi
+
+  if test -f &quot;$tmpdepfile&quot;; then
+    # Each line is of the form `foo.o: dependent.h'.
+    # Do two passes, one to just change these to
+    # `$object: dependent.h' and one to simply `dependent.h:'.
+    sed -e &quot;s,^$outname:,$object :,&quot; &lt; &quot;$tmpdepfile&quot; &gt; &quot;$depfile&quot;
+    sed -e &quot;s,^$outname: \(.*\)$,\1:,&quot; &lt; &quot;$tmpdepfile&quot; &gt;&gt; &quot;$depfile&quot;
+  else
+    # The sourcefile does not contain any dependencies, so just
+    # store a dummy comment line, to avoid errors with the Makefile
+    # &quot;include basename.Plo&quot; scheme.
+    echo &quot;#dummy&quot; &gt; &quot;$depfile&quot;
+  fi
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+tru64)
+   # The Tru64 compiler uses -MD to generate dependencies as a side
+   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+   # dependencies in `foo.d' instead, so we check for that too.
+   # Subdirectories are respected.
+   dir=`echo &quot;$object&quot; | sed -e 's|/[^/]*$|/|'`
+   test &quot;x$dir&quot; = &quot;x$object&quot; &amp;&amp; dir=
+   base=`echo &quot;$object&quot; | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+   if test &quot;$libtool&quot; = yes; then
+      tmpdepfile1=&quot;$dir.libs/$base.lo.d&quot;
+      tmpdepfile2=&quot;$dir.libs/$base.d&quot;
+      &quot;$@&quot; -Wc,-MD
+   else
+      tmpdepfile1=&quot;$dir$base.o.d&quot;
+      tmpdepfile2=&quot;$dir$base.d&quot;
+      &quot;$@&quot; -MD
+   fi
+
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+      rm -f &quot;$tmpdepfile1&quot; &quot;$tmpdepfile2&quot;
+      exit $stat
+   fi
+
+   if test -f &quot;$tmpdepfile1&quot;; then
+      tmpdepfile=&quot;$tmpdepfile1&quot;
+   else
+      tmpdepfile=&quot;$tmpdepfile2&quot;
+   fi
+   if test -f &quot;$tmpdepfile&quot;; then
+      sed -e &quot;s,^.*\.[a-z]*:,$object:,&quot; &lt; &quot;$tmpdepfile&quot; &gt; &quot;$depfile&quot;
+      # That's a space and a tab in the [].
+      sed -e 's,^.*\.[a-z]*:[         ]*,,' -e 's,$,:,' &lt; &quot;$tmpdepfile&quot; &gt;&gt; &quot;$depfile&quot;
+   else
+      echo &quot;#dummy&quot; &gt; &quot;$depfile&quot;
+   fi
+   rm -f &quot;$tmpdepfile&quot;
+   ;;
+
+#nosideeffect)
+  # This comment above is used by automake to tell side-effect
+  # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the proprocessed file to stdout, regardless of -o.
+  &quot;$@&quot; || exit $?
+
+  # Remove the call to Libtool.
+  if test &quot;$libtool&quot; = yes; then
+    while test $1 != '--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+
+  # Remove `-o $object'.  We will use -o /dev/null later,
+  # however we can't do the remplacement now because
+  # `-o $object' might simply not be used
+  IFS=&quot; &quot;
+  for arg
+  do
+    case $arg in
+    -o)
+      shift
+      ;;
+    $object)
+      shift
+      ;;
+    *)
+      set fnord &quot;$@&quot; &quot;$arg&quot;
+      shift # fnord
+      shift # $arg
+      ;;
+    esac
+  done
+
+  test -z &quot;$dashmflag&quot; &amp;&amp; dashmflag=-M
+  &quot;$@&quot; -o /dev/null $dashmflag | sed 's:^[^:]*\:[         ]*:'&quot;$object&quot;'\: :' &gt; &quot;$tmpdepfile&quot;
+  rm -f &quot;$depfile&quot;
+  cat &lt; &quot;$tmpdepfile&quot; &gt; &quot;$depfile&quot;
+  tr ' ' '
+' &lt; &quot;$tmpdepfile&quot; | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly.  Breaking it into two sed invocations is a workaround.
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' &gt;&gt; &quot;$depfile&quot;
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+dashXmstdout)
+  # This case only exists to satisfy depend.m4.  It is never actually
+  # run, as this mode is specially recognized in the preamble.
+  exit 1
+  ;;
+
+makedepend)
+  &quot;$@&quot; || exit $?
+  # X makedepend
+  shift
+  cleared=no
+  for arg in &quot;$@&quot;; do
+    case $cleared in
+    no)
+      set &quot;&quot;; shift
+      cleared=yes ;;
+    esac
+    case &quot;$arg&quot; in
+    -D*|-I*)
+      set fnord &quot;$@&quot; &quot;$arg&quot;; shift ;;
+    -*)
+      ;;
+    *)
+      set fnord &quot;$@&quot; &quot;$arg&quot;; shift ;;
+    esac
+  done
+  obj_suffix=&quot;`echo $object | sed 's/^.*\././'`&quot;
+  touch &quot;$tmpdepfile&quot;
+  ${MAKEDEPEND-makedepend} -o&quot;$obj_suffix&quot; -f&quot;$tmpdepfile&quot; &quot;$@&quot;
+  rm -f &quot;$depfile&quot;
+  cat &lt; &quot;$tmpdepfile&quot; &gt; &quot;$depfile&quot;
+  sed '1,2d' &quot;$tmpdepfile&quot; | tr ' ' '
+' | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly.  Breaking it into two sed invocations is a workaround.
+    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' &gt;&gt; &quot;$depfile&quot;
+  rm -f &quot;$tmpdepfile&quot; &quot;$tmpdepfile&quot;.bak
+  ;;
+
+cpp)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the proprocessed file to stdout.
+  &quot;$@&quot; || exit $?
+
+  # Remove the call to Libtool.
+  if test &quot;$libtool&quot; = yes; then
+    while test $1 != '--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+
+  # Remove `-o $object'.
+  IFS=&quot; &quot;
+  for arg
+  do
+    case $arg in
+    -o)
+      shift
+      ;;
+    $object)
+      shift
+      ;;
+    *)
+      set fnord &quot;$@&quot; &quot;$arg&quot;
+      shift # fnord
+      shift # $arg
+      ;;
+    esac
+  done
+
+  &quot;$@&quot; -E |
+    sed -n '/^# [0-9][0-9]* &quot;\([^&quot;]*\)&quot;.*/ s:: \1 \\:p' |
+    sed '$ s: \\$::' &gt; &quot;$tmpdepfile&quot;
+  rm -f &quot;$depfile&quot;
+  echo &quot;$object : \\&quot; &gt; &quot;$depfile&quot;
+  cat &lt; &quot;$tmpdepfile&quot; &gt;&gt; &quot;$depfile&quot;
+  sed &lt; &quot;$tmpdepfile&quot; '/^$/d;s/^ //;s/ \\$//;s/$/ :/' &gt;&gt; &quot;$depfile&quot;
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+msvisualcpp)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the proprocessed file to stdout, regardless of -o,
+  # because we must use -o when running libtool.
+  &quot;$@&quot; || exit $?
+  IFS=&quot; &quot;
+  for arg
+  do
+    case &quot;$arg&quot; in
+    &quot;-Gm&quot;|&quot;/Gm&quot;|&quot;-Gi&quot;|&quot;/Gi&quot;|&quot;-ZI&quot;|&quot;/ZI&quot;)
+        set fnord &quot;$@&quot;
+        shift
+        shift
+        ;
+    *)
+        set fnord &quot;$@&quot; &quot;$arg&quot;
+        shift
+        shift
+        ;
+    esac
+  done
+  &quot;$@&quot; -E |
+  sed -n '/^#line [0-9][0-9]* &quot;\([^&quot;]*\)&quot;/ s::echo &quot;`cygpath -u \\&quot;\1\\&quot;`&quot;:p' | sort | uniq &gt; &quot;$tmpdepfile&quot;
+  rm -f &quot;$depfile&quot;
+  echo &quot;$object : \\&quot; &gt; &quot;$depfile&quot;
+  . &quot;$tmpdepfile&quot; | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::        \1 \\:p' &gt;&gt; &quot;$depfile&quot;
+  echo &quot;        &quot; &gt;&gt; &quot;$depfile&quot;
+  . &quot;$tmpdepfile&quot; | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' &gt;&gt; &quot;$depfile&quot;
+  rm -f &quot;$tmpdepfile&quot;
+  ;;
+
+none)
+  exec &quot;$@&quot;
+  ;;
+
+*)
+  echo &quot;Unknown depmode $depmode&quot; 1&gt;&amp;2
+  exit 1
+  ;;
+esac
+
+exit 0
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsinstallsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/install-sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/install-sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/install-sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,250 @@
</span><ins>+#!/bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5 (mit/util/scripts/install.sh).
+#
+# Copyright 1991 by the Massachusetts Institute of Technology
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of M.I.T. not be used in advertising or
+# publicity pertaining to distribution of the software without specific,
+# written prior permission.  M.I.T. makes no representations about the
+# suitability of this software for any purpose.  It is provided &quot;as is&quot;
+# without express or implied warranty.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.  It can only install one file at a time, a restriction
+# shared with many OS's install programs.
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=&quot;${DOITPROG-}&quot;
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog=&quot;${MVPROG-mv}&quot;
+cpprog=&quot;${CPPROG-cp}&quot;
+chmodprog=&quot;${CHMODPROG-chmod}&quot;
+chownprog=&quot;${CHOWNPROG-chown}&quot;
+chgrpprog=&quot;${CHGRPPROG-chgrp}&quot;
+stripprog=&quot;${STRIPPROG-strip}&quot;
+rmprog=&quot;${RMPROG-rm}&quot;
+mkdirprog=&quot;${MKDIRPROG-mkdir}&quot;
+
+transformbasename=&quot;&quot;
+transform_arg=&quot;&quot;
+instcmd=&quot;$mvprog&quot;
+chmodcmd=&quot;$chmodprog 0755&quot;
+chowncmd=&quot;&quot;
+chgrpcmd=&quot;&quot;
+stripcmd=&quot;&quot;
+rmcmd=&quot;$rmprog -f&quot;
+mvcmd=&quot;$mvprog&quot;
+src=&quot;&quot;
+dst=&quot;&quot;
+dir_arg=&quot;&quot;
+
+while [ x&quot;$1&quot; != x ]; do
+    case $1 in
+        -c) instcmd=&quot;$cpprog&quot;
+            shift
+            continue;;
+
+        -d) dir_arg=true
+            shift
+            continue;;
+
+        -m) chmodcmd=&quot;$chmodprog $2&quot;
+            shift
+            shift
+            continue;;
+
+        -o) chowncmd=&quot;$chownprog $2&quot;
+            shift
+            shift
+            continue;;
+
+        -g) chgrpcmd=&quot;$chgrpprog $2&quot;
+            shift
+            shift
+            continue;;
+
+        -s) stripcmd=&quot;$stripprog&quot;
+            shift
+            continue;;
+
+        -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+            shift
+            continue;;
+
+        -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+            shift
+            continue;;
+
+        *)  if [ x&quot;$src&quot; = x ]
+            then
+                src=$1
+            else
+                # this colon is to work around a 386BSD /bin/sh bug
+                :
+                dst=$1
+            fi
+            shift
+            continue;;
+    esac
+done
+
+if [ x&quot;$src&quot; = x ]
+then
+        echo &quot;install:        no input file specified&quot;
+        exit 1
+else
+        true
+fi
+
+if [ x&quot;$dir_arg&quot; != x ]; then
+        dst=$src
+        src=&quot;&quot;
+        
+        if [ -d $dst ]; then
+                instcmd=:
+        else
+                instcmd=mkdir
+        fi
+else
+
+# Waiting for this to be detected by the &quot;$instcmd $src $dsttmp&quot; command
+# might cause directories to be created, which would be especially bad 
+# if $src (and thus $dsttmp) contains '*'.
+
+        if [ -f $src -o -d $src ]
+        then
+                true
+        else
+                echo &quot;install:  $src does not exist&quot;
+                exit 1
+        fi
+        
+        if [ x&quot;$dst&quot; = x ]
+        then
+                echo &quot;install:        no destination specified&quot;
+                exit 1
+        else
+                true
+        fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+        if [ -d $dst ]
+        then
+                dst=&quot;$dst&quot;/`basename $src`
+        else
+                true
+        fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+#  this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d &quot;$dstdir&quot; ]; then
+defaultIFS='        
+'
+IFS=&quot;${IFS-${defaultIFS}}&quot;
+
+oIFS=&quot;${IFS}&quot;
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS=&quot;${oIFS}&quot;
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+        pathcomp=&quot;${pathcomp}${1}&quot;
+        shift
+
+        if [ ! -d &quot;${pathcomp}&quot; ] ;
+        then
+                $mkdirprog &quot;${pathcomp}&quot;
+        else
+                true
+        fi
+
+        pathcomp=&quot;${pathcomp}/&quot;
+done
+fi
+
+if [ x&quot;$dir_arg&quot; != x ]
+then
+        $doit $instcmd $dst &amp;&amp;
+
+        if [ x&quot;$chowncmd&quot; != x ]; then $doit $chowncmd $dst; else true ; fi &amp;&amp;
+        if [ x&quot;$chgrpcmd&quot; != x ]; then $doit $chgrpcmd $dst; else true ; fi &amp;&amp;
+        if [ x&quot;$stripcmd&quot; != x ]; then $doit $stripcmd $dst; else true ; fi &amp;&amp;
+        if [ x&quot;$chmodcmd&quot; != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+        if [ x&quot;$transformarg&quot; = x ] 
+        then
+                dstfile=`basename $dst`
+        else
+                dstfile=`basename $dst $transformbasename | 
+                        sed $transformarg`$transformbasename
+        fi
+
+# don't allow the sed command to completely eliminate the filename
+
+        if [ x&quot;$dstfile&quot; = x ] 
+        then
+                dstfile=`basename $dst`
+        else
+                true
+        fi
+
+# Make a temp file name in the proper directory.
+
+        dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+        $doit $instcmd $src $dsttmp &amp;&amp;
+
+        trap &quot;rm -f ${dsttmp}&quot; 0 &amp;&amp;
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing.  If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above &quot;$doit $instcmd $src $dsttmp&quot; command.
+
+        if [ x&quot;$chowncmd&quot; != x ]; then $doit $chowncmd $dsttmp; else true;fi &amp;&amp;
+        if [ x&quot;$chgrpcmd&quot; != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &amp;&amp;
+        if [ x&quot;$stripcmd&quot; != x ]; then $doit $stripcmd $dsttmp; else true;fi &amp;&amp;
+        if [ x&quot;$chmodcmd&quot; != x ]; then $doit $chmodcmd $dsttmp; else true;fi &amp;&amp;
+
+# Now rename the file to the real destination.
+
+        $doit $rmcmd -f $dstdir/$dstfile &amp;&amp;
+        $doit $mvcmd $dsttmp $dstdir/$dstfile 
+
+fi &amp;&amp;
+
+
+exit 0
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsltconfig"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltconfig (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltconfig                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltconfig        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,3115 @@
</span><ins>+#! /bin/sh
+
+# ltconfig - Create a system-specific libtool.
+# Copyright (C) 1996-1999 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A lot of this script is taken from autoconf-2.10.
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+echo=echo
+if test &quot;X$1&quot; = X--no-reexec; then
+  # Discard the --no-reexec flag, and continue.
+  shift
+elif test &quot;X$1&quot; = X--fallback-echo; then
+  # Avoid inline document here, it may be left over
+  :
+elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+  # Yippee, $echo works!
+  :
+else
+  # Restart under the correct shell.
+  exec &quot;$SHELL&quot; &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+fi
+
+if test &quot;X$1&quot; = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat &lt;&lt;EOF
+$*
+EOF
+  exit 0
+fi
+
+# Find the correct PATH separator.  Usually this is `:', but
+# DJGPP uses `;' like DOS.
+if test &quot;X${PATH_SEPARATOR+set}&quot; != Xset; then
+  UNAME=${UNAME-`uname 2&gt;/dev/null`}
+  case X$UNAME in
+    *-DOS) PATH_SEPARATOR=';' ;;
+    *)     PATH_SEPARATOR=':' ;;
+  esac
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test &quot;X${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi
+
+if test &quot;X${echo_test_string+set}&quot; != Xset; then
+  # find a string as large as possible, as long as the shell can cope with it
+  for cmd in 'sed 50q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 2q &quot;$0&quot;' 'echo test'; do
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+    if (echo_test_string=&quot;`eval $cmd`&quot;) 2&gt;/dev/null &amp;&amp;
+       echo_test_string=&quot;`eval $cmd`&quot; &amp;&amp;
+       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null; then
+      break
+    fi
+  done
+fi
+
+if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; != 'X\t' ||
+   test &quot;X`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; != X&quot;$echo_test_string&quot;; then
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
+  # backslashes.  This makes it impossible to quote backslashes using
+  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
+  #
+  # So, first we look for a working echo in the user's PATH.
+
+  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+  for dir in $PATH /usr/ucb; do
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       test &quot;X`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+      echo=&quot;$dir/echo&quot;
+      break
+    fi
+  done
+  IFS=&quot;$save_ifs&quot;
+
+  if test &quot;X$echo&quot; = Xecho; then
+    # We didn't find a better echo, so look for alternatives.
+    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+       test &quot;X`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+      # This shell has a builtin print -r that does the trick.
+      echo='print -r'
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
+         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+      # If we have ksh, try running ltconfig again with it.
+      ORIGINAL_CONFIG_SHELL=&quot;${CONFIG_SHELL-/bin/sh}&quot;
+      export ORIGINAL_CONFIG_SHELL
+      CONFIG_SHELL=/bin/ksh
+      export CONFIG_SHELL
+      exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+    else
+      # Try using printf.
+      echo='printf &quot;%s\n&quot;'
+      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+         test &quot;X`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+        # Cool, printf works
+        :
+      elif test &quot;X`(&quot;$ORIGINAL_CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+           test &quot;X`(&quot;$ORIGINAL_CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+        CONFIG_SHELL=&quot;$ORIGINAL_CONFIG_SHELL&quot;
+        export CONFIG_SHELL
+        SHELL=&quot;$CONFIG_SHELL&quot;
+        export SHELL
+        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+      elif test &quot;X`(&quot;$CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+           test &quot;X`(&quot;$CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+      else
+        # maybe with a smaller string...
+        prev=:
+
+        for cmd in 'echo test' 'sed 2q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 50q &quot;$0&quot;'; do
+          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null; then
+            break
+          fi
+          prev=&quot;$cmd&quot;
+        done
+
+        if test &quot;$prev&quot; != 'sed 50q &quot;$0&quot;'; then
+          echo_test_string=`eval $prev`
+          export echo_test_string
+          exec &quot;${ORIGINAL_CONFIG_SHELL}&quot; &quot;$0&quot; ${1+&quot;$@&quot;}
+        else
+          # Oops.  We lost completely, so just stick with echo.
+          echo=echo
+        fi
+      fi
+    fi
+  fi
+fi
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e s/^X//'
+sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# The name of this program.
+progname=`$echo &quot;X$0&quot; | $Xsed -e 's%^.*/%%'`
+
+# Constants:
+PROGRAM=ltconfig
+PACKAGE=libtool
+VERSION=1.3.5
+TIMESTAMP=&quot; (1.385.2.206 2000/05/27 11:12:27)&quot;
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1&gt;&amp;5'
+ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1&gt;&amp;5'
+rm=&quot;rm -f&quot;
+
+help=&quot;Try \`$progname --help' for more information.&quot;
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+enable_shared=yes
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+enable_static=yes
+enable_fast_install=yes
+enable_dlopen=unknown
+enable_win32_dll=no
+ltmain=
+silent=
+srcdir=
+ac_config_guess=
+ac_config_sub=
+host=
+nonopt=
+ofile=&quot;$default_ofile&quot;
+verify_host=yes
+with_gcc=no
+with_gnu_ld=no
+need_locks=yes
+ac_ext=c
+objext=o
+libext=a
+exeext=
+cache_file=
+
+old_AR=&quot;$AR&quot;
+old_CC=&quot;$CC&quot;
+old_CFLAGS=&quot;$CFLAGS&quot;
+old_CPPFLAGS=&quot;$CPPFLAGS&quot;
+old_LDFLAGS=&quot;$LDFLAGS&quot;
+old_LD=&quot;$LD&quot;
+old_LN_S=&quot;$LN_S&quot;
+old_LIBS=&quot;$LIBS&quot;
+old_NM=&quot;$NM&quot;
+old_RANLIB=&quot;$RANLIB&quot;
+old_DLLTOOL=&quot;$DLLTOOL&quot;
+old_OBJDUMP=&quot;$OBJDUMP&quot;
+old_AS=&quot;$AS&quot;
+
+# Parse the command line options.
+args=
+prev=
+for option
+do
+  case &quot;$option&quot; in
+  -*=*) optarg=`echo &quot;$option&quot; | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  # If the previous option needs an argument, assign it.
+  if test -n &quot;$prev&quot;; then
+    eval &quot;$prev=\$option&quot;
+    prev=
+    continue
+  fi
+
+  case &quot;$option&quot; in
+  --help) cat &lt;&lt;EOM
+Usage: $progname [OPTION]... [HOST [LTMAIN]]
+
+Generate a system-specific libtool script.
+
+    --debug                enable verbose shell tracing
+    --disable-shared       do not build shared libraries
+    --disable-static       do not build static libraries
+    --disable-fast-install do not optimize for fast installation
+    --enable-dlopen        enable dlopen support
+    --enable-win32-dll     enable building dlls on win32 hosts
+    --help                 display this help and exit
+    --no-verify            do not verify that HOST is a valid host type
+-o, --output=FILE          specify the output file [default=$default_ofile]
+    --quiet                same as \`--silent'
+    --silent               do not print informational messages
+    --srcdir=DIR           find \`config.guess' in DIR
+    --version              output version information and exit
+    --with-gcc             assume that the GNU C compiler will be used
+    --with-gnu-ld          assume that the C compiler uses the GNU linker
+    --disable-lock         disable file locking
+    --cache-file=FILE      configure cache file
+
+LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
+that provides basic libtool functionality.
+
+HOST is the canonical host system name [default=guessed].
+EOM
+  exit 0
+  ;;
+
+  --debug)
+    echo &quot;$progname: enabling shell trace mode&quot;
+    set -x
+    ;;
+
+  --disable-shared) enable_shared=no ;;
+
+  --disable-static) enable_static=no ;;
+
+  --disable-fast-install) enable_fast_install=no ;;
+
+  --enable-dlopen) enable_dlopen=yes ;;
+
+  --enable-win32-dll) enable_win32_dll=yes ;;
+
+  --quiet | --silent) silent=yes ;;
+
+  --srcdir) prev=srcdir ;;
+  --srcdir=*) srcdir=&quot;$optarg&quot; ;;
+
+  --no-verify) verify_host=no ;;
+
+  --output | -o) prev=ofile ;;
+  --output=*) ofile=&quot;$optarg&quot; ;;
+
+  --version) echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP&quot;; exit 0 ;;
+
+  --with-gcc) with_gcc=yes ;;
+  --with-gnu-ld) with_gnu_ld=yes ;;
+
+  --disable-lock) need_locks=no ;;
+
+  --cache-file=*) cache_file=&quot;$optarg&quot; ;;
+
+  -*)
+    echo &quot;$progname: unrecognized option \`$option'&quot; 1&gt;&amp;2
+    echo &quot;$help&quot; 1&gt;&amp;2
+    exit 1
+    ;;
+
+  *)
+    if test -z &quot;$ltmain&quot;; then
+      ltmain=&quot;$option&quot;
+    elif test -z &quot;$host&quot;; then
+# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
+#      if test -n &quot;`echo $option| sed 's/[-a-z0-9.]//g'`&quot;; then
+#        echo &quot;$progname: warning \`$option' is not a valid host type&quot; 1&gt;&amp;2
+#      fi
+      host=&quot;$option&quot;
+    else
+      echo &quot;$progname: too many arguments&quot; 1&gt;&amp;2
+      echo &quot;$help&quot; 1&gt;&amp;2
+      exit 1
+    fi ;;
+  esac
+done
+
+if test -z &quot;$ltmain&quot;; then
+  echo &quot;$progname: you must specify a LTMAIN file&quot; 1&gt;&amp;2
+  echo &quot;$help&quot; 1&gt;&amp;2
+  exit 1
+fi
+
+if test ! -f &quot;$ltmain&quot;; then
+  echo &quot;$progname: \`$ltmain' does not exist&quot; 1&gt;&amp;2
+  echo &quot;$help&quot; 1&gt;&amp;2
+  exit 1
+fi
+
+# Quote any args containing shell metacharacters.
+ltconfig_args=
+for arg
+do
+  case &quot;$arg&quot; in
+  *&quot; &quot;*|*&quot;        &quot;*|*[\[\]\~\#\$\^\&amp;\*\(\)\{\}\\\|\;\&lt;\&gt;\?]*)
+  ltconfig_args=&quot;$ltconfig_args '$arg'&quot; ;;
+  *) ltconfig_args=&quot;$ltconfig_args $arg&quot; ;;
+  esac
+done
+
+# A relevant subset of AC_INIT.
+
+# File descriptor usage:
+# 0 standard input
+# 1 file creation
+# 2 errors and warnings
+# 3 some systems may open it to /dev/tty
+# 4 used on the Kubota Titan
+# 5 compiler messages saved in config.log
+# 6 checking for... messages and results
+if test &quot;$silent&quot; = yes; then
+  exec 6&gt;/dev/null
+else
+  exec 6&gt;&amp;1
+fi
+exec 5&gt;&gt;./config.log
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+if test &quot;X${LC_ALL+set}&quot; = Xset; then LC_ALL=C; export LC_ALL; fi
+if test &quot;X${LANG+set}&quot;   = Xset; then LANG=C;   export LANG;   fi
+
+if test -n &quot;$cache_file&quot; &amp;&amp; test -r &quot;$cache_file&quot;; then
+  echo &quot;loading cache $cache_file within ltconfig&quot;
+  . $cache_file
+fi
+
+if (echo &quot;testing\c&quot;; echo 1,2,3) | grep c &gt;/dev/null; then
+  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn &gt;/dev/null; then
+    ac_n= ac_c='
+' ac_t='        '
+  else
+    ac_n=-n ac_c= ac_t=
+  fi
+else
+  ac_n= ac_c='\c' ac_t=
+fi
+
+if test -z &quot;$srcdir&quot;; then
+  # Assume the source directory is the same one as the path to LTMAIN.
+  srcdir=`$echo &quot;X$ltmain&quot; | $Xsed -e 's%/[^/]*$%%'`
+  test &quot;$srcdir&quot; = &quot;$ltmain&quot; &amp;&amp; srcdir=.
+fi
+
+trap &quot;$rm conftest*; exit 1&quot; 1 2 15
+if test &quot;$verify_host&quot; = yes; then
+  # Check for config.guess and config.sub.
+  ac_aux_dir=
+  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+    if test -f $ac_dir/config.guess; then
+      ac_aux_dir=$ac_dir
+      break
+    fi
+  done
+  if test -z &quot;$ac_aux_dir&quot;; then
+    echo &quot;$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../..&quot; 1&gt;&amp;2
+    echo &quot;$help&quot; 1&gt;&amp;2
+    exit 1
+  fi
+  ac_config_guess=$ac_aux_dir/config.guess
+  ac_config_sub=$ac_aux_dir/config.sub
+
+  # Make sure we can run config.sub.
+  if $SHELL $ac_config_sub sun4 &gt;/dev/null 2&gt;&amp;1; then :
+  else
+    echo &quot;$progname: cannot run $ac_config_sub&quot; 1&gt;&amp;2
+    echo &quot;$help&quot; 1&gt;&amp;2
+    exit 1
+  fi
+
+  echo $ac_n &quot;checking host system type&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+
+  host_alias=$host
+  case &quot;$host_alias&quot; in
+  &quot;&quot;)
+    if host_alias=`$SHELL $ac_config_guess`; then :
+    else
+      echo &quot;$progname: cannot guess host type; you must specify one&quot; 1&gt;&amp;2
+      echo &quot;$help&quot; 1&gt;&amp;2
+      exit 1
+    fi ;;
+  esac
+  host=`$SHELL $ac_config_sub $host_alias`
+  echo &quot;$ac_t$host&quot; 1&gt;&amp;6
+
+  # Make sure the host verified.
+  test -z &quot;$host&quot; &amp;&amp; exit 1
+
+elif test -z &quot;$host&quot;; then
+  echo &quot;$progname: you must specify a host type if you use \`--no-verify'&quot; 1&gt;&amp;2
+  echo &quot;$help&quot; 1&gt;&amp;2
+  exit 1
+else
+  host_alias=$host
+fi
+
+# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+case &quot;$host_os&quot; in
+linux-gnu*) ;;
+linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+esac
+
+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+case &quot;$host_os&quot; in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR cru $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+# Set a sane default for `AR'.
+test -z &quot;$AR&quot; &amp;&amp; AR=ar
+
+# Set a sane default for `OBJDUMP'.
+test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+
+# If RANLIB is not set, then run the test.
+if test &quot;${RANLIB+set}&quot; != &quot;set&quot;; then
+  result=no
+
+  echo $ac_n &quot;checking for ranlib... $ac_c&quot; 1&gt;&amp;6
+  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+  for dir in $PATH; do
+    test -z &quot;$dir&quot; &amp;&amp; dir=.
+    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
+      RANLIB=&quot;ranlib&quot;
+      result=&quot;ranlib&quot;
+      break
+    fi
+  done
+  IFS=&quot;$save_ifs&quot;
+
+  echo &quot;$ac_t$result&quot; 1&gt;&amp;6
+fi
+
+if test -n &quot;$RANLIB&quot;; then
+  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
+  old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+fi
+
+# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
+test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
+test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+test -z &quot;$AS&quot; &amp;&amp; AS=as
+
+# Check to see if we are using GCC.
+if test &quot;$with_gcc&quot; != yes || test -z &quot;$CC&quot;; then
+  # If CC is not set, then try to find GCC or a usable CC.
+  if test -z &quot;$CC&quot;; then
+    echo $ac_n &quot;checking for gcc... $ac_c&quot; 1&gt;&amp;6
+    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+    for dir in $PATH; do
+      test -z &quot;$dir&quot; &amp;&amp; dir=.
+      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
+        CC=&quot;gcc&quot;
+        break
+      fi
+    done
+    IFS=&quot;$save_ifs&quot;
+
+    if test -n &quot;$CC&quot;; then
+      echo &quot;$ac_t$CC&quot; 1&gt;&amp;6
+    else
+      echo &quot;$ac_t&quot;no 1&gt;&amp;6
+    fi
+  fi
+
+  # Not &quot;gcc&quot;, so try &quot;cc&quot;, rejecting &quot;/usr/ucb/cc&quot;.
+  if test -z &quot;$CC&quot;; then
+    echo $ac_n &quot;checking for cc... $ac_c&quot; 1&gt;&amp;6
+    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+    cc_rejected=no
+    for dir in $PATH; do
+      test -z &quot;$dir&quot; &amp;&amp; dir=.
+      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
+        if test &quot;$dir/cc&quot; = &quot;/usr/ucb/cc&quot;; then
+          cc_rejected=yes
+          continue
+        fi
+        CC=&quot;cc&quot;
+        break
+      fi
+    done
+    IFS=&quot;$save_ifs&quot;
+    if test $cc_rejected = yes; then
+      # We found a bogon in the path, so make sure we never use it.
+      set dummy $CC
+      shift
+      if test $# -gt 0; then
+        # We chose a different compiler from the bogus one.
+        # However, it has the same name, so the bogon will be chosen
+        # first if we set CC to just the name; use the full file name.
+        shift
+        set dummy &quot;$dir/cc&quot; &quot;$@&quot;
+        shift
+        CC=&quot;$@&quot;
+      fi
+    fi
+
+    if test -n &quot;$CC&quot;; then
+      echo &quot;$ac_t$CC&quot; 1&gt;&amp;6
+    else
+      echo &quot;$ac_t&quot;no 1&gt;&amp;6
+    fi
+
+    if test -z &quot;$CC&quot;; then
+      echo &quot;$progname: error: no acceptable cc found in \$PATH&quot; 1&gt;&amp;2
+      exit 1
+    fi
+  fi
+
+  # Now see if the compiler is really GCC.
+  with_gcc=no
+  echo $ac_n &quot;checking whether we are using GNU C... $ac_c&quot; 1&gt;&amp;6
+  echo &quot;$progname:581: checking whether we are using GNU C&quot; &gt;&amp;5
+
+  $rm conftest.c
+  cat &gt; conftest.c &lt;&lt;EOF
+#ifdef __GNUC__
+  yes;
+#endif
+EOF
+  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \&quot;$ac_try\&quot;) 1&gt;&amp;5; (eval $ac_try) 2&gt;&amp;5; }; } | egrep yes &gt;/dev/null 2&gt;&amp;1; then
+    with_gcc=yes
+  fi
+  $rm conftest.c
+  echo &quot;$ac_t$with_gcc&quot; 1&gt;&amp;6
+fi
+
+# Allow CC to be a program name with arguments.
+set dummy $CC
+compiler=&quot;$2&quot;
+
+echo $ac_n &quot;checking for object suffix... $ac_c&quot; 1&gt;&amp;6
+$rm conftest*
+echo 'int i = 1;' &gt; conftest.c
+echo &quot;$progname:603: checking for object suffix&quot; &gt;&amp; 5
+if { (eval echo $progname:604: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; }; then
+  # Append any warnings to the config.log.
+  cat conftest.err 1&gt;&amp;5
+
+  for ac_file in conftest.*; do
+    case $ac_file in
+    *.c) ;;
+    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
+    esac
+  done
+else
+  cat conftest.err 1&gt;&amp;5
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.c &gt;&amp;5
+fi
+$rm conftest*
+echo &quot;$ac_t$objext&quot; 1&gt;&amp;6
+
+echo $ac_n &quot;checking for executable suffix... $ac_c&quot; 1&gt;&amp;6
+if eval &quot;test \&quot;`echo '$''{'ac_cv_exeext'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  ac_cv_exeext=&quot;no&quot;
+  $rm conftest*
+  echo 'main () { return 0; }' &gt; conftest.c
+  echo &quot;$progname:629: checking for executable suffix&quot; &gt;&amp; 5
+  if { (eval echo $progname:630: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;conftest.err; }; then
+    # Append any warnings to the config.log.
+    cat conftest.err 1&gt;&amp;5
+
+    for ac_file in conftest.*; do
+      case $ac_file in
+      *.c | *.err | *.$objext ) ;;
+      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
+      esac
+    done
+  else
+    cat conftest.err 1&gt;&amp;5
+    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+    cat conftest.c &gt;&amp;5
+  fi
+  $rm conftest*
+fi
+if test &quot;X$ac_cv_exeext&quot; = Xno; then
+  exeext=&quot;&quot;
+else
+  exeext=&quot;$ac_cv_exeext&quot;
+fi
+echo &quot;$ac_t$ac_cv_exeext&quot; 1&gt;&amp;6
+
+echo $ac_n &quot;checking for $compiler option to produce PIC... $ac_c&quot; 1&gt;&amp;6
+pic_flag=
+special_shlib_compile_flags=
+wl=
+link_static_flag=
+no_builtin_flag=
+
+if test &quot;$with_gcc&quot; = yes; then
+  wl='-Wl,'
+  link_static_flag='-static'
+
+  case &quot;$host_os&quot; in
+  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
+    # PIC is the default for these OSes.
+    ;;
+  aix*)
+    # Below there is a dirty hack to force normal static linking with -ldl
+    # The problem is because libdl dynamically linked with both libc and
+    # libC (AIX C++ library), which obviously doesn't included in libraries
+    # list by gcc. This cause undefined symbols with -static flags.
+    # This hack allows C programs to be linked with &quot;-static -ldl&quot;, but
+    # we not sure about C++ programs.
+    link_static_flag=&quot;$link_static_flag ${wl}-lC&quot;
+    ;;
+  cygwin* | mingw* | os2*)
+    # We can build DLLs from non-PIC.
+    ;;
+  amigaos*)
+    # FIXME: we need at least 68020 code to build shared libraries, but
+    # adding the `-m68020' flag to GCC prevents building anything better,
+    # like `-m68040'.
+    pic_flag='-m68020 -resident32 -malways-restore-a4'
+    ;;
+  sysv4*MP*)
+    if test -d /usr/nec; then
+       pic_flag=-Kconform_pic
+    fi
+    ;;
+  *)
+    pic_flag='-fPIC'
+    ;;
+  esac
+else
+  # PORTME Check for PIC flags for the system compiler.
+  case &quot;$host_os&quot; in
+  aix3* | aix4*)
+    # All AIX code is PIC.
+    link_static_flag='-bnso -bI:/lib/syscalls.exp'
+    ;;
+
+  hpux9* | hpux10* | hpux11*)
+    # Is there a better link_static_flag that works with the bundled CC?
+    wl='-Wl,'
+    link_static_flag=&quot;${wl}-a ${wl}archive&quot;
+    pic_flag='+Z'
+    ;;
+
+  irix5* | irix6*)
+    wl='-Wl,'
+    link_static_flag='-non_shared'
+    # PIC (with -KPIC) is the default.
+    ;;
+
+  cygwin* | mingw* | os2*)
+    # We can build DLLs from non-PIC.
+    ;;
+
+  osf3* | osf4* | osf5*)
+    # All OSF/1 code is PIC.
+    wl='-Wl,'
+    link_static_flag='-non_shared'
+    ;;
+
+  sco3.2v5*)
+    pic_flag='-Kpic'
+    link_static_flag='-dn'
+    special_shlib_compile_flags='-belf'
+    ;;
+
+  solaris*)
+    pic_flag='-KPIC'
+    link_static_flag='-Bstatic'
+    wl='-Wl,'
+    ;;
+
+  sunos4*)
+    pic_flag='-PIC'
+    link_static_flag='-Bstatic'
+    wl='-Qoption ld '
+    ;;
+
+  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+    pic_flag='-KPIC'
+    link_static_flag='-Bstatic'
+    wl='-Wl,'
+    ;;
+
+  uts4*)
+    pic_flag='-pic'
+    link_static_flag='-Bstatic'
+    ;;
+  sysv4*MP*)
+    if test -d /usr/nec ;then
+      pic_flag='-Kconform_pic'
+      link_static_flag='-Bstatic'
+    fi
+    ;;
+  *)
+    can_build_shared=no
+    ;;
+  esac
+fi
+
+if test -n &quot;$pic_flag&quot;; then
+  echo &quot;$ac_t$pic_flag&quot; 1&gt;&amp;6
+
+  # Check to make sure the pic_flag actually works.
+  echo $ac_n &quot;checking if $compiler PIC flag $pic_flag works... $ac_c&quot; 1&gt;&amp;6
+  $rm conftest*
+  echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+  save_CFLAGS=&quot;$CFLAGS&quot;
+  CFLAGS=&quot;$CFLAGS $pic_flag -DPIC&quot;
+  echo &quot;$progname:776: checking if $compiler PIC flag $pic_flag works&quot; &gt;&amp;5
+  if { (eval echo $progname:777: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.$objext; then
+    # Append any warnings to the config.log.
+    cat conftest.err 1&gt;&amp;5
+    
+    case &quot;$host_os&quot; in
+    hpux9* | hpux10* | hpux11*)
+      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
+      # create non-PIC objects.  So, if there were any warnings, we assume that
+      # PIC is not supported.
+      if test -s conftest.err; then
+        echo &quot;$ac_t&quot;no 1&gt;&amp;6
+        can_build_shared=no
+        pic_flag=
+      else
+        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+        pic_flag=&quot; $pic_flag&quot;
+      fi
+      ;;
+    *)
+      echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+      pic_flag=&quot; $pic_flag&quot;
+      ;;
+    esac
+  else
+    # Append any errors to the config.log.
+    cat conftest.err 1&gt;&amp;5
+    can_build_shared=no
+    pic_flag=
+    echo &quot;$ac_t&quot;no 1&gt;&amp;6
+  fi
+  CFLAGS=&quot;$save_CFLAGS&quot;
+  $rm conftest*
+else
+  echo &quot;$ac_t&quot;none 1&gt;&amp;6
+fi
+
+# Check to see if options -o and -c are simultaneously supported by compiler
+echo $ac_n &quot;checking if $compiler supports -c -o file.o... $ac_c&quot; 1&gt;&amp;6
+$rm -r conftest 2&gt;/dev/null
+mkdir conftest
+cd conftest
+$rm conftest*
+echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+mkdir out
+# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
+# that will create temporary files in the current directory regardless of
+# the output directory.  Thus, making CWD read-only will cause this test
+# to fail, enabling locking or at least warning the user not to do parallel
+# builds.
+chmod -w .
+save_CFLAGS=&quot;$CFLAGS&quot;
+CFLAGS=&quot;$CFLAGS -o out/conftest2.o&quot;
+echo &quot;$progname:829: checking if $compiler supports -c -o file.o&quot; &gt;&amp;5
+if { (eval echo $progname:830: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;out/conftest.err; } &amp;&amp; test -s out/conftest2.o; then
+
+  # The compiler can only warn and ignore the option if not recognized
+  # So say no if there are warnings
+    if test -s out/conftest.err; then
+      echo &quot;$ac_t&quot;no 1&gt;&amp;6
+      compiler_c_o=no
+    else
+      echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+      compiler_c_o=yes
+    fi
+else
+  # Append any errors to the config.log.
+  cat out/conftest.err 1&gt;&amp;5
+  compiler_c_o=no
+  echo &quot;$ac_t&quot;no 1&gt;&amp;6
+fi
+CFLAGS=&quot;$save_CFLAGS&quot;
+chmod u+w .
+$rm conftest* out/*
+rmdir out
+cd ..
+rmdir conftest
+$rm -r conftest 2&gt;/dev/null
+
+if test x&quot;$compiler_c_o&quot; = x&quot;yes&quot;; then
+  # Check to see if we can write to a .lo
+  echo $ac_n &quot;checking if $compiler supports -c -o file.lo... $ac_c&quot; 1&gt;&amp;6
+  $rm conftest*
+  echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+  save_CFLAGS=&quot;$CFLAGS&quot;
+  CFLAGS=&quot;$CFLAGS -c -o conftest.lo&quot;
+  echo &quot;$progname:862: checking if $compiler supports -c -o file.lo&quot; &gt;&amp;5
+if { (eval echo $progname:863: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.lo; then
+
+    # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+      if test -s conftest.err; then
+        echo &quot;$ac_t&quot;no 1&gt;&amp;6
+        compiler_o_lo=no
+      else
+        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+        compiler_o_lo=yes
+      fi
+  else
+    # Append any errors to the config.log.
+    cat conftest.err 1&gt;&amp;5
+    compiler_o_lo=no
+    echo &quot;$ac_t&quot;no 1&gt;&amp;6
+  fi
+  CFLAGS=&quot;$save_CFLAGS&quot;
+  $rm conftest*
+else
+  compiler_o_lo=no
+fi
+
+# Check to see if we can do hard links to lock some files if needed
+hard_links=&quot;nottested&quot;
+if test &quot;$compiler_c_o&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo $ac_n &quot;checking if we can lock with hard links... $ac_c&quot; 1&gt;&amp;6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+  echo &quot;$ac_t$hard_links&quot; 1&gt;&amp;6
+  $rm conftest*
+  if test &quot;$hard_links&quot; = no; then
+    echo &quot;*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+if test &quot;$with_gcc&quot; = yes; then
+  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
+  echo $ac_n &quot;checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c&quot; 1&gt;&amp;6
+  $rm conftest*
+  echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+  save_CFLAGS=&quot;$CFLAGS&quot;
+  CFLAGS=&quot;$CFLAGS -fno-rtti -fno-exceptions -c conftest.c&quot;
+  echo &quot;$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
+  if { (eval echo $progname:915: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.o; then
+
+    # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+      if test -s conftest.err; then
+        echo &quot;$ac_t&quot;no 1&gt;&amp;6
+        compiler_rtti_exceptions=no
+      else
+        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+        compiler_rtti_exceptions=yes
+      fi
+  else
+    # Append any errors to the config.log.
+    cat conftest.err 1&gt;&amp;5
+    compiler_rtti_exceptions=no
+    echo &quot;$ac_t&quot;no 1&gt;&amp;6
+  fi
+  CFLAGS=&quot;$save_CFLAGS&quot;
+  $rm conftest*
+
+  if test &quot;$compiler_rtti_exceptions&quot; = &quot;yes&quot;; then
+    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
+  else
+    no_builtin_flag=' -fno-builtin'
+  fi
+  
+fi
+
+# Check for any special shared library compilation flags.
+if test -n &quot;$special_shlib_compile_flags&quot;; then
+  echo &quot;$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries&quot; 1&gt;&amp;2
+  if echo &quot;$old_CC $old_CFLAGS &quot; | egrep -e &quot;[         ]$special_shlib_compile_flags[         ]&quot; &gt;/dev/null; then :
+  else
+    echo &quot;$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure&quot; 1&gt;&amp;2
+    can_build_shared=no
+  fi
+fi
+
+echo $ac_n &quot;checking if $compiler static flag $link_static_flag works... $ac_c&quot; 1&gt;&amp;6
+$rm conftest*
+echo 'main(){return(0);}' &gt; conftest.c
+save_LDFLAGS=&quot;$LDFLAGS&quot;
+LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+echo &quot;$progname:958: checking if $compiler static flag $link_static_flag works&quot; &gt;&amp;5
+if { (eval echo $progname:959: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
+  echo &quot;$ac_t$link_static_flag&quot; 1&gt;&amp;6
+else
+  echo &quot;$ac_t&quot;none 1&gt;&amp;6
+  link_static_flag=
+fi
+LDFLAGS=&quot;$save_LDFLAGS&quot;
+$rm conftest*
+
+if test -z &quot;$LN_S&quot;; then
+  # Check to see if we can use ln -s, or we need hard links.
+  echo $ac_n &quot;checking whether ln -s works... $ac_c&quot; 1&gt;&amp;6
+  $rm conftest.dat
+  if ln -s X conftest.dat 2&gt;/dev/null; then
+    $rm conftest.dat
+    LN_S=&quot;ln -s&quot;
+  else
+    LN_S=ln
+  fi
+  if test &quot;$LN_S&quot; = &quot;ln -s&quot;; then
+    echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+  else
+    echo &quot;$ac_t&quot;no 1&gt;&amp;6
+  fi
+fi
+
+# Make sure LD is an absolute path.
+if test -z &quot;$LD&quot;; then
+  ac_prog=ld
+  if test &quot;$with_gcc&quot; = yes; then
+    # Check if gcc -print-prog-name=ld gives a path.
+    echo $ac_n &quot;checking for ld used by GCC... $ac_c&quot; 1&gt;&amp;6
+    echo &quot;$progname:991: checking for ld used by GCC&quot; &gt;&amp;5
+    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5`
+    case &quot;$ac_prog&quot; in
+    # Accept absolute paths.
+    [\\/]* | [A-Za-z]:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+      done
+      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+      ;;
+    &quot;&quot;)
+      # If it fails, then pretend we are not using GCC.
+      ac_prog=ld
+      ;;
+    *)
+      # If it is relative, then search for the first ld in PATH.
+      with_gnu_ld=unknown
+      ;;
+    esac
+  elif test &quot;$with_gnu_ld&quot; = yes; then
+    echo $ac_n &quot;checking for GNU ld... $ac_c&quot; 1&gt;&amp;6
+    echo &quot;$progname:1015: checking for GNU ld&quot; &gt;&amp;5
+  else
+    echo $ac_n &quot;checking for non-GNU ld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+    echo &quot;$progname:1018: checking for non-GNU ld&quot; &gt;&amp;5
+  fi
+
+  if test -z &quot;$LD&quot;; then
+    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+    for ac_dir in $PATH; do
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+        LD=&quot;$ac_dir/$ac_prog&quot;
+        # Check to see if the program is GNU ld.  I'd rather use --version,
+        # but apparently some GNU ld's only accept -v.
+        # Break only if it was the GNU/non-GNU ld that we prefer.
+        if &quot;$LD&quot; -v 2&gt;&amp;1 &lt; /dev/null | egrep '(GNU|with BFD)' &gt; /dev/null; then
+          test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+        else
+          test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+        fi
+      fi
+    done
+    IFS=&quot;$ac_save_ifs&quot;
+  fi
+
+  if test -n &quot;$LD&quot;; then
+    echo &quot;$ac_t$LD&quot; 1&gt;&amp;6
+  else
+    echo &quot;$ac_t&quot;no 1&gt;&amp;6
+  fi
+
+  if test -z &quot;$LD&quot;; then
+    echo &quot;$progname: error: no acceptable ld found in \$PATH&quot; 1&gt;&amp;2
+    exit 1
+  fi
+fi
+
+# Check to see if it really is or is not GNU ld.
+echo $ac_n &quot;checking if the linker ($LD) is GNU ld... $ac_c&quot; 1&gt;&amp;6
+# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2&gt;&amp;1 &lt;/dev/null | egrep '(GNU|with BFD)' 1&gt;&amp;5; then
+  with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi
+echo &quot;$ac_t$with_gnu_ld&quot; 1&gt;&amp;6
+
+# See if the linker supports building shared libraries.
+echo $ac_n &quot;checking whether the linker ($LD) supports shared libraries... $ac_c&quot; 1&gt;&amp;6
+
+allow_undefined_flag=
+no_undefined_flag=
+need_lib_prefix=unknown
+need_version=unknown
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+archive_cmds=
+archive_expsym_cmds=
+old_archive_from_new_cmds=
+export_dynamic_flag_spec=
+whole_archive_flag_spec=
+thread_safe_flag_spec=
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+hardcode_shlibpath_var=unsupported
+runpath_var=
+always_export_symbols=no
+export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+# include_expsyms should be a list of space-separated symbols to be *always*
+# included in the symbol list
+include_expsyms=
+# exclude_expsyms can be an egrep regular expression of symbols to exclude
+# it will be wrapped by ` (' and `)$', so one must not match beginning or
+# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+# as well as any symbol that contains `d'.
+exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+# platforms (ab)use it in PIC code, but their linkers get confused if
+# the symbol is explicitly referenced.  Since portable code cannot
+# rely on this symbol name, it's probably fine to never include it in
+# preloaded symbol tables.
+
+case &quot;$host_os&quot; in
+cygwin* | mingw*)
+  # FIXME: the MSVC++ port hasn't been tested in a loooong time
+  # When not using gcc, we currently assume that we are using
+  # Microsoft Visual C++.
+  if test &quot;$with_gcc&quot; != yes; then
+    with_gnu_ld=no
+  fi
+  ;;
+
+esac
+
+ld_shlibs=yes
+if test &quot;$with_gnu_ld&quot; = yes; then
+  # If archive_cmds runs LD, not CC, wlarc should be empty
+  wlarc='${wl}'
+
+  # See if GNU ld supports shared libraries.
+  case &quot;$host_os&quot; in
+  aix3* | aix4*)
+    # On AIX, the GNU linker is very broken
+    ld_shlibs=no
+    cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+    ;;
+
+  amigaos*)
+    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+
+    # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+    # that the semantics of dynamic libraries on AmigaOS, at least up
+    # to version 4, is to share data among multiple programs linked
+    # with the same dynamic library.  Since this doesn't match the
+    # behavior of shared libraries on other platforms, we can use
+    # them.
+    ld_shlibs=no
+    ;;
+
+  beos*)
+    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+      allow_undefined_flag=unsupported
+      # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+      # support --undefined.  This deserves some investigation.  FIXME
+      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+
+  cygwin* | mingw*)
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec='-L$libdir'
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+
+    # Extract the symbol export list from an `--export-all' def file,
+    # then regenerate the def file from the symbol export list, so that
+    # the compiled dll only exports the symbol export list.
+    # Be careful not to strip the DATA tag left by newer dlltools.
+    export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $0 &gt; $objdir/$soname-ltdll.c~
+      test -f $objdir/$soname-ltdll.$objext || (cd $objdir &amp;&amp; $CC -c $soname-ltdll.c)~
+      $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
+      sed -e &quot;1,/EXPORTS/d&quot; -e &quot;s/ @ [0-9]*//&quot; -e &quot;s/ *;.*$//&quot; &lt; $objdir/$soname-def &gt; $export_symbols'
+
+    # If DATA tags from a recent dlltool are present, honour them!
+    archive_expsym_cmds='echo EXPORTS &gt; $objdir/$soname-def~
+      _lt_hint=1;
+      cat $export_symbols | while read symbol; do
+        set dummy \$symbol;
+        case \$# in
+          2) echo &quot;        \$2 @ \$_lt_hint ; &quot; &gt;&gt; $objdir/$soname-def;;
+          *) echo &quot;     \$2 @ \$_lt_hint \$3 ; &quot; &gt;&gt; $objdir/$soname-def;;
+        esac;
+        _lt_hint=`expr 1 + \$_lt_hint`;
+      done~
+      test -f $objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $0 &gt; $objdir/$soname-ltdll.c~
+      test -f $objdir/$soname-ltdll.$objext || (cd $objdir &amp;&amp; $CC -c $soname-ltdll.c)~
+      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
+      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
+      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
+
+      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' 
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
+      # can we support soname and/or expsyms with a.out? -oliva
+    fi
+    ;;
+
+  solaris* | sysv5*)
+    if $LD -v 2&gt;&amp;1 | egrep 'BFD 2\.8' &gt; /dev/null; then
+      ld_shlibs=no
+      cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+    elif $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;      
+
+  sunos4*)
+    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
+    wlarc=
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+  esac
+
+  if test &quot;$ld_shlibs&quot; = yes; then
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec='${wl}--export-dynamic'
+    case $host_os in
+    cygwin* | mingw*)
+      # dlltool doesn't understand --whole-archive et. al.
+      whole_archive_flag_spec=
+      ;;
+    *)
+      # ancient GNU ld didn't support --whole-archive et. al.
+      if $LD --help 2&gt;&amp;1 | egrep 'no-whole-archive' &gt; /dev/null; then
+        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+      else
+        whole_archive_flag_spec=
+      fi
+      ;;
+    esac
+  fi
+else
+  # PORTME fill in a description of your system's linker (not GNU ld)
+  case &quot;$host_os&quot; in
+  aix3*)
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
+    # Note: this linker hardcodes the directories in LIBPATH if there
+    # are no directories specified by -L.
+    hardcode_minus_L=yes
+    if test &quot;$with_gcc&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+      # Neither direct hardcoding nor static linking is supported with a
+      # broken collect2.
+      hardcode_direct=unsupported
+    fi
+    ;;
+
+  aix4*)
+    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
+    hardcode_libdir_separator=':'
+    if test &quot;$with_gcc&quot; = yes; then
+      collect2name=`${CC} -print-prog-name=collect2`
+      if test -f &quot;$collect2name&quot; &amp;&amp; \
+         strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+      then
+        # We have reworked collect2
+        hardcode_direct=yes
+      else
+        # We have old collect2
+        hardcode_direct=unsupported
+        # It fails to find uninstalled libraries when the uninstalled
+        # path is not listed in the libpath.  Setting hardcode_minus_L
+        # to unsupported forces relinking
+        hardcode_minus_L=yes
+        hardcode_libdir_flag_spec='-L$libdir'
+        hardcode_libdir_separator=
+      fi
+      shared_flag='-shared'
+    else
+      shared_flag='${wl}-bM:SRE'
+      hardcode_direct=yes
+    fi
+    allow_undefined_flag=' ${wl}-berok'
+    archive_cmds=&quot;\$CC $shared_flag&quot;' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
+    archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
+    case &quot;$host_os&quot; in aix4.[01]|aix4.[01].*)
+      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
+      always_export_symbols=yes ;;
+    esac
+   ;;
+
+  amigaos*)
+    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    # see comment about different semantics on the GNU ld section
+    ld_shlibs=no
+    ;;
+
+  cygwin* | mingw*)
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec=' '
+    allow_undefined_flag=unsupported
+    # Tell ltmain to make .lib files, not .a files.
+    libext=lib
+    # FIXME: Setting linknames here is a bad hack.
+    archive_cmds='$CC -o $lib $libobjs $linkopts `echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+    # The linker will automatically build a .lib file if we build a DLL.
+    old_archive_from_new_cmds='true'
+    # FIXME: Should let the user specify the lib program.
+    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
+    fix_srcfile_path='`cygpath -w $srcfile`'
+    ;;
+
+  freebsd1*)
+    ld_shlibs=no
+    ;;
+
+  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+  # support.  Future versions do this automatically, but an explicit c++rt0.o
+  # does not break anything, and helps significantly (at the cost of a little
+  # extra space).
+  freebsd2.2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+  freebsd2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+  freebsd*)
+    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  hpux9* | hpux10* | hpux11*)
+    case &quot;$host_os&quot; in
+    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
+    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
+    esac
+    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+    hardcode_libdir_separator=:
+    hardcode_direct=yes
+    hardcode_minus_L=yes # Not in the search PATH, but as the default
+                         # location of the library.
+    export_dynamic_flag_spec='${wl}-E'
+    ;;
+
+  irix5* | irix6*)
+    if test &quot;$with_gcc&quot; = yes; then
+      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+    else
+      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
+    else
+      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
+    fi
+    hardcode_libdir_flag_spec='${wl}-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  openbsd*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  os2*)
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    allow_undefined_flag=unsupported
+    archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $objdir/$libname.def~$echo DATA &gt;&gt; $objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $objdir/$libname.def~$echo EXPORTS &gt;&gt; $objdir/$libname.def~emxexp $libobjs &gt;&gt; $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
+    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
+    ;;
+
+  osf3*)
+    if test &quot;$with_gcc&quot; = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+
+  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
+    if test &quot;$with_gcc&quot; = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+  rhapsody*)
+    archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flags_spec='-L$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+                                       
+  sco3.2v5*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    hardcode_shlibpath_var=no
+    runpath_var=LD_RUN_PATH
+    hardcode_runpath_var=yes
+    ;;
+
+  solaris*)
+    no_undefined_flag=' -z text'
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
+    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_shlibpath_var=no
+    case &quot;$host_os&quot; in
+    solaris2.[0-5] | solaris2.[0-5].*) ;;
+    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+    esac
+    ;;
+
+  sunos4*)
+    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4)
+    if test &quot;x$host_vendor&quot; = xsequent; then
+      # Use $CC to link under sequent, because it throws in some extra .o 
+      # files that make .init and .fini sections work.
+      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
+    else
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    fi
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
+    ;;  
+
+  sysv4.3*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    hardcode_shlibpath_var=no
+    export_dynamic_flag_spec='-Bexport'
+    ;;
+
+  sysv5*)
+    no_undefined_flag=' -z text'
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
+    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
+    hardcode_libdir_flag_spec=
+    hardcode_shlibpath_var=no
+    runpath_var='LD_RUN_PATH'
+    ;;
+
+  uts4*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  dgux*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4*MP*)
+    if test -d /usr/nec; then
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+      hardcode_shlibpath_var=no
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ld_shlibs=yes
+    fi
+    ;;
+
+  sysv4.2uw2*)
+    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
+    hardcode_direct=yes
+    hardcode_minus_L=no
+    hardcode_shlibpath_var=no
+    hardcode_runpath_var=yes
+    runpath_var=LD_RUN_PATH
+    ;;
+
+  unixware7*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    ld_shlibs=no
+    ;;
+  esac
+fi
+echo &quot;$ac_t$ld_shlibs&quot; 1&gt;&amp;6
+test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no
+
+if test -z &quot;$NM&quot;; then
+  echo $ac_n &quot;checking for BSD-compatible nm... $ac_c&quot; 1&gt;&amp;6
+  case &quot;$NM&quot; in
+  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
+  *)
+    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
+      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
+        # Check to see if the nm accepts a BSD-compat flag.
+        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+        #   nm: unknown option &quot;B&quot; ignored
+        if ($ac_dir/nm -B /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+          NM=&quot;$ac_dir/nm -B&quot;
+          break
+        elif ($ac_dir/nm -p /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+          NM=&quot;$ac_dir/nm -p&quot;
+          break
+        else
+          NM=${NM=&quot;$ac_dir/nm&quot;} # keep the first match, but
+          continue # so that we can try to find one that supports BSD flags
+        fi
+      fi
+    done
+    IFS=&quot;$ac_save_ifs&quot;
+    test -z &quot;$NM&quot; &amp;&amp; NM=nm
+    ;;
+  esac
+  echo &quot;$ac_t$NM&quot; 1&gt;&amp;6
+fi
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+echo $ac_n &quot;checking command to parse $NM output... $ac_c&quot; 1&gt;&amp;6
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Transform the above into a raw symbol and a C symbol.
+symxfrm='\1 \2\3 \3'
+
+# Transform an extracted symbol line into a proper C declaration
+global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;
+
+# Define system-specific variables.
+case &quot;$host_os&quot; in
+aix*)
+  symcode='[BCDT]'
+  ;;
+cygwin* | mingw*)
+  symcode='[ABCDGISTW]'
+  ;;
+hpux*) # Its linker distinguishes data from code symbols
+  global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;
+  ;;
+irix*)
+  symcode='[BCDEGRST]'
+  ;;
+solaris*)
+  symcode='[BDT]'
+  ;;
+sysv4)
+  symcode='[DFNSTU]'
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+if $NM -V 2&gt;&amp;1 | egrep '(GNU|with BFD)' &gt; /dev/null; then
+  symcode='[ABCDGISTW]'
+fi
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in &quot;&quot; &quot;_&quot;; do
+
+  # Write the raw and C identifiers.
+  global_symbol_pipe=&quot;sed -n -e 's/^.*[         ]\($symcode\)[         ][         ]*\($ac_symprfx\)$sympat$/$symxfrm/p'&quot;
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+  $rm conftest*
+  cat &gt; conftest.c &lt;&lt;EOF
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+  echo &quot;$progname:1653: checking if global_symbol_pipe works&quot; &gt;&amp;5
+  if { (eval echo $progname:1654: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;&amp;5; } &amp;&amp; test -s conftest.$objext; then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if { echo &quot;$progname:1657: eval \&quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist\&quot;&quot; &gt;&amp;5; eval &quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist 2&gt;&amp;5&quot;; } &amp;&amp; test -s &quot;$nlist&quot;; then
+
+      # Try sorting and uniquifying the output.
+      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
+      else
+        rm -f &quot;$nlist&quot;T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if egrep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+        if egrep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+          cat &lt;&lt;EOF &gt; conftest.c
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+EOF
+          # Now generate the symbol file.
+          eval &quot;$global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c'
+
+          cat &lt;&lt;EOF &gt;&gt; conftest.c
+#if defined (__STDC__) &amp;&amp; __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr_t address;
+}
+lt_preloaded_symbols[] =
+{
+EOF
+          sed 's/^. \(.*\) \(.*\)$/  {&quot;\2&quot;, (lt_ptr_t) \&amp;\2},/' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c
+          cat &lt;&lt;\EOF &gt;&gt; conftest.c
+  {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+          # Now try linking the two files.
+          mv conftest.$objext conftstm.$objext
+          save_LIBS=&quot;$LIBS&quot;
+          save_CFLAGS=&quot;$CFLAGS&quot;
+          LIBS=&quot;conftstm.$objext&quot;
+          CFLAGS=&quot;$CFLAGS$no_builtin_flag&quot;
+          if { (eval echo $progname:1709: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
+            pipe_works=yes
+          else
+            echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+            cat conftest.c &gt;&amp;5
+          fi
+          LIBS=&quot;$save_LIBS&quot;
+        else
+          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
+        fi
+      else
+        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
+      fi
+    else
+      echo &quot;cannot run $global_symbol_pipe&quot; &gt;&amp;5
+    fi
+  else
+    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+    cat conftest.c &gt;&amp;5
+  fi
+  $rm conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test &quot;$pipe_works&quot; = yes; then
+    break
+  else
+    global_symbol_pipe=
+  fi
+done
+if test &quot;$pipe_works&quot; = yes; then
+  echo &quot;${ac_t}ok&quot; 1&gt;&amp;6
+else
+  echo &quot;${ac_t}failed&quot; 1&gt;&amp;6
+fi
+
+if test -z &quot;$global_symbol_pipe&quot;; then
+  global_symbol_to_cdecl=
+fi
+
+# Check hardcoding attributes.
+echo $ac_n &quot;checking how to hardcode library paths into programs... $ac_c&quot; 1&gt;&amp;6
+hardcode_action=
+if test -n &quot;$hardcode_libdir_flag_spec&quot; || \
+   test -n &quot;$runpath_var&quot;; then
+
+  # We can hardcode non-existant directories.
+  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test &quot;$hardcode_shlibpath_var&quot; != no &amp;&amp;
+     test &quot;$hardcode_minus_L&quot; != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action=unsupported
+fi
+echo &quot;$ac_t$hardcode_action&quot; 1&gt;&amp;6
+
+
+reload_flag=
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+echo $ac_n &quot;checking for $LD option to reload object files... $ac_c&quot; 1&gt;&amp;6
+# PORTME Some linkers may need a different reload flag.
+reload_flag='-r'
+echo &quot;$ac_t$reload_flag&quot; 1&gt;&amp;6
+test -n &quot;$reload_flag&quot; &amp;&amp; reload_flag=&quot; $reload_flag&quot;
+
+# PORTME Fill in your ld.so characteristics
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker=&quot;$host_os ld.so&quot;
+sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+file_magic_cmd=
+file_magic_test_file=
+deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [regex]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given egrep regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+echo $ac_n &quot;checking dynamic linker characteristics... $ac_c&quot; 1&gt;&amp;6
+case &quot;$host_os&quot; in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}.so$major'
+  ;;
+
+aix4*)
+  version_type=linux
+  # AIX has no versioning support, so currently we can not hardcode correct
+  # soname into executable. Probably we can add versioning support to
+  # collect2, so additional links can be useful in future.
+  # We preserve .a as extension for shared libraries though AIX4.2
+  # and later linker supports .so
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
+  shlibpath_var=LIBPATH
+  deplibs_check_method=pass_all
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;(cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a)&quot;; (cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}.so'
+  dynamic_linker=&quot;$host_os ld.so&quot;
+  shlibpath_var=LIBRARY_PATH
+  deplibs_check_method=pass_all
+  lt_cv_dlopen=&quot;load_add_on&quot;
+  lt_cv_dlopen_libs=
+  lt_cv_dlopen_self=yes
+  ;;
+
+bsdi4*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+  file_magic_cmd=/usr/bin/file
+  file_magic_test_file=/shlib/libc.so
+  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+  export_dynamic_flag_spec=-rdynamic
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw*)
+  version_type=windows
+  need_version=no
+  need_lib_prefix=no
+  if test &quot;$with_gcc&quot; = yes; then
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
+  else
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
+  fi
+  dynamic_linker='Win32 ld.exe'
+  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  file_magic_cmd='${OBJDUMP} -f'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  lt_cv_dlopen=&quot;LoadLibrary&quot;
+  lt_cv_dlopen_libs=
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+  
+freebsd*)
+  objformat=`test -x /usr/bin/objformat &amp;&amp; /usr/bin/objformat || echo aout`
+  version_type=freebsd-$objformat
+  case &quot;$version_type&quot; in
+    freebsd-elf*)
+      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+      file_magic_cmd=/usr/bin/file
+      file_magic_test_file=`echo /usr/lib/libc.so*`
+      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      deplibs_check_method=unknown
+      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case &quot;$host_os&quot; in
+  freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  *) # from 3.2 on
+    shlibpath_overrides_runpath=no
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  deplibs_check_method=pass_all
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  dynamic_linker=&quot;$host_os dld.sl&quot;
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  shlibpath_var=SHLIB_PATH
+  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+  soname_spec='${libname}${release}.sl$major'
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  case &quot;$host_os&quot; in
+  hpux10.20*)
+    # TODO:  Does this work for hpux-11 too?
+    deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+    file_magic_cmd=/usr/bin/file
+    file_magic_test_file=/usr/lib/libc.sl
+    ;;
+  esac
+  ;;
+
+irix5* | irix6*)
+  version_type=irix
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}.so.$major'
+  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
+  case &quot;$host_os&quot; in
+  irix5*)
+    libsuff= shlibsuff=
+    # this will be overridden with pass_all, but let us keep it just in case
+    deplibs_check_method=&quot;file_magic ELF 32-bit MSB dynamic lib MIPS - version 1&quot;
+    ;;
+  *)
+    case &quot;$LD&quot; in # libtool.m4 will add one of these switches to LD
+    *-32|*&quot;-32 &quot;) libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*&quot;-n32 &quot;) libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*&quot;-64 &quot;) libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+  file_magic_cmd=/usr/bin/file
+  file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+  deplibs_check_method='pass_all'
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux-gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  deplibs_check_method=pass_all
+
+  if test -f /lib/ld.so.1; then
+    dynamic_linker='GNU ld.so'
+  else
+    # Only the GNU ld.so supports shared libraries on MkLinux.
+    case &quot;$host_cpu&quot; in
+    powerpc*) dynamic_linker=no ;;
+    *) dynamic_linker='Linux ld.so' ;;
+    esac
+  fi
+  ;;
+
+netbsd*)
+  version_type=sunos
+  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
+    soname_spec='${libname}${release}.so$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+openbsd*)
+  version_type=sunos
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+    need_version=no
+  fi
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+os2*)
+  libname_spec='$name'
+  need_lib_prefix=no
+  library_names_spec='$libname.dll $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_version=no
+  soname_spec='${libname}${release}.so'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  # this will be overridden with pass_all, but let us keep it just in case
+  deplibs_check_method='file_magic COFF format alpha shared library'
+  file_magic_cmd=/usr/bin/file
+  file_magic_test_file=/shlib/libc.so
+  deplibs_check_method='pass_all'
+  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+  ;;
+
+rhapsody*)
+  version_type=sunos
+  library_names_spec='${libname}.so'
+  soname_spec='${libname}.so'
+  shlibpath_var=DYLD_LIBRARY_PATH
+  deplibs_check_method=pass_all
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  deplibs_check_method=&quot;file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib&quot;
+  file_magic_cmd=/usr/bin/file
+  file_magic_test_file=/lib/libc.so
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test &quot;$with_gnu_ld&quot; = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case &quot;$host_vendor&quot; in
+    sequent)
+      file_magic_cmd='/bin/file'
+      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+      ;;
+    ncr)
+      deplibs_check_method='pass_all'
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+      file_magic_cmd=/usr/bin/file
+      file_magic_test_file=`echo /usr/lib/libc.so*`
+      ;;
+  esac
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
+    soname_spec='$libname.so.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo &quot;$ac_t$dynamic_linker&quot; 1&gt;&amp;6
+test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+
+# Report the final consequences.
+echo &quot;checking if libtool supports shared libraries... $can_build_shared&quot; 1&gt;&amp;6
+
+# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
+# configure.in, otherwise build static only libraries.
+case &quot;$host_os&quot; in
+cygwin* | mingw* | os2*)
+  if test x$can_build_shared = xyes; then
+    test x$enable_win32_dll = xno &amp;&amp; can_build_shared=no
+    echo &quot;checking if package supports dlls... $can_build_shared&quot; 1&gt;&amp;6
+  fi
+;;
+esac
+
+if test -n &quot;$file_magic_test_file&quot; &amp;&amp; test -n &quot;$file_magic_cmd&quot;; then
+  case &quot;$deplibs_check_method&quot; in
+  &quot;file_magic &quot;*)
+    file_magic_regex=&quot;`expr \&quot;$deplibs_check_method\&quot; : \&quot;file_magic \(.*\)\&quot;`&quot;
+    if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+       egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
+      :
+    else
+      cat &lt;&lt;EOF 1&gt;&amp;2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+    fi ;;
+  esac
+fi
+
+echo $ac_n &quot;checking whether to build shared libraries... $ac_c&quot; 1&gt;&amp;6
+test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case &quot;$host_os&quot; in
+aix3*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  if test -n &quot;$RANLIB&quot;; then
+    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+
+aix4*)
+  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+  ;;
+esac
+
+echo &quot;$ac_t$enable_shared&quot; 1&gt;&amp;6
+
+# Make sure either enable_shared or enable_static is yes.
+test &quot;$enable_shared&quot; = yes || enable_static=yes
+
+echo &quot;checking whether to build static libraries... $enable_static&quot; 1&gt;&amp;6
+
+if test &quot;$hardcode_action&quot; = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+     test &quot;$enable_shared&quot; = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+echo $ac_n &quot;checking for objdir... $ac_c&quot; 1&gt;&amp;6
+rm -f .libs 2&gt;/dev/null
+mkdir .libs 2&gt;/dev/null
+if test -d .libs; then
+  objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  objdir=_libs
+fi
+rmdir .libs 2&gt;/dev/null
+echo &quot;$ac_t$objdir&quot; 1&gt;&amp;6
+
+if test &quot;x$enable_dlopen&quot; != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+if eval &quot;test \&quot;`echo '$''{'lt_cv_dlopen'+set}'`\&quot; != set&quot;; then
+  lt_cv_dlopen=no lt_cv_dlopen_libs=
+echo $ac_n &quot;checking for dlopen in -ldl&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2248: checking for dlopen in -ldl&quot; &gt;&amp;5
+ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
+if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  ac_save_LIBS=&quot;$LIBS&quot;
+LIBS=&quot;-ldl  $LIBS&quot;
+cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2256 &quot;ltconfig&quot;
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+char dlopen();
+
+int main() {
+dlopen()
+; return 0; }
+EOF
+if { (eval echo $progname:2269: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
+fi
+rm -f conftest*
+LIBS=&quot;$ac_save_LIBS&quot;
+
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+echo $ac_n &quot;checking for dlopen&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2288: checking for dlopen&quot; &gt;&amp;5
+if eval &quot;test \&quot;`echo '$''{'ac_cv_func_dlopen'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2293 &quot;ltconfig&quot;
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen(); below.  */
+#include &lt;assert.h&gt;
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+char dlopen();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+dlopen();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo $progname:2318: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval &quot;ac_cv_func_dlopen=yes&quot;
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_func_dlopen=no&quot;
+fi
+rm -f conftest*
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_func_'dlopen`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+  lt_cv_dlopen=&quot;dlopen&quot;
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+echo $ac_n &quot;checking for dld_link in -ldld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2335: checking for dld_link in -ldld&quot; &gt;&amp;5
+ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
+if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  ac_save_LIBS=&quot;$LIBS&quot;
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2343 &quot;ltconfig&quot;
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+char dld_link();
+
+int main() {
+dld_link()
+; return 0; }
+EOF
+if { (eval echo $progname:2356: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
+fi
+rm -f conftest*
+LIBS=&quot;$ac_save_LIBS&quot;
+
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-ldld&quot;
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+echo $ac_n &quot;checking for shl_load&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2375: checking for shl_load&quot; &gt;&amp;5
+if eval &quot;test \&quot;`echo '$''{'ac_cv_func_shl_load'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2380 &quot;ltconfig&quot;
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load(); below.  */
+#include &lt;assert.h&gt;
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+char shl_load();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+shl_load();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo $progname:2405: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval &quot;ac_cv_func_shl_load=yes&quot;
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_func_shl_load=no&quot;
+fi
+rm -f conftest*
+fi
+
+if eval &quot;test \&quot;`echo '$ac_cv_func_'shl_load`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+  lt_cv_dlopen=&quot;shl_load&quot;
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+echo $ac_n &quot;checking for shl_load in -ldld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2423: checking for shl_load in -ldld&quot; &gt;&amp;5
+ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
+if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  ac_save_LIBS=&quot;$LIBS&quot;
+LIBS=&quot;-ldld  $LIBS&quot;
+cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2431 &quot;ltconfig&quot;
+#include &quot;confdefs.h&quot;
+/* Override any gcc2 internal prototype to avoid an error.  */
+/* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern &quot;C&quot;
+#endif
+char shl_load();
+
+int main() {
+shl_load()
+; return 0; }
+EOF
+if { (eval echo $progname:2445: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
+fi
+rm -f conftest*
+LIBS=&quot;$ac_save_LIBS&quot;
+
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-ldld&quot;
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+fi
+
+
+fi
+
+    
+fi
+
+  
+fi
+
+
+fi
+
+fi
+
+  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+    enable_dlopen=yes
+  fi
+
+  case &quot;$lt_cv_dlopen&quot; in
+  dlopen)
+for ac_hdr in dlfcn.h; do
+ac_safe=`echo &quot;$ac_hdr&quot; | sed 'y%./+-%__p_%'`
+echo $ac_n &quot;checking for $ac_hdr&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2488: checking for $ac_hdr&quot; &gt;&amp;5
+if eval &quot;test \&quot;`echo '$''{'ac_cv_header_$ac_safe'+set}'`\&quot; = set&quot;; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+#line 2493 &quot;ltconfig&quot;
+#include &lt;$ac_hdr&gt;
+int fnord = 0;
+EOF
+ac_try=&quot;$ac_compile &gt;/dev/null 2&gt;conftest.out&quot;
+{ (eval echo $progname:2498: \&quot;$ac_try\&quot;) 1&gt;&amp;5; (eval $ac_try) 2&gt;&amp;5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v &quot;^conftest.${ac_ext}\$&quot;`
+if test -z &quot;$ac_err&quot;; then
+  rm -rf conftest*
+  eval &quot;ac_cv_header_$ac_safe=yes&quot;
+else
+  echo &quot;$ac_err&quot; &gt;&amp;5
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -rf conftest*
+  eval &quot;ac_cv_header_$ac_safe=no&quot;
+fi
+rm -f conftest*
+fi
+if eval &quot;test \&quot;`echo '$ac_cv_header_'$ac_safe`\&quot; = yes&quot;; then
+  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
+else
+  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
+fi
+done
+
+    if test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes; then
+      CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+    fi
+    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+
+  echo $ac_n &quot;checking whether a program can dlopen itself&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2526: checking whether a program can dlopen itself&quot; &gt;&amp;5
+if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+    lt_cv_dlopen_self=cross
+  else
+    cat &gt; conftest.c &lt;&lt;EOF
+#line 2534 &quot;ltconfig&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+# define LTDL_GLOBAL        RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+#  define LTDL_GLOBAL        DL_GLOBAL
+# else
+#  define LTDL_GLOBAL        0
+# endif
+#endif
+
+/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LTDL_LAZY_OR_NOW
+# ifdef RTLD_LAZY
+#  define LTDL_LAZY_OR_NOW        RTLD_LAZY
+# else
+#  ifdef DL_LAZY
+#   define LTDL_LAZY_OR_NOW        DL_LAZY
+#  else
+#   ifdef RTLD_NOW
+#    define LTDL_LAZY_OR_NOW        RTLD_NOW
+#   else
+#    ifdef DL_NOW
+#     define LTDL_LAZY_OR_NOW        DL_NOW
+#    else
+#     define LTDL_LAZY_OR_NOW        0
+#    endif
+#   endif
+#  endif
+# endif
+#endif
+
+fnord() { int i=42;}
+main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
+    if(self) { ptr1=dlsym(self,&quot;fnord&quot;); ptr2=dlsym(self,&quot;_fnord&quot;);
+               if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
+
+EOF
+if { (eval echo $progname:2580: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest &amp;&amp; (./conftest; exit) 2&gt;/dev/null
+then
+  lt_cv_dlopen_self=yes
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -fr conftest*
+  lt_cv_dlopen_self=no
+fi
+rm -fr conftest*
+fi
+
+fi
+
+echo &quot;$ac_t&quot;&quot;$lt_cv_dlopen_self&quot; 1&gt;&amp;6
+
+  if test &quot;$lt_cv_dlopen_self&quot; = yes; then
+    LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+  echo $ac_n &quot;checking whether a statically linked program can dlopen itself&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+echo &quot;$progname:2599: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
+if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
+  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
+else
+  if test &quot;$cross_compiling&quot; = yes; then
+    lt_cv_dlopen_self_static=cross
+  else
+    cat &gt; conftest.c &lt;&lt;EOF
+#line 2607 &quot;ltconfig&quot;
+
+#if HAVE_DLFCN_H
+#include &lt;dlfcn.h&gt;
+#endif
+
+#include &lt;stdio.h&gt;
+
+#ifdef RTLD_GLOBAL
+# define LTDL_GLOBAL        RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+#  define LTDL_GLOBAL        DL_GLOBAL
+# else
+#  define LTDL_GLOBAL        0
+# endif
+#endif
+
+/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LTDL_LAZY_OR_NOW
+# ifdef RTLD_LAZY
+#  define LTDL_LAZY_OR_NOW        RTLD_LAZY
+# else
+#  ifdef DL_LAZY
+#   define LTDL_LAZY_OR_NOW        DL_LAZY
+#  else
+#   ifdef RTLD_NOW
+#    define LTDL_LAZY_OR_NOW        RTLD_NOW
+#   else
+#    ifdef DL_NOW
+#     define LTDL_LAZY_OR_NOW        DL_NOW
+#    else
+#     define LTDL_LAZY_OR_NOW        0
+#    endif
+#   endif
+#  endif
+# endif
+#endif
+
+fnord() { int i=42;}
+main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
+    if(self) { ptr1=dlsym(self,&quot;fnord&quot;); ptr2=dlsym(self,&quot;_fnord&quot;);
+    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
+
+EOF
+if { (eval echo $progname:2653: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest &amp;&amp; (./conftest; exit) 2&gt;/dev/null
+then
+  lt_cv_dlopen_self_static=yes
+else
+  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+  cat conftest.$ac_ext &gt;&amp;5
+  rm -fr conftest*
+  lt_cv_dlopen_self_static=no
+fi
+rm -fr conftest*
+fi
+
+fi
+
+echo &quot;$ac_t&quot;&quot;$lt_cv_dlopen_self_static&quot; 1&gt;&amp;6
+fi
+    ;;
+  esac
+
+  case &quot;$lt_cv_dlopen_self&quot; in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case &quot;$lt_cv_dlopen_self_static&quot; in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+# Copy echo and quote the copy, instead of the original, because it is
+# used later.
+ltecho=&quot;$echo&quot;
+if test &quot;X$ltecho&quot; = &quot;X$CONFIG_SHELL $0 --fallback-echo&quot;; then
+   ltecho=&quot;$CONFIG_SHELL \$0 --fallback-echo&quot;
+fi
+LTSHELL=&quot;$SHELL&quot;
+
+LTCONFIG_VERSION=&quot;$VERSION&quot;
+
+# Only quote variables if we're using ltmain.sh.
+case &quot;$ltmain&quot; in
+*.sh)
+  # Now quote all the things that may contain metacharacters.
+  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
+    old_LD old_LDFLAGS old_LIBS \
+    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
+    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
+    reload_flag reload_cmds wl \
+    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
+    library_names_spec soname_spec \
+    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
+    file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
+    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
+    hardcode_libdir_flag_spec hardcode_libdir_separator  \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+
+    case &quot;$var&quot; in
+    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval &quot;$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    *)
+      eval &quot;$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+      ;;
+    esac
+  done
+
+  case &quot;$ltecho&quot; in
+  *'\$0 --fallback-echo&quot;')
+    ltecho=`$echo &quot;X$ltecho&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+    ;;
+  esac
+
+  trap &quot;$rm \&quot;$ofile\&quot;; exit 1&quot; 1 2 15
+  echo &quot;creating $ofile&quot;
+  $rm &quot;$ofile&quot;
+  cat &lt;&lt;EOF &gt; &quot;$ofile&quot;
+#! $SHELL
+
+# `$echo &quot;$ofile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
+#
+# Copyright (C) 1996-1999 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed=&quot;sed -e s/^X//&quot;
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test &quot;X\${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi
+
+### BEGIN LIBTOOL CONFIG
+EOF
+  cfgfile=&quot;$ofile&quot;
+  ;;
+
+*)
+  # Double-quote the variables that need it (for aesthetics).
+  for var in old_CC old_CFLAGS old_CPPFLAGS \
+    old_LD old_LDFLAGS old_LIBS \
+    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
+    eval &quot;$var=\\\&quot;\$var\\\&quot;&quot;
+  done
+
+  # Just create a config file.
+  cfgfile=&quot;$ofile.cfg&quot;
+  trap &quot;$rm \&quot;$cfgfile\&quot;; exit 1&quot; 1 2 15
+  echo &quot;creating $cfgfile&quot;
+  $rm &quot;$cfgfile&quot;
+  cat &lt;&lt;EOF &gt; &quot;$cfgfile&quot;
+# `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Libtool configuration file.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+EOF
+  ;;
+esac
+
+cat &lt;&lt;EOF &gt;&gt; &quot;$cfgfile&quot;
+# Libtool was configured as follows, on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+#
+# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
+# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
+# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
+# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
+#   $0$ltconfig_args
+#
+# Compiler and other test output produced by $progname, useful for
+# debugging $progname, is in ./config.log if it exists.
+
+# The version of $progname that generated this script.
+LTCONFIG_VERSION=$LTCONFIG_VERSION
+
+# Shell to use when invoking shell scripts.
+SHELL=$LTSHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$ltecho
+
+# The archiver.
+AR=$AR
+
+# The default C compiler.
+CC=$CC
+
+# The linker used to build libraries.
+LD=$LD
+
+# Whether we need hard or soft links.
+LN_S=$LN_S
+
+# A BSD-compatible nm program.
+NM=$NM
+
+# Used on cygwin: DLL creation program.
+DLLTOOL=&quot;$DLLTOOL&quot;
+
+# Used on cygwin: object dumper.
+OBJDUMP=&quot;$OBJDUMP&quot;
+
+# Used on cygwin: assembler.
+AS=&quot;$AS&quot;
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$reload_flag
+reload_cmds=$reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$wl
+
+# Object file suffix (normally &quot;o&quot;).
+objext=&quot;$objext&quot;
+
+# Old archive suffix (normally &quot;a&quot;).
+libext=&quot;$libext&quot;
+
+# Executable file suffix (normally &quot;&quot;).
+exeext=&quot;$exeext&quot;
+
+# Additional compiler flags for building library objects.
+pic_flag=$pic_flag
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$compiler_c_o
+
+# Can we write directly to a .lo ?
+compiler_o_lo=$compiler_o_lo
+
+# Must we lock files when doing compilation ?
+need_locks=$need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$link_static_flag
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$RANLIB
+old_archive_cmds=$old_archive_cmds
+old_postinstall_cmds=$old_postinstall_cmds
+old_postuninstall_cmds=$old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$old_archive_from_new_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$archive_cmds
+archive_expsym_cmds=$archive_expsym_cmds
+postinstall_cmds=$postinstall_cmds
+postuninstall_cmds=$postuninstall_cmds
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$global_symbol_to_cdecl
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=&quot;$fix_srcfile_path&quot;
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$export_symbols_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$include_expsyms
+
+EOF
+
+case &quot;$ltmain&quot; in
+*.sh)
+  echo '### END LIBTOOL CONFIG' &gt;&gt; &quot;$ofile&quot;
+  echo &gt;&gt; &quot;$ofile&quot;
+  case &quot;$host_os&quot; in
+  aix3*)
+    cat &lt;&lt;\EOF &gt;&gt; &quot;$ofile&quot;
+
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+EOF
+    ;;
+  esac
+
+  # Append the ltmain.sh script.
+  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$ofile&quot; || (rm -f &quot;$ofile&quot;; exit 1)
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+
+  chmod +x &quot;$ofile&quot;
+  ;;
+
+*)
+  # Compile the libtool program.
+  echo &quot;FIXME: would compile $ltmain&quot;
+  ;;
+esac
+
+test -n &quot;$cache_file&quot; || exit 0
+
+# AC_CACHE_SAVE
+trap '' 1 2 15
+cat &gt; confcache &lt;&lt;\EOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs.  It is not useful on other systems.
+# If it contains results you don't want to keep, you may remove or edit it.
+#
+# By default, configure uses ./config.cache as the cache file,
+# creating it if it does not exist already.  You can give configure
+# the --cache-file=FILE option to use a different cache file; that is
+# what configure does when it calls configure scripts in
+# subdirectories, so they share the cache.
+# Giving --cache-file=/dev/null disables caching, for debugging configure.
+# config.status only pays attention to the cache file if you give it the
+# --recheck option to rerun configure.
+#
+EOF
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(set) 2&gt;&amp;1 |
+  case `(ac_space=' '; set | grep ac_space) 2&gt;&amp;1` in
+  *ac_space=\ *)
+    # `set' does not quote correctly, so add quotes (double-quote substitution
+    # turns \\\\ into \\, and sed turns \\ into \).
+    sed -n \
+      -e &quot;s/'/'\\\\''/g&quot; \
+      -e &quot;s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p&quot;
+    ;;
+  *)
+    # `set' quotes correctly as required by POSIX, so do not add quotes.
+    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
+    ;;
+  esac &gt;&gt; confcache
+if cmp -s $cache_file confcache; then
+  :
+else
+  if test -w $cache_file; then
+    echo &quot;updating cache $cache_file&quot;
+    cat confcache &gt; $cache_file
+  else
+    echo &quot;not updating unwritable cache $cache_file&quot;
+  fi
+fi
+rm -f confcache
+
+exit 0
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
</ins><span class="cx">Property changes on: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltconfig
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsltmainsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltmain.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltmain.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/ltmain.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,6538 @@
</span><ins>+# ltmain.sh - Provide generalized library-building support services.
+# NOTE: Changing this file will not affect anything until you rerun configure.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+basename=&quot;s,^.*/,,g&quot;
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as &quot;sh&quot; and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath=&quot;$0&quot;
+
+# The name of this program:
+progname=`echo &quot;$progpath&quot; | $SED $basename`
+modename=&quot;$progname&quot;
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=&quot;1.5.20 Debian 1.5.20-2&quot;
+TIMESTAMP=&quot; (1.1220.2.287 2005/08/31 18:54:15)&quot;
+
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes.
+if test -n &quot;${ZSH_VERSION+set}&quot; ; then
+  setopt NO_GLOB_SUBST
+fi
+
+# Check that we have a working $echo.
+if test &quot;X$1&quot; = X--no-reexec; then
+  # Discard the --no-reexec flag, and continue.
+  shift
+elif test &quot;X$1&quot; = X--fallback-echo; then
+  # Avoid inline document here, it may be left over
+  :
+elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+  # Yippee, $echo works!
+  :
+else
+  # Restart under the correct shell, and then maybe $echo will work.
+  exec $SHELL &quot;$progpath&quot; --no-reexec ${1+&quot;$@&quot;}
+fi
+
+if test &quot;X$1&quot; = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat &lt;&lt;EOF
+$*
+EOF
+  exit $EXIT_SUCCESS
+fi
+
+default_mode=
+help=&quot;Try \`$progname --help' for more information.&quot;
+magic=&quot;%%%MAGIC variable%%%&quot;
+mkdir=&quot;mkdir&quot;
+mv=&quot;mv -f&quot;
+rm=&quot;rm -f&quot;
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed=&quot;${SED}&quot;' -e 1s/^X//'
+sed_quote_subst='s/\([\\`\\&quot;$\\\\]\)/\\\1/g'
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+  SP2NL='tr \040 \012'
+  NL2SP='tr \015\012 \040\040'
+  ;;
+ *) # EBCDIC based system
+  SP2NL='tr \100 \n'
+  NL2SP='tr \r\n \100\100'
+  ;;
+esac
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+if test &quot;${LC_ALL+set}&quot; = set; then
+  save_LC_ALL=&quot;$LC_ALL&quot;; LC_ALL=C; export LC_ALL
+fi
+if test &quot;${LANG+set}&quot; = set; then
+  save_LANG=&quot;$LANG&quot;; LANG=C; export LANG
+fi
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=&quot;         $lt_nl&quot;
+
+if test &quot;$build_libtool_libs&quot; != yes &amp;&amp; test &quot;$build_old_libs&quot; != yes; then
+  $echo &quot;$modename: not configured to build any kind of library&quot; 1&gt;&amp;2
+  $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
+  exit $EXIT_FAILURE
+fi
+
+# Global variables.
+mode=$default_mode
+nonopt=
+prev=
+prevopt=
+run=
+show=&quot;$echo&quot;
+show_help=
+execute_dlfiles=
+lo2o=&quot;s/\\.lo\$/.${objext}/&quot;
+o2lo=&quot;s/\\.${objext}\$/.lo/&quot;
+
+#####################################
+# Shell function definitions:
+# This seems to be the best place for them
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+  win32_libid_type=&quot;unknown&quot;
+  win32_fileres=`file -L $1 2&gt;/dev/null`
+  case $win32_fileres in
+  *ar\ archive\ import\ library*) # definitely import
+    win32_libid_type=&quot;x86 archive import&quot;
+    ;;
+  *ar\ archive*) # could be an import, or static
+    if eval $OBJDUMP -f $1 | $SED -e '10q' 2&gt;/dev/null | \
+      $EGREP -e 'file format pe-i386(.*architecture: i386)?' &gt;/dev/null ; then
+      win32_nmres=`eval $NM -f posix -A $1 | \
+        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
+      if test &quot;X$win32_nmres&quot; = &quot;Ximport&quot; ; then
+        win32_libid_type=&quot;x86 archive import&quot;
+      else
+        win32_libid_type=&quot;x86 archive static&quot;
+      fi
+    fi
+    ;;
+  *DLL*)
+    win32_libid_type=&quot;x86 DLL&quot;
+    ;;
+  *executable*) # but shell scripts are &quot;executable&quot; too...
+    case $win32_fileres in
+    *MS\ Windows\ PE\ Intel*)
+      win32_libid_type=&quot;x86 DLL&quot;
+      ;;
+    esac
+    ;;
+  esac
+  $echo $win32_libid_type
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the &quot;--tag&quot; command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+    if test -n &quot;$available_tags&quot; &amp;&amp; test -z &quot;$tagname&quot;; then
+      CC_quoted=
+      for arg in $CC; do
+        case $arg in
+          *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+          arg=&quot;\&quot;$arg\&quot;&quot;
+          ;;
+        esac
+        CC_quoted=&quot;$CC_quoted $arg&quot;
+      done
+      case $@ in
+      # Blanks in the command may have been stripped by the calling shell,
+      # but not from the CC environment variable when configure was run.
+      &quot; $CC &quot;* | &quot;$CC &quot;* | &quot; `$echo $CC` &quot;* | &quot;`$echo $CC` &quot;* | &quot; $CC_quoted&quot;* | &quot;$CC_quoted &quot;* | &quot; `$echo $CC_quoted` &quot;* | &quot;`$echo $CC_quoted` &quot;*) ;;
+      # Blanks at the start of $base_compile will cause this to fail
+      # if we don't check for them as well.
+      *)
+        for z in $available_tags; do
+          if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $z$&quot; &lt; &quot;$progpath&quot; &gt; /dev/null; then
+            # Evaluate the configuration.
+            eval &quot;`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' &lt; $progpath`&quot;
+            CC_quoted=
+            for arg in $CC; do
+            # Double-quote args containing other shell metacharacters.
+            case $arg in
+              *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+              arg=&quot;\&quot;$arg\&quot;&quot;
+              ;;
+            esac
+            CC_quoted=&quot;$CC_quoted $arg&quot;
+          done
+            case &quot;$@ &quot; in
+              &quot; $CC &quot;* | &quot;$CC &quot;* | &quot; `$echo $CC` &quot;* | &quot;`$echo $CC` &quot;* | &quot; $CC_quoted&quot;* | &quot;$CC_quoted &quot;* | &quot; `$echo $CC_quoted` &quot;* | &quot;`$echo $CC_quoted` &quot;*)
+              # The compiler in the base compile command matches
+              # the one in the tagged configuration.
+              # Assume this is the tagged configuration we want.
+              tagname=$z
+              break
+              ;;
+            esac
+          fi
+        done
+        # If $tagname still isn't set, then no tagged configuration
+        # was found and let the user know that the &quot;--tag&quot; command
+        # line option must be used.
+        if test -z &quot;$tagname&quot;; then
+          $echo &quot;$modename: unable to infer tagged configuration&quot;
+          $echo &quot;$modename: specify a tag with \`--tag'&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+#        else
+#          $echo &quot;$modename: using $tagname tagged configuration&quot;
+        fi
+        ;
+      esac
+    fi
+}
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+    f_ex_an_ar_dir=&quot;$1&quot;; shift
+    f_ex_an_ar_oldlib=&quot;$1&quot;
+
+    $show &quot;(cd $f_ex_an_ar_dir &amp;&amp; $AR x $f_ex_an_ar_oldlib)&quot;
+    $run eval &quot;(cd \$f_ex_an_ar_dir &amp;&amp; $AR x \$f_ex_an_ar_oldlib)&quot; || exit $?
+    if ($AR t &quot;$f_ex_an_ar_oldlib&quot; | sort | sort -uc &gt;/dev/null 2&gt;&amp;1); then
+     :
+    else
+      $echo &quot;$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+}
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+    my_gentop=&quot;$1&quot;; shift
+    my_oldlibs=${1+&quot;$@&quot;}
+    my_oldobjs=&quot;&quot;
+    my_xlib=&quot;&quot;
+    my_xabs=&quot;&quot;
+    my_xdir=&quot;&quot;
+    my_status=&quot;&quot;
+
+    $show &quot;${rm}r $my_gentop&quot;
+    $run ${rm}r &quot;$my_gentop&quot;
+    $show &quot;$mkdir $my_gentop&quot;
+    $run $mkdir &quot;$my_gentop&quot;
+    my_status=$?
+    if test &quot;$my_status&quot; -ne 0 &amp;&amp; test ! -d &quot;$my_gentop&quot;; then
+      exit $my_status
+    fi
+
+    for my_xlib in $my_oldlibs; do
+      # Extract the objects.
+      case $my_xlib in
+        [\\/]* | [A-Za-z]:[\\/]*) my_xabs=&quot;$my_xlib&quot; ;;
+        *) my_xabs=`pwd`&quot;/$my_xlib&quot; ;;
+      esac
+      my_xlib=`$echo &quot;X$my_xlib&quot; | $Xsed -e 's%^.*/%%'`
+      my_xdir=&quot;$my_gentop/$my_xlib&quot;
+
+      $show &quot;${rm}r $my_xdir&quot;
+      $run ${rm}r &quot;$my_xdir&quot;
+      $show &quot;$mkdir $my_xdir&quot;
+      $run $mkdir &quot;$my_xdir&quot;
+      status=$?
+      if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$my_xdir&quot;; then
+        exit $status
+      fi
+      case $host in
+      *-darwin*)
+        $show &quot;Extracting $my_xabs&quot;
+        # Do not bother doing anything if just a dry run
+        if test -z &quot;$run&quot;; then
+          darwin_orig_dir=`pwd`
+          cd $my_xdir || exit $?
+          darwin_archive=$my_xabs
+          darwin_curdir=`pwd`
+          darwin_base_archive=`$echo &quot;X$darwin_archive&quot; | $Xsed -e 's%^.*/%%'`
+          darwin_arches=`lipo -info &quot;$darwin_archive&quot; 2&gt;/dev/null | $EGREP Architectures 2&gt;/dev/null`
+          if test -n &quot;$darwin_arches&quot;; then 
+            darwin_arches=`echo &quot;$darwin_arches&quot; | $SED -e 's/.*are://'`
+            darwin_arch=
+            $show &quot;$darwin_base_archive has multiple architectures $darwin_arches&quot;
+            for darwin_arch in  $darwin_arches ; do
+              mkdir -p &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}&quot;
+              lipo -thin $darwin_arch -output &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}&quot; &quot;${darwin_archive}&quot;
+              cd &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}&quot;
+              func_extract_an_archive &quot;`pwd`&quot; &quot;${darwin_base_archive}&quot;
+              cd &quot;$darwin_curdir&quot;
+              $rm &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}&quot;
+            done # $darwin_arches
+      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
+            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
+            darwin_file=
+            darwin_files=
+            for darwin_file in $darwin_filelist; do
+              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+              lipo -create -output &quot;$darwin_file&quot; $darwin_files
+            done # $darwin_filelist
+            ${rm}r unfat-$$
+            cd &quot;$darwin_orig_dir&quot;
+          else
+            cd &quot;$darwin_orig_dir&quot;
+             func_extract_an_archive &quot;$my_xdir&quot; &quot;$my_xabs&quot;
+          fi # $darwin_arches
+        fi # $run
+        ;
+      *)
+        func_extract_an_archive &quot;$my_xdir&quot; &quot;$my_xabs&quot;
+        ;;
+      esac
+      my_oldobjs=&quot;$my_oldobjs &quot;`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+    done
+    func_extract_archives_result=&quot;$my_oldobjs&quot;
+}
+# End of Shell function definitions
+#####################################
+
+# Darwin sucks
+eval std_shrext=\&quot;$shrext_cmds\&quot;
+
+# Parse our command line options once, thoroughly.
+while test &quot;$#&quot; -gt 0
+do
+  arg=&quot;$1&quot;
+  shift
+
+  case $arg in
+  -*=*) optarg=`$echo &quot;X$arg&quot; | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  # If the previous option needs an argument, assign it.
+  if test -n &quot;$prev&quot;; then
+    case $prev in
+    execute_dlfiles)
+      execute_dlfiles=&quot;$execute_dlfiles $arg&quot;
+      ;;
+    tag)
+      tagname=&quot;$arg&quot;
+      preserve_args=&quot;${preserve_args}=$arg&quot;
+
+      # Check whether tagname contains only valid characters
+      case $tagname in
+      *[!-_A-Za-z0-9,/]*)
+        $echo &quot;$progname: invalid tag name: $tagname&quot; 1&gt;&amp;2
+        exit $EXIT_FAILURE
+        ;
+      esac
+
+      case $tagname in
+      CC)
+        # Don't test for the &quot;default&quot; C tag, as we know, it's there, but
+        # not specially marked.
+        ;
+      *)
+        if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;$progpath&quot; &gt; /dev/null; then
+          taglist=&quot;$taglist $tagname&quot;
+          # Evaluate the configuration.
+          eval &quot;`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' &lt; $progpath`&quot;
+        else
+          $echo &quot;$progname: ignoring unknown tag $tagname&quot; 1&gt;&amp;2
+        fi
+        ;
+      esac
+      ;;
+    *)
+      eval &quot;$prev=\$arg&quot;
+      ;;
+    esac
+
+    prev=
+    prevopt=
+    continue
+  fi
+
+  # Have we seen a non-optional argument yet?
+  case $arg in
+  --help)
+    show_help=yes
+    ;;
+
+  --version)
+    $echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP&quot;
+    $echo
+    $echo &quot;Copyright (C) 2005  Free Software Foundation, Inc.&quot;
+    $echo &quot;This is free software; see the source for copying conditions.  There is NO&quot;
+    $echo &quot;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&quot;
+    exit $?
+    ;;
+
+  --config)
+    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
+    # Now print the configurations for the tags.
+    for tagname in $taglist; do
+      ${SED} -n -e &quot;/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p&quot; &lt; &quot;$progpath&quot;
+    done
+    exit $?
+    ;;
+
+  --debug)
+    $echo &quot;$progname: enabling shell trace mode&quot;
+    set -x
+    preserve_args=&quot;$preserve_args $arg&quot;
+    ;;
+
+  --dry-run | -n)
+    run=:
+    ;;
+
+  --features)
+    $echo &quot;host: $host&quot;
+    if test &quot;$build_libtool_libs&quot; = yes; then
+      $echo &quot;enable shared libraries&quot;
+    else
+      $echo &quot;disable shared libraries&quot;
+    fi
+    if test &quot;$build_old_libs&quot; = yes; then
+      $echo &quot;enable static libraries&quot;
+    else
+      $echo &quot;disable static libraries&quot;
+    fi
+    exit $?
+    ;;
+
+  --finish) mode=&quot;finish&quot; ;;
+
+  --mode) prevopt=&quot;--mode&quot; prev=mode ;;
+  --mode=*) mode=&quot;$optarg&quot; ;;
+
+  --preserve-dup-deps) duplicate_deps=&quot;yes&quot; ;;
+
+  --quiet | --silent)
+    show=:
+    preserve_args=&quot;$preserve_args $arg&quot;
+    ;;
+
+  --tag) prevopt=&quot;--tag&quot; prev=tag ;;
+  --tag=*)
+    set tag &quot;$optarg&quot; ${1+&quot;$@&quot;}
+    shift
+    prev=tag
+    preserve_args=&quot;$preserve_args --tag&quot;
+    ;;
+
+  -dlopen)
+    prevopt=&quot;-dlopen&quot;
+    prev=execute_dlfiles
+    ;;
+
+  -*)
+    $echo &quot;$modename: unrecognized option \`$arg'&quot; 1&gt;&amp;2
+    $echo &quot;$help&quot; 1&gt;&amp;2
+    exit $EXIT_FAILURE
+    ;;
+
+  *)
+    nonopt=&quot;$arg&quot;
+    break
+    ;;
+  esac
+done
+
+if test -n &quot;$prevopt&quot;; then
+  $echo &quot;$modename: option \`$prevopt' requires an argument&quot; 1&gt;&amp;2
+  $echo &quot;$help&quot; 1&gt;&amp;2
+  exit $EXIT_FAILURE
+fi
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end.  This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+if test -z &quot;$show_help&quot;; then
+
+  # Infer the operation mode.
+  if test -z &quot;$mode&quot;; then
+    $echo &quot;*** Warning: inferring the mode of operation is deprecated.&quot; 1&gt;&amp;2
+    $echo &quot;*** Future versions of Libtool will require --mode=MODE be specified.&quot; 1&gt;&amp;2
+    case $nonopt in
+    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
+      mode=link
+      for arg
+      do
+        case $arg in
+        -c)
+           mode=compile
+           break
+           ;;
+        esac
+      done
+      ;;
+    *db | *dbx | *strace | *truss)
+      mode=execute
+      ;;
+    *install*|cp|mv)
+      mode=install
+      ;;
+    *rm)
+      mode=uninstall
+      ;;
+    *)
+      # If we have no mode, but dlfiles were specified, then do execute mode.
+      test -n &quot;$execute_dlfiles&quot; &amp;&amp; mode=execute
+
+      # Just use the default operation mode.
+      if test -z &quot;$mode&quot;; then
+        if test -n &quot;$nonopt&quot;; then
+          $echo &quot;$modename: warning: cannot infer operation mode from \`$nonopt'&quot; 1&gt;&amp;2
+        else
+          $echo &quot;$modename: warning: cannot infer operation mode without MODE-ARGS&quot; 1&gt;&amp;2
+        fi
+      fi
+      ;;
+    esac
+  fi
+
+  # Only execute mode is allowed to have -dlopen flags.
+  if test -n &quot;$execute_dlfiles&quot; &amp;&amp; test &quot;$mode&quot; != execute; then
+    $echo &quot;$modename: unrecognized option \`-dlopen'&quot; 1&gt;&amp;2
+    $echo &quot;$help&quot; 1&gt;&amp;2
+    exit $EXIT_FAILURE
+  fi
+
+  # Change the help message to a mode-specific one.
+  generic_help=&quot;$help&quot;
+  help=&quot;Try \`$modename --help --mode=$mode' for more information.&quot;
+
+  # These modes are in order of execution frequency so that they run quickly.
+  case $mode in
+  # libtool compile mode
+  compile)
+    modename=&quot;$modename: compile&quot;
+    # Get the compilation command and the source file.
+    base_compile=
+    srcfile=&quot;$nonopt&quot;  #  always keep a non-empty value in &quot;srcfile&quot;
+    suppress_opt=yes
+    suppress_output=
+    arg_mode=normal
+    libobj=
+    later=
+
+    for arg
+    do
+      case $arg_mode in
+      arg  )
+        # do not &quot;continue&quot;.  Instead, add this to base_compile
+        lastarg=&quot;$arg&quot;
+        arg_mode=normal
+        ;
+
+      target )
+        libobj=&quot;$arg&quot;
+        arg_mode=normal
+        continue
+        ;
+
+      normal )
+        # Accept any command-line options.
+        case $arg in
+        -o)
+          if test -n &quot;$libobj&quot; ; then
+            $echo &quot;$modename: you cannot specify \`-o' more than once&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+          arg_mode=target
+          continue
+          ;;
+
+        -static | -prefer-pic | -prefer-non-pic)
+          later=&quot;$later $arg&quot;
+          continue
+          ;;
+
+        -no-suppress)
+          suppress_opt=no
+          continue
+          ;;
+
+        -Xcompiler)
+          arg_mode=arg  #  the next one goes into the &quot;base_compile&quot; arg list
+          continue      #  The current &quot;srcfile&quot; will either be retained or
+          ;;            #  replaced later.  I would guess that would be a bug.
+
+        -Wc,*)
+          args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;s/^-Wc,//&quot;`
+          lastarg=
+          save_ifs=&quot;$IFS&quot;; IFS=','
+           for arg in $args; do
+            IFS=&quot;$save_ifs&quot;
+
+            # Double-quote args containing other shell metacharacters.
+            # Many Bourne shells cannot handle close brackets correctly
+            # in scan sets, so we specify it separately.
+            case $arg in
+              *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+              arg=&quot;\&quot;$arg\&quot;&quot;
+              ;;
+            esac
+            lastarg=&quot;$lastarg $arg&quot;
+          done
+          IFS=&quot;$save_ifs&quot;
+          lastarg=`$echo &quot;X$lastarg&quot; | $Xsed -e &quot;s/^ //&quot;`
+
+          # Add the arguments to base_compile.
+          base_compile=&quot;$base_compile $lastarg&quot;
+          continue
+          ;;
+
+        * )
+          # Accept the current argument as the source file.
+          # The previous &quot;srcfile&quot; becomes the current argument.
+          #
+          lastarg=&quot;$srcfile&quot;
+          srcfile=&quot;$arg&quot;
+          ;;
+        esac  #  case $arg
+        ;
+      esac    #  case $arg_mode
+
+      # Aesthetically quote the previous argument.
+      lastarg=`$echo &quot;X$lastarg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+
+      case $lastarg in
+      # Double-quote args containing other shell metacharacters.
+      # Many Bourne shells cannot handle close brackets correctly
+      # in scan sets, and some SunOS ksh mistreat backslash-escaping
+      # in scan sets (worked around with variable expansion),
+      # and furthermore cannot handle '|' '&amp;' '(' ')' in scan sets 
+      # at all, so we specify them separately.
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+        lastarg=&quot;\&quot;$lastarg\&quot;&quot;
+        ;
+      esac
+
+      base_compile=&quot;$base_compile $lastarg&quot;
+    done # for arg
+
+    case $arg_mode in
+    arg)
+      $echo &quot;$modename: you must specify an argument for -Xcompile&quot;
+      exit $EXIT_FAILURE
+      ;;
+    target)
+      $echo &quot;$modename: you must specify a target with \`-o'&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+      ;;
+    *)
+      # Get the name of the library object.
+      [ -z &quot;$libobj&quot; ] &amp;&amp; libobj=`$echo &quot;X$srcfile&quot; | $Xsed -e 's%^.*/%%'`
+      ;;
+    esac
+
+    # Recognize several different file suffixes.
+    # If the user specifies -o file.o, it is replaced with file.lo
+    xform='[cCFSifmso]'
+    case $libobj in
+    *.ada) xform=ada ;;
+    *.adb) xform=adb ;;
+    *.ads) xform=ads ;;
+    *.asm) xform=asm ;;
+    *.c++) xform=c++ ;;
+    *.cc) xform=cc ;;
+    *.ii) xform=ii ;;
+    *.class) xform=class ;;
+    *.cpp) xform=cpp ;;
+    *.cxx) xform=cxx ;;
+    *.f90) xform=f90 ;;
+    *.for) xform=for ;;
+    *.java) xform=java ;;
+    esac
+
+    libobj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;s/\.$xform$/.lo/&quot;`
+
+    case $libobj in
+    *.lo) obj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;$lo2o&quot;` ;;
+    *)
+      $echo &quot;$modename: cannot determine name of library object from \`$libobj'&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+      ;;
+    esac
+
+    func_infer_tag $base_compile
+
+    for arg in $later; do
+      case $arg in
+      -static)
+        build_old_libs=yes
+        continue
+        ;
+
+      -prefer-pic)
+        pic_mode=yes
+        continue
+        ;
+
+      -prefer-non-pic)
+        pic_mode=no
+        continue
+        ;
+      esac
+    done
+
+    qlibobj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+    case $qlibobj in
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+        qlibobj=&quot;\&quot;$qlibobj\&quot;&quot; ;;
+    esac
+    test &quot;X$libobj&quot; != &quot;X$qlibobj&quot; \
+        &amp;&amp; $echo &quot;X$libobj&quot; | grep '[]~#^*{};&lt;&gt;?&quot;'&quot;'&quot;'         &amp;()|`$[]' \
+        &amp;&amp; $echo &quot;$modename: libobj name \`$libobj' may not contain shell special characters.&quot;
+    objname=`$echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'`
+    xdir=`$echo &quot;X$obj&quot; | $Xsed -e 's%/[^/]*$%%'`
+    if test &quot;X$xdir&quot; = &quot;X$obj&quot;; then
+      xdir=
+    else
+      xdir=$xdir/
+    fi
+    lobj=${xdir}$objdir/$objname
+
+    if test -z &quot;$base_compile&quot;; then
+      $echo &quot;$modename: you must specify a compilation command&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    # Delete any leftover library objects.
+    if test &quot;$build_old_libs&quot; = yes; then
+      removelist=&quot;$obj $lobj $libobj ${libobj}T&quot;
+    else
+      removelist=&quot;$lobj $libobj ${libobj}T&quot;
+    fi
+
+    $run $rm $removelist
+    trap &quot;$run $rm $removelist; exit $EXIT_FAILURE&quot; 1 2 15
+
+    # On Cygwin there's no &quot;real&quot; PIC flag so we must build both object types
+    case $host_os in
+    cygwin* | mingw* | pw32* | os2*)
+      pic_mode=default
+      ;;
+    esac
+    if test &quot;$pic_mode&quot; = no &amp;&amp; test &quot;$deplibs_check_method&quot; != pass_all; then
+      # non-PIC code in shared libraries is not supported
+      pic_mode=default
+    fi
+
+    # Calculate the filename of the output object if compiler does
+    # not support -o with -c
+    if test &quot;$compiler_c_o&quot; = no; then
+      output_obj=`$echo &quot;X$srcfile&quot; | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+      lockfile=&quot;$output_obj.lock&quot;
+      removelist=&quot;$removelist $output_obj $lockfile&quot;
+      trap &quot;$run $rm $removelist; exit $EXIT_FAILURE&quot; 1 2 15
+    else
+      output_obj=
+      need_locks=no
+      lockfile=
+    fi
+
+    # Lock this critical section if it is needed
+    # We use this script file to make the link, it avoids creating a new file
+    if test &quot;$need_locks&quot; = yes; then
+      until $run ln &quot;$progpath&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
+        $show &quot;Waiting for $lockfile to be removed&quot;
+        sleep 2
+      done
+    elif test &quot;$need_locks&quot; = warn; then
+      if test -f &quot;$lockfile&quot;; then
+        $echo &quot;\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2&gt;/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler.&quot;
+
+        $run $rm $removelist
+        exit $EXIT_FAILURE
+      fi
+      $echo &quot;$srcfile&quot; &gt; &quot;$lockfile&quot;
+    fi
+
+    if test -n &quot;$fix_srcfile_path&quot;; then
+      eval srcfile=\&quot;$fix_srcfile_path\&quot;
+    fi
+    qsrcfile=`$echo &quot;X$srcfile&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+    case $qsrcfile in
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+      qsrcfile=&quot;\&quot;$qsrcfile\&quot;&quot; ;;
+    esac
+
+    $run $rm &quot;$libobj&quot; &quot;${libobj}T&quot;
+
+    # Create a libtool object file (analogous to a &quot;.la&quot; file),
+    # but don't create it if we're doing a dry run.
+    test -z &quot;$run&quot; &amp;&amp; cat &gt; ${libobj}T &lt;&lt;EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
+    # Only build a PIC object if we are building libtool libraries.
+    if test &quot;$build_libtool_libs&quot; = yes; then
+      # Without this assignment, base_compile gets emptied.
+      fbsd_hideous_sh_bug=$base_compile
+
+      if test &quot;$pic_mode&quot; != no; then
+        command=&quot;$base_compile $qsrcfile $pic_flag&quot;
+      else
+        # Don't build PIC code
+        command=&quot;$base_compile $qsrcfile&quot;
+      fi
+
+      if test ! -d &quot;${xdir}$objdir&quot;; then
+        $show &quot;$mkdir ${xdir}$objdir&quot;
+        $run $mkdir ${xdir}$objdir
+        status=$?
+        if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;${xdir}$objdir&quot;; then
+          exit $status
+        fi
+      fi
+
+      if test -z &quot;$output_obj&quot;; then
+        # Place PIC objects in $objdir
+        command=&quot;$command -o $lobj&quot;
+      fi
+
+      $run $rm &quot;$lobj&quot; &quot;$output_obj&quot;
+
+      $show &quot;$command&quot;
+      if $run eval &quot;$command&quot;; then :
+      else
+        test -n &quot;$output_obj&quot; &amp;&amp; $run $rm $removelist
+        exit $EXIT_FAILURE
+      fi
+
+      if test &quot;$need_locks&quot; = warn &amp;&amp;
+         test &quot;X`cat $lockfile 2&gt;/dev/null`&quot; != &quot;X$srcfile&quot;; then
+        $echo &quot;\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2&gt;/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler.&quot;
+
+        $run $rm $removelist
+        exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed, then go on to compile the next one
+      if test -n &quot;$output_obj&quot; &amp;&amp; test &quot;X$output_obj&quot; != &quot;X$lobj&quot;; then
+        $show &quot;$mv $output_obj $lobj&quot;
+        if $run $mv $output_obj $lobj; then :
+        else
+          error=$?
+          $run $rm $removelist
+          exit $error
+        fi
+      fi
+
+      # Append the name of the PIC object to the libtool object file.
+      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
+pic_object='$objdir/$objname'
+
+EOF
+
+      # Allow error messages only from the first compilation.
+      if test &quot;$suppress_opt&quot; = yes; then
+        suppress_output=' &gt;/dev/null 2&gt;&amp;1'
+      fi
+    else
+      # No PIC object so indicate it doesn't exist in the libtool
+      # object file.
+      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
+pic_object=none
+
+EOF
+    fi
+
+    # Only build a position-dependent object if we build old libraries.
+    if test &quot;$build_old_libs&quot; = yes; then
+      if test &quot;$pic_mode&quot; != yes; then
+        # Don't build PIC code
+        command=&quot;$base_compile $qsrcfile&quot;
+      else
+        command=&quot;$base_compile $qsrcfile $pic_flag&quot;
+      fi
+      if test &quot;$compiler_c_o&quot; = yes; then
+        command=&quot;$command -o $obj&quot;
+      fi
+
+      # Suppress compiler output if we already did a PIC compilation.
+      command=&quot;$command$suppress_output&quot;
+      $run $rm &quot;$obj&quot; &quot;$output_obj&quot;
+      $show &quot;$command&quot;
+      if $run eval &quot;$command&quot;; then :
+      else
+        $run $rm $removelist
+        exit $EXIT_FAILURE
+      fi
+
+      if test &quot;$need_locks&quot; = warn &amp;&amp;
+         test &quot;X`cat $lockfile 2&gt;/dev/null`&quot; != &quot;X$srcfile&quot;; then
+        $echo &quot;\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2&gt;/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler.&quot;
+
+        $run $rm $removelist
+        exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed
+      if test -n &quot;$output_obj&quot; &amp;&amp; test &quot;X$output_obj&quot; != &quot;X$obj&quot;; then
+        $show &quot;$mv $output_obj $obj&quot;
+        if $run $mv $output_obj $obj; then :
+        else
+          error=$?
+          $run $rm $removelist
+          exit $error
+        fi
+      fi
+
+      # Append the name of the non-PIC object the libtool object file.
+      # Only append if the libtool object file exists.
+      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+    else
+      # Append the name of the non-PIC object the libtool object file.
+      # Only append if the libtool object file exists.
+      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
+    fi
+
+    $run $mv &quot;${libobj}T&quot; &quot;${libobj}&quot;
+
+    # Unlock the critical section if it was locked
+    if test &quot;$need_locks&quot; != no; then
+      $run $rm &quot;$lockfile&quot;
+    fi
+
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool link mode
+  link | relink)
+    modename=&quot;$modename: link&quot;
+    case $host in
+    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+      # It is impossible to link a dll without this setting, and
+      # we shouldn't force the makefile maintainer to figure out
+      # which system we are compiling for in order to pass an extra
+      # flag for every libtool invocation.
+      # allow_undefined=no
+
+      # FIXME: Unfortunately, there are problems with the above when trying
+      # to make a dll which has undefined symbols, in which case not
+      # even a static library is built.  For now, we need to specify
+      # -no-undefined on the libtool link line when we can be certain
+      # that all symbols are satisfied, otherwise we get a static library.
+      allow_undefined=yes
+      ;;
+    *)
+      allow_undefined=yes
+      ;;
+    esac
+    libtool_args=&quot;$nonopt&quot;
+    base_compile=&quot;$nonopt $@&quot;
+    compile_command=&quot;$nonopt&quot;
+    finalize_command=&quot;$nonopt&quot;
+
+    compile_rpath=
+    finalize_rpath=
+    compile_shlibpath=
+    finalize_shlibpath=
+    convenience=
+    old_convenience=
+    deplibs=
+    old_deplibs=
+    compiler_flags=
+    linker_flags=
+    dllsearchpath=
+    lib_search_path=`pwd`
+    inst_prefix_dir=
+
+    avoid_version=no
+    dlfiles=
+    dlprefiles=
+    dlself=no
+    export_dynamic=no
+    export_symbols=
+    export_symbols_regex=
+    generated=
+    libobjs=
+    ltlibs=
+    module=no
+    no_install=no
+    objs=
+    non_pic_objects=
+    precious_files_regex=
+    prefer_static_libs=no
+    preload=no
+    prev=
+    prevarg=
+    release=
+    rpath=
+    xrpath=
+    perm_rpath=
+    temp_rpath=
+    thread_safe=no
+    vinfo=
+    vinfo_number=no
+
+    func_infer_tag $base_compile
+
+    # We need to know -static, to get the right output filenames.
+    for arg
+    do
+      case $arg in
+      -all-static | -static)
+        if test &quot;X$arg&quot; = &quot;X-all-static&quot;; then
+          if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+            $echo &quot;$modename: warning: complete static linking is impossible in this configuration&quot; 1&gt;&amp;2
+          fi
+          if test -n &quot;$link_static_flag&quot;; then
+            dlopen_self=$dlopen_self_static
+          fi
+        else
+          if test -z &quot;$pic_flag&quot; &amp;&amp; test -n &quot;$link_static_flag&quot;; then
+            dlopen_self=$dlopen_self_static
+          fi
+        fi
+        build_libtool_libs=no
+        build_old_libs=yes
+        prefer_static_libs=yes
+        break
+        ;
+      esac
+    done
+
+    # See if our shared archives depend on static archives.
+    test -n &quot;$old_archive_from_new_cmds&quot; &amp;&amp; build_old_libs=yes
+
+    # Go through the arguments, transforming them on the way.
+    while test &quot;$#&quot; -gt 0; do
+      arg=&quot;$1&quot;
+      shift
+      case $arg in
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+        qarg=\&quot;`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`\&quot; ### testsuite: skip nested quoting test
+        ;
+      *) qarg=$arg ;;
+      esac
+      libtool_args=&quot;$libtool_args $qarg&quot;
+
+      # If the previous option needs an argument, assign it.
+      if test -n &quot;$prev&quot;; then
+        case $prev in
+        output)
+          compile_command=&quot;$compile_command @OUTPUT@&quot;
+          finalize_command=&quot;$finalize_command @OUTPUT@&quot;
+          ;;
+        esac
+
+        case $prev in
+        dlfiles|dlprefiles)
+          if test &quot;$preload&quot; = no; then
+            # Add the symbol object into the linking commands.
+            compile_command=&quot;$compile_command @SYMFILE@&quot;
+            finalize_command=&quot;$finalize_command @SYMFILE@&quot;
+            preload=yes
+          fi
+          case $arg in
+          *.la | *.lo) ;;  # We handle these cases below.
+          force)
+            if test &quot;$dlself&quot; = no; then
+              dlself=needless
+              export_dynamic=yes
+            fi
+            prev=
+            continue
+            ;;
+          self)
+            if test &quot;$prev&quot; = dlprefiles; then
+              dlself=yes
+            elif test &quot;$prev&quot; = dlfiles &amp;&amp; test &quot;$dlopen_self&quot; != yes; then
+              dlself=yes
+            else
+              dlself=needless
+              export_dynamic=yes
+            fi
+            prev=
+            continue
+            ;;
+          *)
+            if test &quot;$prev&quot; = dlfiles; then
+              dlfiles=&quot;$dlfiles $arg&quot;
+            else
+              dlprefiles=&quot;$dlprefiles $arg&quot;
+            fi
+            prev=
+            continue
+            ;;
+          esac
+          ;;
+        expsyms)
+          export_symbols=&quot;$arg&quot;
+          if test ! -f &quot;$arg&quot;; then
+            $echo &quot;$modename: symbol file \`$arg' does not exist&quot;
+            exit $EXIT_FAILURE
+          fi
+          prev=
+          continue
+          ;;
+        expsyms_regex)
+          export_symbols_regex=&quot;$arg&quot;
+          prev=
+          continue
+          ;;
+        inst_prefix)
+          inst_prefix_dir=&quot;$arg&quot;
+          prev=
+          continue
+          ;;
+        precious_regex)
+          precious_files_regex=&quot;$arg&quot;
+          prev=
+          continue
+          ;;
+        release)
+          release=&quot;-$arg&quot;
+          prev=
+          continue
+          ;;
+        objectlist)
+          if test -f &quot;$arg&quot;; then
+            save_arg=$arg
+            moreargs=
+            for fil in `cat $save_arg`
+            do
+#              moreargs=&quot;$moreargs $fil&quot;
+              arg=$fil
+              # A libtool-controlled object.
+
+              # Check to see that this really is a libtool object.
+              if (${SED} -e '2q' $arg | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+                pic_object=
+                non_pic_object=
+
+                # Read the .lo file
+                # If there is no directory component, then add one.
+                case $arg in
+                */* | *\\*) . $arg ;;
+                *) . ./$arg ;;
+                esac
+
+                if test -z &quot;$pic_object&quot; || \
+                   test -z &quot;$non_pic_object&quot; ||
+                   test &quot;$pic_object&quot; = none &amp;&amp; \
+                   test &quot;$non_pic_object&quot; = none; then
+                  $echo &quot;$modename: cannot find name of object for \`$arg'&quot; 1&gt;&amp;2
+                  exit $EXIT_FAILURE
+                fi
+
+                # Extract subdirectory from the argument.
+                xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
+                if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
+                  xdir=
+                else
+                  xdir=&quot;$xdir/&quot;
+                fi
+
+                if test &quot;$pic_object&quot; != none; then
+                  # Prepend the subdirectory the object is found in.
+                  pic_object=&quot;$xdir$pic_object&quot;
+
+                  if test &quot;$prev&quot; = dlfiles; then
+                    if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test &quot;$dlopen_support&quot; = yes; then
+                      dlfiles=&quot;$dlfiles $pic_object&quot;
+                      prev=
+                      continue
+                    else
+                      # If libtool objects are unsupported, then we need to preload.
+                      prev=dlprefiles
+                    fi
+                  fi
+
+                  # CHECK ME:  I think I busted this.  -Ossama
+                  if test &quot;$prev&quot; = dlprefiles; then
+                    # Preload the old-style object.
+                    dlprefiles=&quot;$dlprefiles $pic_object&quot;
+                    prev=
+                  fi
+
+                  # A PIC object.
+                  libobjs=&quot;$libobjs $pic_object&quot;
+                  arg=&quot;$pic_object&quot;
+                fi
+
+                # Non-PIC object.
+                if test &quot;$non_pic_object&quot; != none; then
+                  # Prepend the subdirectory the object is found in.
+                  non_pic_object=&quot;$xdir$non_pic_object&quot;
+
+                  # A standard non-PIC object
+                  non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
+                  if test -z &quot;$pic_object&quot; || test &quot;$pic_object&quot; = none ; then
+                    arg=&quot;$non_pic_object&quot;
+                  fi
+                fi
+              else
+                # Only an error if not doing a dry-run.
+                if test -z &quot;$run&quot;; then
+                  $echo &quot;$modename: \`$arg' is not a valid libtool object&quot; 1&gt;&amp;2
+                  exit $EXIT_FAILURE
+                else
+                  # Dry-run case.
+
+                  # Extract subdirectory from the argument.
+                  xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
+                  if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
+                    xdir=
+                  else
+                    xdir=&quot;$xdir/&quot;
+                  fi
+
+                  pic_object=`$echo &quot;X${xdir}${objdir}/${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
+                  non_pic_object=`$echo &quot;X${xdir}${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
+                  libobjs=&quot;$libobjs $pic_object&quot;
+                  non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
+                fi
+              fi
+            done
+          else
+            $echo &quot;$modename: link input file \`$save_arg' does not exist&quot;
+            exit $EXIT_FAILURE
+          fi
+          arg=$save_arg
+          prev=
+          continue
+          ;;
+        rpath | xrpath)
+          # We need an absolute path.
+          case $arg in
+          [\\/]* | [A-Za-z]:[\\/]*) ;;
+          *)
+            $echo &quot;$modename: only absolute run-paths are allowed&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+            ;;
+          esac
+          if test &quot;$prev&quot; = rpath; then
+            case &quot;$rpath &quot; in
+            *&quot; $arg &quot;*) ;;
+            *) rpath=&quot;$rpath $arg&quot; ;;
+            esac
+          else
+            case &quot;$xrpath &quot; in
+            *&quot; $arg &quot;*) ;;
+            *) xrpath=&quot;$xrpath $arg&quot; ;;
+            esac
+          fi
+          prev=
+          continue
+          ;;
+        xcompiler)
+          compiler_flags=&quot;$compiler_flags $qarg&quot;
+          prev=
+          compile_command=&quot;$compile_command $qarg&quot;
+          finalize_command=&quot;$finalize_command $qarg&quot;
+          continue
+          ;;
+        xlinker)
+          linker_flags=&quot;$linker_flags $qarg&quot;
+          compiler_flags=&quot;$compiler_flags $wl$qarg&quot;
+          prev=
+          compile_command=&quot;$compile_command $wl$qarg&quot;
+          finalize_command=&quot;$finalize_command $wl$qarg&quot;
+          continue
+          ;;
+        xcclinker)
+          linker_flags=&quot;$linker_flags $qarg&quot;
+          compiler_flags=&quot;$compiler_flags $qarg&quot;
+          prev=
+          compile_command=&quot;$compile_command $qarg&quot;
+          finalize_command=&quot;$finalize_command $qarg&quot;
+          continue
+          ;;
+        shrext)
+            shrext_cmds=&quot;$arg&quot;
+          prev=
+          continue
+          ;;
+        darwin_framework)
+          compiler_flags=&quot;$compiler_flags $arg&quot;
+          compile_command=&quot;$compile_command $arg&quot;
+          finalize_command=&quot;$finalize_command $arg&quot;
+          prev=
+          continue
+          ;;
+        *)
+          eval &quot;$prev=\&quot;\$arg\&quot;&quot;
+          prev=
+          continue
+          ;;
+        esac
+      fi # test -n &quot;$prev&quot;
+
+      prevarg=&quot;$arg&quot;
+
+      case $arg in
+      -all-static)
+        if test -n &quot;$link_static_flag&quot;; then
+          compile_command=&quot;$compile_command $link_static_flag&quot;
+          finalize_command=&quot;$finalize_command $link_static_flag&quot;
+        fi
+        continue
+        ;
+
+      -allow-undefined)
+        # FIXME: remove this flag sometime in the future.
+        $echo &quot;$modename: \`-allow-undefined' is deprecated because it is the default&quot; 1&gt;&amp;2
+        continue
+        ;
+
+      -avoid-version)
+        avoid_version=yes
+        continue
+        ;
+
+      -dlopen)
+        prev=dlfiles
+        continue
+        ;
+
+      -dlpreopen)
+        prev=dlprefiles
+        continue
+        ;
+
+      -export-dynamic)
+        export_dynamic=yes
+        continue
+        ;
+
+      -export-symbols | -export-symbols-regex)
+        if test -n &quot;$export_symbols&quot; || test -n &quot;$export_symbols_regex&quot;; then
+          $echo &quot;$modename: more than one -exported-symbols argument is not allowed&quot;
+          exit $EXIT_FAILURE
+        fi
+        if test &quot;X$arg&quot; = &quot;X-export-symbols&quot;; then
+          prev=expsyms
+        else
+          prev=expsyms_regex
+        fi
+        continue
+        ;
+
+      -framework|-arch)
+        prev=darwin_framework
+        compiler_flags=&quot;$compiler_flags $arg&quot;
+        compile_command=&quot;$compile_command $arg&quot;
+        finalize_command=&quot;$finalize_command $arg&quot;
+        continue
+        ;;
+
+      -inst-prefix-dir)
+        prev=inst_prefix
+        continue
+        ;
+
+      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+      # so, if we see these flags be careful not to treat them like -L
+      -L[A-Z][A-Z]*:*)
+        case $with_gcc/$host in
+        no/*-*-irix* | /*-*-irix*)
+          compile_command=&quot;$compile_command $arg&quot;
+          finalize_command=&quot;$finalize_command $arg&quot;
+          ;;
+        esac
+        continue
+        ;
+
+      -L*)
+        dir=`$echo &quot;X$arg&quot; | $Xsed -e 's/^-L//'`
+        # We need an absolute path.
+        case $dir in
+        [\\/]* | [A-Za-z]:[\\/]*) ;;
+        *)
+          absdir=`cd &quot;$dir&quot; &amp;&amp; pwd`
+          if test -z &quot;$absdir&quot;; then
+            $echo &quot;$modename: cannot determine absolute directory name of \`$dir'&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+          dir=&quot;$absdir&quot;
+          ;;
+        esac
+        case &quot;$deplibs &quot; in
+        *&quot; -L$dir &quot;*) ;;
+        *)
+          deplibs=&quot;$deplibs -L$dir&quot;
+          lib_search_path=&quot;$lib_search_path $dir&quot;
+          ;;
+        esac
+        case $host in
+        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+          case :$dllsearchpath: in
+          *&quot;:$dir:&quot;*) ;;
+          *) dllsearchpath=&quot;$dllsearchpath:$dir&quot;;;
+          esac
+          ;;
+        esac
+        continue
+        ;
+
+      -l*)
+        if test &quot;X$arg&quot; = &quot;X-lc&quot; || test &quot;X$arg&quot; = &quot;X-lm&quot;; then
+          case $host in
+          *-*-cygwin* | *-*-pw32* | *-*-beos*)
+            # These systems don't actually have a C or math library (as such)
+            continue
+            ;;
+          *-*-mingw* | *-*-os2*)
+            # These systems don't actually have a C library (as such)
+            test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+            ;;
+          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+            # Do not include libc due to us having libc/libc_r.
+            test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+            ;;
+          *-*-rhapsody* | *-*-darwin1.[012])
+            # Rhapsody C and math libraries are in the System framework
+            deplibs=&quot;$deplibs -framework System&quot;
+            continue
+          esac
+        elif test &quot;X$arg&quot; = &quot;X-lc_r&quot;; then
+         case $host in
+         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+           # Do not include libc_r directly, use -pthread flag.
+           continue
+           ;;
+         esac
+        fi
+        deplibs=&quot;$deplibs $arg&quot;
+        continue
+        ;
+
+      # Tru64 UNIX uses -model [arg] to determine the layout of C++
+      # classes, name mangling, and exception handling.
+      -model)
+        compile_command=&quot;$compile_command $arg&quot;
+        compiler_flags=&quot;$compiler_flags $arg&quot;
+        finalize_command=&quot;$finalize_command $arg&quot;
+        prev=xcompiler
+        continue
+        ;
+
+     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+        compiler_flags=&quot;$compiler_flags $arg&quot;
+        compile_command=&quot;$compile_command $arg&quot;
+        finalize_command=&quot;$finalize_command $arg&quot;
+        continue
+        ;
+
+      -module)
+        module=yes
+        continue
+        ;
+
+      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+      # -r[0-9][0-9]* specifies the processor on the SGI compiler
+      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+      # +DA*, +DD* enable 64-bit mode on the HP compiler
+      # -q* pass through compiler args for the IBM compiler
+      # -m* pass through architecture-specific compiler args for GCC
+      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
+
+        # Unknown arguments in both finalize_command and compile_command need
+        # to be aesthetically quoted because they are evaled later.
+        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+        case $arg in
+        *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+          arg=&quot;\&quot;$arg\&quot;&quot;
+          ;;
+        esac
+        compile_command=&quot;$compile_command $arg&quot;
+        finalize_command=&quot;$finalize_command $arg&quot;
+        if test &quot;$with_gcc&quot; = &quot;yes&quot; ; then
+          compiler_flags=&quot;$compiler_flags $arg&quot;
+        fi
+        continue
+        ;;
+
+      -shrext)
+        prev=shrext
+        continue
+        ;
+
+      -no-fast-install)
+        fast_install=no
+        continue
+        ;
+
+      -no-install)
+        case $host in
+        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+          # The PATH hackery in wrapper scripts is required on Windows
+          # in order for the loader to find any dlls it needs.
+          $echo &quot;$modename: warning: \`-no-install' is ignored for $host&quot; 1&gt;&amp;2
+          $echo &quot;$modename: warning: assuming \`-no-fast-install' instead&quot; 1&gt;&amp;2
+          fast_install=no
+          ;;
+        *) no_install=yes ;;
+        esac
+        continue
+        ;
+
+      -no-undefined)
+        allow_undefined=no
+        continue
+        ;
+
+      -objectlist)
+        prev=objectlist
+        continue
+        ;
+
+      -o) prev=output ;;
+
+      -precious-files-regex)
+        prev=precious_regex
+        continue
+        ;
+
+      -release)
+        prev=release
+        continue
+        ;
+
+      -rpath)
+        prev=rpath
+        continue
+        ;
+
+      -R)
+        prev=xrpath
+        continue
+        ;
+
+      -R*)
+        dir=`$echo &quot;X$arg&quot; | $Xsed -e 's/^-R//'`
+        # We need an absolute path.
+        case $dir in
+        [\\/]* | [A-Za-z]:[\\/]*) ;;
+        *)
+          $echo &quot;$modename: only absolute run-paths are allowed&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+        case &quot;$xrpath &quot; in
+        *&quot; $dir &quot;*) ;;
+        *) xrpath=&quot;$xrpath $dir&quot; ;;
+        esac
+        continue
+        ;
+
+      -static)
+        # The effects of -static are defined in a previous loop.
+        # We used to do the same as -all-static on platforms that
+        # didn't have a PIC flag, but the assumption that the effects
+        # would be equivalent was wrong.  It would break on at least
+        # Digital Unix and AIX.
+        continue
+        ;
+
+      -thread-safe)
+        thread_safe=yes
+        continue
+        ;
+
+      -version-info)
+        prev=vinfo
+        continue
+        ;
+      -version-number)
+        prev=vinfo
+        vinfo_number=yes
+        continue
+        ;
+
+      -Wc,*)
+        args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot; -e 's/^-Wc,//'`
+        arg=
+        save_ifs=&quot;$IFS&quot;; IFS=','
+        for flag in $args; do
+          IFS=&quot;$save_ifs&quot;
+          case $flag in
+            *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+            flag=&quot;\&quot;$flag\&quot;&quot;
+            ;;
+          esac
+          arg=&quot;$arg $wl$flag&quot;
+          compiler_flags=&quot;$compiler_flags $flag&quot;
+        done
+        IFS=&quot;$save_ifs&quot;
+        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;s/^ //&quot;`
+        ;
+
+      -Wl,*)
+        args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot; -e 's/^-Wl,//'`
+        arg=
+        save_ifs=&quot;$IFS&quot;; IFS=','
+        for flag in $args; do
+          IFS=&quot;$save_ifs&quot;
+          case $flag in
+            *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+            flag=&quot;\&quot;$flag\&quot;&quot;
+            ;;
+          esac
+          arg=&quot;$arg $wl$flag&quot;
+          compiler_flags=&quot;$compiler_flags $wl$flag&quot;
+          linker_flags=&quot;$linker_flags $flag&quot;
+        done
+        IFS=&quot;$save_ifs&quot;
+        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;s/^ //&quot;`
+        ;
+
+      -Xcompiler)
+        prev=xcompiler
+        continue
+        ;
+
+      -Xlinker)
+        prev=xlinker
+        continue
+        ;
+
+      -XCClinker)
+        prev=xcclinker
+        continue
+        ;
+
+      # Some other compiler flag.
+      -* | +*)
+        # Unknown arguments in both finalize_command and compile_command need
+        # to be aesthetically quoted because they are evaled later.
+        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+        case $arg in
+        *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+          arg=&quot;\&quot;$arg\&quot;&quot;
+          ;;
+        esac
+        ;
+
+      *.$objext)
+        # A standard object.
+        objs=&quot;$objs $arg&quot;
+        ;
+
+      *.lo)
+        # A libtool-controlled object.
+
+        # Check to see that this really is a libtool object.
+        if (${SED} -e '2q' $arg | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+          pic_object=
+          non_pic_object=
+
+          # Read the .lo file
+          # If there is no directory component, then add one.
+          case $arg in
+          */* | *\\*) . $arg ;;
+          *) . ./$arg ;;
+          esac
+
+          if test -z &quot;$pic_object&quot; || \
+             test -z &quot;$non_pic_object&quot; ||
+             test &quot;$pic_object&quot; = none &amp;&amp; \
+             test &quot;$non_pic_object&quot; = none; then
+            $echo &quot;$modename: cannot find name of object for \`$arg'&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+
+          # Extract subdirectory from the argument.
+          xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
+          if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
+            xdir=
+           else
+            xdir=&quot;$xdir/&quot;
+          fi
+
+          if test &quot;$pic_object&quot; != none; then
+            # Prepend the subdirectory the object is found in.
+            pic_object=&quot;$xdir$pic_object&quot;
+
+            if test &quot;$prev&quot; = dlfiles; then
+              if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test &quot;$dlopen_support&quot; = yes; then
+                dlfiles=&quot;$dlfiles $pic_object&quot;
+                prev=
+                continue
+              else
+                # If libtool objects are unsupported, then we need to preload.
+                prev=dlprefiles
+              fi
+            fi
+
+            # CHECK ME:  I think I busted this.  -Ossama
+            if test &quot;$prev&quot; = dlprefiles; then
+              # Preload the old-style object.
+              dlprefiles=&quot;$dlprefiles $pic_object&quot;
+              prev=
+            fi
+
+            # A PIC object.
+            libobjs=&quot;$libobjs $pic_object&quot;
+            arg=&quot;$pic_object&quot;
+          fi
+
+          # Non-PIC object.
+          if test &quot;$non_pic_object&quot; != none; then
+            # Prepend the subdirectory the object is found in.
+            non_pic_object=&quot;$xdir$non_pic_object&quot;
+
+            # A standard non-PIC object
+            non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
+            if test -z &quot;$pic_object&quot; || test &quot;$pic_object&quot; = none ; then
+              arg=&quot;$non_pic_object&quot;
+            fi
+          fi
+        else
+          # Only an error if not doing a dry-run.
+          if test -z &quot;$run&quot;; then
+            $echo &quot;$modename: \`$arg' is not a valid libtool object&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          else
+            # Dry-run case.
+
+            # Extract subdirectory from the argument.
+            xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
+            if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
+              xdir=
+            else
+              xdir=&quot;$xdir/&quot;
+            fi
+
+            pic_object=`$echo &quot;X${xdir}${objdir}/${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
+            non_pic_object=`$echo &quot;X${xdir}${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
+            libobjs=&quot;$libobjs $pic_object&quot;
+            non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
+          fi
+        fi
+        ;
+
+      *.$libext)
+        # An archive.
+        deplibs=&quot;$deplibs $arg&quot;
+        old_deplibs=&quot;$old_deplibs $arg&quot;
+        continue
+        ;
+
+      *.la)
+        # A libtool-controlled library.
+
+        if test &quot;$prev&quot; = dlfiles; then
+          # This library was specified with -dlopen.
+          dlfiles=&quot;$dlfiles $arg&quot;
+          prev=
+        elif test &quot;$prev&quot; = dlprefiles; then
+          # The library was specified with -dlpreopen.
+          dlprefiles=&quot;$dlprefiles $arg&quot;
+          prev=
+        else
+          deplibs=&quot;$deplibs $arg&quot;
+        fi
+        continue
+        ;
+
+      # Some other compiler argument.
+      *)
+        # Unknown arguments in both finalize_command and compile_command need
+        # to be aesthetically quoted because they are evaled later.
+        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+        case $arg in
+        *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+          arg=&quot;\&quot;$arg\&quot;&quot;
+          ;;
+        esac
+        ;
+      esac # arg
+
+      # Now actually substitute the argument into the commands.
+      if test -n &quot;$arg&quot;; then
+        compile_command=&quot;$compile_command $arg&quot;
+        finalize_command=&quot;$finalize_command $arg&quot;
+      fi
+    done # argument parsing loop
+
+    if test -n &quot;$prev&quot;; then
+      $echo &quot;$modename: the \`$prevarg' option requires an argument&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    if test &quot;$export_dynamic&quot; = yes &amp;&amp; test -n &quot;$export_dynamic_flag_spec&quot;; then
+      eval arg=\&quot;$export_dynamic_flag_spec\&quot;
+      compile_command=&quot;$compile_command $arg&quot;
+      finalize_command=&quot;$finalize_command $arg&quot;
+    fi
+
+    oldlibs=
+    # calculate the name of the file, without its directory
+    outputname=`$echo &quot;X$output&quot; | $Xsed -e 's%^.*/%%'`
+    libobjs_save=&quot;$libobjs&quot;
+
+    if test -n &quot;$shlibpath_var&quot;; then
+      # get the directories listed in $shlibpath_var
+      eval shlib_search_path=\`\$echo \&quot;X\${$shlibpath_var}\&quot; \| \$Xsed -e \'s/:/ /g\'\`
+    else
+      shlib_search_path=
+    fi
+    eval sys_lib_search_path=\&quot;$sys_lib_search_path_spec\&quot;
+    eval sys_lib_dlsearch_path=\&quot;$sys_lib_dlsearch_path_spec\&quot;
+
+    output_objdir=`$echo &quot;X$output&quot; | $Xsed -e 's%/[^/]*$%%'`
+    if test &quot;X$output_objdir&quot; = &quot;X$output&quot;; then
+      output_objdir=&quot;$objdir&quot;
+    else
+      output_objdir=&quot;$output_objdir/$objdir&quot;
+    fi
+    # Create the object directory.
+    if test ! -d &quot;$output_objdir&quot;; then
+      $show &quot;$mkdir $output_objdir&quot;
+      $run $mkdir $output_objdir
+      status=$?
+      if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$output_objdir&quot;; then
+        exit $status
+      fi
+    fi
+
+    # Determine the type of output
+    case $output in
+    &quot;&quot;)
+      $echo &quot;$modename: you must specify an output file&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+      ;;
+    *.$libext) linkmode=oldlib ;;
+    *.lo | *.$objext) linkmode=obj ;;
+    *.la) linkmode=lib ;;
+    *) linkmode=prog ;; # Anything else should be a program.
+    esac
+
+    case $host in
+    *cygwin* | *mingw* | *pw32*)
+      # don't eliminate duplications in $postdeps and $predeps
+      duplicate_compiler_generated_deps=yes
+      ;;
+    *)
+      duplicate_compiler_generated_deps=$duplicate_deps
+      ;;
+    esac
+    specialdeplibs=
+
+    libs=
+    # Find all interdependent deplibs by searching for libraries
+    # that are linked more than once (e.g. -la -lb -la)
+    for deplib in $deplibs; do
+      if test &quot;X$duplicate_deps&quot; = &quot;Xyes&quot; ; then
+        case &quot;$libs &quot; in
+        *&quot; $deplib &quot;*) specialdeplibs=&quot;$specialdeplibs $deplib&quot; ;;
+        esac
+      fi
+      libs=&quot;$libs $deplib&quot;
+    done
+
+    if test &quot;$linkmode&quot; = lib; then
+      libs=&quot;$predeps $libs $compiler_lib_search_path $postdeps&quot;
+
+      # Compute libraries that are listed more than once in $predeps
+      # $postdeps and mark them as special (i.e., whose duplicates are
+      # not to be eliminated).
+      pre_post_deps=
+      if test &quot;X$duplicate_compiler_generated_deps&quot; = &quot;Xyes&quot; ; then
+        for pre_post_dep in $predeps $postdeps; do
+          case &quot;$pre_post_deps &quot; in
+          *&quot; $pre_post_dep &quot;*) specialdeplibs=&quot;$specialdeplibs $pre_post_deps&quot; ;;
+          esac
+          pre_post_deps=&quot;$pre_post_deps $pre_post_dep&quot;
+        done
+      fi
+      pre_post_deps=
+    fi
+
+    deplibs=
+    newdependency_libs=
+    newlib_search_path=
+    need_relink=no # whether we're linking any uninstalled libtool libraries
+    notinst_deplibs= # not-installed libtool libraries
+    notinst_path= # paths that contain not-installed libtool libraries
+    case $linkmode in
+    lib)
+        passes=&quot;conv link&quot;
+        for file in $dlfiles $dlprefiles; do
+          case $file in
+          *.la) ;;
+          *)
+            $echo &quot;$modename: libraries can \`-dlopen' only libtool libraries: $file&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+            ;;
+          esac
+        done
+        ;
+    prog)
+        compile_deplibs=
+        finalize_deplibs=
+        alldeplibs=no
+        newdlfiles=
+        newdlprefiles=
+        passes=&quot;conv scan dlopen dlpreopen link&quot;
+        ;
+    *)  passes=&quot;conv&quot;
+        ;
+    esac
+    for pass in $passes; do
+      if test &quot;$linkmode,$pass&quot; = &quot;lib,link&quot; ||
+         test &quot;$linkmode,$pass&quot; = &quot;prog,scan&quot;; then
+        libs=&quot;$deplibs&quot;
+        deplibs=
+      fi
+      if test &quot;$linkmode&quot; = prog; then
+        case $pass in
+        dlopen) libs=&quot;$dlfiles&quot; ;;
+        dlpreopen) libs=&quot;$dlprefiles&quot; ;;
+        link)
+          libs=&quot;$deplibs %DEPLIBS%&quot;
+          test &quot;X$link_all_deplibs&quot; != Xno &amp;&amp; libs=&quot;$libs $dependency_libs&quot;
+          ;;
+        esac
+      fi
+      if test &quot;$pass&quot; = dlopen; then
+        # Collect dlpreopened libraries
+        save_deplibs=&quot;$deplibs&quot;
+        deplibs=
+      fi
+      for deplib in $libs; do
+        lib=
+        found=no
+        case $deplib in
+        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+          if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
+            compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+            finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+          else
+            compiler_flags=&quot;$compiler_flags $deplib&quot;
+          fi
+          continue
+          ;;
+        -l*)
+          if test &quot;$linkmode&quot; != lib &amp;&amp; test &quot;$linkmode&quot; != prog; then
+            $echo &quot;$modename: warning: \`-l' is ignored for archives/objects&quot; 1&gt;&amp;2
+            continue
+          fi
+          name=`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-l//'`
+          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
+            for search_ext in .la $std_shrext .so .a; do
+              # Search the libtool library
+              lib=&quot;$searchdir/lib${name}${search_ext}&quot;
+              if test -f &quot;$lib&quot;; then
+                if test &quot;$search_ext&quot; = &quot;.la&quot;; then
+                  found=yes
+                else
+                  found=no
+                fi
+                break 2
+              fi
+            done
+          done
+          if test &quot;$found&quot; != yes; then
+            # deplib doesn't seem to be a libtool library
+            if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
+              compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+              finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+            else
+              deplibs=&quot;$deplib $deplibs&quot;
+              test &quot;$linkmode&quot; = lib &amp;&amp; newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+            fi
+            continue
+          else # deplib is a libtool library
+            # If $allow_libtool_libs_with_static_runtimes &amp;&amp; $deplib is a stdlib,
+            # We need to do some special things here, and not later.
+            if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+              case &quot; $predeps $postdeps &quot; in
+              *&quot; $deplib &quot;*)
+                if (${SED} -e '2q' $lib |
+                    grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+                  library_names=
+                  old_library=
+                  case $lib in
+                  */* | *\\*) . $lib ;;
+                  *) . ./$lib ;;
+                  esac
+                  for l in $old_library $library_names; do
+                    ll=&quot;$l&quot;
+                  done
+                  if test &quot;X$ll&quot; = &quot;X$old_library&quot; ; then # only static version available
+                    found=no
+                    ladir=`$echo &quot;X$lib&quot; | $Xsed -e 's%/[^/]*$%%'`
+                    test &quot;X$ladir&quot; = &quot;X$lib&quot; &amp;&amp; ladir=&quot;.&quot;
+                    lib=$ladir/$old_library
+                    if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
+                      compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+                      finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+                    else
+                      deplibs=&quot;$deplib $deplibs&quot;
+                      test &quot;$linkmode&quot; = lib &amp;&amp; newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+                    fi
+                    continue
+                  fi
+                fi
+                ;;
+              *) ;;
+              esac
+            fi
+          fi
+          ;; # -l
+        -L*)
+          case $linkmode in
+          lib)
+            deplibs=&quot;$deplib $deplibs&quot;
+            test &quot;$pass&quot; = conv &amp;&amp; continue
+            newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+            newlib_search_path=&quot;$newlib_search_path &quot;`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-L//'`
+            ;;
+          prog)
+            if test &quot;$pass&quot; = conv; then
+              deplibs=&quot;$deplib $deplibs&quot;
+              continue
+            fi
+            if test &quot;$pass&quot; = scan; then
+              deplibs=&quot;$deplib $deplibs&quot;
+            else
+              compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+              finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+            fi
+            newlib_search_path=&quot;$newlib_search_path &quot;`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-L//'`
+            ;;
+          *)
+            $echo &quot;$modename: warning: \`-L' is ignored for archives/objects&quot; 1&gt;&amp;2
+            ;;
+          esac # linkmode
+          continue
+          ;; # -L
+        -R*)
+          if test &quot;$pass&quot; = link; then
+            dir=`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-R//'`
+            # Make sure the xrpath contains only unique directories.
+            case &quot;$xrpath &quot; in
+            *&quot; $dir &quot;*) ;;
+            *) xrpath=&quot;$xrpath $dir&quot; ;;
+            esac
+          fi
+          deplibs=&quot;$deplib $deplibs&quot;
+          continue
+          ;;
+        *.la) lib=&quot;$deplib&quot; ;;
+        *.$libext)
+          if test &quot;$pass&quot; = conv; then
+            deplibs=&quot;$deplib $deplibs&quot;
+            continue
+          fi
+          case $linkmode in
+          lib)
+            valid_a_lib=no
+            case $deplibs_check_method in
+              match_pattern*)
+                set dummy $deplibs_check_method
+                match_pattern_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
+                if eval $echo \&quot;$deplib\&quot; 2&gt;/dev/null \
+                    | $SED 10q \
+                    | $EGREP &quot;$match_pattern_regex&quot; &gt; /dev/null; then
+                  valid_a_lib=yes
+                fi
+                ;
+              pass_all)
+                valid_a_lib=yes
+                ;
+            esac
+            if test &quot;$valid_a_lib&quot; != yes; then
+              $echo
+              $echo &quot;*** Warning: Trying to link with static lib archive $deplib.&quot;
+              $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+              $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+              $echo &quot;*** shared version of the library, which you do not appear to have&quot;
+              $echo &quot;*** because the file extensions .$libext of this argument makes me believe&quot;
+              $echo &quot;*** that it is just a static archive that I should not used here.&quot;
+            else
+              $echo
+              $echo &quot;*** Warning: Linking the shared library $output against the&quot;
+              $echo &quot;*** static library $deplib is not portable!&quot;
+              deplibs=&quot;$deplib $deplibs&quot;
+            fi
+            continue
+            ;;
+          prog)
+            if test &quot;$pass&quot; != link; then
+              deplibs=&quot;$deplib $deplibs&quot;
+            else
+              compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+              finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+            fi
+            continue
+            ;;
+          esac # linkmode
+          ;; # *.$libext
+        *.lo | *.$objext)
+          if test &quot;$pass&quot; = conv; then
+            deplibs=&quot;$deplib $deplibs&quot;
+          elif test &quot;$linkmode&quot; = prog; then
+            if test &quot;$pass&quot; = dlpreopen || test &quot;$dlopen_support&quot; != yes || test &quot;$build_libtool_libs&quot; = no; then
+              # If there is no dlopen support or we're linking statically,
+              # we need to preload.
+              newdlprefiles=&quot;$newdlprefiles $deplib&quot;
+              compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+              finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+            else
+              newdlfiles=&quot;$newdlfiles $deplib&quot;
+            fi
+          fi
+          continue
+          ;;
+        %DEPLIBS%)
+          alldeplibs=yes
+          continue
+          ;;
+        esac # case $deplib
+        if test &quot;$found&quot; = yes || test -f &quot;$lib&quot;; then :
+        else
+          $echo &quot;$modename: cannot find the library \`$lib'&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        # Check to see that this really is a libtool archive.
+        if (${SED} -e '2q' $lib | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+        else
+          $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        ladir=`$echo &quot;X$lib&quot; | $Xsed -e 's%/[^/]*$%%'`
+        test &quot;X$ladir&quot; = &quot;X$lib&quot; &amp;&amp; ladir=&quot;.&quot;
+
+        dlname=
+        dlopen=
+        dlpreopen=
+        libdir=
+        library_names=
+        old_library=
+        # If the library was installed with an old release of libtool,
+        # it will not redefine variables installed, or shouldnotlink
+        installed=yes
+        shouldnotlink=no
+        avoidtemprpath=
+
+
+        # Read the .la file
+        case $lib in
+        */* | *\\*) . $lib ;;
+        *) . ./$lib ;;
+        esac
+
+        if test &quot;$linkmode,$pass&quot; = &quot;lib,link&quot; ||
+           test &quot;$linkmode,$pass&quot; = &quot;prog,scan&quot; ||
+           { test &quot;$linkmode&quot; != prog &amp;&amp; test &quot;$linkmode&quot; != lib; }; then
+          test -n &quot;$dlopen&quot; &amp;&amp; dlfiles=&quot;$dlfiles $dlopen&quot;
+          test -n &quot;$dlpreopen&quot; &amp;&amp; dlprefiles=&quot;$dlprefiles $dlpreopen&quot;
+        fi
+
+        if test &quot;$pass&quot; = conv; then
+          # Only check for convenience libraries
+          deplibs=&quot;$lib $deplibs&quot;
+          if test -z &quot;$libdir&quot;; then
+            if test -z &quot;$old_library&quot;; then
+              $echo &quot;$modename: cannot find name of link library for \`$lib'&quot; 1&gt;&amp;2
+              exit $EXIT_FAILURE
+            fi
+            # It is a libtool convenience library, so add in its objects.
+            convenience=&quot;$convenience $ladir/$objdir/$old_library&quot;
+            old_convenience=&quot;$old_convenience $ladir/$objdir/$old_library&quot;
+            tmp_libs=
+            for deplib in $dependency_libs; do
+              deplibs=&quot;$deplib $deplibs&quot;
+              if test &quot;X$duplicate_deps&quot; = &quot;Xyes&quot; ; then
+                case &quot;$tmp_libs &quot; in
+                *&quot; $deplib &quot;*) specialdeplibs=&quot;$specialdeplibs $deplib&quot; ;;
+                esac
+              fi
+              tmp_libs=&quot;$tmp_libs $deplib&quot;
+            done
+          elif test &quot;$linkmode&quot; != prog &amp;&amp; test &quot;$linkmode&quot; != lib; then
+            $echo &quot;$modename: \`$lib' is not a convenience library&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+          continue
+        fi # $pass = conv
+
+
+        # Get the name of the library we link against.
+        linklib=
+        for l in $old_library $library_names; do
+          linklib=&quot;$l&quot;
+        done
+        if test -z &quot;$linklib&quot;; then
+          $echo &quot;$modename: cannot find name of link library for \`$lib'&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        # This library was specified with -dlopen.
+        if test &quot;$pass&quot; = dlopen; then
+          if test -z &quot;$libdir&quot;; then
+            $echo &quot;$modename: cannot -dlopen a convenience library: \`$lib'&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+          if test -z &quot;$dlname&quot; ||
+             test &quot;$dlopen_support&quot; != yes ||
+             test &quot;$build_libtool_libs&quot; = no; then
+            # If there is no dlname, no dlopen support or we're linking
+            # statically, we need to preload.  We also need to preload any
+            # dependent libraries so libltdl's deplib preloader doesn't
+            # bomb out in the load deplibs phase.
+            dlprefiles=&quot;$dlprefiles $lib $dependency_libs&quot;
+          else
+            newdlfiles=&quot;$newdlfiles $lib&quot;
+          fi
+          continue
+        fi # $pass = dlopen
+
+        # We need an absolute path.
+        case $ladir in
+        [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=&quot;$ladir&quot; ;;
+        *)
+          abs_ladir=`cd &quot;$ladir&quot; &amp;&amp; pwd`
+          if test -z &quot;$abs_ladir&quot;; then
+            $echo &quot;$modename: warning: cannot determine absolute directory name of \`$ladir'&quot; 1&gt;&amp;2
+            $echo &quot;$modename: passing it literally to the linker, although it might fail&quot; 1&gt;&amp;2
+            abs_ladir=&quot;$ladir&quot;
+          fi
+          ;;
+        esac
+        laname=`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%'`
+
+        # Find the relevant object directory and library name.
+        if test &quot;X$installed&quot; = Xyes; then
+          if test ! -f &quot;$libdir/$linklib&quot; &amp;&amp; test -f &quot;$abs_ladir/$linklib&quot;; then
+            $echo &quot;$modename: warning: library \`$lib' was moved.&quot; 1&gt;&amp;2
+            dir=&quot;$ladir&quot;
+            absdir=&quot;$abs_ladir&quot;
+            libdir=&quot;$abs_ladir&quot;
+          else
+            dir=&quot;$libdir&quot;
+            absdir=&quot;$libdir&quot;
+          fi
+          test &quot;X$hardcode_automatic&quot; = Xyes &amp;&amp; avoidtemprpath=yes
+        else
+          if test ! -f &quot;$ladir/$objdir/$linklib&quot; &amp;&amp; test -f &quot;$abs_ladir/$linklib&quot;; then
+            dir=&quot;$ladir&quot;
+            absdir=&quot;$abs_ladir&quot;
+            # Remove this search path later
+            notinst_path=&quot;$notinst_path $abs_ladir&quot;
+          else
+            dir=&quot;$ladir/$objdir&quot;
+            absdir=&quot;$abs_ladir/$objdir&quot;
+            # Remove this search path later
+            notinst_path=&quot;$notinst_path $abs_ladir&quot;
+          fi
+        fi # $installed = yes
+        name=`$echo &quot;X$laname&quot; | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+
+        # This library was specified with -dlpreopen.
+        if test &quot;$pass&quot; = dlpreopen; then
+          if test -z &quot;$libdir&quot;; then
+            $echo &quot;$modename: cannot -dlpreopen a convenience library: \`$lib'&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+          # Prefer using a static library (so that no silly _DYNAMIC symbols
+          # are required to link).
+          if test -n &quot;$old_library&quot;; then
+            newdlprefiles=&quot;$newdlprefiles $dir/$old_library&quot;
+          # Otherwise, use the dlname, so that lt_dlopen finds it.
+          elif test -n &quot;$dlname&quot;; then
+            newdlprefiles=&quot;$newdlprefiles $dir/$dlname&quot;
+          else
+            newdlprefiles=&quot;$newdlprefiles $dir/$linklib&quot;
+          fi
+        fi # $pass = dlpreopen
+
+        if test -z &quot;$libdir&quot;; then
+          # Link the convenience library
+          if test &quot;$linkmode&quot; = lib; then
+            deplibs=&quot;$dir/$old_library $deplibs&quot;
+          elif test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
+            compile_deplibs=&quot;$dir/$old_library $compile_deplibs&quot;
+            finalize_deplibs=&quot;$dir/$old_library $finalize_deplibs&quot;
+          else
+            deplibs=&quot;$lib $deplibs&quot; # used for prog,scan pass
+          fi
+          continue
+        fi
+
+
+        if test &quot;$linkmode&quot; = prog &amp;&amp; test &quot;$pass&quot; != link; then
+          newlib_search_path=&quot;$newlib_search_path $ladir&quot;
+          deplibs=&quot;$lib $deplibs&quot;
+
+          linkalldeplibs=no
+          if test &quot;$link_all_deplibs&quot; != no || test -z &quot;$library_names&quot; ||
+             test &quot;$build_libtool_libs&quot; = no; then
+            linkalldeplibs=yes
+          fi
+
+          tmp_libs=
+          for deplib in $dependency_libs; do
+            case $deplib in
+            -L*) newlib_search_path=&quot;$newlib_search_path &quot;`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
+            esac
+            # Need to link against all dependency_libs?
+            if test &quot;$linkalldeplibs&quot; = yes; then
+              deplibs=&quot;$deplib $deplibs&quot;
+            else
+              # Need to hardcode shared library paths
+              # or/and link against static libraries
+              newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+            fi
+            if test &quot;X$duplicate_deps&quot; = &quot;Xyes&quot; ; then
+              case &quot;$tmp_libs &quot; in
+              *&quot; $deplib &quot;*) specialdeplibs=&quot;$specialdeplibs $deplib&quot; ;;
+              esac
+            fi
+            tmp_libs=&quot;$tmp_libs $deplib&quot;
+          done # for deplib
+          continue
+        fi # $linkmode = prog...
+
+        if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
+          if test -n &quot;$library_names&quot; &amp;&amp;
+             { test &quot;$prefer_static_libs&quot; = no || test -z &quot;$old_library&quot;; }; then
+            # We need to hardcode the library path
+            if test -n &quot;$shlibpath_var&quot; &amp;&amp; test -z &quot;$avoidtemprpath&quot; ; then
+              # Make sure the rpath contains only unique directories.
+              case &quot;$temp_rpath &quot; in
+              *&quot; $dir &quot;*) ;;
+              *&quot; $absdir &quot;*) ;;
+              *) temp_rpath=&quot;$temp_rpath $absdir&quot; ;;
+              esac
+            fi
+
+            # Hardcode the library path.
+            # Skip directories that are in the system default run-time
+            # search path.
+            case &quot; $sys_lib_dlsearch_path &quot; in
+            *&quot; $absdir &quot;*) ;;
+            *)
+              case &quot;$compile_rpath &quot; in
+              *&quot; $absdir &quot;*) ;;
+              *) compile_rpath=&quot;$compile_rpath $absdir&quot;
+              esac
+              ;;
+            esac
+            case &quot; $sys_lib_dlsearch_path &quot; in
+            *&quot; $libdir &quot;*) ;;
+            *)
+              case &quot;$finalize_rpath &quot; in
+              *&quot; $libdir &quot;*) ;;
+              *) finalize_rpath=&quot;$finalize_rpath $libdir&quot;
+              esac
+              ;;
+            esac
+          fi # $linkmode,$pass = prog,link...
+
+          if test &quot;$alldeplibs&quot; = yes &amp;&amp;
+             { test &quot;$deplibs_check_method&quot; = pass_all ||
+               { test &quot;$build_libtool_libs&quot; = yes &amp;&amp;
+                 test -n &quot;$library_names&quot;; }; }; then
+            # We only need to search for static libraries
+            continue
+          fi
+        fi
+
+        link_static=no # Whether the deplib will be linked statically
+        if test -n &quot;$library_names&quot; &amp;&amp;
+           { test &quot;$prefer_static_libs&quot; = no || test -z &quot;$old_library&quot;; }; then
+          if test &quot;$installed&quot; = no; then
+            notinst_deplibs=&quot;$notinst_deplibs $lib&quot;
+            need_relink=yes
+          fi
+          # This is a shared library
+
+          # Warn about portability, can't link against -module's on
+          # some systems (darwin)
+          if test &quot;$shouldnotlink&quot; = yes &amp;&amp; test &quot;$pass&quot; = link ; then
+            $echo
+            if test &quot;$linkmode&quot; = prog; then
+              $echo &quot;*** Warning: Linking the executable $output against the loadable module&quot;
+            else
+              $echo &quot;*** Warning: Linking the shared library $output against the loadable module&quot;
+            fi
+            $echo &quot;*** $linklib is not portable!&quot;
+          fi
+          if test &quot;$linkmode&quot; = lib &amp;&amp;
+             test &quot;$hardcode_into_libs&quot; = yes; then
+            # Hardcode the library path.
+            # Skip directories that are in the system default run-time
+            # search path.
+            case &quot; $sys_lib_dlsearch_path &quot; in
+            *&quot; $absdir &quot;*) ;;
+            *)
+              case &quot;$compile_rpath &quot; in
+              *&quot; $absdir &quot;*) ;;
+              *) compile_rpath=&quot;$compile_rpath $absdir&quot;
+              esac
+              ;;
+            esac
+            case &quot; $sys_lib_dlsearch_path &quot; in
+            *&quot; $libdir &quot;*) ;;
+            *)
+              case &quot;$finalize_rpath &quot; in
+              *&quot; $libdir &quot;*) ;;
+              *) finalize_rpath=&quot;$finalize_rpath $libdir&quot;
+              esac
+              ;;
+            esac
+          fi
+
+          if test -n &quot;$old_archive_from_expsyms_cmds&quot;; then
+            # figure out the soname
+            set dummy $library_names
+            realname=&quot;$2&quot;
+            shift; shift
+            libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+            # use dlname if we got it. it's perfectly good, no?
+            if test -n &quot;$dlname&quot;; then
+              soname=&quot;$dlname&quot;
+            elif test -n &quot;$soname_spec&quot;; then
+              # bleh windows
+              case $host in
+              *cygwin* | mingw*)
+                major=`expr $current - $age`
+                versuffix=&quot;-$major&quot;
+                ;
+              esac
+              eval soname=\&quot;$soname_spec\&quot;
+            else
+              soname=&quot;$realname&quot;
+            fi
+
+            # Make a new name for the extract_expsyms_cmds to use
+            soroot=&quot;$soname&quot;
+            soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
+            newlib=&quot;libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a&quot;
+
+            # If the library has no export list, then create one now
+            if test -f &quot;$output_objdir/$soname-def&quot;; then :
+            else
+              $show &quot;extracting exported symbol list from \`$soname'&quot;
+              save_ifs=&quot;$IFS&quot;; IFS='~'
+              cmds=$extract_expsyms_cmds
+              for cmd in $cmds; do
+                IFS=&quot;$save_ifs&quot;
+                eval cmd=\&quot;$cmd\&quot;
+                $show &quot;$cmd&quot;
+                $run eval &quot;$cmd&quot; || exit $?
+              done
+              IFS=&quot;$save_ifs&quot;
+            fi
+
+            # Create $newlib
+            if test -f &quot;$output_objdir/$newlib&quot;; then :; else
+              $show &quot;generating import library for \`$soname'&quot;
+              save_ifs=&quot;$IFS&quot;; IFS='~'
+              cmds=$old_archive_from_expsyms_cmds
+              for cmd in $cmds; do
+                IFS=&quot;$save_ifs&quot;
+                eval cmd=\&quot;$cmd\&quot;
+                $show &quot;$cmd&quot;
+                $run eval &quot;$cmd&quot; || exit $?
+              done
+              IFS=&quot;$save_ifs&quot;
+            fi
+            # make sure the library variables are pointing to the new library
+            dir=$output_objdir
+            linklib=$newlib
+          fi # test -n &quot;$old_archive_from_expsyms_cmds&quot;
+
+          if test &quot;$linkmode&quot; = prog || test &quot;$mode&quot; != relink; then
+            add_shlibpath=
+            add_dir=
+            add=
+            lib_linked=yes
+            case $hardcode_action in
+            immediate | unsupported)
+              if test &quot;$hardcode_direct&quot; = no; then
+                add=&quot;$dir/$linklib&quot;
+                case $host in
+                  *-*-sco3.2v5* ) add_dir=&quot;-L$dir&quot; ;;
+                  *-*-darwin* )
+                    # if the lib is a module then we can not link against
+                    # it, someone is ignoring the new warnings I added
+                    if /usr/bin/file -L $add 2&gt; /dev/null | $EGREP &quot;bundle&quot; &gt;/dev/null ; then
+                      $echo &quot;** Warning, lib $linklib is a module, not a shared library&quot;
+                      if test -z &quot;$old_library&quot; ; then
+                        $echo
+                        $echo &quot;** And there doesn't seem to be a static archive available&quot;
+                        $echo &quot;** The link will probably fail, sorry&quot;
+                      else
+                        add=&quot;$dir/$old_library&quot;
+                      fi
+                    fi
+                esac
+              elif test &quot;$hardcode_minus_L&quot; = no; then
+                case $host in
+                *-*-sunos*) add_shlibpath=&quot;$dir&quot; ;;
+                esac
+                add_dir=&quot;-L$dir&quot;
+                add=&quot;-l$name&quot;
+              elif test &quot;$hardcode_shlibpath_var&quot; = no; then
+                add_shlibpath=&quot;$dir&quot;
+                add=&quot;-l$name&quot;
+              else
+                lib_linked=no
+              fi
+              ;;
+            relink)
+              if test &quot;$hardcode_direct&quot; = yes; then
+                add=&quot;$dir/$linklib&quot;
+              elif test &quot;$hardcode_minus_L&quot; = yes; then
+                add_dir=&quot;-L$dir&quot;
+                # Try looking first in the location we're being installed to.
+                if test -n &quot;$inst_prefix_dir&quot;; then
+                  case $libdir in
+                    [\\/]*)
+                      add_dir=&quot;$add_dir -L$inst_prefix_dir$libdir&quot;
+                      ;;
+                  esac
+                fi
+                add=&quot;-l$name&quot;
+              elif test &quot;$hardcode_shlibpath_var&quot; = yes; then
+                add_shlibpath=&quot;$dir&quot;
+                add=&quot;-l$name&quot;
+              else
+                lib_linked=no
+              fi
+              ;;
+            *) lib_linked=no ;;
+            esac
+
+            if test &quot;$lib_linked&quot; != yes; then
+              $echo &quot;$modename: configuration error: unsupported hardcode properties&quot;
+              exit $EXIT_FAILURE
+            fi
+
+            if test -n &quot;$add_shlibpath&quot;; then
+              case :$compile_shlibpath: in
+              *&quot;:$add_shlibpath:&quot;*) ;;
+              *) compile_shlibpath=&quot;$compile_shlibpath$add_shlibpath:&quot; ;;
+              esac
+            fi
+            if test &quot;$linkmode&quot; = prog; then
+              test -n &quot;$add_dir&quot; &amp;&amp; compile_deplibs=&quot;$add_dir $compile_deplibs&quot;
+              test -n &quot;$add&quot; &amp;&amp; compile_deplibs=&quot;$add $compile_deplibs&quot;
+            else
+              test -n &quot;$add_dir&quot; &amp;&amp; deplibs=&quot;$add_dir $deplibs&quot;
+              test -n &quot;$add&quot; &amp;&amp; deplibs=&quot;$add $deplibs&quot;
+              if test &quot;$hardcode_direct&quot; != yes &amp;&amp; \
+                 test &quot;$hardcode_minus_L&quot; != yes &amp;&amp; \
+                 test &quot;$hardcode_shlibpath_var&quot; = yes; then
+                case :$finalize_shlibpath: in
+                *&quot;:$libdir:&quot;*) ;;
+                *) finalize_shlibpath=&quot;$finalize_shlibpath$libdir:&quot; ;;
+                esac
+              fi
+            fi
+          fi
+
+          if test &quot;$linkmode&quot; = prog || test &quot;$mode&quot; = relink; then
+            add_shlibpath=
+            add_dir=
+            add=
+            # Finalize command for both is simple: just hardcode it.
+            if test &quot;$hardcode_direct&quot; = yes; then
+              add=&quot;$libdir/$linklib&quot;
+            elif test &quot;$hardcode_minus_L&quot; = yes; then
+              add_dir=&quot;-L$libdir&quot;
+              add=&quot;-l$name&quot;
+            elif test &quot;$hardcode_shlibpath_var&quot; = yes; then
+              case :$finalize_shlibpath: in
+              *&quot;:$libdir:&quot;*) ;;
+              *) finalize_shlibpath=&quot;$finalize_shlibpath$libdir:&quot; ;;
+              esac
+              add=&quot;-l$name&quot;
+            elif test &quot;$hardcode_automatic&quot; = yes; then
+              if test -n &quot;$inst_prefix_dir&quot; &amp;&amp;
+                 test -f &quot;$inst_prefix_dir$libdir/$linklib&quot; ; then
+                add=&quot;$inst_prefix_dir$libdir/$linklib&quot;
+              else
+                add=&quot;$libdir/$linklib&quot;
+              fi
+            else
+              # We cannot seem to hardcode it, guess we'll fake it.
+              add_dir=&quot;-L$libdir&quot;
+              # Try looking first in the location we're being installed to.
+              if test -n &quot;$inst_prefix_dir&quot;; then
+                case $libdir in
+                  [\\/]*)
+                    add_dir=&quot;$add_dir -L$inst_prefix_dir$libdir&quot;
+                    ;;
+                esac
+              fi
+              add=&quot;-l$name&quot;
+            fi
+
+            if test &quot;$linkmode&quot; = prog; then
+              test -n &quot;$add_dir&quot; &amp;&amp; finalize_deplibs=&quot;$add_dir $finalize_deplibs&quot;
+              test -n &quot;$add&quot; &amp;&amp; finalize_deplibs=&quot;$add $finalize_deplibs&quot;
+            else
+              test -n &quot;$add_dir&quot; &amp;&amp; deplibs=&quot;$add_dir $deplibs&quot;
+              test -n &quot;$add&quot; &amp;&amp; deplibs=&quot;$add $deplibs&quot;
+            fi
+          fi
+        elif test &quot;$linkmode&quot; = prog; then
+          # Here we assume that one of hardcode_direct or hardcode_minus_L
+          # is not unsupported.  This is valid on all known static and
+          # shared platforms.
+          if test &quot;$hardcode_direct&quot; != unsupported; then
+            test -n &quot;$old_library&quot; &amp;&amp; linklib=&quot;$old_library&quot;
+            compile_deplibs=&quot;$dir/$linklib $compile_deplibs&quot;
+            finalize_deplibs=&quot;$dir/$linklib $finalize_deplibs&quot;
+          else
+            compile_deplibs=&quot;-l$name -L$dir $compile_deplibs&quot;
+            finalize_deplibs=&quot;-l$name -L$dir $finalize_deplibs&quot;
+          fi
+        elif test &quot;$build_libtool_libs&quot; = yes; then
+          # Not a shared library
+          if test &quot;$deplibs_check_method&quot; != pass_all; then
+            # We're trying link a shared library against a static one
+            # but the system doesn't support it.
+
+            # Just print a warning and add the library to dependency_libs so
+            # that the program can be linked against the static library.
+            $echo
+            $echo &quot;*** Warning: This system can not link to static lib archive $lib.&quot;
+            $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+            $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+            $echo &quot;*** shared version of the library, which you do not appear to have.&quot;
+            if test &quot;$module&quot; = yes; then
+              $echo &quot;*** But as you try to build a module library, libtool will still create &quot;
+              $echo &quot;*** a static module, that should work as long as the dlopening application&quot;
+              $echo &quot;*** is linked with the -dlopen flag to resolve symbols at runtime.&quot;
+              if test -z &quot;$global_symbol_pipe&quot;; then
+                $echo
+                $echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
+                $echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
+                $echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
+                $echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
+              fi
+              if test &quot;$build_old_libs&quot; = no; then
+                build_libtool_libs=module
+                build_old_libs=yes
+              else
+                build_libtool_libs=no
+              fi
+            fi
+          else
+            deplibs=&quot;$dir/$old_library $deplibs&quot;
+            link_static=yes
+          fi
+        fi # link shared/static library?
+
+        if test &quot;$linkmode&quot; = lib; then
+          if test -n &quot;$dependency_libs&quot; &amp;&amp;
+             { test &quot;$hardcode_into_libs&quot; != yes ||
+               test &quot;$build_old_libs&quot; = yes ||
+               test &quot;$link_static&quot; = yes; }; then
+            # Extract -R from dependency_libs
+            temp_deplibs=
+            for libdir in $dependency_libs; do
+              case $libdir in
+              -R*) temp_xrpath=`$echo &quot;X$libdir&quot; | $Xsed -e 's/^-R//'`
+                   case &quot; $xrpath &quot; in
+                   *&quot; $temp_xrpath &quot;*) ;;
+                   *) xrpath=&quot;$xrpath $temp_xrpath&quot;;;
+                   esac;;
+              *) temp_deplibs=&quot;$temp_deplibs $libdir&quot;;;
+              esac
+            done
+            dependency_libs=&quot;$temp_deplibs&quot;
+          fi
+
+          newlib_search_path=&quot;$newlib_search_path $absdir&quot;
+          # Link against this library
+          test &quot;$link_static&quot; = no &amp;&amp; newdependency_libs=&quot;$abs_ladir/$laname $newdependency_libs&quot;
+          # ... and its dependency_libs
+          tmp_libs=
+          for deplib in $dependency_libs; do
+            newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+            if test &quot;X$duplicate_deps&quot; = &quot;Xyes&quot; ; then
+              case &quot;$tmp_libs &quot; in
+              *&quot; $deplib &quot;*) specialdeplibs=&quot;$specialdeplibs $deplib&quot; ;;
+              esac
+            fi
+            tmp_libs=&quot;$tmp_libs $deplib&quot;
+          done
+
+          if test &quot;$link_all_deplibs&quot; != no; then
+            # Add the search paths of all dependency libraries
+            for deplib in $dependency_libs; do
+              case $deplib in
+              -L*) path=&quot;$deplib&quot; ;;
+              *.la)
+                dir=`$echo &quot;X$deplib&quot; | $Xsed -e 's%/[^/]*$%%'`
+                test &quot;X$dir&quot; = &quot;X$deplib&quot; &amp;&amp; dir=&quot;.&quot;
+                # We need an absolute path.
+                case $dir in
+                [\\/]* | [A-Za-z]:[\\/]*) absdir=&quot;$dir&quot; ;;
+                *)
+                  absdir=`cd &quot;$dir&quot; &amp;&amp; pwd`
+                  if test -z &quot;$absdir&quot;; then
+                    $echo &quot;$modename: warning: cannot determine absolute directory name of \`$dir'&quot; 1&gt;&amp;2
+                    absdir=&quot;$dir&quot;
+                  fi
+                  ;;
+                esac
+                if grep &quot;^installed=no&quot; $deplib &gt; /dev/null; then
+                  path=&quot;$absdir/$objdir&quot;
+                else
+                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                  if test -z &quot;$libdir&quot;; then
+                    $echo &quot;$modename: \`$deplib' is not a valid libtool archive&quot; 1&gt;&amp;2
+                    exit $EXIT_FAILURE
+                  fi
+                  if test &quot;$absdir&quot; != &quot;$libdir&quot;; then
+                    $echo &quot;$modename: warning: \`$deplib' seems to be moved&quot; 1&gt;&amp;2
+                  fi
+                  path=&quot;$absdir&quot;
+                fi
+                depdepl=
+                case $host in
+                *-*-darwin*)
+                  # we do not want to link against static libs,
+                  # but need to link against shared
+                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+                  if test -n &quot;$deplibrary_names&quot; ; then
+                    for tmp in $deplibrary_names ; do
+                      depdepl=$tmp
+                    done
+                    if test -f &quot;$path/$depdepl&quot; ; then
+                      depdepl=&quot;$path/$depdepl&quot;
+                    fi
+                    # do not add paths which are already there
+                    case &quot; $newlib_search_path &quot; in
+                    *&quot; $path &quot;*) ;;
+                    *) newlib_search_path=&quot;$newlib_search_path $path&quot;;;
+                    esac
+                  fi
+                  path=&quot;&quot;
+                  ;;
+                *)
+                  path=&quot;-L$path&quot;
+                  ;;
+                esac
+                ;
+              -l*)
+                case $host in
+                *-*-darwin*)
+                  # Again, we only want to link against shared libraries
+                  eval tmp_libs=`$echo &quot;X$deplib&quot; | $Xsed -e &quot;s,^\-l,,&quot;`
+                  for tmp in $newlib_search_path ; do
+                    if test -f &quot;$tmp/lib$tmp_libs.dylib&quot; ; then
+                      eval depdepl=&quot;$tmp/lib$tmp_libs.dylib&quot;
+                      break
+                    fi
+                  done
+                  path=&quot;&quot;
+                  ;;
+                *) continue ;;
+                esac
+                ;
+              *) continue ;;
+              esac
+              case &quot; $deplibs &quot; in
+              *&quot; $path &quot;*) ;;
+              *) deplibs=&quot;$path $deplibs&quot; ;;
+              esac
+              case &quot; $deplibs &quot; in
+              *&quot; $depdepl &quot;*) ;;
+              *) deplibs=&quot;$depdepl $deplibs&quot; ;;
+              esac
+            done
+          fi # link_all_deplibs != no
+        fi # linkmode = lib
+      done # for deplib in $libs
+      dependency_libs=&quot;$newdependency_libs&quot;
+      if test &quot;$pass&quot; = dlpreopen; then
+        # Link the dlpreopened libraries before other libraries
+        for deplib in $save_deplibs; do
+          deplibs=&quot;$deplib $deplibs&quot;
+        done
+      fi
+      if test &quot;$pass&quot; != dlopen; then
+        if test &quot;$pass&quot; != conv; then
+          # Make sure lib_search_path contains only unique directories.
+          lib_search_path=
+          for dir in $newlib_search_path; do
+            case &quot;$lib_search_path &quot; in
+            *&quot; $dir &quot;*) ;;
+            *) lib_search_path=&quot;$lib_search_path $dir&quot; ;;
+            esac
+          done
+          newlib_search_path=
+        fi
+
+        if test &quot;$linkmode,$pass&quot; != &quot;prog,link&quot;; then
+          vars=&quot;deplibs&quot;
+        else
+          vars=&quot;compile_deplibs finalize_deplibs&quot;
+        fi
+        for var in $vars dependency_libs; do
+          # Add libraries to $var in reverse order
+          eval tmp_libs=\&quot;\$$var\&quot;
+          new_libs=
+          for deplib in $tmp_libs; do
+            # FIXME: Pedantically, this is the right thing to do, so
+            #        that some nasty dependency loop isn't accidentally
+            #        broken:
+            #new_libs=&quot;$deplib $new_libs&quot;
+            # Pragmatically, this seems to cause very few problems in
+            # practice:
+            case $deplib in
+            -L*) new_libs=&quot;$deplib $new_libs&quot; ;;
+            -R*) ;;
+            *)
+              # And here is the reason: when a library appears more
+              # than once as an explicit dependence of a library, or
+              # is implicitly linked in more than once by the
+              # compiler, it is considered special, and multiple
+              # occurrences thereof are not removed.  Compare this
+              # with having the same library being listed as a
+              # dependency of multiple other libraries: in this case,
+              # we know (pedantically, we assume) the library does not
+              # need to be listed more than once, so we keep only the
+              # last copy.  This is not always right, but it is rare
+              # enough that we require users that really mean to play
+              # such unportable linking tricks to link the library
+              # using -Wl,-lname, so that libtool does not consider it
+              # for duplicate removal.
+              case &quot; $specialdeplibs &quot; in
+              *&quot; $deplib &quot;*) new_libs=&quot;$deplib $new_libs&quot; ;;
+              *)
+                case &quot; $new_libs &quot; in
+                *&quot; $deplib &quot;*) ;;
+                *) new_libs=&quot;$deplib $new_libs&quot; ;;
+                esac
+                ;
+              esac
+              ;;
+            esac
+          done
+          tmp_libs=
+          for deplib in $new_libs; do
+            case $deplib in
+            -L*)
+              case &quot; $tmp_libs &quot; in
+              *&quot; $deplib &quot;*) ;;
+              *) tmp_libs=&quot;$tmp_libs $deplib&quot; ;;
+              esac
+              ;;
+            *) tmp_libs=&quot;$tmp_libs $deplib&quot; ;;
+            esac
+          done
+          eval $var=\&quot;$tmp_libs\&quot;
+        done # for var
+      fi
+      # Last step: remove runtime libs from dependency_libs
+      # (they stay in deplibs)
+      tmp_libs=
+      for i in $dependency_libs ; do
+        case &quot; $predeps $postdeps $compiler_lib_search_path &quot; in
+        *&quot; $i &quot;*)
+          i=&quot;&quot;
+          ;;
+        esac
+        if test -n &quot;$i&quot; ; then
+          tmp_libs=&quot;$tmp_libs $i&quot;
+        fi
+      done
+      dependency_libs=$tmp_libs
+    done # for pass
+    if test &quot;$linkmode&quot; = prog; then
+      dlfiles=&quot;$newdlfiles&quot;
+      dlprefiles=&quot;$newdlprefiles&quot;
+    fi
+
+    case $linkmode in
+    oldlib)
+      if test -n &quot;$deplibs&quot;; then
+        $echo &quot;$modename: warning: \`-l' and \`-L' are ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$dlfiles$dlprefiles&quot; || test &quot;$dlself&quot; != no; then
+        $echo &quot;$modename: warning: \`-dlopen' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$rpath&quot;; then
+        $echo &quot;$modename: warning: \`-rpath' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$xrpath&quot;; then
+        $echo &quot;$modename: warning: \`-R' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$vinfo&quot;; then
+        $echo &quot;$modename: warning: \`-version-info/-version-number' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$release&quot;; then
+        $echo &quot;$modename: warning: \`-release' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$export_symbols&quot; || test -n &quot;$export_symbols_regex&quot;; then
+        $echo &quot;$modename: warning: \`-export-symbols' is ignored for archives&quot; 1&gt;&amp;2
+      fi
+
+      # Now set the variables for building old libraries.
+      build_libtool_libs=no
+      oldlibs=&quot;$output&quot;
+      objs=&quot;$objs$old_deplibs&quot;
+      ;;
+
+    lib)
+      # Make sure we only generate libraries of the form `libNAME.la'.
+      case $outputname in
+      lib*)
+        name=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+        eval shared_ext=\&quot;$shrext_cmds\&quot;
+        eval libname=\&quot;$libname_spec\&quot;
+        ;
+      *)
+        if test &quot;$module&quot; = no; then
+          $echo &quot;$modename: libtool library \`$output' must begin with \`lib'&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+        if test &quot;$need_lib_prefix&quot; != no; then
+          # Add the &quot;lib&quot; prefix for modules if required
+          name=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//'`
+          eval shared_ext=\&quot;$shrext_cmds\&quot;
+          eval libname=\&quot;$libname_spec\&quot;
+        else
+          libname=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//'`
+        fi
+        ;
+      esac
+
+      if test -n &quot;$objs&quot;; then
+        if test &quot;$deplibs_check_method&quot; != pass_all; then
+          $echo &quot;$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs&quot; 2&gt;&amp;1
+          exit $EXIT_FAILURE
+        else
+          $echo
+          $echo &quot;*** Warning: Linking the shared library $output against the non-libtool&quot;
+          $echo &quot;*** objects $objs is not portable!&quot;
+          libobjs=&quot;$libobjs $objs&quot;
+        fi
+      fi
+
+      if test &quot;$dlself&quot; != no; then
+        $echo &quot;$modename: warning: \`-dlopen self' is ignored for libtool libraries&quot; 1&gt;&amp;2
+      fi
+
+      set dummy $rpath
+      if test &quot;$#&quot; -gt 2; then
+        $echo &quot;$modename: warning: ignoring multiple \`-rpath's for a libtool library&quot; 1&gt;&amp;2
+      fi
+      install_libdir=&quot;$2&quot;
+
+      oldlibs=
+      if test -z &quot;$rpath&quot;; then
+        if test &quot;$build_libtool_libs&quot; = yes; then
+          # Building a libtool convenience library.
+          # Some compilers have problems with a `.al' extension so
+          # convenience libraries should have the same extension an
+          # archive normally would.
+          oldlibs=&quot;$output_objdir/$libname.$libext $oldlibs&quot;
+          build_libtool_libs=convenience
+          build_old_libs=yes
+        fi
+
+        if test -n &quot;$vinfo&quot;; then
+          $echo &quot;$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries&quot; 1&gt;&amp;2
+        fi
+
+        if test -n &quot;$release&quot;; then
+          $echo &quot;$modename: warning: \`-release' is ignored for convenience libraries&quot; 1&gt;&amp;2
+        fi
+      else
+
+        # Parse the version information argument.
+        save_ifs=&quot;$IFS&quot;; IFS=':'
+        set dummy $vinfo 0 0 0
+        IFS=&quot;$save_ifs&quot;
+
+        if test -n &quot;$8&quot;; then
+          $echo &quot;$modename: too many parameters to \`-version-info'&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        # convert absolute version numbers to libtool ages
+        # this retains compatibility with .la files and attempts
+        # to make the code below a bit more comprehensible
+
+        case $vinfo_number in
+        yes)
+          number_major=&quot;$2&quot;
+          number_minor=&quot;$3&quot;
+          number_revision=&quot;$4&quot;
+          #
+          # There are really only two kinds -- those that
+          # use the current revision as the major version
+          # and those that subtract age and use age as
+          # a minor version.  But, then there is irix
+          # which has an extra 1 added just for fun
+          #
+          case $version_type in
+          darwin|linux|osf|windows)
+            current=`expr $number_major + $number_minor`
+            age=&quot;$number_minor&quot;
+            revision=&quot;$number_revision&quot;
+            ;;
+          freebsd-aout|freebsd-elf|sunos)
+            current=&quot;$number_major&quot;
+            revision=&quot;$number_minor&quot;
+            age=&quot;0&quot;
+            ;;
+          irix|nonstopux)
+            current=`expr $number_major + $number_minor - 1`
+            age=&quot;$number_minor&quot;
+            revision=&quot;$number_minor&quot;
+            ;;
+          *)
+            $echo &quot;$modename: unknown library version type \`$version_type'&quot; 1&gt;&amp;2
+            $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+            ;;
+          esac
+          ;;
+        no)
+          current=&quot;$2&quot;
+          revision=&quot;$3&quot;
+          age=&quot;$4&quot;
+          ;;
+        esac
+
+        # Check that each of the things are valid numbers.
+        case $current in
+        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+        *)
+          $echo &quot;$modename: CURRENT \`$current' must be a nonnegative integer&quot; 1&gt;&amp;2
+          $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+
+        case $revision in
+        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+        *)
+          $echo &quot;$modename: REVISION \`$revision' must be a nonnegative integer&quot; 1&gt;&amp;2
+          $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+
+        case $age in
+        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+        *)
+          $echo &quot;$modename: AGE \`$age' must be a nonnegative integer&quot; 1&gt;&amp;2
+          $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+
+        if test &quot;$age&quot; -gt &quot;$current&quot;; then
+          $echo &quot;$modename: AGE \`$age' is greater than the current interface number \`$current'&quot; 1&gt;&amp;2
+          $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        # Calculate the version variables.
+        major=
+        versuffix=
+        verstring=
+        case $version_type in
+        none) ;;
+
+        darwin)
+          # Like Linux, but with the current version available in
+          # verstring for coding it into the library header
+          major=.`expr $current - $age`
+          versuffix=&quot;$major.$age.$revision&quot;
+          # Darwin ld doesn't like 0 for these options...
+          minor_current=`expr $current + 1`
+          verstring=&quot;${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision&quot;
+          ;;
+
+        freebsd-aout)
+          major=&quot;.$current&quot;
+          versuffix=&quot;.$current.$revision&quot;;
+          ;;
+
+        freebsd-elf)
+          major=&quot;.$current&quot;
+          versuffix=&quot;.$current&quot;;
+          ;;
+
+        irix | nonstopux)
+          major=`expr $current - $age + 1`
+
+          case $version_type in
+            nonstopux) verstring_prefix=nonstopux ;;
+            *)         verstring_prefix=sgi ;;
+          esac
+          verstring=&quot;$verstring_prefix$major.$revision&quot;
+
+          # Add in all the interfaces that we are compatible with.
+          loop=$revision
+          while test &quot;$loop&quot; -ne 0; do
+            iface=`expr $revision - $loop`
+            loop=`expr $loop - 1`
+            verstring=&quot;$verstring_prefix$major.$iface:$verstring&quot;
+          done
+
+          # Before this point, $major must not contain `.'.
+          major=.$major
+          versuffix=&quot;$major.$revision&quot;
+          ;;
+
+        linux)
+          major=.`expr $current - $age`
+          versuffix=&quot;$major.$age.$revision&quot;
+          ;;
+
+        osf)
+          major=.`expr $current - $age`
+          versuffix=&quot;.$current.$age.$revision&quot;
+          verstring=&quot;$current.$age.$revision&quot;
+
+          # Add in all the interfaces that we are compatible with.
+          loop=$age
+          while test &quot;$loop&quot; -ne 0; do
+            iface=`expr $current - $loop`
+            loop=`expr $loop - 1`
+            verstring=&quot;$verstring:${iface}.0&quot;
+          done
+
+          # Make executables depend on our current version.
+          verstring=&quot;$verstring:${current}.0&quot;
+          ;;
+
+        sunos)
+          major=&quot;.$current&quot;
+          versuffix=&quot;.$current.$revision&quot;
+          ;;
+
+        windows)
+          # Use '-' rather than '.', since we only want one
+          # extension on DOS 8.3 filesystems.
+          major=`expr $current - $age`
+          versuffix=&quot;-$major&quot;
+          ;;
+
+        *)
+          $echo &quot;$modename: unknown library version type \`$version_type'&quot; 1&gt;&amp;2
+          $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+
+        # Clear the version info if we defaulted, and they specified a release.
+        if test -z &quot;$vinfo&quot; &amp;&amp; test -n &quot;$release&quot;; then
+          major=
+          case $version_type in
+          darwin)
+            # we can't check for &quot;0.0&quot; in archive_cmds due to quoting
+            # problems, so we reset it completely
+            verstring=
+            ;;
+          *)
+            verstring=&quot;0.0&quot;
+            ;;
+          esac
+          if test &quot;$need_version&quot; = no; then
+            versuffix=
+          else
+            versuffix=&quot;.0.0&quot;
+          fi
+        fi
+
+        # Remove version info from name if versioning should be avoided
+        if test &quot;$avoid_version&quot; = yes &amp;&amp; test &quot;$need_version&quot; = no; then
+          major=
+          versuffix=
+          verstring=&quot;&quot;
+        fi
+
+        # Check to see if the archive will have undefined symbols.
+        if test &quot;$allow_undefined&quot; = yes; then
+          if test &quot;$allow_undefined_flag&quot; = unsupported; then
+            $echo &quot;$modename: warning: undefined symbols not allowed in $host shared libraries&quot; 1&gt;&amp;2
+            build_libtool_libs=no
+            build_old_libs=yes
+          fi
+        else
+          # Don't allow undefined symbols.
+          allow_undefined_flag=&quot;$no_undefined_flag&quot;
+        fi
+      fi
+
+      if test &quot;$mode&quot; != relink; then
+        # Remove our outputs, but don't remove object files since they
+        # may have been created when compiling PIC objects.
+        removelist=
+        tempremovelist=`$echo &quot;$output_objdir/*&quot;`
+        for p in $tempremovelist; do
+          case $p in
+            *.$objext)
+               ;;
+            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+               if test &quot;X$precious_files_regex&quot; != &quot;X&quot;; then
+                 if echo $p | $EGREP -e &quot;$precious_files_regex&quot; &gt;/dev/null 2&gt;&amp;1
+                 then
+                   continue
+                 fi
+               fi
+               removelist=&quot;$removelist $p&quot;
+               ;;
+            *) ;;
+          esac
+        done
+        if test -n &quot;$removelist&quot;; then
+          $show &quot;${rm}r $removelist&quot;
+          $run ${rm}r $removelist
+        fi
+      fi
+
+      # Now set the variables for building old libraries.
+      if test &quot;$build_old_libs&quot; = yes &amp;&amp; test &quot;$build_libtool_libs&quot; != convenience ; then
+        oldlibs=&quot;$oldlibs $output_objdir/$libname.$libext&quot;
+
+        # Transform .lo files to .o files.
+        oldobjs=&quot;$objs &quot;`$echo &quot;X$libobjs&quot; | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e &quot;$lo2o&quot; | $NL2SP`
+      fi
+
+      # Eliminate all temporary directories.
+      for path in $notinst_path; do
+        lib_search_path=`$echo &quot;$lib_search_path &quot; | ${SED} -e 's% $path % %g'`
+        deplibs=`$echo &quot;$deplibs &quot; | ${SED} -e 's% -L$path % %g'`
+        dependency_libs=`$echo &quot;$dependency_libs &quot; | ${SED} -e 's% -L$path % %g'`
+      done
+
+      if test -n &quot;$xrpath&quot;; then
+        # If the user specified any rpath flags, then add them.
+        temp_xrpath=
+        for libdir in $xrpath; do
+          temp_xrpath=&quot;$temp_xrpath -R$libdir&quot;
+          case &quot;$finalize_rpath &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) finalize_rpath=&quot;$finalize_rpath $libdir&quot; ;;
+          esac
+        done
+        if test &quot;$hardcode_into_libs&quot; != yes || test &quot;$build_old_libs&quot; = yes; then
+          dependency_libs=&quot;$temp_xrpath $dependency_libs&quot;
+        fi
+      fi
+
+      # Make sure dlfiles contains only unique files that won't be dlpreopened
+      old_dlfiles=&quot;$dlfiles&quot;
+      dlfiles=
+      for lib in $old_dlfiles; do
+        case &quot; $dlprefiles $dlfiles &quot; in
+        *&quot; $lib &quot;*) ;;
+        *) dlfiles=&quot;$dlfiles $lib&quot; ;;
+        esac
+      done
+
+      # Make sure dlprefiles contains only unique files
+      old_dlprefiles=&quot;$dlprefiles&quot;
+      dlprefiles=
+      for lib in $old_dlprefiles; do
+        case &quot;$dlprefiles &quot; in
+        *&quot; $lib &quot;*) ;;
+        *) dlprefiles=&quot;$dlprefiles $lib&quot; ;;
+        esac
+      done
+
+      if test &quot;$build_libtool_libs&quot; = yes; then
+        if test -n &quot;$rpath&quot;; then
+          case $host in
+          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
+            # these systems don't actually have a c library (as such)!
+            ;;
+          *-*-rhapsody* | *-*-darwin1.[012])
+            # Rhapsody C library is in the System framework
+            deplibs=&quot;$deplibs -framework System&quot;
+            ;;
+          *-*-netbsd*)
+            # Don't link with libc until the a.out ld.so is fixed.
+            ;;
+          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+            # Do not include libc due to us having libc/libc_r.
+            test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+            ;;
+           *)
+            # Add libc to deplibs on all other systems if necessary.
+            if test &quot;$build_libtool_need_lc&quot; = &quot;yes&quot;; then
+              deplibs=&quot;$deplibs -lc&quot;
+            fi
+            ;;
+          esac
+        fi
+
+        # Transform deplibs into only deplibs that can be linked in shared.
+        name_save=$name
+        libname_save=$libname
+        release_save=$release
+        versuffix_save=$versuffix
+        major_save=$major
+        # I'm not sure if I'm treating the release correctly.  I think
+        # release should show up in the -l (ie -lgmp5) so we don't want to
+        # add it in twice.  Is that correct?
+        release=&quot;&quot;
+        versuffix=&quot;&quot;
+        major=&quot;&quot;
+        newdeplibs=
+        droppeddeps=no
+        case $deplibs_check_method in
+        pass_all)
+          # Don't check for shared/static.  Everything works.
+          # This might be a little naive.  We might want to check
+          # whether the library exists or not.  But this is on
+          # osf3 &amp; osf4 and I'm not really sure... Just
+          # implementing what was already the behavior.
+          newdeplibs=$deplibs
+          ;;
+        test_compile)
+          # This code stresses the &quot;libraries are programs&quot; paradigm to its
+          # limits. Maybe even breaks it.  We compile a program, linking it
+          # against the deplibs as a proxy for the library.  Then we can check
+          # whether they linked in statically or dynamically with ldd.
+          $rm conftest.c
+          cat &gt; conftest.c &lt;&lt;EOF
+          int main() { return 0; }
+EOF
+          $rm conftest
+          $LTCC -o conftest conftest.c $deplibs
+          if test &quot;$?&quot; -eq 0 ; then
+            ldd_output=`ldd conftest`
+            for i in $deplibs; do
+              name=`expr $i : '-l\(.*\)'`
+              # If $name is empty we are operating on a -L argument.
+              if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test &quot;$name&quot; -ne &quot;0&quot;; then
+                if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+                  case &quot; $predeps $postdeps &quot; in
+                  *&quot; $i &quot;*)
+                    newdeplibs=&quot;$newdeplibs $i&quot;
+                    i=&quot;&quot;
+                    ;;
+                  esac
+                fi
+                if test -n &quot;$i&quot; ; then
+                  libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+                  deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
+                  set dummy $deplib_matches
+                  deplib_match=$2
+                  if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
+                    newdeplibs=&quot;$newdeplibs $i&quot;
+                  else
+                    droppeddeps=yes
+                    $echo
+                    $echo &quot;*** Warning: dynamic linker does not accept needed library $i.&quot;
+                    $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+                    $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+                    $echo &quot;*** shared version of the library, which I believe you do not have&quot;
+                    $echo &quot;*** because a test_compile did reveal that the linker did not use it for&quot;
+                    $echo &quot;*** its dynamic dependency list that programs get resolved with at runtime.&quot;
+                  fi
+                fi
+              else
+                newdeplibs=&quot;$newdeplibs $i&quot;
+              fi
+            done
+          else
+            # Error occurred in the first compile.  Let's try to salvage
+            # the situation: Compile a separate program for each library.
+            for i in $deplibs; do
+              name=`expr $i : '-l\(.*\)'`
+              # If $name is empty we are operating on a -L argument.
+              if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+                $rm conftest
+                $LTCC -o conftest conftest.c $i
+                # Did it work?
+                if test &quot;$?&quot; -eq 0 ; then
+                  ldd_output=`ldd conftest`
+                  if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+                    case &quot; $predeps $postdeps &quot; in
+                    *&quot; $i &quot;*)
+                      newdeplibs=&quot;$newdeplibs $i&quot;
+                      i=&quot;&quot;
+                      ;;
+                    esac
+                  fi
+                  if test -n &quot;$i&quot; ; then
+                    libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+                    deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
+                    set dummy $deplib_matches
+                    deplib_match=$2
+                    if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
+                      newdeplibs=&quot;$newdeplibs $i&quot;
+                    else
+                      droppeddeps=yes
+                      $echo
+                      $echo &quot;*** Warning: dynamic linker does not accept needed library $i.&quot;
+                      $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+                      $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+                      $echo &quot;*** shared version of the library, which you do not appear to have&quot;
+                      $echo &quot;*** because a test_compile did reveal that the linker did not use this one&quot;
+                      $echo &quot;*** as a dynamic dependency that programs can get resolved with at runtime.&quot;
+                    fi
+                  fi
+                else
+                  droppeddeps=yes
+                  $echo
+                  $echo &quot;*** Warning!  Library $i is needed by this library but I was not able to&quot;
+                  $echo &quot;***  make it link in!  You will probably need to install it or some&quot;
+                  $echo &quot;*** library that it depends on before this library will be fully&quot;
+                  $echo &quot;*** functional.  Installing it before continuing would be even better.&quot;
+                fi
+              else
+                newdeplibs=&quot;$newdeplibs $i&quot;
+              fi
+            done
+          fi
+          ;;
+        file_magic*)
+          set dummy $deplibs_check_method
+          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
+          for a_deplib in $deplibs; do
+            name=`expr $a_deplib : '-l\(.*\)'`
+            # If $name is empty we are operating on a -L argument.
+            if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test  &quot;$name&quot; != &quot;0&quot;; then
+              if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+                case &quot; $predeps $postdeps &quot; in
+                *&quot; $a_deplib &quot;*)
+                  newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+                  a_deplib=&quot;&quot;
+                  ;;
+                esac
+              fi
+              if test -n &quot;$a_deplib&quot; ; then
+                libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                  potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
+                  for potent_lib in $potential_libs; do
+                      # Follow soft links.
+                      if ls -lLd &quot;$potent_lib&quot; 2&gt;/dev/null \
+                         | grep &quot; -&gt; &quot; &gt;/dev/null; then
+                        continue
+                      fi
+                      # The statement above tries to avoid entering an
+                      # endless loop below, in case of cyclic links.
+                      # We might still enter an endless loop, since a link
+                      # loop can be closed while we follow links,
+                      # but so what?
+                      potlib=&quot;$potent_lib&quot;
+                      while test -h &quot;$potlib&quot; 2&gt;/dev/null; do
+                        potliblink=`ls -ld $potlib | ${SED} 's/.* -&gt; //'`
+                        case $potliblink in
+                        [\\/]* | [A-Za-z]:[\\/]*) potlib=&quot;$potliblink&quot;;;
+                        *) potlib=`$echo &quot;X$potlib&quot; | $Xsed -e 's,[^/]*$,,'`&quot;$potliblink&quot;;;
+                        esac
+                      done
+                      if eval $file_magic_cmd \&quot;\$potlib\&quot; 2&gt;/dev/null \
+                         | ${SED} 10q \
+                         | $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
+                        newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+                        a_deplib=&quot;&quot;
+                        break 2
+                      fi
+                  done
+                done
+              fi
+              if test -n &quot;$a_deplib&quot; ; then
+                droppeddeps=yes
+                $echo
+                $echo &quot;*** Warning: linker path does not have real file for library $a_deplib.&quot;
+                $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+                $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+                $echo &quot;*** shared version of the library, which you do not appear to have&quot;
+                $echo &quot;*** because I did check the linker path looking for a file starting&quot;
+                if test -z &quot;$potlib&quot; ; then
+                  $echo &quot;*** with $libname but no candidates were found. (...for file magic test)&quot;
+                else
+                  $echo &quot;*** with $libname and none of the candidates passed a file format test&quot;
+                  $echo &quot;*** using a file magic. Last file checked: $potlib&quot;
+                fi
+              fi
+            else
+              # Add a -L argument.
+              newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+            fi
+          done # Gone through all deplibs.
+          ;;
+        match_pattern*)
+          set dummy $deplibs_check_method
+          match_pattern_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
+          for a_deplib in $deplibs; do
+            name=`expr $a_deplib : '-l\(.*\)'`
+            # If $name is empty we are operating on a -L argument.
+            if test -n &quot;$name&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+              if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+                case &quot; $predeps $postdeps &quot; in
+                *&quot; $a_deplib &quot;*)
+                  newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+                  a_deplib=&quot;&quot;
+                  ;;
+                esac
+              fi
+              if test -n &quot;$a_deplib&quot; ; then
+                libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                  potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
+                  for potent_lib in $potential_libs; do
+                    potlib=&quot;$potent_lib&quot; # see symlink-check above in file_magic test
+                    if eval $echo \&quot;$potent_lib\&quot; 2&gt;/dev/null \
+                        | ${SED} 10q \
+                        | $EGREP &quot;$match_pattern_regex&quot; &gt; /dev/null; then
+                      newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+                      a_deplib=&quot;&quot;
+                      break 2
+                    fi
+                  done
+                done
+              fi
+              if test -n &quot;$a_deplib&quot; ; then
+                droppeddeps=yes
+                $echo
+                $echo &quot;*** Warning: linker path does not have real file for library $a_deplib.&quot;
+                $echo &quot;*** I have the capability to make that library automatically link in when&quot;
+                $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+                $echo &quot;*** shared version of the library, which you do not appear to have&quot;
+                $echo &quot;*** because I did check the linker path looking for a file starting&quot;
+                if test -z &quot;$potlib&quot; ; then
+                  $echo &quot;*** with $libname but no candidates were found. (...for regex pattern test)&quot;
+                else
+                  $echo &quot;*** with $libname and none of the candidates passed a file format test&quot;
+                  $echo &quot;*** using a regex pattern. Last file checked: $potlib&quot;
+                fi
+              fi
+            else
+              # Add a -L argument.
+              newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+            fi
+          done # Gone through all deplibs.
+          ;;
+        none | unknown | *)
+          newdeplibs=&quot;&quot;
+          tmp_deplibs=`$echo &quot;X $deplibs&quot; | $Xsed -e 's/ -lc$//' \
+            -e 's/ -[LR][^ ]*//g'`
+          if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
+            for i in $predeps $postdeps ; do
+              # can't use Xsed below, because $i might contain '/'
+              tmp_deplibs=`$echo &quot;X $tmp_deplibs&quot; | ${SED} -e &quot;1s,^X,,&quot; -e &quot;s,$i,,&quot;`
+            done
+          fi
+          if $echo &quot;X $tmp_deplibs&quot; | $Xsed -e 's/[         ]//g' \
+            | grep . &gt;/dev/null; then
+            $echo
+            if test &quot;X$deplibs_check_method&quot; = &quot;Xnone&quot;; then
+              $echo &quot;*** Warning: inter-library dependencies are not supported in this platform.&quot;
+            else
+              $echo &quot;*** Warning: inter-library dependencies are not known to be supported.&quot;
+            fi
+            $echo &quot;*** All declared inter-library dependencies are being dropped.&quot;
+            droppeddeps=yes
+          fi
+          ;;
+        esac
+        versuffix=$versuffix_save
+        major=$major_save
+        release=$release_save
+        libname=$libname_save
+        name=$name_save
+
+        case $host in
+        *-*-rhapsody* | *-*-darwin1.[012])
+          # On Rhapsody replace the C library is the System framework
+          newdeplibs=`$echo &quot;X $newdeplibs&quot; | $Xsed -e 's/ -lc / -framework System /'`
+          ;;
+        esac
+
+        if test &quot;$droppeddeps&quot; = yes; then
+          if test &quot;$module&quot; = yes; then
+            $echo
+            $echo &quot;*** Warning: libtool could not satisfy all declared inter-library&quot;
+            $echo &quot;*** dependencies of module $libname.  Therefore, libtool will create&quot;
+            $echo &quot;*** a static module, that should work as long as the dlopening&quot;
+            $echo &quot;*** application is linked with the -dlopen flag.&quot;
+            if test -z &quot;$global_symbol_pipe&quot;; then
+              $echo
+              $echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
+              $echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
+              $echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
+              $echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
+            fi
+            if test &quot;$build_old_libs&quot; = no; then
+              oldlibs=&quot;$output_objdir/$libname.$libext&quot;
+              build_libtool_libs=module
+              build_old_libs=yes
+            else
+              build_libtool_libs=no
+            fi
+          else
+            $echo &quot;*** The inter-library dependencies that have been dropped here will be&quot;
+            $echo &quot;*** automatically added whenever a program is linked with this library&quot;
+            $echo &quot;*** or is declared to -dlopen it.&quot;
+
+            if test &quot;$allow_undefined&quot; = no; then
+              $echo
+              $echo &quot;*** Since this library must not contain undefined symbols,&quot;
+              $echo &quot;*** because either the platform does not support them or&quot;
+              $echo &quot;*** it was explicitly requested with -no-undefined,&quot;
+              $echo &quot;*** libtool will only create a static version of it.&quot;
+              if test &quot;$build_old_libs&quot; = no; then
+                oldlibs=&quot;$output_objdir/$libname.$libext&quot;
+                build_libtool_libs=module
+                build_old_libs=yes
+              else
+                build_libtool_libs=no
+              fi
+            fi
+          fi
+        fi
+        # Done checking deplibs!
+        deplibs=$newdeplibs
+      fi
+
+      # All the library-specific variables (install_libdir is set above).
+      library_names=
+      old_library=
+      dlname=
+
+      # Test again, we may have decided not to build it any more
+      if test &quot;$build_libtool_libs&quot; = yes; then
+        if test &quot;$hardcode_into_libs&quot; = yes; then
+          # Hardcode the library paths
+          hardcode_libdirs=
+          dep_rpath=
+          rpath=&quot;$finalize_rpath&quot;
+          test &quot;$mode&quot; != relink &amp;&amp; rpath=&quot;$compile_rpath$rpath&quot;
+          for libdir in $rpath; do
+            if test -n &quot;$hardcode_libdir_flag_spec&quot;; then
+              if test -n &quot;$hardcode_libdir_separator&quot;; then
+                if test -z &quot;$hardcode_libdirs&quot;; then
+                  hardcode_libdirs=&quot;$libdir&quot;
+                else
+                  # Just accumulate the unique libdirs.
+                  case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+                  *&quot;$hardcode_libdir_separator$libdir$hardcode_libdir_separator&quot;*)
+                    ;;
+                  *)
+                    hardcode_libdirs=&quot;$hardcode_libdirs$hardcode_libdir_separator$libdir&quot;
+                    ;;
+                  esac
+                fi
+              else
+                eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+                dep_rpath=&quot;$dep_rpath $flag&quot;
+              fi
+            elif test -n &quot;$runpath_var&quot;; then
+              case &quot;$perm_rpath &quot; in
+              *&quot; $libdir &quot;*) ;;
+              *) perm_rpath=&quot;$perm_rpath $libdir&quot; ;;
+              esac
+            fi
+          done
+          # Substitute the hardcoded libdirs into the rpath.
+          if test -n &quot;$hardcode_libdir_separator&quot; &amp;&amp;
+             test -n &quot;$hardcode_libdirs&quot;; then
+            libdir=&quot;$hardcode_libdirs&quot;
+            if test -n &quot;$hardcode_libdir_flag_spec_ld&quot;; then
+              eval dep_rpath=\&quot;$hardcode_libdir_flag_spec_ld\&quot;
+            else
+              eval dep_rpath=\&quot;$hardcode_libdir_flag_spec\&quot;
+            fi
+          fi
+          if test -n &quot;$runpath_var&quot; &amp;&amp; test -n &quot;$perm_rpath&quot;; then
+            # We should set the runpath_var.
+            rpath=
+            for dir in $perm_rpath; do
+              rpath=&quot;$rpath$dir:&quot;
+            done
+            eval &quot;$runpath_var='$rpath\$$runpath_var'; export $runpath_var&quot;
+          fi
+          test -n &quot;$dep_rpath&quot; &amp;&amp; deplibs=&quot;$dep_rpath $deplibs&quot;
+        fi
+
+        shlibpath=&quot;$finalize_shlibpath&quot;
+        test &quot;$mode&quot; != relink &amp;&amp; shlibpath=&quot;$compile_shlibpath$shlibpath&quot;
+        if test -n &quot;$shlibpath&quot;; then
+          eval &quot;$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var&quot;
+        fi
+
+        # Get the real and link names of the library.
+        eval shared_ext=\&quot;$shrext_cmds\&quot;
+        eval library_names=\&quot;$library_names_spec\&quot;
+        set dummy $library_names
+        realname=&quot;$2&quot;
+        shift; shift
+
+        if test -n &quot;$soname_spec&quot;; then
+          eval soname=\&quot;$soname_spec\&quot;
+        else
+          soname=&quot;$realname&quot;
+        fi
+        if test -z &quot;$dlname&quot;; then
+          dlname=$soname
+        fi
+
+        lib=&quot;$output_objdir/$realname&quot;
+        for link
+        do
+          linknames=&quot;$linknames $link&quot;
+        done
+
+        # Use standard objects if they are pic
+        test -z &quot;$pic_flag&quot; &amp;&amp; libobjs=`$echo &quot;X$libobjs&quot; | $SP2NL | $Xsed -e &quot;$lo2o&quot; | $NL2SP`
+
+        # Prepare the list of exported symbols
+        if test -z &quot;$export_symbols&quot;; then
+          if test &quot;$always_export_symbols&quot; = yes || test -n &quot;$export_symbols_regex&quot;; then
+            $show &quot;generating symbol list for \`$libname.la'&quot;
+            export_symbols=&quot;$output_objdir/$libname.exp&quot;
+            $run $rm $export_symbols
+            cmds=$export_symbols_cmds
+            save_ifs=&quot;$IFS&quot;; IFS='~'
+            for cmd in $cmds; do
+              IFS=&quot;$save_ifs&quot;
+              eval cmd=\&quot;$cmd\&quot;
+              if len=`expr &quot;X$cmd&quot; : &quot;.*&quot;` &amp;&amp;
+               test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
+                $show &quot;$cmd&quot;
+                $run eval &quot;$cmd&quot; || exit $?
+                skipped_export=false
+              else
+                # The command line is too long to execute in one step.
+                $show &quot;using reloadable object file for export list...&quot;
+                skipped_export=:
+                # Break out early, otherwise skipped_export may be
+                # set to false by a later but shorter cmd.
+                break
+              fi
+            done
+            IFS=&quot;$save_ifs&quot;
+            if test -n &quot;$export_symbols_regex&quot;; then
+              $show &quot;$EGREP -e \&quot;$export_symbols_regex\&quot; \&quot;$export_symbols\&quot; &gt; \&quot;${export_symbols}T\&quot;&quot;
+              $run eval '$EGREP -e &quot;$export_symbols_regex&quot; &quot;$export_symbols&quot; &gt; &quot;${export_symbols}T&quot;'
+              $show &quot;$mv \&quot;${export_symbols}T\&quot; \&quot;$export_symbols\&quot;&quot;
+              $run eval '$mv &quot;${export_symbols}T&quot; &quot;$export_symbols&quot;'
+            fi
+          fi
+        fi
+
+        if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$include_expsyms&quot;; then
+          $run eval '$echo &quot;X$include_expsyms&quot; | $SP2NL &gt;&gt; &quot;$export_symbols&quot;'
+        fi
+
+        tmp_deplibs=
+        for test_deplib in $deplibs; do
+                case &quot; $convenience &quot; in
+                *&quot; $test_deplib &quot;*) ;;
+                *)
+                        tmp_deplibs=&quot;$tmp_deplibs $test_deplib&quot;
+                        ;
+                esac
+        done
+        deplibs=&quot;$tmp_deplibs&quot;
+
+        if test -n &quot;$convenience&quot;; then
+          if test -n &quot;$whole_archive_flag_spec&quot;; then
+            save_libobjs=$libobjs
+            eval libobjs=\&quot;\$libobjs $whole_archive_flag_spec\&quot;
+          else
+            gentop=&quot;$output_objdir/${outputname}x&quot;
+            generated=&quot;$generated $gentop&quot;
+
+            func_extract_archives $gentop $convenience
+            libobjs=&quot;$libobjs $func_extract_archives_result&quot;
+          fi
+        fi
+        
+        if test &quot;$thread_safe&quot; = yes &amp;&amp; test -n &quot;$thread_safe_flag_spec&quot;; then
+          eval flag=\&quot;$thread_safe_flag_spec\&quot;
+          linker_flags=&quot;$linker_flags $flag&quot;
+        fi
+
+        # Make a backup of the uninstalled library when relinking
+        if test &quot;$mode&quot; = relink; then
+          $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}U &amp;&amp; $mv $realname ${realname}U)' || exit $?
+        fi
+
+        # Do each of the archive commands.
+        if test &quot;$module&quot; = yes &amp;&amp; test -n &quot;$module_cmds&quot; ; then
+          if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$module_expsym_cmds&quot;; then
+            eval test_cmds=\&quot;$module_expsym_cmds\&quot;
+            cmds=$module_expsym_cmds
+          else
+            eval test_cmds=\&quot;$module_cmds\&quot;
+            cmds=$module_cmds
+          fi
+        else
+        if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$archive_expsym_cmds&quot;; then
+          eval test_cmds=\&quot;$archive_expsym_cmds\&quot;
+          cmds=$archive_expsym_cmds
+        else
+          eval test_cmds=\&quot;$archive_cmds\&quot;
+          cmds=$archive_cmds
+          fi
+        fi
+
+        if test &quot;X$skipped_export&quot; != &quot;X:&quot; &amp;&amp;
+           len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
+           test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
+          :
+        else
+          # The command line is too long to link in one step, link piecewise.
+          $echo &quot;creating reloadable object files...&quot;
+
+          # Save the value of $output and $libobjs because we want to
+          # use them later.  If we have whole_archive_flag_spec, we
+          # want to use save_libobjs as it was before
+          # whole_archive_flag_spec was expanded, because we can't
+          # assume the linker understands whole_archive_flag_spec.
+          # This may have to be revisited, in case too many
+          # convenience libraries get linked in and end up exceeding
+          # the spec.
+          if test -z &quot;$convenience&quot; || test -z &quot;$whole_archive_flag_spec&quot;; then
+            save_libobjs=$libobjs
+          fi
+          save_output=$output
+          output_la=`$echo &quot;X$output&quot; | $Xsed -e &quot;$basename&quot;`
+
+          # Clear the reloadable object creation command queue and
+          # initialize k to one.
+          test_cmds=
+          concat_cmds=
+          objlist=
+          delfiles=
+          last_robj=
+          k=1
+          output=$output_objdir/$output_la-${k}.$objext
+          # Loop over the list of objects to be linked.
+          for obj in $save_libobjs
+          do
+            eval test_cmds=\&quot;$reload_cmds $objlist $last_robj\&quot;
+            if test &quot;X$objlist&quot; = X ||
+               { len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
+                 test &quot;$len&quot; -le &quot;$max_cmd_len&quot;; }; then
+              objlist=&quot;$objlist $obj&quot;
+            else
+              # The command $test_cmds is almost too long, add a
+              # command to the queue.
+              if test &quot;$k&quot; -eq 1 ; then
+                # The first file doesn't have a previous command to add.
+                eval concat_cmds=\&quot;$reload_cmds $objlist $last_robj\&quot;
+              else
+                # All subsequent reloadable object files will link in
+                # the last one created.
+                eval concat_cmds=\&quot;\$concat_cmds~$reload_cmds $objlist $last_robj\&quot;
+              fi
+              last_robj=$output_objdir/$output_la-${k}.$objext
+              k=`expr $k + 1`
+              output=$output_objdir/$output_la-${k}.$objext
+              objlist=$obj
+              len=1
+            fi
+          done
+          # Handle the remaining objects by creating one last
+          # reloadable object file.  All subsequent reloadable object
+          # files will link in the last one created.
+          test -z &quot;$concat_cmds&quot; || concat_cmds=$concat_cmds~
+          eval concat_cmds=\&quot;\${concat_cmds}$reload_cmds $objlist $last_robj\&quot;
+
+          if ${skipped_export-false}; then
+            $show &quot;generating symbol list for \`$libname.la'&quot;
+            export_symbols=&quot;$output_objdir/$libname.exp&quot;
+            $run $rm $export_symbols
+            libobjs=$output
+            # Append the command to create the export file.
+            eval concat_cmds=\&quot;\$concat_cmds~$export_symbols_cmds\&quot;
+          fi
+
+          # Set up a command to remove the reloadable object files
+          # after they are used.
+          i=0
+          while test &quot;$i&quot; -lt &quot;$k&quot;
+          do
+            i=`expr $i + 1`
+            delfiles=&quot;$delfiles $output_objdir/$output_la-${i}.$objext&quot;
+          done
+
+          $echo &quot;creating a temporary reloadable object file: $output&quot;
+
+          # Loop through the commands generated above and execute them.
+          save_ifs=&quot;$IFS&quot;; IFS='~'
+          for cmd in $concat_cmds; do
+            IFS=&quot;$save_ifs&quot;
+            $show &quot;$cmd&quot;
+            $run eval &quot;$cmd&quot; || exit $?
+          done
+          IFS=&quot;$save_ifs&quot;
+
+          libobjs=$output
+          # Restore the value of output.
+          output=$save_output
+
+          if test -n &quot;$convenience&quot; &amp;&amp; test -n &quot;$whole_archive_flag_spec&quot;; then
+            eval libobjs=\&quot;\$libobjs $whole_archive_flag_spec\&quot;
+          fi
+          # Expand the library linking commands again to reset the
+          # value of $libobjs for piecewise linking.
+
+          # Do each of the archive commands.
+          if test &quot;$module&quot; = yes &amp;&amp; test -n &quot;$module_cmds&quot; ; then
+            if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$module_expsym_cmds&quot;; then
+              cmds=$module_expsym_cmds
+            else
+              cmds=$module_cmds
+            fi
+          else
+          if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$archive_expsym_cmds&quot;; then
+            cmds=$archive_expsym_cmds
+          else
+            cmds=$archive_cmds
+            fi
+          fi
+
+          # Append the command to remove the reloadable object files
+          # to the just-reset $cmds.
+          eval cmds=\&quot;\$cmds~\$rm $delfiles\&quot;
+        fi
+        save_ifs=&quot;$IFS&quot;; IFS='~'
+        for cmd in $cmds; do
+          IFS=&quot;$save_ifs&quot;
+          eval cmd=\&quot;$cmd\&quot;
+          $show &quot;$cmd&quot;
+          $run eval &quot;$cmd&quot; || {
+            lt_exit=$?
+
+            # Restore the uninstalled library and exit
+            if test &quot;$mode&quot; = relink; then
+              $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv ${realname}U $realname)'
+            fi
+
+            exit $lt_exit
+          }
+        done
+        IFS=&quot;$save_ifs&quot;
+
+        # Restore the uninstalled library and exit
+        if test &quot;$mode&quot; = relink; then
+          $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv $realname ${realname}T &amp;&amp; $mv &quot;$realname&quot;U $realname)' || exit $?
+
+          if test -n &quot;$convenience&quot;; then
+            if test -z &quot;$whole_archive_flag_spec&quot;; then
+              $show &quot;${rm}r $gentop&quot;
+              $run ${rm}r &quot;$gentop&quot;
+            fi
+          fi
+
+          exit $EXIT_SUCCESS
+        fi
+
+        # Create links to the real library.
+        for linkname in $linknames; do
+          if test &quot;$realname&quot; != &quot;$linkname&quot;; then
+            $show &quot;(cd $output_objdir &amp;&amp; $rm $linkname &amp;&amp; $LN_S $realname $linkname)&quot;
+            $run eval '(cd $output_objdir &amp;&amp; $rm $linkname &amp;&amp; $LN_S $realname $linkname)' || exit $?
+          fi
+        done
+
+        # If -module or -export-dynamic was specified, set the dlname.
+        if test &quot;$module&quot; = yes || test &quot;$export_dynamic&quot; = yes; then
+          # On all known operating systems, these are identical.
+          dlname=&quot;$soname&quot;
+        fi
+      fi
+      ;;
+
+    obj)
+      if test -n &quot;$deplibs&quot;; then
+        $echo &quot;$modename: warning: \`-l' and \`-L' are ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$dlfiles$dlprefiles&quot; || test &quot;$dlself&quot; != no; then
+        $echo &quot;$modename: warning: \`-dlopen' is ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$rpath&quot;; then
+        $echo &quot;$modename: warning: \`-rpath' is ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$xrpath&quot;; then
+        $echo &quot;$modename: warning: \`-R' is ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$vinfo&quot;; then
+        $echo &quot;$modename: warning: \`-version-info' is ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$release&quot;; then
+        $echo &quot;$modename: warning: \`-release' is ignored for objects&quot; 1&gt;&amp;2
+      fi
+
+      case $output in
+      *.lo)
+        if test -n &quot;$objs$old_deplibs&quot;; then
+          $echo &quot;$modename: cannot build library object \`$output' from non-libtool objects&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+        libobj=&quot;$output&quot;
+        obj=`$echo &quot;X$output&quot; | $Xsed -e &quot;$lo2o&quot;`
+        ;
+      *)
+        libobj=
+        obj=&quot;$output&quot;
+        ;
+      esac
+
+      # Delete the old objects.
+      $run $rm $obj $libobj
+
+      # Objects from convenience libraries.  This assumes
+      # single-version convenience libraries.  Whenever we create
+      # different ones for PIC/non-PIC, this we'll have to duplicate
+      # the extraction.
+      reload_conv_objs=
+      gentop=
+      # reload_cmds runs $LD directly, so let us get rid of
+      # -Wl from whole_archive_flag_spec
+      wl=
+
+      if test -n &quot;$convenience&quot;; then
+        if test -n &quot;$whole_archive_flag_spec&quot;; then
+          eval reload_conv_objs=\&quot;\$reload_objs $whole_archive_flag_spec\&quot;
+        else
+          gentop=&quot;$output_objdir/${obj}x&quot;
+          generated=&quot;$generated $gentop&quot;
+
+          func_extract_archives $gentop $convenience
+          reload_conv_objs=&quot;$reload_objs $func_extract_archives_result&quot;
+        fi
+      fi
+
+      # Create the old-style object.
+      reload_objs=&quot;$objs$old_deplibs &quot;`$echo &quot;X$libobjs&quot; | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e &quot;$lo2o&quot; | $NL2SP`&quot; $reload_conv_objs&quot; ### testsuite: skip nested quoting test
+
+      output=&quot;$obj&quot;
+      cmds=$reload_cmds
+      save_ifs=&quot;$IFS&quot;; IFS='~'
+      for cmd in $cmds; do
+        IFS=&quot;$save_ifs&quot;
+        eval cmd=\&quot;$cmd\&quot;
+        $show &quot;$cmd&quot;
+        $run eval &quot;$cmd&quot; || exit $?
+      done
+      IFS=&quot;$save_ifs&quot;
+
+      # Exit if we aren't doing a library object file.
+      if test -z &quot;$libobj&quot;; then
+        if test -n &quot;$gentop&quot;; then
+          $show &quot;${rm}r $gentop&quot;
+          $run ${rm}r $gentop
+        fi
+
+        exit $EXIT_SUCCESS
+      fi
+
+      if test &quot;$build_libtool_libs&quot; != yes; then
+        if test -n &quot;$gentop&quot;; then
+          $show &quot;${rm}r $gentop&quot;
+          $run ${rm}r $gentop
+        fi
+
+        # Create an invalid libtool object if no PIC, so that we don't
+        # accidentally link it into a program.
+        # $show &quot;echo timestamp &gt; $libobj&quot;
+        # $run eval &quot;echo timestamp &gt; $libobj&quot; || exit $?
+        exit $EXIT_SUCCESS
+      fi
+
+      if test -n &quot;$pic_flag&quot; || test &quot;$pic_mode&quot; != default; then
+        # Only do commands if we really have different PIC objects.
+        reload_objs=&quot;$libobjs $reload_conv_objs&quot;
+        output=&quot;$libobj&quot;
+        cmds=$reload_cmds
+        save_ifs=&quot;$IFS&quot;; IFS='~'
+        for cmd in $cmds; do
+          IFS=&quot;$save_ifs&quot;
+          eval cmd=\&quot;$cmd\&quot;
+          $show &quot;$cmd&quot;
+          $run eval &quot;$cmd&quot; || exit $?
+        done
+        IFS=&quot;$save_ifs&quot;
+      fi
+
+      if test -n &quot;$gentop&quot;; then
+        $show &quot;${rm}r $gentop&quot;
+        $run ${rm}r $gentop
+      fi
+
+      exit $EXIT_SUCCESS
+      ;;
+
+    prog)
+      case $host in
+        *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+      esac
+      if test -n &quot;$vinfo&quot;; then
+        $echo &quot;$modename: warning: \`-version-info' is ignored for programs&quot; 1&gt;&amp;2
+      fi
+
+      if test -n &quot;$release&quot;; then
+        $echo &quot;$modename: warning: \`-release' is ignored for programs&quot; 1&gt;&amp;2
+      fi
+
+      if test &quot;$preload&quot; = yes; then
+        if test &quot;$dlopen_support&quot; = unknown &amp;&amp; test &quot;$dlopen_self&quot; = unknown &amp;&amp;
+           test &quot;$dlopen_self_static&quot; = unknown; then
+          $echo &quot;$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support.&quot;
+        fi
+      fi
+
+      case $host in
+      *-*-rhapsody* | *-*-darwin1.[012])
+        # On Rhapsody replace the C library is the System framework
+        compile_deplibs=`$echo &quot;X $compile_deplibs&quot; | $Xsed -e 's/ -lc / -framework System /'`
+        finalize_deplibs=`$echo &quot;X $finalize_deplibs&quot; | $Xsed -e 's/ -lc / -framework System /'`
+        ;
+      esac
+
+      case $host in
+      *darwin*)
+        # Don't allow lazy linking, it breaks C++ global constructors
+        if test &quot;$tagname&quot; = CXX ; then
+        compile_command=&quot;$compile_command ${wl}-bind_at_load&quot;
+        finalize_command=&quot;$finalize_command ${wl}-bind_at_load&quot;
+        fi
+        ;;
+      esac
+
+      compile_command=&quot;$compile_command $compile_deplibs&quot;
+      finalize_command=&quot;$finalize_command $finalize_deplibs&quot;
+
+      if test -n &quot;$rpath$xrpath&quot;; then
+        # If the user specified any rpath flags, then add them.
+        for libdir in $rpath $xrpath; do
+          # This is the magic to use -rpath.
+          case &quot;$finalize_rpath &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) finalize_rpath=&quot;$finalize_rpath $libdir&quot; ;;
+          esac
+        done
+      fi
+
+      # Now hardcode the library paths
+      rpath=
+      hardcode_libdirs=
+      for libdir in $compile_rpath $finalize_rpath; do
+        if test -n &quot;$hardcode_libdir_flag_spec&quot;; then
+          if test -n &quot;$hardcode_libdir_separator&quot;; then
+            if test -z &quot;$hardcode_libdirs&quot;; then
+              hardcode_libdirs=&quot;$libdir&quot;
+            else
+              # Just accumulate the unique libdirs.
+              case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+              *&quot;$hardcode_libdir_separator$libdir$hardcode_libdir_separator&quot;*)
+                ;
+              *)
+                hardcode_libdirs=&quot;$hardcode_libdirs$hardcode_libdir_separator$libdir&quot;
+                ;
+              esac
+            fi
+          else
+            eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+            rpath=&quot;$rpath $flag&quot;
+          fi
+        elif test -n &quot;$runpath_var&quot;; then
+          case &quot;$perm_rpath &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) perm_rpath=&quot;$perm_rpath $libdir&quot; ;;
+          esac
+        fi
+        case $host in
+        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+          case :$dllsearchpath: in
+          *&quot;:$libdir:&quot;*) ;;
+          *) dllsearchpath=&quot;$dllsearchpath:$libdir&quot;;;
+          esac
+          ;;
+        esac
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n &quot;$hardcode_libdir_separator&quot; &amp;&amp;
+         test -n &quot;$hardcode_libdirs&quot;; then
+        libdir=&quot;$hardcode_libdirs&quot;
+        eval rpath=\&quot; $hardcode_libdir_flag_spec\&quot;
+      fi
+      compile_rpath=&quot;$rpath&quot;
+
+      rpath=
+      hardcode_libdirs=
+      for libdir in $finalize_rpath; do
+        if test -n &quot;$hardcode_libdir_flag_spec&quot;; then
+          if test -n &quot;$hardcode_libdir_separator&quot;; then
+            if test -z &quot;$hardcode_libdirs&quot;; then
+              hardcode_libdirs=&quot;$libdir&quot;
+            else
+              # Just accumulate the unique libdirs.
+              case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+              *&quot;$hardcode_libdir_separator$libdir$hardcode_libdir_separator&quot;*)
+                ;
+              *)
+                hardcode_libdirs=&quot;$hardcode_libdirs$hardcode_libdir_separator$libdir&quot;
+                ;
+              esac
+            fi
+          else
+            eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+            rpath=&quot;$rpath $flag&quot;
+          fi
+        elif test -n &quot;$runpath_var&quot;; then
+          case &quot;$finalize_perm_rpath &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) finalize_perm_rpath=&quot;$finalize_perm_rpath $libdir&quot; ;;
+          esac
+        fi
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n &quot;$hardcode_libdir_separator&quot; &amp;&amp;
+         test -n &quot;$hardcode_libdirs&quot;; then
+        libdir=&quot;$hardcode_libdirs&quot;
+        eval rpath=\&quot; $hardcode_libdir_flag_spec\&quot;
+      fi
+      finalize_rpath=&quot;$rpath&quot;
+
+      if test -n &quot;$libobjs&quot; &amp;&amp; test &quot;$build_old_libs&quot; = yes; then
+        # Transform all the library objects into standard objects.
+        compile_command=`$echo &quot;X$compile_command&quot; | $SP2NL | $Xsed -e &quot;$lo2o&quot; | $NL2SP`
+        finalize_command=`$echo &quot;X$finalize_command&quot; | $SP2NL | $Xsed -e &quot;$lo2o&quot; | $NL2SP`
+      fi
+
+      dlsyms=
+      if test -n &quot;$dlfiles$dlprefiles&quot; || test &quot;$dlself&quot; != no; then
+        if test -n &quot;$NM&quot; &amp;&amp; test -n &quot;$global_symbol_pipe&quot;; then
+          dlsyms=&quot;${outputname}S.c&quot;
+        else
+          $echo &quot;$modename: not configured to extract global symbols from dlpreopened files&quot; 1&gt;&amp;2
+        fi
+      fi
+
+      if test -n &quot;$dlsyms&quot;; then
+        case $dlsyms in
+        &quot;&quot;) ;;
+        *.c)
+          # Discover the nlist of each of the dlfiles.
+          nlist=&quot;$output_objdir/${outputname}.nm&quot;
+
+          $show &quot;$rm $nlist ${nlist}S ${nlist}T&quot;
+          $run $rm &quot;$nlist&quot; &quot;${nlist}S&quot; &quot;${nlist}T&quot;
+
+          # Parse the name list into a source file.
+          $show &quot;creating $output_objdir/$dlsyms&quot;
+
+          test -z &quot;$run&quot; &amp;&amp; $echo &gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
+/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
+
+#ifdef __cplusplus
+extern \&quot;C\&quot; {
+#endif
+
+/* Prevent the only kind of declaration conflicts we can make. */
+#define lt_preloaded_symbols some_other_symbol
+
+/* External symbol declarations for the compiler. */\
+&quot;
+
+          if test &quot;$dlself&quot; = yes; then
+            $show &quot;generating symbol list for \`$output'&quot;
+
+            test -z &quot;$run&quot; &amp;&amp; $echo ': @PROGRAM@ ' &gt; &quot;$nlist&quot;
+
+            # Add our own program objects to the symbol list.
+            progfiles=`$echo &quot;X$objs$old_deplibs&quot; | $SP2NL | $Xsed -e &quot;$lo2o&quot; | $NL2SP`
+            for arg in $progfiles; do
+              $show &quot;extracting global C symbols from \`$arg'&quot;
+              $run eval &quot;$NM $arg | $global_symbol_pipe &gt;&gt; '$nlist'&quot;
+            done
+
+            if test -n &quot;$exclude_expsyms&quot;; then
+              $run eval '$EGREP -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+              $run eval '$mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+            fi
+
+            if test -n &quot;$export_symbols_regex&quot;; then
+              $run eval '$EGREP -e &quot;$export_symbols_regex&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+              $run eval '$mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+            fi
+
+            # Prepare the list of exported symbols
+            if test -z &quot;$export_symbols&quot;; then
+              export_symbols=&quot;$output_objdir/$outputname.exp&quot;
+              $run $rm $export_symbols
+              $run eval &quot;${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' &quot;'&lt; &quot;$nlist&quot; &gt; &quot;$export_symbols&quot;'
+            else
+              $run eval &quot;${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'&quot;' &lt; &quot;$export_symbols&quot; &gt; &quot;$output_objdir/$outputname.exp&quot;'
+              $run eval 'grep -f &quot;$output_objdir/$outputname.exp&quot; &lt; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+              $run eval 'mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+            fi
+          fi
+
+          for arg in $dlprefiles; do
+            $show &quot;extracting global C symbols from \`$arg'&quot;
+            name=`$echo &quot;$arg&quot; | ${SED} -e 's%^.*/%%'`
+            $run eval '$echo &quot;: $name &quot; &gt;&gt; &quot;$nlist&quot;'
+            $run eval &quot;$NM $arg | $global_symbol_pipe &gt;&gt; '$nlist'&quot;
+          done
+
+          if test -z &quot;$run&quot;; then
+            # Make sure we have at least an empty file.
+            test -f &quot;$nlist&quot; || : &gt; &quot;$nlist&quot;
+
+            if test -n &quot;$exclude_expsyms&quot;; then
+              $EGREP -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T
+              $mv &quot;$nlist&quot;T &quot;$nlist&quot;
+            fi
+
+            # Try sorting and uniquifying the output.
+            if grep -v &quot;^: &quot; &lt; &quot;$nlist&quot; |
+                if sort -k 3 &lt;/dev/null &gt;/dev/null 2&gt;&amp;1; then
+                  sort -k 3
+                else
+                  sort +2
+                fi |
+                uniq &gt; &quot;$nlist&quot;S; then
+              :
+            else
+              grep -v &quot;^: &quot; &lt; &quot;$nlist&quot; &gt; &quot;$nlist&quot;S
+            fi
+
+            if test -f &quot;$nlist&quot;S; then
+              eval &quot;$global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot;S &gt;&gt; &quot;$output_objdir/$dlsyms&quot;'
+            else
+              $echo '/* NONE */' &gt;&gt; &quot;$output_objdir/$dlsyms&quot;
+            fi
+
+            $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+
+#undef lt_preloaded_symbols
+
+#if defined (__STDC__) &amp;&amp; __STDC__
+# define lt_ptr void *
+#else
+# define lt_ptr char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+&quot;
+
+            case $host in
+            *cygwin* | *mingw* )
+          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+/* DATA imports from DLLs on WIN32 can't be const, because
+   runtime relocations are performed -- see ld's documentation
+   on pseudo-relocs */
+struct {
+&quot;
+              ;;
+            * )
+          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+const struct {
+&quot;
+              ;;
+            esac
+
+
+          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+  const char *name;
+  lt_ptr address;
+}
+lt_preloaded_symbols[] =
+{\
+&quot;
+
+            eval &quot;$global_symbol_to_c_name_address&quot; &lt; &quot;$nlist&quot; &gt;&gt; &quot;$output_objdir/$dlsyms&quot;
+
+            $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+  {0, (lt_ptr) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+  return lt_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+&quot;
+          fi
+
+          pic_flag_for_symtable=
+          case $host in
+          # compiling the symbol table file with pic_flag works around
+          # a FreeBSD bug that causes programs to crash when -lm is
+          # linked before any other PIC object.  But we must not use
+          # pic_flag when linking with -static.  The problem exists in
+          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+          *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+            case &quot;$compile_command &quot; in
+            *&quot; -static &quot;*) ;;
+            *) pic_flag_for_symtable=&quot; $pic_flag -DFREEBSD_WORKAROUND&quot;;;
+            esac;;
+          *-*-hpux*)
+            case &quot;$compile_command &quot; in
+            *&quot; -static &quot;*) ;;
+            *) pic_flag_for_symtable=&quot; $pic_flag&quot;;;
+            esac
+          esac
+
+          # Now compile the dynamic symbol file.
+          $show &quot;(cd $output_objdir &amp;&amp; $LTCC -c$no_builtin_flag$pic_flag_for_symtable \&quot;$dlsyms\&quot;)&quot;
+          $run eval '(cd $output_objdir &amp;&amp; $LTCC -c$no_builtin_flag$pic_flag_for_symtable &quot;$dlsyms&quot;)' || exit $?
+
+          # Clean up the generated files.
+          $show &quot;$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T&quot;
+          $run $rm &quot;$output_objdir/$dlsyms&quot; &quot;$nlist&quot; &quot;${nlist}S&quot; &quot;${nlist}T&quot;
+
+          # Transform the symbol file into the correct name.
+          compile_command=`$echo &quot;X$compile_command&quot; | $Xsed -e &quot;s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%&quot;`
+          finalize_command=`$echo &quot;X$finalize_command&quot; | $Xsed -e &quot;s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%&quot;`
+          ;;
+        *)
+          $echo &quot;$modename: unknown suffix for \`$dlsyms'&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+      else
+        # We keep going just in case the user didn't refer to
+        # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
+        # really was required.
+
+        # Nullify the symbol file.
+        compile_command=`$echo &quot;X$compile_command&quot; | $Xsed -e &quot;s% @SYMFILE@%%&quot;`
+        finalize_command=`$echo &quot;X$finalize_command&quot; | $Xsed -e &quot;s% @SYMFILE@%%&quot;`
+      fi
+
+      if test &quot;$need_relink&quot; = no || test &quot;$build_libtool_libs&quot; != yes; then
+        # Replace the output file specification.
+        compile_command=`$echo &quot;X$compile_command&quot; | $Xsed -e 's%@OUTPUT@%'&quot;$output&quot;'%g'`
+        link_command=&quot;$compile_command$compile_rpath&quot;
+
+        # We have no uninstalled library dependencies, so finalize right now.
+        $show &quot;$link_command&quot;
+        $run eval &quot;$link_command&quot;
+        status=$?
+
+        # Delete the generated files.
+        if test -n &quot;$dlsyms&quot;; then
+          $show &quot;$rm $output_objdir/${outputname}S.${objext}&quot;
+          $run $rm &quot;$output_objdir/${outputname}S.${objext}&quot;
+        fi
+
+        exit $status
+      fi
+
+      if test -n &quot;$shlibpath_var&quot;; then
+        # We should set the shlibpath_var
+        rpath=
+        for dir in $temp_rpath; do
+          case $dir in
+          [\\/]* | [A-Za-z]:[\\/]*)
+            # Absolute path.
+            rpath=&quot;$rpath$dir:&quot;
+            ;;
+          *)
+            # Relative path: add a thisdir entry.
+            rpath=&quot;$rpath\$thisdir/$dir:&quot;
+            ;;
+          esac
+        done
+        temp_rpath=&quot;$rpath&quot;
+      fi
+
+      if test -n &quot;$compile_shlibpath$finalize_shlibpath&quot;; then
+        compile_command=&quot;$shlibpath_var=\&quot;$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\&quot; $compile_command&quot;
+      fi
+      if test -n &quot;$finalize_shlibpath&quot;; then
+        finalize_command=&quot;$shlibpath_var=\&quot;$finalize_shlibpath\$$shlibpath_var\&quot; $finalize_command&quot;
+      fi
+
+      compile_var=
+      finalize_var=
+      if test -n &quot;$runpath_var&quot;; then
+        if test -n &quot;$perm_rpath&quot;; then
+          # We should set the runpath_var.
+          rpath=
+          for dir in $perm_rpath; do
+            rpath=&quot;$rpath$dir:&quot;
+          done
+          compile_var=&quot;$runpath_var=\&quot;$rpath\$$runpath_var\&quot; &quot;
+        fi
+        if test -n &quot;$finalize_perm_rpath&quot;; then
+          # We should set the runpath_var.
+          rpath=
+          for dir in $finalize_perm_rpath; do
+            rpath=&quot;$rpath$dir:&quot;
+          done
+          finalize_var=&quot;$runpath_var=\&quot;$rpath\$$runpath_var\&quot; &quot;
+        fi
+      fi
+
+      if test &quot;$no_install&quot; = yes; then
+        # We don't need to create a wrapper script.
+        link_command=&quot;$compile_var$compile_command$compile_rpath&quot;
+        # Replace the output file specification.
+        link_command=`$echo &quot;X$link_command&quot; | $Xsed -e 's%@OUTPUT@%'&quot;$output&quot;'%g'`
+        # Delete the old output file.
+        $run $rm $output
+        # Link the executable and exit
+        $show &quot;$link_command&quot;
+        $run eval &quot;$link_command&quot; || exit $?
+        exit $EXIT_SUCCESS
+      fi
+
+      if test &quot;$hardcode_action&quot; = relink; then
+        # Fast installation is not supported
+        link_command=&quot;$compile_var$compile_command$compile_rpath&quot;
+        relink_command=&quot;$finalize_var$finalize_command$finalize_rpath&quot;
+
+        $echo &quot;$modename: warning: this platform does not like uninstalled shared libraries&quot; 1&gt;&amp;2
+        $echo &quot;$modename: \`$output' will be relinked during installation&quot; 1&gt;&amp;2
+      else
+        if test &quot;$fast_install&quot; != no; then
+          link_command=&quot;$finalize_var$compile_command$finalize_rpath&quot;
+          if test &quot;$fast_install&quot; = yes; then
+            relink_command=`$echo &quot;X$compile_var$compile_command$compile_rpath&quot; | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+          else
+            # fast_install is set to needless
+            relink_command=
+          fi
+        else
+          link_command=&quot;$compile_var$compile_command$compile_rpath&quot;
+          relink_command=&quot;$finalize_var$finalize_command$finalize_rpath&quot;
+        fi
+      fi
+
+      # Replace the output file specification.
+      link_command=`$echo &quot;X$link_command&quot; | $Xsed -e 's%@OUTPUT@%'&quot;$output_objdir/$outputname&quot;'%g'`
+
+      # Delete the old output files.
+      $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+      $show &quot;$link_command&quot;
+      $run eval &quot;$link_command&quot; || exit $?
+
+      # Now create the wrapper script.
+      $show &quot;creating $output&quot;
+
+      # Quote the relink command for shipping.
+      if test -n &quot;$relink_command&quot;; then
+        # Preserve any variables that may affect compiler behavior
+        for var in $variables_saved_for_relink; do
+          if eval test -z \&quot;\${$var+set}\&quot;; then
+            relink_command=&quot;{ test -z \&quot;\${$var+set}\&quot; || unset $var || { $var=; export $var; }; }; $relink_command&quot;
+          elif eval var_value=\$$var; test -z &quot;$var_value&quot;; then
+            relink_command=&quot;$var=; export $var; $relink_command&quot;
+          else
+            var_value=`$echo &quot;X$var_value&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+            relink_command=&quot;$var=\&quot;$var_value\&quot;; export $var; $relink_command&quot;
+          fi
+        done
+        relink_command=&quot;(cd `pwd`; $relink_command)&quot;
+        relink_command=`$echo &quot;X$relink_command&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      fi
+
+      # Quote $echo for shipping.
+      if test &quot;X$echo&quot; = &quot;X$SHELL $progpath --fallback-echo&quot;; then
+        case $progpath in
+        [\\/]* | [A-Za-z]:[\\/]*) qecho=&quot;$SHELL $progpath --fallback-echo&quot;;;
+        *) qecho=&quot;$SHELL `pwd`/$progpath --fallback-echo&quot;;;
+        esac
+        qecho=`$echo &quot;X$qecho&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      else
+        qecho=`$echo &quot;X$echo&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      fi
+
+      # Only actually do things if our run command is non-null.
+      if test -z &quot;$run&quot;; then
+        # win32 will think the script is a binary if it has
+        # a .exe suffix, so we strip it off here.
+        case $output in
+          *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
+        esac
+        # test for cygwin because mv fails w/o .exe extensions
+        case $host in
+          *cygwin*)
+            exeext=.exe
+            outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
+          *) exeext= ;;
+        esac
+        case $host in
+          *cygwin* | *mingw* )
+            cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
+            cwrapper=`$echo ${output}.exe`
+            $rm $cwrappersource $cwrapper
+            trap &quot;$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE&quot; 1 2 15
+
+            cat &gt; $cwrappersource &lt;&lt;EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+   Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+
+   The $output program cannot be directly executed until all the libtool
+   libraries that it depends on are installed.
+
+   This wrapper executable should never be moved out of the build directory.
+   If it is, it will not operate correctly.
+
+   Currently, it simply execs the wrapper *script* &quot;/bin/sh $output&quot;,
+   but could eventually absorb all of the scripts functionality and
+   exec $objdir/$outputname directly.
+*/
+EOF
+            cat &gt;&gt; $cwrappersource&lt;&lt;&quot;EOF&quot;
+#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;unistd.h&gt;
+#include &lt;malloc.h&gt;
+#include &lt;stdarg.h&gt;
+#include &lt;assert.h&gt;
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef DIR_SEPARATOR
+#define DIR_SEPARATOR '/'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+  defined (__OS2__)
+#define HAVE_DOS_BASED_FILE_SYSTEM
+#ifndef DIR_SEPARATOR_2
+#define DIR_SEPARATOR_2 '\\'
+#endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+  if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+const char *program_name = NULL;
+
+void * xmalloc (size_t num);
+char * xstrdup (const char *string);
+char * basename (const char *name);
+char * fnqualify(const char *path);
+char * strendzap(char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+
+int
+main (int argc, char *argv[])
+{
+  char **newargz;
+  int i;
+
+  program_name = (char *) xstrdup ((char *) basename (argv[0]));
+  newargz = XMALLOC(char *, argc+2);
+EOF
+
+            cat &gt;&gt; $cwrappersource &lt;&lt;EOF
+  newargz[0] = &quot;$SHELL&quot;;
+EOF
+
+            cat &gt;&gt; $cwrappersource &lt;&lt;&quot;EOF&quot;
+  newargz[1] = fnqualify(argv[0]);
+  /* we know the script has the same name, without the .exe */
+  /* so make sure newargz[1] doesn't end in .exe */
+  strendzap(newargz[1],&quot;.exe&quot;);
+  for (i = 1; i &lt; argc; i++)
+    newargz[i+1] = xstrdup(argv[i]);
+  newargz[argc+1] = NULL;
+EOF
+
+            cat &gt;&gt; $cwrappersource &lt;&lt;EOF
+  execv(&quot;$SHELL&quot;,newargz);
+EOF
+
+            cat &gt;&gt; $cwrappersource &lt;&lt;&quot;EOF&quot;
+  return 127;
+}
+
+void *
+xmalloc (size_t num)
+{
+  void * p = (void *) malloc (num);
+  if (!p)
+    lt_fatal (&quot;Memory exhausted&quot;);
+
+  return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
+;
+}
+
+char *
+basename (const char *name)
+{
+  const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  /* Skip over the disk name in MSDOS pathnames. */
+  if (isalpha (name[0]) &amp;&amp; name[1] == ':')
+    name += 2;
+#endif
+
+  for (base = name; *name; name++)
+    if (IS_DIR_SEPARATOR (*name))
+      base = name + 1;
+  return (char *) base;
+}
+
+char *
+fnqualify(const char *path)
+{
+  size_t size;
+  char *p;
+  char tmp[LT_PATHMAX + 1];
+
+  assert(path != NULL);
+
+  /* Is it qualified already? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  if (isalpha (path[0]) &amp;&amp; path[1] == ':')
+    return xstrdup (path);
+#endif
+  if (IS_DIR_SEPARATOR (path[0]))
+    return xstrdup (path);
+
+  /* prepend the current directory */
+  /* doesn't handle '~' */
+  if (getcwd (tmp, LT_PATHMAX) == NULL)
+    lt_fatal (&quot;getcwd failed&quot;);
+  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
+  p = XMALLOC(char, size);
+  sprintf(p, &quot;%s%c%s&quot;, tmp, DIR_SEPARATOR, path);
+  return p;
+}
+
+char *
+strendzap(char *str, const char *pat)
+{
+  size_t len, patlen;
+
+  assert(str != NULL);
+  assert(pat != NULL);
+
+  len = strlen(str);
+  patlen = strlen(pat);
+
+  if (patlen &lt;= len)
+  {
+    str += len - patlen;
+    if (strcmp(str, pat) == 0)
+      *str = '\0';
+  }
+  return str;
+}
+
+static void
+lt_error_core (int exit_status, const char * mode,
+          const char * message, va_list ap)
+{
+  fprintf (stderr, &quot;%s: %s: &quot;, program_name, mode);
+  vfprintf (stderr, message, ap);
+  fprintf (stderr, &quot;.\n&quot;);
+
+  if (exit_status &gt;= 0)
+    exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+  va_list ap;
+  va_start (ap, message);
+  lt_error_core (EXIT_FAILURE, &quot;FATAL&quot;, message, ap);
+  va_end (ap);
+}
+EOF
+          # we should really use a build-platform specific compiler
+          # here, but OTOH, the wrappers (shell script and this C one)
+          # are only useful if you want to execute the &quot;real&quot; binary.
+          # Since the &quot;real&quot; binary is built for $host, then this
+          # wrapper might as well be built for $host, too.
+          $run $LTCC -s -o $cwrapper $cwrappersource
+          ;;
+        esac
+        $rm $output
+        trap &quot;$rm $output; exit $EXIT_FAILURE&quot; 1 2 15
+
+        $echo &gt; $output &quot;\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
+
+relink_command=\&quot;$relink_command\&quot;
+
+# This environment variable determines our operation mode.
+if test \&quot;\$libtool_install_magic\&quot; = \&quot;$magic\&quot;; then
+  # install mode needs the following variable:
+  notinst_deplibs='$notinst_deplibs'
+else
+  # When we are sourced in execute mode, \$file and \$echo are already set.
+  if test \&quot;\$libtool_execute_magic\&quot; != \&quot;$magic\&quot;; then
+    echo=\&quot;$qecho\&quot;
+    file=\&quot;\$0\&quot;
+    # Make sure echo works.
+    if test \&quot;X\$1\&quot; = X--no-reexec; then
+      # Discard the --no-reexec flag, and continue.
+      shift
+    elif test \&quot;X\`(\$echo '\t') 2&gt;/dev/null\`\&quot; = 'X\t'; then
+      # Yippee, \$echo works!
+      :
+    else
+      # Restart under the correct shell, and then maybe \$echo will work.
+      exec $SHELL \&quot;\$0\&quot; --no-reexec \${1+\&quot;\$@\&quot;}
+    fi
+  fi\
+&quot;
+        $echo &gt;&gt; $output &quot;\
+
+  # Find the directory that this script lives in.
+  thisdir=\`\$echo \&quot;X\$file\&quot; | \$Xsed -e 's%/[^/]*$%%'\`
+  test \&quot;x\$thisdir\&quot; = \&quot;x\$file\&quot; &amp;&amp; thisdir=.
+
+  # Follow symbolic links until we get to the real thisdir.
+  file=\`ls -ld \&quot;\$file\&quot; | ${SED} -n 's/.*-&gt; //p'\`
+  while test -n \&quot;\$file\&quot;; do
+    destdir=\`\$echo \&quot;X\$file\&quot; | \$Xsed -e 's%/[^/]*\$%%'\`
+
+    # If there was a directory component, then change thisdir.
+    if test \&quot;x\$destdir\&quot; != \&quot;x\$file\&quot;; then
+      case \&quot;\$destdir\&quot; in
+      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\&quot;\$destdir\&quot; ;;
+      *) thisdir=\&quot;\$thisdir/\$destdir\&quot; ;;
+      esac
+    fi
+
+    file=\`\$echo \&quot;X\$file\&quot; | \$Xsed -e 's%^.*/%%'\`
+    file=\`ls -ld \&quot;\$thisdir/\$file\&quot; | ${SED} -n 's/.*-&gt; //p'\`
+  done
+
+  # Try to get the absolute directory name.
+  absdir=\`cd \&quot;\$thisdir\&quot; &amp;&amp; pwd\`
+  test -n \&quot;\$absdir\&quot; &amp;&amp; thisdir=\&quot;\$absdir\&quot;
+&quot;
+
+        if test &quot;$fast_install&quot; = yes; then
+          $echo &gt;&gt; $output &quot;\
+  program=lt-'$outputname'$exeext
+  progdir=\&quot;\$thisdir/$objdir\&quot;
+
+  if test ! -f \&quot;\$progdir/\$program\&quot; || \\
+     { file=\`ls -1dt \&quot;\$progdir/\$program\&quot; \&quot;\$progdir/../\$program\&quot; 2&gt;/dev/null | ${SED} 1q\`; \\
+       test \&quot;X\$file\&quot; != \&quot;X\$progdir/\$program\&quot;; }; then
+
+    file=\&quot;\$\$-\$program\&quot;
+
+    if test ! -d \&quot;\$progdir\&quot;; then
+      $mkdir \&quot;\$progdir\&quot;
+    else
+      $rm \&quot;\$progdir/\$file\&quot;
+    fi&quot;
+
+          $echo &gt;&gt; $output &quot;\
+
+    # relink executable if necessary
+    if test -n \&quot;\$relink_command\&quot;; then
+      if relink_command_output=\`eval \$relink_command 2&gt;&amp;1\`; then :
+      else
+        $echo \&quot;\$relink_command_output\&quot; &gt;&amp;2
+        $rm \&quot;\$progdir/\$file\&quot;
+        exit $EXIT_FAILURE
+      fi
+    fi
+
+    $mv \&quot;\$progdir/\$file\&quot; \&quot;\$progdir/\$program\&quot; 2&gt;/dev/null ||
+    { $rm \&quot;\$progdir/\$program\&quot;;
+      $mv \&quot;\$progdir/\$file\&quot; \&quot;\$progdir/\$program\&quot;; }
+    $rm \&quot;\$progdir/\$file\&quot;
+  fi&quot;
+        else
+          $echo &gt;&gt; $output &quot;\
+  program='$outputname'
+  progdir=\&quot;\$thisdir/$objdir\&quot;
+&quot;
+        fi
+
+        $echo &gt;&gt; $output &quot;\
+
+  if test -f \&quot;\$progdir/\$program\&quot;; then&quot;
+
+        # Export our shlibpath_var if we have one.
+        if test &quot;$shlibpath_overrides_runpath&quot; = yes &amp;&amp; test -n &quot;$shlibpath_var&quot; &amp;&amp; test -n &quot;$temp_rpath&quot;; then
+          $echo &gt;&gt; $output &quot;\
+    # Add our own library path to $shlibpath_var
+    $shlibpath_var=\&quot;$temp_rpath\$$shlibpath_var\&quot;
+
+    # Some systems cannot cope with colon-terminated $shlibpath_var
+    # The second colon is a workaround for a bug in BeOS R4 sed
+    $shlibpath_var=\`\$echo \&quot;X\$$shlibpath_var\&quot; | \$Xsed -e 's/::*\$//'\`
+
+    export $shlibpath_var
+&quot;
+        fi
+
+        # fixup the dll searchpath if we need to.
+        if test -n &quot;$dllsearchpath&quot;; then
+          $echo &gt;&gt; $output &quot;\
+    # Add the dll search path components to the executable PATH
+    PATH=$dllsearchpath:\$PATH
+&quot;
+        fi
+
+        $echo &gt;&gt; $output &quot;\
+    if test \&quot;\$libtool_execute_magic\&quot; != \&quot;$magic\&quot;; then
+      # Run the actual program with our arguments.
+&quot;
+        case $host in
+        # Backslashes separate directories on plain windows
+        *-*-mingw | *-*-os2*)
+          $echo &gt;&gt; $output &quot;\
+      exec \&quot;\$progdir\\\\\$program\&quot; \${1+\&quot;\$@\&quot;}
+&quot;
+          ;;
+
+        *)
+          $echo &gt;&gt; $output &quot;\
+      exec \&quot;\$progdir/\$program\&quot; \${1+\&quot;\$@\&quot;}
+&quot;
+          ;;
+        esac
+        $echo &gt;&gt; $output &quot;\
+      \$echo \&quot;\$0: cannot exec \$program \${1+\&quot;\$@\&quot;}\&quot;
+      exit $EXIT_FAILURE
+    fi
+  else
+    # The program doesn't exist.
+    \$echo \&quot;\$0: error: \\\`\$progdir/\$program' does not exist\&quot; 1&gt;&amp;2
+    \$echo \&quot;This script is just a wrapper for \$program.\&quot; 1&gt;&amp;2
+    $echo \&quot;See the $PACKAGE documentation for more information.\&quot; 1&gt;&amp;2
+    exit $EXIT_FAILURE
+  fi
+fi\
+&quot;
+        chmod +x $output
+      fi
+      exit $EXIT_SUCCESS
+      ;;
+    esac
+
+    # See if we need to build an old-fashioned archive.
+    for oldlib in $oldlibs; do
+
+      if test &quot;$build_libtool_libs&quot; = convenience; then
+        oldobjs=&quot;$libobjs_save&quot;
+        addlibs=&quot;$convenience&quot;
+        build_libtool_libs=no
+      else
+        if test &quot;$build_libtool_libs&quot; = module; then
+          oldobjs=&quot;$libobjs_save&quot;
+          build_libtool_libs=no
+        else
+          oldobjs=&quot;$old_deplibs $non_pic_objects&quot;
+        fi
+        addlibs=&quot;$old_convenience&quot;
+      fi
+
+      if test -n &quot;$addlibs&quot;; then
+        gentop=&quot;$output_objdir/${outputname}x&quot;
+        generated=&quot;$generated $gentop&quot;
+
+        func_extract_archives $gentop $addlibs
+        oldobjs=&quot;$oldobjs $func_extract_archives_result&quot;
+      fi
+
+      # Do each command in the archive commands.
+      if test -n &quot;$old_archive_from_new_cmds&quot; &amp;&amp; test &quot;$build_libtool_libs&quot; = yes; then
+       cmds=$old_archive_from_new_cmds
+      else
+        # POSIX demands no paths to be encoded in archives.  We have
+        # to avoid creating archives with duplicate basenames if we
+        # might have to extract them afterwards, e.g., when creating a
+        # static archive out of a convenience library, or when linking
+        # the entirety of a libtool archive into another (currently
+        # not supported by libtool).
+        if (for obj in $oldobjs
+            do
+              $echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'
+            done | sort | sort -uc &gt;/dev/null 2&gt;&amp;1); then
+          :
+        else
+          $echo &quot;copying selected object files to avoid basename conflicts...&quot;
+
+          if test -z &quot;$gentop&quot;; then
+            gentop=&quot;$output_objdir/${outputname}x&quot;
+            generated=&quot;$generated $gentop&quot;
+
+            $show &quot;${rm}r $gentop&quot;
+            $run ${rm}r &quot;$gentop&quot;
+            $show &quot;$mkdir $gentop&quot;
+            $run $mkdir &quot;$gentop&quot;
+            status=$?
+            if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$gentop&quot;; then
+              exit $status
+            fi
+          fi
+
+          save_oldobjs=$oldobjs
+          oldobjs=
+          counter=1
+          for obj in $save_oldobjs
+          do
+            objbase=`$echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'`
+            case &quot; $oldobjs &quot; in
+            &quot; &quot;) oldobjs=$obj ;;
+            *[\ /]&quot;$objbase &quot;*)
+              while :; do
+                # Make sure we don't pick an alternate name that also
+                # overlaps.
+                newobj=lt$counter-$objbase
+                counter=`expr $counter + 1`
+                case &quot; $oldobjs &quot; in
+                *[\ /]&quot;$newobj &quot;*) ;;
+                *) if test ! -f &quot;$gentop/$newobj&quot;; then break; fi ;;
+                esac
+              done
+              $show &quot;ln $obj $gentop/$newobj || cp $obj $gentop/$newobj&quot;
+              $run ln &quot;$obj&quot; &quot;$gentop/$newobj&quot; ||
+              $run cp &quot;$obj&quot; &quot;$gentop/$newobj&quot;
+              oldobjs=&quot;$oldobjs $gentop/$newobj&quot;
+              ;;
+            *) oldobjs=&quot;$oldobjs $obj&quot; ;;
+            esac
+          done
+        fi
+
+        eval cmds=\&quot;$old_archive_cmds\&quot;
+
+        if len=`expr &quot;X$cmds&quot; : &quot;.*&quot;` &amp;&amp;
+             test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
+          cmds=$old_archive_cmds
+        else
+          # the command line is too long to link in one step, link in parts
+          $echo &quot;using piecewise archive linking...&quot;
+          save_RANLIB=$RANLIB
+          RANLIB=:
+          objlist=
+          concat_cmds=
+          save_oldobjs=$oldobjs
+
+          # Is there a better way of finding the last object in the list?
+          for obj in $save_oldobjs
+          do
+            last_oldobj=$obj
+          done
+          for obj in $save_oldobjs
+          do
+            oldobjs=&quot;$objlist $obj&quot;
+            objlist=&quot;$objlist $obj&quot;
+            eval test_cmds=\&quot;$old_archive_cmds\&quot;
+            if len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
+               test &quot;$len&quot; -le &quot;$max_cmd_len&quot;; then
+              :
+            else
+              # the above command should be used before it gets too long
+              oldobjs=$objlist
+              if test &quot;$obj&quot; = &quot;$last_oldobj&quot; ; then
+                RANLIB=$save_RANLIB
+              fi
+              test -z &quot;$concat_cmds&quot; || concat_cmds=$concat_cmds~
+              eval concat_cmds=\&quot;\${concat_cmds}$old_archive_cmds\&quot;
+              objlist=
+            fi
+          done
+          RANLIB=$save_RANLIB
+          oldobjs=$objlist
+          if test &quot;X$oldobjs&quot; = &quot;X&quot; ; then
+            eval cmds=\&quot;\$concat_cmds\&quot;
+          else
+            eval cmds=\&quot;\$concat_cmds~\$old_archive_cmds\&quot;
+          fi
+        fi
+      fi
+      save_ifs=&quot;$IFS&quot;; IFS='~'
+      for cmd in $cmds; do
+        eval cmd=\&quot;$cmd\&quot;
+        IFS=&quot;$save_ifs&quot;
+        $show &quot;$cmd&quot;
+        $run eval &quot;$cmd&quot; || exit $?
+      done
+      IFS=&quot;$save_ifs&quot;
+    done
+
+    if test -n &quot;$generated&quot;; then
+      $show &quot;${rm}r$generated&quot;
+      $run ${rm}r$generated
+    fi
+
+    # Now create the libtool archive.
+    case $output in
+    *.la)
+      old_library=
+      test &quot;$build_old_libs&quot; = yes &amp;&amp; old_library=&quot;$libname.$libext&quot;
+      $show &quot;creating $output&quot;
+
+      # Preserve any variables that may affect compiler behavior
+      for var in $variables_saved_for_relink; do
+        if eval test -z \&quot;\${$var+set}\&quot;; then
+          relink_command=&quot;{ test -z \&quot;\${$var+set}\&quot; || unset $var || { $var=; export $var; }; }; $relink_command&quot;
+        elif eval var_value=\$$var; test -z &quot;$var_value&quot;; then
+          relink_command=&quot;$var=; export $var; $relink_command&quot;
+        else
+          var_value=`$echo &quot;X$var_value&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+          relink_command=&quot;$var=\&quot;$var_value\&quot;; export $var; $relink_command&quot;
+        fi
+      done
+      # Quote the link command for shipping.
+      relink_command=&quot;(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)&quot;
+      relink_command=`$echo &quot;X$relink_command&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      if test &quot;$hardcode_automatic&quot; = yes ; then
+        relink_command=
+      fi
+
+
+      # Only create the output if not a dry run.
+      if test -z &quot;$run&quot;; then
+        for installed in no yes; do
+          if test &quot;$installed&quot; = yes; then
+            if test -z &quot;$install_libdir&quot;; then
+              break
+            fi
+            output=&quot;$output_objdir/$outputname&quot;i
+            # Replace all uninstalled libtool libraries with the installed ones
+            newdependency_libs=
+            for deplib in $dependency_libs; do
+              case $deplib in
+              *.la)
+                name=`$echo &quot;X$deplib&quot; | $Xsed -e 's%^.*/%%'`
+                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                if test -z &quot;$libdir&quot;; then
+                  $echo &quot;$modename: \`$deplib' is not a valid libtool archive&quot; 1&gt;&amp;2
+                  exit $EXIT_FAILURE
+                fi
+                newdependency_libs=&quot;$newdependency_libs $libdir/$name&quot;
+                ;
+              *) newdependency_libs=&quot;$newdependency_libs $deplib&quot; ;;
+              esac
+            done
+            dependency_libs=&quot;$newdependency_libs&quot;
+            newdlfiles=
+            for lib in $dlfiles; do
+              name=`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%'`
+              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+              if test -z &quot;$libdir&quot;; then
+                $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+                exit $EXIT_FAILURE
+              fi
+              newdlfiles=&quot;$newdlfiles $libdir/$name&quot;
+            done
+            dlfiles=&quot;$newdlfiles&quot;
+            newdlprefiles=
+            for lib in $dlprefiles; do
+              name=`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%'`
+              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+              if test -z &quot;$libdir&quot;; then
+                $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+                exit $EXIT_FAILURE
+              fi
+              newdlprefiles=&quot;$newdlprefiles $libdir/$name&quot;
+            done
+            dlprefiles=&quot;$newdlprefiles&quot;
+          else
+            newdlfiles=
+            for lib in $dlfiles; do
+              case $lib in
+                [\\/]* | [A-Za-z]:[\\/]*) abs=&quot;$lib&quot; ;;
+                *) abs=`pwd`&quot;/$lib&quot; ;;
+              esac
+              newdlfiles=&quot;$newdlfiles $abs&quot;
+            done
+            dlfiles=&quot;$newdlfiles&quot;
+            newdlprefiles=
+            for lib in $dlprefiles; do
+              case $lib in
+                [\\/]* | [A-Za-z]:[\\/]*) abs=&quot;$lib&quot; ;;
+                *) abs=`pwd`&quot;/$lib&quot; ;;
+              esac
+              newdlprefiles=&quot;$newdlprefiles $abs&quot;
+            done
+            dlprefiles=&quot;$newdlprefiles&quot;
+          fi
+          $rm $output
+          # place dlname in correct position for cygwin
+          tdlname=$dlname
+          case $host,$output,$installed,$module,$dlname in
+            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+          esac
+          $echo &gt; $output &quot;\
+# $outputname - a libtool library file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'&quot;
+          if test &quot;$installed&quot; = no &amp;&amp; test &quot;$need_relink&quot; = yes; then
+            $echo &gt;&gt; $output &quot;\
+relink_command=\&quot;$relink_command\&quot;&quot;
+          fi
+        done
+      fi
+
+      # Do a symbolic link so that the libtool archive can be found in
+      # LD_LIBRARY_PATH before the program is installed.
+      $show &quot;(cd $output_objdir &amp;&amp; $rm $outputname &amp;&amp; $LN_S ../$outputname $outputname)&quot;
+      $run eval '(cd $output_objdir &amp;&amp; $rm $outputname &amp;&amp; $LN_S ../$outputname $outputname)' || exit $?
+      ;;
+    esac
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool install mode
+  install)
+    modename=&quot;$modename: install&quot;
+
+    # There may be an optional sh(1) argument at the beginning of
+    # install_prog (especially on Windows NT).
+    if test &quot;$nonopt&quot; = &quot;$SHELL&quot; || test &quot;$nonopt&quot; = /bin/sh ||
+       # Allow the use of GNU shtool's install command.
+       $echo &quot;X$nonopt&quot; | grep shtool &gt; /dev/null; then
+      # Aesthetically quote it.
+      arg=`$echo &quot;X$nonopt&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      case $arg in
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+        arg=&quot;\&quot;$arg\&quot;&quot;
+        ;
+      esac
+      install_prog=&quot;$arg &quot;
+      arg=&quot;$1&quot;
+      shift
+    else
+      install_prog=
+      arg=$nonopt
+    fi
+
+    # The real first argument should be the name of the installation program.
+    # Aesthetically quote it.
+    arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+    case $arg in
+    *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+      arg=&quot;\&quot;$arg\&quot;&quot;
+      ;;
+    esac
+    install_prog=&quot;$install_prog$arg&quot;
+
+    # We need to accept at least all the BSD install flags.
+    dest=
+    files=
+    opts=
+    prev=
+    install_type=
+    isdir=no
+    stripme=
+    for arg
+    do
+      if test -n &quot;$dest&quot;; then
+        files=&quot;$files $dest&quot;
+        dest=$arg
+        continue
+      fi
+
+      case $arg in
+      -d) isdir=yes ;;
+      -f) 
+              case &quot; $install_prog &quot; in
+        *[\\\ /]cp\ *) ;;
+        *) prev=$arg ;;
+        esac
+        ;
+      -g | -m | -o) prev=$arg ;;
+      -s)
+        stripme=&quot; -s&quot;
+        continue
+        ;
+      -*)
+        ;
+      *)
+        # If the previous option needed an argument, then skip it.
+        if test -n &quot;$prev&quot;; then
+          prev=
+        else
+          dest=$arg
+          continue
+        fi
+        ;
+      esac
+
+      # Aesthetically quote the argument.
+      arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      case $arg in
+      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+        arg=&quot;\&quot;$arg\&quot;&quot;
+        ;
+      esac
+      install_prog=&quot;$install_prog $arg&quot;
+    done
+
+    if test -z &quot;$install_prog&quot;; then
+      $echo &quot;$modename: you must specify an install program&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    if test -n &quot;$prev&quot;; then
+      $echo &quot;$modename: the \`$prev' option requires an argument&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    if test -z &quot;$files&quot;; then
+      if test -z &quot;$dest&quot;; then
+        $echo &quot;$modename: no file or destination specified&quot; 1&gt;&amp;2
+      else
+        $echo &quot;$modename: you must specify a destination&quot; 1&gt;&amp;2
+      fi
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    # Strip any trailing slash from the destination.
+    dest=`$echo &quot;X$dest&quot; | $Xsed -e 's%/$%%'`
+
+    # Check to see that the destination is a directory.
+    test -d &quot;$dest&quot; &amp;&amp; isdir=yes
+    if test &quot;$isdir&quot; = yes; then
+      destdir=&quot;$dest&quot;
+      destname=
+    else
+      destdir=`$echo &quot;X$dest&quot; | $Xsed -e 's%/[^/]*$%%'`
+      test &quot;X$destdir&quot; = &quot;X$dest&quot; &amp;&amp; destdir=.
+      destname=`$echo &quot;X$dest&quot; | $Xsed -e 's%^.*/%%'`
+
+      # Not a directory, so check to see that there is only one file specified.
+      set dummy $files
+      if test &quot;$#&quot; -gt 2; then
+        $echo &quot;$modename: \`$dest' is not a directory&quot; 1&gt;&amp;2
+        $echo &quot;$help&quot; 1&gt;&amp;2
+        exit $EXIT_FAILURE
+      fi
+    fi
+    case $destdir in
+    [\\/]* | [A-Za-z]:[\\/]*) ;;
+    *)
+      for file in $files; do
+        case $file in
+        *.lo) ;;
+        *)
+          $echo &quot;$modename: \`$destdir' must be an absolute directory name&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+      done
+      ;;
+    esac
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic=&quot;$magic&quot;
+
+    staticlibs=
+    future_libdirs=
+    current_libdirs=
+    for file in $files; do
+
+      # Do each installation.
+      case $file in
+      *.$libext)
+        # Do the static libraries later.
+        staticlibs=&quot;$staticlibs $file&quot;
+        ;
+
+      *.la)
+        # Check to see that this really is a libtool archive.
+        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+        else
+          $echo &quot;$modename: \`$file' is not a valid libtool archive&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        library_names=
+        old_library=
+        relink_command=
+        # If there is no directory component, then add one.
+        case $file in
+        */* | *\\*) . $file ;;
+        *) . ./$file ;;
+        esac
+
+        # Add the libdir to current_libdirs if it is the destination.
+        if test &quot;X$destdir&quot; = &quot;X$libdir&quot;; then
+          case &quot;$current_libdirs &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) current_libdirs=&quot;$current_libdirs $libdir&quot; ;;
+          esac
+        else
+          # Note the libdir as a future libdir.
+          case &quot;$future_libdirs &quot; in
+          *&quot; $libdir &quot;*) ;;
+          *) future_libdirs=&quot;$future_libdirs $libdir&quot; ;;
+          esac
+        fi
+
+        dir=`$echo &quot;X$file&quot; | $Xsed -e 's%/[^/]*$%%'`/
+        test &quot;X$dir&quot; = &quot;X$file/&quot; &amp;&amp; dir=
+        dir=&quot;$dir$objdir&quot;
+
+        if test -n &quot;$relink_command&quot;; then
+          # Determine the prefix the user has applied to our future dir.
+          inst_prefix_dir=`$echo &quot;$destdir&quot; | $SED &quot;s%$libdir\$%%&quot;`
+
+          # Don't allow the user to place us outside of our expected
+          # location b/c this prevents finding dependent libraries that
+          # are installed to the same prefix.
+          # At present, this check doesn't affect windows .dll's that
+          # are installed into $libdir/../bin (currently, that works fine)
+          # but it's something to keep an eye on.
+          if test &quot;$inst_prefix_dir&quot; = &quot;$destdir&quot;; then
+            $echo &quot;$modename: error: cannot install \`$file' to a directory not ending in $libdir&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+
+          if test -n &quot;$inst_prefix_dir&quot;; then
+            # Stick the inst_prefix_dir data into the link command.
+            relink_command=`$echo &quot;$relink_command&quot; | $SED &quot;s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%&quot;`
+          else
+            relink_command=`$echo &quot;$relink_command&quot; | $SED &quot;s%@inst_prefix_dir@%%&quot;`
+          fi
+
+          $echo &quot;$modename: warning: relinking \`$file'&quot; 1&gt;&amp;2
+          $show &quot;$relink_command&quot;
+          if $run eval &quot;$relink_command&quot;; then :
+          else
+            $echo &quot;$modename: error: relink \`$file' with the above command before installing it&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+        fi
+
+        # See the names of the shared library.
+        set dummy $library_names
+        if test -n &quot;$2&quot;; then
+          realname=&quot;$2&quot;
+          shift
+          shift
+
+          srcname=&quot;$realname&quot;
+          test -n &quot;$relink_command&quot; &amp;&amp; srcname=&quot;$realname&quot;T
+
+          # Install the shared library and build the symlinks.
+          $show &quot;$install_prog $dir/$srcname $destdir/$realname&quot;
+          $run eval &quot;$install_prog $dir/$srcname $destdir/$realname&quot; || exit $?
+          if test -n &quot;$stripme&quot; &amp;&amp; test -n &quot;$striplib&quot;; then
+            $show &quot;$striplib $destdir/$realname&quot;
+            $run eval &quot;$striplib $destdir/$realname&quot; || exit $?
+          fi
+
+          if test &quot;$#&quot; -gt 0; then
+            # Delete the old symlinks, and create new ones.
+            # Try `ln -sf' first, because the `ln' binary might depend on
+            # the symlink we replace!  Solaris /bin/ln does not understand -f,
+            # so we also need to try rm &amp;&amp; ln -s.
+            for linkname
+            do
+              if test &quot;$linkname&quot; != &quot;$realname&quot;; then
+                $show &quot;(cd $destdir &amp;&amp; { $LN_S -f $realname $linkname || { $rm $linkname &amp;&amp; $LN_S $realname $linkname; }; })&quot;
+                $run eval &quot;(cd $destdir &amp;&amp; { $LN_S -f $realname $linkname || { $rm $linkname &amp;&amp; $LN_S $realname $linkname; }; })&quot;
+              fi
+            done
+          fi
+
+          # Do each command in the postinstall commands.
+          lib=&quot;$destdir/$realname&quot;
+          cmds=$postinstall_cmds
+          save_ifs=&quot;$IFS&quot;; IFS='~'
+          for cmd in $cmds; do
+            IFS=&quot;$save_ifs&quot;
+            eval cmd=\&quot;$cmd\&quot;
+            $show &quot;$cmd&quot;
+            $run eval &quot;$cmd&quot; || {
+              lt_exit=$?
+
+              # Restore the uninstalled library and exit
+              if test &quot;$mode&quot; = relink; then
+                $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv ${realname}U $realname)'
+              fi
+
+              exit $lt_exit
+            }
+          done
+          IFS=&quot;$save_ifs&quot;
+        fi
+
+        # Install the pseudo-library for information purposes.
+        name=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+        instname=&quot;$dir/$name&quot;i
+        $show &quot;$install_prog $instname $destdir/$name&quot;
+        $run eval &quot;$install_prog $instname $destdir/$name&quot; || exit $?
+
+        # Maybe install the static library, too.
+        test -n &quot;$old_library&quot; &amp;&amp; staticlibs=&quot;$staticlibs $dir/$old_library&quot;
+        ;
+
+      *.lo)
+        # Install (i.e. copy) a libtool object.
+
+        # Figure out destination file name, if it wasn't already specified.
+        if test -n &quot;$destname&quot;; then
+          destfile=&quot;$destdir/$destname&quot;
+        else
+          destfile=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+          destfile=&quot;$destdir/$destfile&quot;
+        fi
+
+        # Deduce the name of the destination old-style object file.
+        case $destfile in
+        *.lo)
+          staticdest=`$echo &quot;X$destfile&quot; | $Xsed -e &quot;$lo2o&quot;`
+          ;;
+        *.$objext)
+          staticdest=&quot;$destfile&quot;
+          destfile=
+          ;;
+        *)
+          $echo &quot;$modename: cannot copy a libtool object to \`$destfile'&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+          ;;
+        esac
+
+        # Install the libtool object if requested.
+        if test -n &quot;$destfile&quot;; then
+          $show &quot;$install_prog $file $destfile&quot;
+          $run eval &quot;$install_prog $file $destfile&quot; || exit $?
+        fi
+
+        # Install the old object if enabled.
+        if test &quot;$build_old_libs&quot; = yes; then
+          # Deduce the name of the old-style object file.
+          staticobj=`$echo &quot;X$file&quot; | $Xsed -e &quot;$lo2o&quot;`
+
+          $show &quot;$install_prog $staticobj $staticdest&quot;
+          $run eval &quot;$install_prog \$staticobj \$staticdest&quot; || exit $?
+        fi
+        exit $EXIT_SUCCESS
+        ;
+
+      *)
+        # Figure out destination file name, if it wasn't already specified.
+        if test -n &quot;$destname&quot;; then
+          destfile=&quot;$destdir/$destname&quot;
+        else
+          destfile=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+          destfile=&quot;$destdir/$destfile&quot;
+        fi
+
+        # If the file is missing, and there is a .exe on the end, strip it
+        # because it is most likely a libtool script we actually want to
+        # install
+        stripped_ext=&quot;&quot;
+        case $file in
+          *.exe)
+            if test ! -f &quot;$file&quot;; then
+              file=`$echo $file|${SED} 's,.exe$,,'`
+              stripped_ext=&quot;.exe&quot;
+            fi
+            ;;
+        esac
+
+        # Do a test to see if this is really a libtool program.
+        case $host in
+        *cygwin*|*mingw*)
+            wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
+            ;;
+        *)
+            wrapper=$file
+            ;;
+        esac
+        if (${SED} -e '4q' $wrapper | grep &quot;^# Generated by .*$PACKAGE&quot;)&gt;/dev/null 2&gt;&amp;1; then
+          notinst_deplibs=
+          relink_command=
+
+          # Note that it is not necessary on cygwin/mingw to append a dot to
+          # foo even if both foo and FILE.exe exist: automatic-append-.exe
+          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
+          # `FILE.' does not work on cygwin managed mounts.
+          #
+          # If there is no directory component, then add one.
+          case $wrapper in
+          */* | *\\*) . ${wrapper} ;;
+          *) . ./${wrapper} ;;
+          esac
+
+          # Check the variables that should have been set.
+          if test -z &quot;$notinst_deplibs&quot;; then
+            $echo &quot;$modename: invalid libtool wrapper script \`$wrapper'&quot; 1&gt;&amp;2
+            exit $EXIT_FAILURE
+          fi
+
+          finalize=yes
+          for lib in $notinst_deplibs; do
+            # Check to see that each library is installed.
+            libdir=
+            if test -f &quot;$lib&quot;; then
+              # If there is no directory component, then add one.
+              case $lib in
+              */* | *\\*) . $lib ;;
+              *) . ./$lib ;;
+              esac
+            fi
+            libfile=&quot;$libdir/&quot;`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+            if test -n &quot;$libdir&quot; &amp;&amp; test ! -f &quot;$libfile&quot;; then
+              $echo &quot;$modename: warning: \`$lib' has not been installed in \`$libdir'&quot; 1&gt;&amp;2
+              finalize=no
+            fi
+          done
+
+          relink_command=
+          # Note that it is not necessary on cygwin/mingw to append a dot to
+          # foo even if both foo and FILE.exe exist: automatic-append-.exe
+          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
+          # `FILE.' does not work on cygwin managed mounts.
+          #
+          # If there is no directory component, then add one.
+          case $wrapper in
+          */* | *\\*) . ${wrapper} ;;
+          *) . ./${wrapper} ;;
+          esac
+
+          outputname=
+          if test &quot;$fast_install&quot; = no &amp;&amp; test -n &quot;$relink_command&quot;; then
+            if test &quot;$finalize&quot; = yes &amp;&amp; test -z &quot;$run&quot;; then
+              tmpdir=&quot;/tmp&quot;
+              test -n &quot;$TMPDIR&quot; &amp;&amp; tmpdir=&quot;$TMPDIR&quot;
+              tmpdir=&quot;$tmpdir/libtool-$$&quot;
+              save_umask=`umask`
+              umask 0077
+              if $mkdir &quot;$tmpdir&quot;; then
+                umask $save_umask
+              else
+                umask $save_umask
+                $echo &quot;$modename: error: cannot create temporary directory \`$tmpdir'&quot; 1&gt;&amp;2
+                continue
+              fi
+              file=`$echo &quot;X$file$stripped_ext&quot; | $Xsed -e 's%^.*/%%'`
+              outputname=&quot;$tmpdir/$file&quot;
+              # Replace the output file specification.
+              relink_command=`$echo &quot;X$relink_command&quot; | $Xsed -e 's%@OUTPUT@%'&quot;$outputname&quot;'%g'`
+
+              $show &quot;$relink_command&quot;
+              if $run eval &quot;$relink_command&quot;; then :
+              else
+                $echo &quot;$modename: error: relink \`$file' with the above command before installing it&quot; 1&gt;&amp;2
+                ${rm}r &quot;$tmpdir&quot;
+                continue
+              fi
+              file=&quot;$outputname&quot;
+            else
+              $echo &quot;$modename: warning: cannot relink \`$file'&quot; 1&gt;&amp;2
+            fi
+          else
+            # Install the binary that we compiled earlier.
+            file=`$echo &quot;X$file$stripped_ext&quot; | $Xsed -e &quot;s%\([^/]*\)$%$objdir/\1%&quot;`
+          fi
+        fi
+
+        # remove .exe since cygwin /usr/bin/install will append another
+        # one anyway 
+        case $install_prog,$host in
+        */usr/bin/install*,*cygwin*)
+          case $file:$destfile in
+          *.exe:*.exe)
+            # this is ok
+            ;;
+          *.exe:*)
+            destfile=$destfile.exe
+            ;;
+          *:*.exe)
+            destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
+            ;;
+          esac
+          ;;
+        esac
+        $show &quot;$install_prog$stripme $file $destfile&quot;
+        $run eval &quot;$install_prog\$stripme \$file \$destfile&quot; || exit $?
+        test -n &quot;$outputname&quot; &amp;&amp; ${rm}r &quot;$tmpdir&quot;
+        ;
+      esac
+    done
+
+    for file in $staticlibs; do
+      name=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+
+      # Set up the ranlib parameters.
+      oldlib=&quot;$destdir/$name&quot;
+
+      $show &quot;$install_prog $file $oldlib&quot;
+      $run eval &quot;$install_prog \$file \$oldlib&quot; || exit $?
+
+      if test -n &quot;$stripme&quot; &amp;&amp; test -n &quot;$old_striplib&quot;; then
+        $show &quot;$old_striplib $oldlib&quot;
+        $run eval &quot;$old_striplib $oldlib&quot; || exit $?
+      fi
+
+      # Do each command in the postinstall commands.
+      cmds=$old_postinstall_cmds
+      save_ifs=&quot;$IFS&quot;; IFS='~'
+      for cmd in $cmds; do
+        IFS=&quot;$save_ifs&quot;
+        eval cmd=\&quot;$cmd\&quot;
+        $show &quot;$cmd&quot;
+        $run eval &quot;$cmd&quot; || exit $?
+      done
+      IFS=&quot;$save_ifs&quot;
+    done
+
+    if test -n &quot;$future_libdirs&quot;; then
+      $echo &quot;$modename: warning: remember to run \`$progname --finish$future_libdirs'&quot; 1&gt;&amp;2
+    fi
+
+    if test -n &quot;$current_libdirs&quot;; then
+      # Maybe just do a dry run.
+      test -n &quot;$run&quot; &amp;&amp; current_libdirs=&quot; -n$current_libdirs&quot;
+      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+    else
+      exit $EXIT_SUCCESS
+    fi
+    ;;
+
+  # libtool finish mode
+  finish)
+    modename=&quot;$modename: finish&quot;
+    libdirs=&quot;$nonopt&quot;
+    admincmds=
+
+    if test -n &quot;$finish_cmds$finish_eval&quot; &amp;&amp; test -n &quot;$libdirs&quot;; then
+      for dir
+      do
+        libdirs=&quot;$libdirs $dir&quot;
+      done
+
+      for libdir in $libdirs; do
+        if test -n &quot;$finish_cmds&quot;; then
+          # Do each command in the finish commands.
+          cmds=$finish_cmds
+          save_ifs=&quot;$IFS&quot;; IFS='~'
+          for cmd in $cmds; do
+            IFS=&quot;$save_ifs&quot;
+            eval cmd=\&quot;$cmd\&quot;
+            $show &quot;$cmd&quot;
+            $run eval &quot;$cmd&quot; || admincmds=&quot;$admincmds
+       $cmd&quot;
+          done
+          IFS=&quot;$save_ifs&quot;
+        fi
+        if test -n &quot;$finish_eval&quot;; then
+          # Do the single finish_eval.
+          eval cmds=\&quot;$finish_eval\&quot;
+          $run eval &quot;$cmds&quot; || admincmds=&quot;$admincmds
+       $cmds&quot;
+        fi
+      done
+    fi
+
+    # Exit here if they wanted silent mode.
+    test &quot;$show&quot; = : &amp;&amp; exit $EXIT_SUCCESS
+
+    $echo &quot;----------------------------------------------------------------------&quot;
+    $echo &quot;Libraries have been installed in:&quot;
+    for libdir in $libdirs; do
+      $echo &quot;   $libdir&quot;
+    done
+    $echo
+    $echo &quot;If you ever happen to want to link against installed libraries&quot;
+    $echo &quot;in a given directory, LIBDIR, you must either use libtool, and&quot;
+    $echo &quot;specify the full pathname of the library, or use the \`-LLIBDIR'&quot;
+    $echo &quot;flag during linking and do at least one of the following:&quot;
+    if test -n &quot;$shlibpath_var&quot;; then
+      $echo &quot;   - add LIBDIR to the \`$shlibpath_var' environment variable&quot;
+      $echo &quot;     during execution&quot;
+    fi
+    if test -n &quot;$runpath_var&quot;; then
+      $echo &quot;   - add LIBDIR to the \`$runpath_var' environment variable&quot;
+      $echo &quot;     during linking&quot;
+    fi
+    if test -n &quot;$hardcode_libdir_flag_spec&quot;; then
+      libdir=LIBDIR
+      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+
+      $echo &quot;   - use the \`$flag' linker flag&quot;
+    fi
+    if test -n &quot;$admincmds&quot;; then
+      $echo &quot;   - have your system administrator run these commands:$admincmds&quot;
+    fi
+    if test -f /etc/ld.so.conf; then
+      $echo &quot;   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'&quot;
+    fi
+    $echo
+    $echo &quot;See any operating system documentation about shared libraries for&quot;
+    $echo &quot;more information, such as the ld(1) and ld.so(8) manual pages.&quot;
+    $echo &quot;----------------------------------------------------------------------&quot;
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool execute mode
+  execute)
+    modename=&quot;$modename: execute&quot;
+
+    # The first argument is the command name.
+    cmd=&quot;$nonopt&quot;
+    if test -z &quot;$cmd&quot;; then
+      $echo &quot;$modename: you must specify a COMMAND&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot;
+      exit $EXIT_FAILURE
+    fi
+
+    # Handle -dlopen flags immediately.
+    for file in $execute_dlfiles; do
+      if test ! -f &quot;$file&quot;; then
+        $echo &quot;$modename: \`$file' is not a file&quot; 1&gt;&amp;2
+        $echo &quot;$help&quot; 1&gt;&amp;2
+        exit $EXIT_FAILURE
+      fi
+
+      dir=
+      case $file in
+      *.la)
+        # Check to see that this really is a libtool archive.
+        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+        else
+          $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+          $echo &quot;$help&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+
+        # Read the libtool library.
+        dlname=
+        library_names=
+
+        # If there is no directory component, then add one.
+        case $file in
+        */* | *\\*) . $file ;;
+        *) . ./$file ;;
+        esac
+
+        # Skip this library if it cannot be dlopened.
+        if test -z &quot;$dlname&quot;; then
+          # Warn if it was a shared library.
+          test -n &quot;$library_names&quot; &amp;&amp; $echo &quot;$modename: warning: \`$file' was not linked with \`-export-dynamic'&quot;
+          continue
+        fi
+
+        dir=`$echo &quot;X$file&quot; | $Xsed -e 's%/[^/]*$%%'`
+        test &quot;X$dir&quot; = &quot;X$file&quot; &amp;&amp; dir=.
+
+        if test -f &quot;$dir/$objdir/$dlname&quot;; then
+          dir=&quot;$dir/$objdir&quot;
+        else
+          $echo &quot;$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'&quot; 1&gt;&amp;2
+          exit $EXIT_FAILURE
+        fi
+        ;
+
+      *.lo)
+        # Just add the directory containing the .lo file.
+        dir=`$echo &quot;X$file&quot; | $Xsed -e 's%/[^/]*$%%'`
+        test &quot;X$dir&quot; = &quot;X$file&quot; &amp;&amp; dir=.
+        ;
+
+      *)
+        $echo &quot;$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects&quot; 1&gt;&amp;2
+        continue
+        ;
+      esac
+
+      # Get the absolute pathname.
+      absdir=`cd &quot;$dir&quot; &amp;&amp; pwd`
+      test -n &quot;$absdir&quot; &amp;&amp; dir=&quot;$absdir&quot;
+
+      # Now add the directory to shlibpath_var.
+      if eval &quot;test -z \&quot;\$$shlibpath_var\&quot;&quot;; then
+        eval &quot;$shlibpath_var=\&quot;\$dir\&quot;&quot;
+      else
+        eval &quot;$shlibpath_var=\&quot;\$dir:\$$shlibpath_var\&quot;&quot;
+      fi
+    done
+
+    # This variable tells wrapper scripts just to set shlibpath_var
+    # rather than running their programs.
+    libtool_execute_magic=&quot;$magic&quot;
+
+    # Check if any of the arguments is a wrapper script.
+    args=
+    for file
+    do
+      case $file in
+      -*) ;;
+      *)
+        # Do a test to see if this is really a libtool program.
+        if (${SED} -e '4q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+          # If there is no directory component, then add one.
+          case $file in
+          */* | *\\*) . $file ;;
+          *) . ./$file ;;
+          esac
+
+          # Transform arg to wrapped name.
+          file=&quot;$progdir/$program&quot;
+        fi
+        ;
+      esac
+      # Quote arguments (to preserve shell metacharacters).
+      file=`$echo &quot;X$file&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+      args=&quot;$args \&quot;$file\&quot;&quot;
+    done
+
+    if test -z &quot;$run&quot;; then
+      if test -n &quot;$shlibpath_var&quot;; then
+        # Export the shlibpath_var.
+        eval &quot;export $shlibpath_var&quot;
+      fi
+
+      # Restore saved environment variables
+      if test &quot;${save_LC_ALL+set}&quot; = set; then
+        LC_ALL=&quot;$save_LC_ALL&quot;; export LC_ALL
+      fi
+      if test &quot;${save_LANG+set}&quot; = set; then
+        LANG=&quot;$save_LANG&quot;; export LANG
+      fi
+
+      # Now prepare to actually exec the command.
+      exec_cmd=&quot;\$cmd$args&quot;
+    else
+      # Display what would be done.
+      if test -n &quot;$shlibpath_var&quot;; then
+        eval &quot;\$echo \&quot;\$shlibpath_var=\$$shlibpath_var\&quot;&quot;
+        $echo &quot;export $shlibpath_var&quot;
+      fi
+      $echo &quot;$cmd$args&quot;
+      exit $EXIT_SUCCESS
+    fi
+    ;;
+
+  # libtool clean and uninstall mode
+  clean | uninstall)
+    modename=&quot;$modename: $mode&quot;
+    rm=&quot;$nonopt&quot;
+    files=
+    rmforce=
+    exit_status=0
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic=&quot;$magic&quot;
+
+    for arg
+    do
+      case $arg in
+      -f) rm=&quot;$rm $arg&quot;; rmforce=yes ;;
+      -*) rm=&quot;$rm $arg&quot; ;;
+      *) files=&quot;$files $arg&quot; ;;
+      esac
+    done
+
+    if test -z &quot;$rm&quot;; then
+      $echo &quot;$modename: you must specify an RM program&quot; 1&gt;&amp;2
+      $echo &quot;$help&quot; 1&gt;&amp;2
+      exit $EXIT_FAILURE
+    fi
+
+    rmdirs=
+
+    origobjdir=&quot;$objdir&quot;
+    for file in $files; do
+      dir=`$echo &quot;X$file&quot; | $Xsed -e 's%/[^/]*$%%'`
+      if test &quot;X$dir&quot; = &quot;X$file&quot;; then
+        dir=.
+        objdir=&quot;$origobjdir&quot;
+      else
+        objdir=&quot;$dir/$origobjdir&quot;
+      fi
+      name=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+      test &quot;$mode&quot; = uninstall &amp;&amp; objdir=&quot;$dir&quot;
+
+      # Remember objdir for removal later, being careful to avoid duplicates
+      if test &quot;$mode&quot; = clean; then
+        case &quot; $rmdirs &quot; in
+          *&quot; $objdir &quot;*) ;;
+          *) rmdirs=&quot;$rmdirs $objdir&quot; ;;
+        esac
+      fi
+
+      # Don't error if the file doesn't exist and rm -f was used.
+      if (test -L &quot;$file&quot;) &gt;/dev/null 2&gt;&amp;1 \
+        || (test -h &quot;$file&quot;) &gt;/dev/null 2&gt;&amp;1 \
+        || test -f &quot;$file&quot;; then
+        :
+      elif test -d &quot;$file&quot;; then
+        exit_status=1
+        continue
+      elif test &quot;$rmforce&quot; = yes; then
+        continue
+      fi
+
+      rmfiles=&quot;$file&quot;
+
+      case $name in
+      *.la)
+        # Possibly a libtool archive, so verify it.
+        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+          . $dir/$name
+
+          # Delete the libtool libraries and symlinks.
+          for n in $library_names; do
+            rmfiles=&quot;$rmfiles $objdir/$n&quot;
+          done
+          test -n &quot;$old_library&quot; &amp;&amp; rmfiles=&quot;$rmfiles $objdir/$old_library&quot;
+          test &quot;$mode&quot; = clean &amp;&amp; rmfiles=&quot;$rmfiles $objdir/$name $objdir/${name}i&quot;
+
+          if test &quot;$mode&quot; = uninstall; then
+            if test -n &quot;$library_names&quot;; then
+              # Do each command in the postuninstall commands.
+              cmds=$postuninstall_cmds
+              save_ifs=&quot;$IFS&quot;; IFS='~'
+              for cmd in $cmds; do
+                IFS=&quot;$save_ifs&quot;
+                eval cmd=\&quot;$cmd\&quot;
+                $show &quot;$cmd&quot;
+                $run eval &quot;$cmd&quot;
+                if test &quot;$?&quot; -ne 0 &amp;&amp; test &quot;$rmforce&quot; != yes; then
+                  exit_status=1
+                fi
+              done
+              IFS=&quot;$save_ifs&quot;
+            fi
+
+            if test -n &quot;$old_library&quot;; then
+              # Do each command in the old_postuninstall commands.
+              cmds=$old_postuninstall_cmds
+              save_ifs=&quot;$IFS&quot;; IFS='~'
+              for cmd in $cmds; do
+                IFS=&quot;$save_ifs&quot;
+                eval cmd=\&quot;$cmd\&quot;
+                $show &quot;$cmd&quot;
+                $run eval &quot;$cmd&quot;
+                if test &quot;$?&quot; -ne 0 &amp;&amp; test &quot;$rmforce&quot; != yes; then
+                  exit_status=1
+                fi
+              done
+              IFS=&quot;$save_ifs&quot;
+            fi
+            # FIXME: should reinstall the best remaining shared library.
+          fi
+        fi
+        ;
+
+      *.lo)
+        # Possibly a libtool object, so verify it.
+        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+
+          # Read the .lo file
+          . $dir/$name
+
+          # Add PIC object to the list of files to remove.
+          if test -n &quot;$pic_object&quot; \
+             &amp;&amp; test &quot;$pic_object&quot; != none; then
+            rmfiles=&quot;$rmfiles $dir/$pic_object&quot;
+          fi
+
+          # Add non-PIC object to the list of files to remove.
+          if test -n &quot;$non_pic_object&quot; \
+             &amp;&amp; test &quot;$non_pic_object&quot; != none; then
+            rmfiles=&quot;$rmfiles $dir/$non_pic_object&quot;
+          fi
+        fi
+        ;
+
+      *)
+        if test &quot;$mode&quot; = clean ; then
+          noexename=$name
+          case $file in
+          *.exe)
+            file=`$echo $file|${SED} 's,.exe$,,'`
+            noexename=`$echo $name|${SED} 's,.exe$,,'`
+            # $file with .exe has already been added to rmfiles,
+            # add $file without .exe
+            rmfiles=&quot;$rmfiles $file&quot;
+            ;;
+          esac
+          # Do a test to see if this is a libtool program.
+          if (${SED} -e '4q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+            relink_command=
+            . $dir/$noexename
+
+            # note $name still contains .exe if it was in $file originally
+            # as does the version of $file that was added into $rmfiles
+            rmfiles=&quot;$rmfiles $objdir/$name $objdir/${name}S.${objext}&quot;
+            if test &quot;$fast_install&quot; = yes &amp;&amp; test -n &quot;$relink_command&quot;; then
+              rmfiles=&quot;$rmfiles $objdir/lt-$name&quot;
+            fi
+            if test &quot;X$noexename&quot; != &quot;X$name&quot; ; then
+              rmfiles=&quot;$rmfiles $objdir/lt-${noexename}.c&quot;
+            fi
+          fi
+        fi
+        ;
+      esac
+      $show &quot;$rm $rmfiles&quot;
+      $run $rm $rmfiles || exit_status=1
+    done
+    objdir=&quot;$origobjdir&quot;
+
+    # Try to remove the ${objdir}s in the directories where we deleted files
+    for dir in $rmdirs; do
+      if test -d &quot;$dir&quot;; then
+        $show &quot;rmdir $dir&quot;
+        $run rmdir $dir &gt;/dev/null 2&gt;&amp;1
+      fi
+    done
+
+    exit $exit_status
+    ;;
+
+  &quot;&quot;)
+    $echo &quot;$modename: you must specify a MODE&quot; 1&gt;&amp;2
+    $echo &quot;$generic_help&quot; 1&gt;&amp;2
+    exit $EXIT_FAILURE
+    ;;
+  esac
+
+  if test -z &quot;$exec_cmd&quot;; then
+    $echo &quot;$modename: invalid operation mode \`$mode'&quot; 1&gt;&amp;2
+    $echo &quot;$generic_help&quot; 1&gt;&amp;2
+    exit $EXIT_FAILURE
+  fi
+fi # test -z &quot;$show_help&quot;
+
+if test -n &quot;$exec_cmd&quot;; then
+  eval exec $exec_cmd
+  exit $EXIT_FAILURE
+fi
+
+# We need to display help for each of the modes.
+case $mode in
+&quot;&quot;) $echo \
+&quot;Usage: $modename [OPTION]... [MODE-ARG]...
+
+Provide generalized library-building support services.
+
+    --config          show all configuration variables
+    --debug           enable verbose shell tracing
+-n, --dry-run         display commands without modifying any files
+    --features        display basic configuration information and exit
+    --finish          same as \`--mode=finish'
+    --help            display this help message and exit
+    --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
+    --quiet           same as \`--silent'
+    --silent          don't print informational messages
+    --tag=TAG         use configuration variables from tag TAG
+    --version         print version information
+
+MODE must be one of the following:
+
+      clean           remove files from the build directory
+      compile         compile a source file into a libtool object
+      execute         automatically set library path, then run a program
+      finish          complete the installation of libtool libraries
+      install         install libraries or executables
+      link            create a library or an executable
+      uninstall       remove libraries from an installed directory
+
+MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
+a more detailed description of MODE.
+
+Report bugs to &lt;bug-libtool@gnu.org&gt;.&quot;
+  exit $EXIT_SUCCESS
+  ;;
+
+clean)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM.&quot;
+  ;;
+
+compile)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
+  -prefer-pic       try to building PIC objects only
+  -prefer-non-pic   try to building non-PIC objects only
+  -static           always build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'.&quot;
+  ;;
+
+execute)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+  -dlopen FILE      add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments.&quot;
+  ;;
+
+finish)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges.  Use
+the \`--dry-run' option if you just want to see what would be executed.&quot;
+  ;;
+
+install)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command.  The first component should be
+either the \`install' or \`cp' program.
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized).&quot;
+  ;;
+
+link)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+  -all-static       do not do any dynamic linking at all
+  -avoid-version    do not add a version suffix if possible
+  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
+  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
+  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+  -export-symbols SYMFILE
+                    try to export only the symbols listed in SYMFILE
+  -export-symbols-regex REGEX
+                    try to export only the symbols matching REGEX
+  -LLIBDIR          search LIBDIR for required installed libraries
+  -lNAME            OUTPUT-FILE requires the installed library libNAME
+  -module           build a library that can dlopened
+  -no-fast-install  disable the fast-install mode
+  -no-install       link a not-installable executable
+  -no-undefined     declare that a library does not refer to external symbols
+  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
+  -objectlist FILE  Use a list of object files found in FILE to specify objects
+  -precious-files-regex REGEX
+                    don't remove output files matching REGEX
+  -release RELEASE  specify package release information
+  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
+  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
+  -static           do not do any dynamic linking of libtool libraries
+  -version-info CURRENT[:REVISION[:AGE]]
+                    specify library version info [each variable defaults to 0]
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename.  Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created.&quot;
+  ;;
+
+uninstall)
+  $echo \
+&quot;Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM.&quot;
+  ;;
+
+*)
+  $echo &quot;$modename: invalid operation mode \`$mode'&quot; 1&gt;&amp;2
+  $echo &quot;$help&quot; 1&gt;&amp;2
+  exit $EXIT_FAILURE
+  ;;
+esac
+
+$echo
+$echo &quot;Try \`$modename --help' for more information about other modes.&quot;
+
+exit $?
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries.  Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them.  This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration.  But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsmissing"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/missing (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/missing                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/missing        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,336 @@
</span><ins>+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard &lt;pinard@iro.umontreal.ca&gt;, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+  echo 1&gt;&amp;2 &quot;Try \`$0 --help' for more information&quot;
+  exit 1
+fi
+
+run=:
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+  configure_ac=configure.ac
+else
+  configure_ac=configure.in
+fi
+
+case &quot;$1&quot; in
+--run)
+  # Try to run requested program, and just exit if it succeeds.
+  run=
+  shift
+  &quot;$@&quot; &amp;&amp; exit 0
+  ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case &quot;$1&quot; in
+
+  -h|--h|--he|--hel|--help)
+    echo &quot;\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+  -h, --help      display this help and exit
+  -v, --version   output version information and exit
+  --run           try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+  aclocal      touch file \`aclocal.m4'
+  autoconf     touch file \`configure'
+  autoheader   touch file \`config.h.in'
+  automake     touch all \`Makefile.in' files
+  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
+  flex         create \`lex.yy.c', if possible, from existing .c
+  help2man     touch the output file
+  lex          create \`lex.yy.c', if possible, from existing .c
+  makeinfo     touch the output file
+  tar          try tar, gnutar, gtar, then tar without non-portable flags
+  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]&quot;
+    ;;
+
+  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+    echo &quot;missing 0.4 - GNU automake&quot;
+    ;;
+
+  -*)
+    echo 1&gt;&amp;2 &quot;$0: Unknown \`$1' option&quot;
+    echo 1&gt;&amp;2 &quot;Try \`$0 --help' for more information&quot;
+    exit 1
+    ;;
+
+  aclocal*)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
+         to install the \`Automake' and \`Perl' packages.  Grab them from
+         any GNU archive site.&quot;
+    touch aclocal.m4
+    ;;
+
+  autoconf)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified \`${configure_ac}'.  You might want to install the
+         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
+         archive site.&quot;
+    touch configure
+    ;;
+
+  autoheader)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
+         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
+         from any GNU archive site.&quot;
+    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+    test -z &quot;$files&quot; &amp;&amp; files=&quot;config.h&quot;
+    touch_files=
+    for f in $files; do
+      case &quot;$f&quot; in
+      *:*) touch_files=&quot;$touch_files &quot;`echo &quot;$f&quot; |
+                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+      *) touch_files=&quot;$touch_files $f.in&quot;;;
+      esac
+    done
+    touch $touch_files
+    ;;
+
+  automake*)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+         You might want to install the \`Automake' and \`Perl' packages.
+         Grab them from any GNU archive site.&quot;
+    find . -type f -name Makefile.am -print |
+           sed 's/\.am$/.in/' |
+           while read f; do touch &quot;$f&quot;; done
+    ;;
+
+  autom4te)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is needed, and you do not seem to have it handy on your
+         system.  You might have modified some files without having the
+         proper tools for further handling them.
+         You can get \`$1Help2man' as part of \`Autoconf' from any GNU
+         archive site.&quot;
+
+    file=`echo &quot;$*&quot; | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
+    test -z &quot;$file&quot; &amp;&amp; file=`echo &quot;$*&quot; | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
+    if test -f &quot;$file&quot;; then
+        touch $file
+    else
+        test -z &quot;$file&quot; || exec &gt;$file
+        echo &quot;#! /bin/sh&quot;
+        echo &quot;# Created by GNU Automake missing as a replacement of&quot;
+        echo &quot;#  $ $@&quot;
+        echo &quot;exit 0&quot;
+        chmod +x $file
+        exit 1
+    fi
+    ;;
+
+  bison|yacc)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified a \`.y' file.  You may need the \`Bison' package
+         in order for those modifications to take effect.  You can get
+         \`Bison' from any GNU archive site.&quot;
+    rm -f y.tab.c y.tab.h
+    if [ $# -ne 1 ]; then
+        eval LASTARG=&quot;\${$#}&quot;
+        case &quot;$LASTARG&quot; in
+        *.y)
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/y$/c/'`
+            if [ -f &quot;$SRCFILE&quot; ]; then
+                 cp &quot;$SRCFILE&quot; y.tab.c
+            fi
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/y$/h/'`
+            if [ -f &quot;$SRCFILE&quot; ]; then
+                 cp &quot;$SRCFILE&quot; y.tab.h
+            fi
+          ;;
+        esac
+    fi
+    if [ ! -f y.tab.h ]; then
+        echo &gt;y.tab.h
+    fi
+    if [ ! -f y.tab.c ]; then
+        echo 'main() { return 0; }' &gt;y.tab.c
+    fi
+    ;;
+
+  lex|flex)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified a \`.l' file.  You may need the \`Flex' package
+         in order for those modifications to take effect.  You can get
+         \`Flex' from any GNU archive site.&quot;
+    rm -f lex.yy.c
+    if [ $# -ne 1 ]; then
+        eval LASTARG=&quot;\${$#}&quot;
+        case &quot;$LASTARG&quot; in
+        *.l)
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/l$/c/'`
+            if [ -f &quot;$SRCFILE&quot; ]; then
+                 cp &quot;$SRCFILE&quot; lex.yy.c
+            fi
+          ;;
+        esac
+    fi
+    if [ ! -f lex.yy.c ]; then
+        echo 'main() { return 0; }' &gt;lex.yy.c
+    fi
+    ;;
+
+  help2man)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified a dependency of a manual page.  You may need the
+         \`Help2man' package in order for those modifications to take
+         effect.  You can get \`Help2man' from any GNU archive site.&quot;
+
+    file=`echo &quot;$*&quot; | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+    if test -z &quot;$file&quot;; then
+        file=`echo &quot;$*&quot; | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
+    fi
+    if [ -f &quot;$file&quot; ]; then
+        touch $file
+    else
+        test -z &quot;$file&quot; || exec &gt;$file
+        echo &quot;.ab help2man is required to generate this page&quot;
+        exit 1
+    fi
+    ;;
+
+  makeinfo)
+    if test -z &quot;$run&quot; &amp;&amp; (makeinfo --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have makeinfo, but it failed.
+       exit 1
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is missing on your system.  You should only need it if
+         you modified a \`.texi' or \`.texinfo' file, or any other file
+         indirectly affecting the aspect of the manual.  The spurious
+         call might also be the consequence of using a buggy \`make' (AIX,
+         DU, IRIX).  You might want to install the \`Texinfo' package or
+         the \`GNU make' package.  Grab either from any GNU archive site.&quot;
+    file=`echo &quot;$*&quot; | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+    if test -z &quot;$file&quot;; then
+      file=`echo &quot;$*&quot; | sed 's/.* \([^ ]*\) *$/\1/'`
+      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
+    fi
+    touch $file
+    ;;
+
+  tar)
+    shift
+    if test -n &quot;$run&quot;; then
+      echo 1&gt;&amp;2 &quot;ERROR: \`tar' requires --run&quot;
+      exit 1
+    fi
+
+    # We have already tried tar in the generic part.
+    # Look for gnutar/gtar before invocation to avoid ugly error
+    # messages.
+    if (gnutar --version &gt; /dev/null 2&gt;&amp;1); then
+       gnutar &quot;$@&quot; &amp;&amp; exit 0
+    fi
+    if (gtar --version &gt; /dev/null 2&gt;&amp;1); then
+       gtar &quot;$@&quot; &amp;&amp; exit 0
+    fi
+    firstarg=&quot;$1&quot;
+    if shift; then
+        case &quot;$firstarg&quot; in
+        *o*)
+            firstarg=`echo &quot;$firstarg&quot; | sed s/o//`
+            tar &quot;$firstarg&quot; &quot;$@&quot; &amp;&amp; exit 0
+            ;;
+        esac
+        case &quot;$firstarg&quot; in
+        *h*)
+            firstarg=`echo &quot;$firstarg&quot; | sed s/h//`
+            tar &quot;$firstarg&quot; &quot;$@&quot; &amp;&amp; exit 0
+            ;;
+        esac
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+         You may want to install GNU tar or Free paxutils, or check the
+         command line arguments.&quot;
+    exit 1
+    ;;
+
+  *)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is needed, and you do not seem to have it handy on your
+         system.  You might have modified some files without having the
+         proper tools for further handling them.  Check the \`README' file,
+         it often tells you about the needed prerequirements for installing
+         this package.  You may also peek at any GNU archive site, in case
+         some other package would contain this missing \`$1' program.&quot;
+    exit 1
+    ;;
+esac
+
+exit 0
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1scriptsmkinstalldirs"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/mkinstalldirs (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/mkinstalldirs                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/scripts/mkinstalldirs        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman &lt;friedman@prep.ai.mit.edu&gt;
+# Created: 1993-05-16
+# Public domain
+
+# $Id: mkinstalldirs,v 1.1 1999/06/27 07:45:05 cvs Exp $
+
+errstatus=0
+
+for file
+do
+   set fnord `echo &quot;:$file&quot; | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+   shift
+
+   pathcomp=
+   for d
+   do
+     pathcomp=&quot;$pathcomp$d&quot;
+     case &quot;$pathcomp&quot; in
+       -* ) pathcomp=./$pathcomp ;;
+     esac
+
+     if test ! -d &quot;$pathcomp&quot;; then
+        echo &quot;mkdir $pathcomp&quot; 1&gt;&amp;2
+
+        mkdir &quot;$pathcomp&quot; || lasterr=$?
+
+        if test ! -d &quot;$pathcomp&quot;; then
+            errstatus=$lasterr
+        fi
+     fi
+
+     pathcomp=&quot;$pathcomp/&quot;
+   done
+done
+
+exit $errstatus
+
+# mkinstalldirs ends here
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1stamphin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/stamp-h.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/stamp-h.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/stamp-h.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+timestamp
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsMakefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: tests Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 21.5.1999
+# *************************************************************************
+
+INCLUDES =                -I..
+
+noinst_PROGRAMS =        testsms testsms2 testparser testgsmlib testpb testpb2 \
+                        testspb testssms testcb
+
+TESTS =                        runspb.sh runspb2.sh runssms.sh runsms.sh \
+                        runparser.sh runspbi.sh
+
+# test files used for file-based phonebook and SMS testing
+EXTRA_DIST =                spb.pb runspb.sh runspb2.sh runssms.sh runsms.sh \
+                        runparser.sh \
+                        spb.pb spb2.pb \
+                        testparser-output.txt testspb-output.txt \
+                        testssms-output.txt testsms-output.txt \
+                        testspb2-output.txt \
+                        runspbi.sh spbi2-orig.pb spbi1.pb testspbi-output.txt
+
+# build testsms from testsms.cc and libgsmme.la
+testsms_SOURCES =        testsms.cc
+testsms_LDADD =                ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testsms2 from testsms2.cc and libgsmme.la
+testsms2_SOURCES =        testsms2.cc
+testsms2_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testparser from testparser.cc and libgsmme.la
+testparser_SOURCES =        testparser.cc
+testparser_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testgsmlib from testgsmlib.cc and libgsmme.la
+testgsmlib_SOURCES =        testgsmlib.cc
+testgsmlib_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testpb from testpb.cc and libgsmme.la
+testpb_SOURCES =        testpb.cc
+testpb_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testpb2 from testpb2.cc and libgsmme.la
+testpb2_SOURCES =        testpb2.cc
+testpb2_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testspb from testspb.cc and libgsmme.la
+testspb_SOURCES =        testspb.cc
+testspb_LDADD =        ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testssms from testssms.cc and libgsmme.la
+testssms_SOURCES = testssms.cc
+testssms_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testcb from testcb.cc and libgsmme.la
+testcb_SOURCES = testcb.cc
+testcb_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsMakefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,544 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: tests Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 21.5.1999
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+INCLUDES = -I..
+
+noinst_PROGRAMS = testsms testsms2 testparser testgsmlib testpb testpb2 \
+                        testspb testssms testcb
+
+
+TESTS = runspb.sh runspb2.sh runssms.sh runsms.sh \
+                        runparser.sh runspbi.sh
+
+
+# test files used for file-based phonebook and SMS testing
+EXTRA_DIST = spb.pb runspb.sh runspb2.sh runssms.sh runsms.sh \
+                        runparser.sh \
+                        spb.pb spb2.pb \
+                        testparser-output.txt testspb-output.txt \
+                        testssms-output.txt testsms-output.txt \
+                        testspb2-output.txt \
+                        runspbi.sh spbi2-orig.pb spbi1.pb testspbi-output.txt
+
+
+# build testsms from testsms.cc and libgsmme.la
+testsms_SOURCES = testsms.cc
+testsms_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testsms2 from testsms2.cc and libgsmme.la
+testsms2_SOURCES = testsms2.cc
+testsms2_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testparser from testparser.cc and libgsmme.la
+testparser_SOURCES = testparser.cc
+testparser_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testgsmlib from testgsmlib.cc and libgsmme.la
+testgsmlib_SOURCES = testgsmlib.cc
+testgsmlib_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testpb from testpb.cc and libgsmme.la
+testpb_SOURCES = testpb.cc
+testpb_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testpb2 from testpb2.cc and libgsmme.la
+testpb2_SOURCES = testpb2.cc
+testpb2_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testspb from testspb.cc and libgsmme.la
+testspb_SOURCES = testspb.cc
+testspb_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testssms from testssms.cc and libgsmme.la
+testssms_SOURCES = testssms.cc
+testssms_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+
+# build testcb from testcb.cc and libgsmme.la
+testcb_SOURCES = testcb.cc
+testcb_LDADD = ../gsmlib/libgsmme.la $(INTLLIBS)
+subdir = tests
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+noinst_PROGRAMS = testsms$(EXEEXT) testsms2$(EXEEXT) testparser$(EXEEXT) \
+        testgsmlib$(EXEEXT) testpb$(EXEEXT) testpb2$(EXEEXT) \
+        testspb$(EXEEXT) testssms$(EXEEXT) testcb$(EXEEXT)
+PROGRAMS = $(noinst_PROGRAMS)
+
+am_testcb_OBJECTS = testcb.$(OBJEXT)
+testcb_OBJECTS = $(am_testcb_OBJECTS)
+testcb_DEPENDENCIES = ../gsmlib/libgsmme.la
+testcb_LDFLAGS =
+am_testgsmlib_OBJECTS = testgsmlib.$(OBJEXT)
+testgsmlib_OBJECTS = $(am_testgsmlib_OBJECTS)
+testgsmlib_DEPENDENCIES = ../gsmlib/libgsmme.la
+testgsmlib_LDFLAGS =
+am_testparser_OBJECTS = testparser.$(OBJEXT)
+testparser_OBJECTS = $(am_testparser_OBJECTS)
+testparser_DEPENDENCIES = ../gsmlib/libgsmme.la
+testparser_LDFLAGS =
+am_testpb_OBJECTS = testpb.$(OBJEXT)
+testpb_OBJECTS = $(am_testpb_OBJECTS)
+testpb_DEPENDENCIES = ../gsmlib/libgsmme.la
+testpb_LDFLAGS =
+am_testpb2_OBJECTS = testpb2.$(OBJEXT)
+testpb2_OBJECTS = $(am_testpb2_OBJECTS)
+testpb2_DEPENDENCIES = ../gsmlib/libgsmme.la
+testpb2_LDFLAGS =
+am_testsms_OBJECTS = testsms.$(OBJEXT)
+testsms_OBJECTS = $(am_testsms_OBJECTS)
+testsms_DEPENDENCIES = ../gsmlib/libgsmme.la
+testsms_LDFLAGS =
+am_testsms2_OBJECTS = testsms2.$(OBJEXT)
+testsms2_OBJECTS = $(am_testsms2_OBJECTS)
+testsms2_DEPENDENCIES = ../gsmlib/libgsmme.la
+testsms2_LDFLAGS =
+am_testspb_OBJECTS = testspb.$(OBJEXT)
+testspb_OBJECTS = $(am_testspb_OBJECTS)
+testspb_DEPENDENCIES = ../gsmlib/libgsmme.la
+testspb_LDFLAGS =
+am_testssms_OBJECTS = testssms.$(OBJEXT)
+testssms_OBJECTS = $(am_testssms_OBJECTS)
+testssms_DEPENDENCIES = ../gsmlib/libgsmme.la
+testssms_LDFLAGS =
+
+DEFS = @DEFS@
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
+am__depfiles_maybe = depfiles
+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/testcb.Po ./$(DEPDIR)/testgsmlib.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/testparser.Po ./$(DEPDIR)/testpb.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/testpb2.Po ./$(DEPDIR)/testsms.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/testsms2.Po ./$(DEPDIR)/testspb.Po \
+@AMDEP_TRUE@        ./$(DEPDIR)/testssms.Po
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+        $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+        $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CXXFLAGS = @CXXFLAGS@
+DIST_SOURCES = $(testcb_SOURCES) $(testgsmlib_SOURCES) \
+        $(testparser_SOURCES) $(testpb_SOURCES) $(testpb2_SOURCES) \
+        $(testsms_SOURCES) $(testsms2_SOURCES) $(testspb_SOURCES) \
+        $(testssms_SOURCES)
+DIST_COMMON = Makefile.am Makefile.in
+SOURCES = $(testcb_SOURCES) $(testgsmlib_SOURCES) $(testparser_SOURCES) $(testpb_SOURCES) $(testpb2_SOURCES) $(testsms_SOURCES) $(testsms2_SOURCES) $(testspb_SOURCES) $(testssms_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  tests/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+clean-noinstPROGRAMS:
+        @list='$(noinst_PROGRAMS)'; for p in $$list; do \
+          f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+          echo &quot; rm -f $$p $$f&quot;; \
+          rm -f $$p $$f ; \
+        done
+testcb$(EXEEXT): $(testcb_OBJECTS) $(testcb_DEPENDENCIES) 
+        @rm -f testcb$(EXEEXT)
+        $(CXXLINK) $(testcb_LDFLAGS) $(testcb_OBJECTS) $(testcb_LDADD) $(LIBS)
+testgsmlib$(EXEEXT): $(testgsmlib_OBJECTS) $(testgsmlib_DEPENDENCIES) 
+        @rm -f testgsmlib$(EXEEXT)
+        $(CXXLINK) $(testgsmlib_LDFLAGS) $(testgsmlib_OBJECTS) $(testgsmlib_LDADD) $(LIBS)
+testparser$(EXEEXT): $(testparser_OBJECTS) $(testparser_DEPENDENCIES) 
+        @rm -f testparser$(EXEEXT)
+        $(CXXLINK) $(testparser_LDFLAGS) $(testparser_OBJECTS) $(testparser_LDADD) $(LIBS)
+testpb$(EXEEXT): $(testpb_OBJECTS) $(testpb_DEPENDENCIES) 
+        @rm -f testpb$(EXEEXT)
+        $(CXXLINK) $(testpb_LDFLAGS) $(testpb_OBJECTS) $(testpb_LDADD) $(LIBS)
+testpb2$(EXEEXT): $(testpb2_OBJECTS) $(testpb2_DEPENDENCIES) 
+        @rm -f testpb2$(EXEEXT)
+        $(CXXLINK) $(testpb2_LDFLAGS) $(testpb2_OBJECTS) $(testpb2_LDADD) $(LIBS)
+testsms$(EXEEXT): $(testsms_OBJECTS) $(testsms_DEPENDENCIES) 
+        @rm -f testsms$(EXEEXT)
+        $(CXXLINK) $(testsms_LDFLAGS) $(testsms_OBJECTS) $(testsms_LDADD) $(LIBS)
+testsms2$(EXEEXT): $(testsms2_OBJECTS) $(testsms2_DEPENDENCIES) 
+        @rm -f testsms2$(EXEEXT)
+        $(CXXLINK) $(testsms2_LDFLAGS) $(testsms2_OBJECTS) $(testsms2_LDADD) $(LIBS)
+testspb$(EXEEXT): $(testspb_OBJECTS) $(testspb_DEPENDENCIES) 
+        @rm -f testspb$(EXEEXT)
+        $(CXXLINK) $(testspb_LDFLAGS) $(testspb_OBJECTS) $(testspb_LDADD) $(LIBS)
+testssms$(EXEEXT): $(testssms_OBJECTS) $(testssms_DEPENDENCIES) 
+        @rm -f testssms$(EXEEXT)
+        $(CXXLINK) $(testssms_LDFLAGS) $(testssms_OBJECTS) $(testssms_LDADD) $(LIBS)
+
+mostlyclean-compile:
+        -rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+        -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testcb.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testgsmlib.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testparser.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testpb.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testpb2.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testsms.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testsms2.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testspb.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testssms.Po@am__quote@
+
+distclean-depend:
+        -rm -rf ./$(DEPDIR)
+
+.cc.o:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+
+.cc.obj:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(CXXCOMPILE) -c -o $@ `cygpath -w $&lt;`
+
+.cc.lo:
+@AMDEP_TRUE@        source='$&lt;' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@        depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+@AMDEP_TRUE@        $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+        $(LTCXXCOMPILE) -c -o $@ `test -f '$&lt;' || echo '$(srcdir)/'`$&lt;
+CXXDEPMODE = @CXXDEPMODE@
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+
+ETAGS = etags
+ETAGSFLAGS =
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        mkid -fID $$unique
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+                $(TAGS_FILES) $(LISP)
+        tags=; \
+        here=`pwd`; \
+        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+        unique=`for i in $$list; do \
+            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+          done | \
+          $(AWK) '    { files[$$0] = 1; } \
+               END { for (i in files) print i; }'`; \
+        test -z &quot;$(ETAGS_ARGS)$$tags$$unique&quot; \
+          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$tags $$unique
+
+GTAGS:
+        here=`$(am__cd) $(top_builddir) &amp;&amp; pwd` \
+          &amp;&amp; cd $(top_srcdir) \
+          &amp;&amp; gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+
+check-TESTS: $(TESTS)
+        @failed=0; all=0; xfail=0; xpass=0; \
+        srcdir=$(srcdir); export srcdir; \
+        list='$(TESTS)'; \
+        if test -n &quot;$$list&quot;; then \
+          for tst in $$list; do \
+            if test -f ./$$tst; then dir=./; \
+            elif test -f $$tst; then dir=; \
+            else dir=&quot;$(srcdir)/&quot;; fi; \
+            if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+              all=`expr $$all + 1`; \
+              case &quot; $(XFAIL_TESTS) &quot; in \
+              *&quot; $$tst &quot;*) \
+                xpass=`expr $$xpass + 1`; \
+                failed=`expr $$failed + 1`; \
+                echo &quot;XPASS: $$tst&quot;; \
+              ;; \
+              *) \
+                echo &quot;PASS: $$tst&quot;; \
+              ;; \
+              esac; \
+            elif test $$? -ne 77; then \
+              all=`expr $$all + 1`; \
+              case &quot; $(XFAIL_TESTS) &quot; in \
+              *&quot; $$tst &quot;*) \
+                xfail=`expr $$xfail + 1`; \
+                echo &quot;XFAIL: $$tst&quot;; \
+              ;; \
+              *) \
+                failed=`expr $$failed + 1`; \
+                echo &quot;FAIL: $$tst&quot;; \
+              ;; \
+              esac; \
+            fi; \
+          done; \
+          if test &quot;$$failed&quot; -eq 0; then \
+            if test &quot;$$xfail&quot; -eq 0; then \
+              banner=&quot;All $$all tests passed&quot;; \
+            else \
+              banner=&quot;All $$all tests behaved as expected ($$xfail expected failures)&quot;; \
+            fi; \
+          else \
+            if test &quot;$$xpass&quot; -eq 0; then \
+              banner=&quot;$$failed of $$all tests failed&quot;; \
+            else \
+              banner=&quot;$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)&quot;; \
+            fi; \
+          fi; \
+          dashes=`echo &quot;$$banner&quot; | sed s/./=/g`; \
+          echo &quot;$$dashes&quot;; \
+          echo &quot;$$banner&quot;; \
+          echo &quot;$$dashes&quot;; \
+          test &quot;$$failed&quot; -eq 0; \
+        else :; fi
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+        $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(PROGRAMS)
+
+installdirs:
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
+        mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+        distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+        mostlyclean-libtool
+
+uninstall-am: uninstall-info-am
+
+.PHONY: GTAGS all all-am check check-TESTS check-am clean clean-generic \
+        clean-libtool clean-noinstPROGRAMS distclean distclean-compile \
+        distclean-depend distclean-generic distclean-libtool \
+        distclean-tags distdir dvi dvi-am info info-am install \
+        install-am install-data install-data-am install-exec \
+        install-exec-am install-info install-info-am install-man \
+        install-strip installcheck installcheck-am installdirs \
+        maintainer-clean maintainer-clean-generic mostlyclean \
+        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+        tags uninstall uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunparsersh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runparser.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runparser.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runparser.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+# run the test
+./testparser &gt; testparser.log
+
+# check if output differs from what it should be
+diff testparser.log testparser-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunsmssh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runsms.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runsms.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runsms.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+# prepare locales to make date format reproducible
+LC_ALL=en_US
+LANG=en
+LINGUAS=en
+export LC_ALL LANG LINGUAS
+
+# run the test
+./testsms &gt; testsms.log
+
+# check if output differs from what it should be
+diff testsms.log testsms-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspbsh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+cp spb.pb spb-copy.pb || errorexit &quot;could not copy spb.pb to spb-copy.pb&quot;
+
+# run the test
+./testspb &gt; testspb.log
+
+# add new contents of phonebook file to the test log
+cat spb-copy.pb &gt;&gt; testspb.log
+
+# check if output differs from what it should be
+diff testspb.log testspb-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspb2sh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb2.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb2.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspb2.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+cp spb2.pb spb-copy.pb || errorexit &quot;could not copy spb2.pb to spb2-copy.pb&quot;
+
+# run the test
+./testspb &gt; testspb2.log
+
+# add new contents of phonebook file to the test log
+cat spb-copy.pb &gt;&gt; testspb2.log
+
+# check if output differs from what it should be
+diff testspb2.log testspb2-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunspbish"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspbi.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspbi.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runspbi.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+cp spbi2-orig.pb spbi2.pb ||
+    errorexit &quot;could not copy spbi2-orig.pb to spbi2.pb&quot;
+    
+# run the test
+../apps/gsmpb -V -i -s spbi1.pb -d spbi2.pb &gt; testspbi.log
+
+# add new contents of phonebook file to the test log
+cat spbi2.pb &gt;&gt; testspbi.log
+
+# check if output differs from what it should be
+diff testspbi.log testspbi-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsrunssmssh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runssms.sh (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runssms.sh                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/runssms.sh        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+#!/bin/sh
+
+errorexit() {
+    echo $1
+    exit 1
+}
+
+rm -f sms.sms || errorexit &quot;could not delete sms.sms&quot;
+touch sms.sms || errorexit &quot;could not create sms.sms&quot;
+
+# prepare locales to make date format reproducible
+LC_ALL=en_US
+LANG=en
+LINGUAS=en
+export LC_ALL LANG LINGUAS
+
+# run the test
+./testssms &gt; testssms.log
+
+# check if output differs from what it should be
+diff testssms.log testssms-output.txt
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbpb"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb.pb (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb.pb                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb.pb        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+|Dieter Meier|793045
+|Edgar Hofmann|42345
+|Goethe|847159
+|Hans Hofmann|12345
+|Hans-Dieter Schmidt|82345
+|Hans-Dieter Schmidt|13333345
+|Heiner M\xFCller|7890
+|line with \||0815
+|line with\\|0815
+|One line\rback to start|0815
+|two\nline|0815
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspb2pb"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb2.pb (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb2.pb                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spb2.pb        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+|Dieter Meier|017793045
+|Edgar Hofmann|+4942345
+|Goethe|847159
+|Hans Hofmann|0171
+|Hans-Dieter Schmidt|82345
+|Hans-Dieter Schmidt|13333345
+|Heiner M\xFCller|7890
+|line with \||0815
+|line with\\|0815
+|One line\rback to start|0815
+|two\nline|0815
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbi1pb"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi1.pb (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi1.pb                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi1.pb        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+1|Nummer 4|4444444
+3|Nummer 3|3333333
+5|same name|12345
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1testsspbi2origpb"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi2-orig.pb (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi2-orig.pb                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/spbi2-orig.pb        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+2|Nummer 3|3333333
+4|Nummer 4|4444444
+5|same name|23456
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestcbcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testcb.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testcb.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testcb.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    testcb.cc
+// *
+// * Purpose: Test cell broadcast SMS
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 3.8.2001
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_cb.h&gt;
+#include &lt;gsmlib/gsm_nls.h&gt;
+#include &lt;gsmlib/gsm_error.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    CBMessageRef cbm = new CBMessage(&quot;001000320111C3343D0F82C51A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100&quot;);
+    
+    cout &lt;&lt; cbm-&gt;toString();
+    
+    cbm = new CBMessage(&quot;001000320111C4EAB3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100&quot;);
+    
+    cout &lt;&lt; cbm-&gt;toString();
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; argv[0] &lt;&lt; _(&quot;[ERROR]: &quot;) &lt;&lt; ge.what() &lt;&lt; endl;
+  }
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestgsmlibcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testgsmlib.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testgsmlib.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testgsmlib.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,178 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    testgsmlib.cc
+// *
+// * Purpose: Test general gsm functions (without SMS/phonebook)
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 17.5.1999
+// *************************************************************************
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#endif
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+// some time-consuming tests can be switched off by commenting out the
+// following macros
+#define TEST_OPERATOR_INFO
+
+void printForwardReason(string s, ForwardInfo &amp;info)
+{
+  cout &lt;&lt; &quot;  &quot; &lt;&lt; s &lt;&lt; &quot;: &quot;
+       &lt;&lt; (info._active ? &quot;active &quot; : &quot;inactive &quot;)
+       &lt;&lt; &quot;number: &quot; &lt;&lt; info._number
+       &lt;&lt; &quot;  subaddr: &quot; &lt;&lt; info._subAddr
+       &lt;&lt; &quot;  time: &quot; &lt;&lt; info._time &lt;&lt; endl;
+}
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    cout &lt;&lt; (string)&quot;Opening device &quot; + argv[1] &lt;&lt; endl;
+#ifdef WIN32
+    Ref&lt;Port&gt; port = new Win32SerialPort((string)argv[1], 38400);
+#else
+        Ref&lt;Port&gt; port = new UnixSerialPort((string)argv[1], B38400);
+#endif
+
+    cout &lt;&lt; &quot;Creating MeTa object&quot; &lt;&lt; endl;
+    MeTa m(port);
+
+    cout &lt;&lt; &quot;Getting ME info&quot; &lt;&lt; endl;
+    MEInfo mei = m.getMEInfo();
+
+    cout &lt;&lt; &quot;  Manufacturer: &quot; &lt;&lt; mei._manufacturer &lt;&lt; endl
+         &lt;&lt; &quot;  Model: &quot; &lt;&lt; mei._model &lt;&lt; endl
+         &lt;&lt; &quot;  Revision: &quot; &lt;&lt; mei._revision &lt;&lt; endl
+         &lt;&lt; &quot;  Serial Number: &quot; &lt;&lt; mei._serialNumber &lt;&lt; endl &lt;&lt; endl;
+
+#ifdef TEST_OPERATOR_INFO
+    try
+    {
+      cout &lt;&lt; &quot;Getting operator info&quot; &lt;&lt; endl;
+      vector&lt;OPInfo&gt; opis = m.getAvailableOPInfo();
+      for (vector&lt;OPInfo&gt;::iterator i = opis.begin(); i != opis.end(); ++i)
+      {
+        cout &lt;&lt; &quot;  Status: &quot;;
+        switch (i-&gt;_status)
+        {
+        case 0: cout &lt;&lt; &quot;unknown&quot;; break;
+        case 1: cout &lt;&lt; &quot;current&quot;; break;
+        case 2: cout &lt;&lt; &quot;available&quot;; break;
+        case 3: cout &lt;&lt; &quot;forbidden&quot;; break;
+        }
+        cout &lt;&lt; endl
+             &lt;&lt; &quot;  Long name: '&quot; &lt;&lt; i-&gt;_longName &lt;&lt; &quot;' &quot;
+             &lt;&lt; &quot;  Short name: '&quot; &lt;&lt; i-&gt;_shortName &lt;&lt; &quot;' &quot;
+             &lt;&lt; &quot;  Numeric name: &quot; &lt;&lt; i-&gt;_numericName &lt;&lt; endl;
+      }
+    }
+    catch (GsmException &amp;ge)
+    {
+      if (ge.getErrorCode() == 0)
+        cout &lt;&lt; &quot;phone failure ignored&quot; &lt;&lt; endl;
+      else
+        throw;
+    }
+    cout &lt;&lt; endl;
+#endif // TEST_OPERATOR_INFO
+
+    cout &lt;&lt; &quot;Current operator info&quot; &lt;&lt; endl;
+    OPInfo opi = m.getCurrentOPInfo();
+    cout &lt;&lt; &quot;  Long name: '&quot; &lt;&lt; opi._longName &lt;&lt; &quot;' &quot;
+         &lt;&lt; &quot;  Short name: '&quot; &lt;&lt; opi._shortName &lt;&lt; &quot;' &quot;
+         &lt;&lt; &quot;  Numeric name: &quot; &lt;&lt; opi._numericName &lt;&lt; endl
+         &lt;&lt; &quot;  Mode: &quot;;
+    switch (opi._mode)
+    {
+    case 0: cout &lt;&lt; &quot;automatic&quot;; break;
+    case 1: cout &lt;&lt; &quot;manual&quot;; break;
+    case 2: cout &lt;&lt; &quot;deregister&quot;; break;
+    case 4: cout &lt;&lt; &quot;manual/automatic&quot;; break;
+    }
+    cout &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Facility lock capabilities&quot; &lt;&lt; endl &lt;&lt; &quot;  &quot;;
+    vector&lt;string&gt; fclc = m.getFacilityLockCapabilities();
+    for (vector&lt;string&gt;::iterator i = fclc.begin(); i != fclc.end(); ++i)
+      cout &lt;&lt; *i &lt;&lt; &quot; &quot;;
+    cout &lt;&lt; endl &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Facility lock states&quot; &lt;&lt; endl;
+    for (vector&lt;string&gt;::iterator k = fclc.begin(); k != fclc.end(); ++k)
+      if (*k != &quot;AB&quot; &amp;&amp; *k != &quot;AG&quot; &amp;&amp; *k != &quot;AC&quot;)
+      {
+        cout &lt;&lt; &quot;  &quot; &lt;&lt; *k;
+        if (m.getFacilityLockStatus(*k, VoiceFacility))
+          cout &lt;&lt; &quot;  Voice&quot;;
+        if (m.getFacilityLockStatus(*k, DataFacility))
+          cout &lt;&lt; &quot;  Data&quot;;
+        if (m.getFacilityLockStatus(*k, FaxFacility))
+          cout &lt;&lt; &quot;  Fax&quot;;
+      }
+    cout &lt;&lt; endl;
+    
+    cout &lt;&lt; &quot;Facilities with password&quot; &lt;&lt; endl;
+    vector&lt;PWInfo&gt; pwi = m.getPasswords();
+    for (vector&lt;PWInfo&gt;::iterator j = pwi.begin(); j != pwi.end(); ++j)
+      cout &lt;&lt; &quot;  &quot; &lt;&lt; j-&gt;_facility &lt;&lt; &quot; len &quot; &lt;&lt; j-&gt;_maxPasswdLen &lt;&lt; endl;
+    cout &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Network caller line identification identification: &quot;
+         &lt;&lt; (m.getNetworkCLIP() ? &quot;on&quot; : &quot;off&quot;) &lt;&lt; endl &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Call forwarding information&quot; &lt;&lt; endl;
+    for (int r = 0; r &lt; 4; ++r)
+    {
+      switch (r)
+      {
+      case 0: cout &lt;&lt; &quot;UnconditionalReason&quot; &lt;&lt; endl; break;
+      case 1: cout &lt;&lt; &quot;MobileBusyReason&quot; &lt;&lt; endl; break;
+      case 2: cout &lt;&lt; &quot;NoReplyReason&quot; &lt;&lt; endl; break;
+      case 3: cout &lt;&lt; &quot;NotReachableReason&quot; &lt;&lt; endl; break;
+      }
+      ForwardInfo voice, fax, data;
+      m.getCallForwardInfo((ForwardReason)r, voice, fax, data);
+      printForwardReason(&quot;Voice&quot;, voice);
+      printForwardReason(&quot;Data&quot;, data);
+      printForwardReason(&quot;Fax&quot;, fax);
+    }
+    cout &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Battery charge status&quot; &lt;&lt; endl;
+    int bcs = m.getBatteryChargeStatus();
+    switch (bcs)
+    {
+    case 0: cout &lt;&lt; &quot;ME is powered by the battery&quot; &lt;&lt; endl; break;
+    case 1: cout &lt;&lt; &quot;ME has a battery connected, but is not powered by it&quot;
+                 &lt;&lt; endl; break;
+    case 2: cout &lt;&lt; &quot;ME does not have a battery connected&quot; &lt;&lt; endl; break;
+    case 3: cout &lt;&lt; &quot;Recognized power fault, calls inhibited&quot; &lt;&lt; endl; break;
+    }
+    cout &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Battery charge: &quot; &lt;&lt; m.getBatteryCharge() &lt;&lt; endl &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Signal strength: &quot; &lt;&lt; m.getSignalStrength() &lt;&lt; endl &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Bit error rate: &quot; &lt;&lt; m.getBitErrorRate() &lt;&lt; endl &lt;&lt; endl;
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestparseroutputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+Test 1
+(),(&quot;ME&quot;,&quot;SM&quot;,&quot;Which of the three items does not belong here?&quot;)
+
+Test 2
+(1-5),425,&quot;+abcd&quot;efgh&quot;
+
+Test 3
+(1,2,3,4,5,7,11,12,25),425,Thisisatest.&quot;+a&quot;ef&quot;andsoforth
+
+Test 4
+(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125),(20),16
+
+Test 5
+SM,7
+
+Test 6
+(2,&quot;S TELIA MOBITEL&quot;,&quot;S TELIA&quot;,24001)
+
+Error 1: expected ')' (at position 4 of string '(4-5')
+
+Error 3: expected end of line (at position 5 of string '&quot;bla&quot;bla&quot;')
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestparsercc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testparser.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,200 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    testparser.cc
+// *
+// * Purpose: Test AT result code parser
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 17.5.1999
+// *************************************************************************
+
+#include &lt;gsmlib/gsm_parser.h&gt;
+#include &lt;assert.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+void printIntList(vector&lt;bool&gt; &amp;vb)
+{
+  cout &lt;&lt; &quot;(&quot;;
+  int j = 0;
+  bool first = true;
+  for (vector&lt;bool&gt;::iterator i = vb.begin();
+       i != vb.end(); ++i)
+  {
+    if (*i)
+    {
+      if (! first) cout &lt;&lt; &quot;,&quot;;
+      cout &lt;&lt; j;
+      first = false;
+    }
+    ++j;
+  }
+  cout &lt;&lt; &quot;)&quot;;
+}
+
+void printIntRange(IntRange ir)
+{
+  cout &lt;&lt; &quot;(&quot; &lt;&lt; ir._low &lt;&lt; &quot;-&quot; &lt;&lt; ir._high &lt;&lt; &quot;)&quot;;
+}
+
+void printStringList(vector&lt;string&gt; vs)
+{
+  bool first = true;
+  cout &lt;&lt; &quot;(&quot;;
+  for (vector&lt;string&gt;::iterator i = vs.begin();
+       i != vs.end(); ++i)
+  {
+    if (! first) cout &lt;&lt; &quot;,&quot;;
+    cout &lt;&lt; &quot;\&quot;&quot; &lt;&lt; *i &lt;&lt; &quot;\&quot;&quot;;
+    first = false;
+  }
+  cout &lt;&lt; &quot;)&quot;;
+}
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    {
+      cout &lt;&lt; &quot;Test 1&quot; &lt;&lt; endl;
+      Parser p((string)&quot;,(\&quot;ME\&quot;, \&quot;SM\&quot;,&quot; +
+               &quot;\&quot;Which of the three items does not belong here?\&quot;)&quot;);
+
+      vector&lt;string&gt; vs1 = p.parseStringList(true);
+      p.parseComma();
+      vector&lt;string&gt; vs2 = p.parseStringList();
+      bool comma = p.parseComma(true);
+
+      printStringList(vs1);
+      cout &lt;&lt; &quot;,&quot;;
+      printStringList(vs2);
+      if (comma) cout &lt;&lt; &quot;,&quot;;
+      cout &lt;&lt; endl &lt;&lt; endl;
+    }
+    {
+      cout &lt;&lt; &quot;Test 2&quot; &lt;&lt; endl;
+      Parser p(&quot;(1-5),425,\&quot;+abcd\&quot;efgh\&quot;&quot;);
+
+      IntRange ir = p.parseRange();
+      p.parseComma();
+      int i = p.parseInt();
+      p.parseComma();
+      string s = p.parseString(false, true);
+
+      printIntRange(ir);
+      cout &lt;&lt; &quot;,&quot; &lt;&lt; i &lt;&lt; &quot;,\&quot;&quot; &lt;&lt; s &lt;&lt; &quot;\&quot;&quot; &lt;&lt; endl &lt;&lt; endl;
+    }
+    {
+      cout &lt;&lt; &quot;Test 3&quot; &lt;&lt; endl;
+      Parser p(&quot;(7,1-5,12-11,25),425,This is a test.\&quot;+a\&quot;ef\&quot; and so forth&quot;);
+
+      vector&lt;bool&gt; vb = p.parseIntList();
+      p.parseComma();
+      int i = p.parseInt();
+      p.parseComma();
+      string s = p.parseEol();
+
+      printIntList(vb);
+      cout &lt;&lt; &quot;,&quot; &lt;&lt; i &lt;&lt; &quot;,&quot; &lt;&lt; s &lt;&lt; endl &lt;&lt; endl;
+    }
+    {
+      cout &lt;&lt; &quot;Test 4&quot; &lt;&lt; endl;
+      Parser p(&quot;(1-125),20,16&quot;);
+
+      vector&lt;bool&gt; vb = p.parseIntList();
+      p.parseComma();
+      vector&lt;bool&gt; vb2 = p.parseIntList();
+      p.parseComma();
+      int j = p.parseInt();
+
+      printIntList(vb);
+      cout &lt;&lt; &quot;,&quot;;
+      printIntList(vb2);
+      cout &lt;&lt; &quot;,&quot; &lt;&lt; j &lt;&lt; endl &lt;&lt; endl;
+    }
+    {
+      cout &lt;&lt; &quot;Test 5&quot; &lt;&lt; endl;
+      Parser p(&quot;SM,7&quot;);
+
+      string s = p.parseString();
+      p.parseComma();
+      int i = p.parseInt();
+
+      cout &lt;&lt; s &lt;&lt; &quot;,&quot; &lt;&lt; i &lt;&lt; endl &lt;&lt; endl;
+    }
+    {
+      cout &lt;&lt; &quot;Test 6&quot; &lt;&lt; endl;
+      Parser p(&quot;(2,\&quot;S TELIA MOBITEL\&quot;,\&quot;S TELIA\&quot;,\&quot;24001\&quot;)&quot;);
+
+      p.parseChar('(');
+      int status = p.parseInt();
+      p.parseComma();
+      string longName = p.parseString(true);
+      p.parseComma();
+      string shortName = p.parseString(true);
+      p.parseComma();
+      int numericName;
+      try
+      {
+        numericName = p.parseInt(true);
+      }
+      catch (GsmException &amp;e)
+      {
+        if (e.getErrorClass() == ParserError)
+        {
+          // the Ericsson GM12 GSM modem returns the numeric ID as string
+          string s = p.parseString();
+          numericName = checkNumber(s);
+        }
+        else
+          throw e;
+      }
+      p.parseChar(')');
+      
+      cout &lt;&lt; &quot;(&quot; &lt;&lt; status &lt;&lt; &quot;,\&quot;&quot; &lt;&lt; longName &lt;&lt; &quot;\&quot;,\&quot;&quot;
+           &lt;&lt; shortName &lt;&lt; &quot;\&quot;,&quot;
+           &lt;&lt; numericName &lt;&lt; &quot;)&quot; &lt;&lt; endl &lt;&lt; endl;
+    }
+  }
+  catch (GsmException &amp;p)
+  {
+    // these tests shouldn't throw exceptions
+    assert(0);
+  }
+
+  // Now some tests that should provoke an error
+  try
+  {
+    Parser p(&quot;(4-5&quot;);
+    p.parseRange();
+  }
+  catch (GsmException &amp;p)
+  {
+    cout &lt;&lt; &quot;Error 1: &quot; &lt;&lt; p.what() &lt;&lt; endl &lt;&lt; endl;
+  }
+  try
+  {
+    Parser p(&quot;(4-5,3-4-5)&quot;);
+    p.parseIntList();
+  }
+  catch (GsmException &amp;p)
+  {
+    cout &lt;&lt; &quot;Error 2: &quot; &lt;&lt; p.what() &lt;&lt; endl &lt;&lt; endl;
+  }
+  try
+  {
+    Parser p(&quot;\&quot;bla\&quot;bla\&quot;&quot;);
+    p.parseString();
+    p.checkEol();
+  }
+  catch (GsmException &amp;p)
+  {
+    cout &lt;&lt; &quot;Error 3: &quot; &lt;&lt; p.what() &lt;&lt; endl &lt;&lt; endl;
+  }
+
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestpbcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;iostream&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+void printPb(PhonebookEntry &amp;e)
+{
+  cout &lt;&lt; &quot;number: &quot; &lt;&lt; e.telephone()
+       &lt;&lt; &quot; text: &quot; &lt;&lt; e.text() &lt;&lt; endl;
+}
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    cout &lt;&lt; (string)&quot;Opening device &quot; + argv[1] &lt;&lt; endl;
+    Ref&lt;Port&gt; port = new UnixSerialPort((string)argv[1], B38400);
+
+    cout &lt;&lt; &quot;Creating MeTa object&quot; &lt;&lt; endl;
+    MeTa m(port);
+
+    cout &lt;&lt; &quot;Getting phonebook entries&quot; &lt;&lt; endl;
+    vector&lt;string&gt; pbs = m.getPhoneBookStrings();
+    for (vector&lt;string&gt;::iterator i = pbs.begin(); i != pbs.end(); ++i)
+    {
+      PhonebookRef pb = m.getPhonebook(*i);
+
+      cout &lt;&lt; &quot;Phonebook \&quot;&quot; &lt;&lt; *i &lt;&lt; &quot;\&quot; &quot; &lt;&lt; endl
+           &lt;&lt; &quot;  Max number length: &quot; &lt;&lt; pb-&gt;getMaxTelephoneLen() &lt;&lt; endl
+           &lt;&lt; &quot;  Max text length: &quot; &lt;&lt; pb-&gt;getMaxTextLen() &lt;&lt; endl
+           &lt;&lt; &quot;  Capacity: &quot; &lt;&lt; pb-&gt;capacity() &lt;&lt; endl
+           &lt;&lt; &quot;  Size: &quot; &lt;&lt; pb-&gt;size() &lt;&lt; endl;
+
+      for (Phonebook::iterator j = pb-&gt;begin(); j != pb-&gt;end(); ++j)
+        if (! j-&gt;empty())
+          cout &lt;&lt; &quot;  Entry #&quot; &lt;&lt; j - pb-&gt;begin()
+               &lt;&lt; &quot;Number: \&quot;&quot; &lt;&lt; j-&gt;telephone() &lt;&lt; &quot;\&quot;&quot;
+               &lt;&lt; &quot;Text: \&quot;&quot; &lt;&lt; j-&gt;text() &lt;&lt; &quot;\&quot;&quot; &lt;&lt; endl;
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestpb2cc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb2.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb2.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testpb2.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;strstream&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+bool isbla(PhonebookEntry &amp;e)
+{
+  //  cerr &lt;&lt; &quot;****'&quot; &lt;&lt; e.text() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+  return e.text() == &quot;blabla&quot;;
+}
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    cout &lt;&lt; (string)&quot;Opening device &quot; + argv[1] &lt;&lt; endl;
+    Ref&lt;Port&gt; port = new UnixSerialPort((string)argv[1], B38400);
+
+    cout &lt;&lt; &quot;Creating MeTa object&quot; &lt;&lt; endl;
+    MeTa m(port);
+
+    cout &lt;&lt; &quot;Getting phonebook entries&quot; &lt;&lt; endl;
+    vector&lt;string&gt; pbs = m.getPhoneBookStrings();
+    if (pbs.begin() == pbs.end())
+    {
+      cerr &lt;&lt; &quot;no phonebooks available&quot; &lt;&lt; endl;
+      exit(1);
+    }
+    
+    PhonebookRef pb = m.getPhonebook(*pbs.begin());
+
+    cout &lt;&lt; &quot;Phonebook \&quot;&quot; &lt;&lt; pb-&gt;name() &lt;&lt; &quot;\&quot; &quot; &lt;&lt; endl
+         &lt;&lt; &quot;  Max number length: &quot; &lt;&lt; pb-&gt;getMaxTelephoneLen() &lt;&lt; endl
+         &lt;&lt; &quot;  Max text length: &quot; &lt;&lt; pb-&gt;getMaxTextLen() &lt;&lt; endl
+         &lt;&lt; &quot;  Capacity: &quot; &lt;&lt; pb-&gt;capacity() &lt;&lt; endl;
+
+    cout &lt;&lt; &quot;Inserting entry 'blabla'&quot; &lt;&lt; endl;
+    PhonebookEntry e(&quot;123456&quot;, &quot;blabla&quot;);
+    pb-&gt;insert(pb-&gt;end(), e);
+
+    int j = -1;
+    for (int i = 50; i &lt; 60; ++i)
+      if (pb()[i].empty())
+      {
+        pb()[i].set(&quot;23456&quot;, &quot;blabla&quot;);
+        j = i;
+        break;
+      }
+    
+    pb-&gt;erase(pb-&gt;begin() + j);
+
+    Phonebook::iterator k;
+    do
+    {
+      k = find_if(pb-&gt;begin(), pb-&gt;end(), isbla);
+      if (k != pb-&gt;end())
+      {
+        cerr &lt;&lt; &quot;Erasing #&quot; &lt;&lt; k - pb-&gt;begin() &lt;&lt; endl;
+        pb-&gt;erase(k, k + 1);
+      }
+    }
+    while (k != pb-&gt;end());
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsmsoutputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,167 @@
</span><ins>+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '171'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 04/16/1999 08:09:44 AM (+0200)
+User data length: 160
+User data header: 0x
+User data: 'T-D1 News bis 31.05.99 kostenlos testen! \xDCber 90 Programme aus Politik, Wirtschaft, B\xF6rse, Sport direkt per SMS aufs Handy. Mehr dar\xFCber unter der Kurzwahl 2323'
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '01805000102'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 12/17/1998 02:10:55 PM (+0100)
+User data length: 159
+User data header: 0x
+User data: 'Nicht vergessen! Die XtraWeihnachtsverlosung l\xE4uft noch bis zum 24.12. Nutzen Sie jetzt Ihre Gewinnchance und faxen Sie Ihren Teiln.-Gutschein an 0180/5000 056'
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '41794991200'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: 'dialing.de '
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 04/21/2001 12:15:28 PM (+0000)
+User data length: 0
+User data header: 0x
+User data: ''
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '41794991200'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: 'dialing.de '
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 04/21/2001 12:15:28 PM (+0000)
+User data length: 0
+User data header: 0x
+User data: ''
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: ''
+More messages to send: 0
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: ''
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+SC timestamp: 00/00/2000 12:00:00 AM (+0000)
+User data length: 0
+User data header: 0x
+User data: ''
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: ''
+More messages to send: 0
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: ''
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+SC timestamp: 00/00/2000 12:00:00 AM (+0000)
+User data length: 0
+User data header: 0x
+User data: ''
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER-REPORT
+SC address: ''
+Protocol identifier present: 0
+Data coding scheme present: 0
+User data length present: 0
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-STATUS-REPORT
+SC address: ''
+More messages to send: 0
+Status report qualifier: 0
+Message reference: 0
+Recipient address: ''
+SC timestamp: 00/00/2000 12:00:00 AM (+0000)
+Discharge time: 00/00/2000 12:00:00 AM (+0000)
+Status: 0x0 'Short message received by the SME'
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-COMMAND
+SC address: ''
+Message reference: 0
+Status report request: 1
+Protocol identifier: 0x0
+Command type: 0x0
+Message number: 0
+Destination address: ''
+Command data length: 0
+Command data: ''
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT
+SC address: ''
+Reject duplicates: 1
+Validity period format: relative
+Reply path: 0
+User data header indicator: 0
+Status report request: 0
+Message reference: 0
+Destination address: ''
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+Validity period: 2 days
+User data length: 35
+User data header: 0x
+User data: 'This is a submit message, isn't it?'
+---------------------------------------------------------------------------
+
+
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT-REPORT
+SC address: ''
+SC timestamp: 00/00/2000 12:00:00 AM (+0000)
+Protocol identifier present: 0
+Data coding scheme present: 0
+User data length present: 0
+---------------------------------------------------------------------------
+
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsmscc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+// *************************************************************************
+// * GSM TA/ME library
+// *
+// * File:    testsms.cc
+// *
+// * Purpose: Test coder and encoder for SMS TPDUs
+// *
+// * Author:  Peter Hofmann (software@pxh.de)
+// *
+// * Created: 17.5.1999
+// *************************************************************************
+
+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_sms.h&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+int main(int argc, char *argv[])
+{
+  string pdu;
+  SMSMessageRef sms;
+  // test two SMS message I have received
+  sms = SMSMessage::decode(&quot;079194710167120004038571F1390099406180904480A0D41631067296EF7390383D07CD622E58CD95CB81D6EF39BDEC66BFE7207A794E2FBB4320AFB82C07E56020A8FC7D9687DBED32285C9F83A06F769A9E5EB340D7B49C3E1FA3C3663A0B24E4CBE76516680A7FCBE920725A5E5ED341F0B21C346D4E41E1BA790E4286DDE4BC0BD42CA3E5207258EE1797E5A0BA9B5E9683C86539685997EBEF61341B249BC966&quot;);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  sms = SMSMessage::decode(&quot;0791947101671200040B851008050001F23900892171410155409FCEF4184D07D9CBF273793E2FBB432062BA0CC2D2E5E16B398D7687C768FADC5E96B3DFF3BAFB0C62EFEB663AC8FD1EA341E2F41CA4AFB741329A2B2673819C75BABEEC064DD36590BA4CD7D34149B4BC0C3A96EF69B77B8C0EBBC76550DD4D0699C3F8B21B344D974149B4BCEC0651CB69B6DBD53AD6E9F331BA9C7683C26E102C8683BD6A30180C04ABD900&quot;);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test SMS decoding and encoding for messages with alphanumeric
+  // destination address
+  sms = SMSMessage::decode(&quot;07911497941902F00414D0E474989D769F5DE4320839001040122151820000&quot;);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test all message types
+  sms = new SMSDeliverMessage();
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test all message types
+  sms = new SMSDeliverReportMessage();
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu, false);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test all message types
+  sms = new SMSStatusReportMessage();
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test all message types
+  sms = new SMSCommandMessage();
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu, false);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+
+  // test all message types
+  SMSSubmitMessage *subsms = new SMSSubmitMessage();
+  subsms-&gt;setUserData(&quot;This is a submit message, isn't it?&quot;);
+  sms = subsms;
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu, false);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+  
+  // test all message types
+  sms = new SMSSubmitReportMessage();
+  pdu = sms-&gt;encode();
+  sms = SMSMessage::decode(pdu);
+  cout &lt;&lt; sms-&gt;toString() &lt;&lt; endl;
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestsms2cc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms2.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms2.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testsms2.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,89 @@
</span><ins>+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#ifdef WIN32
+#include &lt;gsmlib/gsm_win32_serial.h&gt;
+#else
+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#endif
+#include &lt;gsmlib/gsm_me_ta.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;strstream&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    cout &lt;&lt; (string)&quot;Opening device &quot; + argv[1] &lt;&lt; endl;
+#ifdef WIN32
+    Ref&lt;Port&gt; port = new Win32SerialPort((string)argv[1], 38400);
+#else
+        Ref&lt;Port&gt; port = new UnixSerialPort((string)argv[1], B38400);
+#endif
+
+    cout &lt;&lt; &quot;Creating MeTa object&quot; &lt;&lt; endl;
+    MeTa m(port);
+
+    cout &lt;&lt; &quot;Setting message service level to 1&quot; &lt;&lt; endl;
+    m.setMessageService(1);
+
+    vector&lt;string&gt; storeList = m.getSMSStoreNames();
+
+    for (vector&lt;string&gt;::iterator stn = storeList.begin();
+         stn != storeList.end(); ++stn)
+    {
+      cout &lt;&lt; &quot;Getting store \&quot;&quot; &lt;&lt; *stn &lt;&lt; &quot;\&quot;&quot; &lt;&lt; endl;
+      SMSStoreRef st = m.getSMSStore(*stn);
+
+      SMSMessageRef sms;
+      cout &lt;&lt; &quot;Creating SMS Submit Message and putting it into store&quot; &lt;&lt; endl;
+      SMSSubmitMessage *subsms = new SMSSubmitMessage();
+//       Address scAddr(&quot;+491710760000&quot;);
+//       subsms-&gt;setServiceCentreAddress(scAddr);
+      Address destAddr(&quot;0177123456&quot;);
+      subsms-&gt;setDestinationAddress(destAddr);
+      subsms-&gt;setUserData(&quot;This message was sent from the store.&quot;);
+      TimePeriod tp;
+      tp._format = TimePeriod::Relative;
+      tp._relativeTime = 100;
+      /*subsms-&gt;setValidityPeriod(tp);
+      subsms-&gt;setValidityPeriodFormat(tp._format);
+      subsms-&gt;setStatusReportRequest(true);*/
+      sms = subsms;
+      SMSStore::iterator smsIter = st-&gt;insert(st-&gt;end(), SMSStoreEntry(sms));
+      cout &lt;&lt; &quot;Message entered at index #&quot;
+           &lt;&lt; smsIter - st-&gt;begin() &lt;&lt; endl;
+
+      //m.sendSMS(sms);
+      SMSMessageRef ackPdu;
+      int messageRef = smsIter-&gt;send(ackPdu);
+      cout &lt;&lt; &quot;Message reference: &quot; &lt;&lt; messageRef &lt;&lt; endl
+           &lt;&lt; &quot;ACK PDU:&quot; &lt;&lt; endl
+           &lt;&lt; (ackPdu.isnull() ? &quot;no ack pdu&quot; : ackPdu-&gt;toString())
+           &lt;&lt; endl;
+
+      /*      cout &lt;&lt; &quot;Erasing all unsent messages&quot; &lt;&lt; endl;
+      for (SMSStore::iterator s = st-&gt;begin(); s != st-&gt;end(); ++s)
+        if (! s-&gt;empty() &amp;&amp; s-&gt;status() == SMSStoreEntry::StoredUnsent)
+        st-&gt;erase(s);*/
+
+      cout &lt;&lt; &quot;Printing store \&quot;&quot; &lt;&lt; *stn &lt;&lt; &quot;\&quot;&quot; &lt;&lt; endl;
+      for (SMSStore::iterator s = st-&gt;begin(); s != st-&gt;end(); ++s)
+        if (! s-&gt;empty())
+          cout &lt;&lt; s-&gt;message()-&gt;toString();
+
+      break;                    // only do one store
+    }
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspboutputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+Entries in pbs-copy.pb:
+  Text: Dieter Meier  Telephone: 793045
+  Text: Edgar Hofmann  Telephone: 42345
+  Text: Goethe  Telephone: 847159
+  Text: Hans Hofmann  Telephone: 12345
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: line with |  Telephone: 0815
+  Text: line with\  Telephone: 0815
+  Text: One line
+back to start  Telephone: 0815
+  Text: two
+line  Telephone: 0815
+Removing entries with telephone == 0815
+Entries in pbs-copy.pb&lt;2&gt;:
+  Text: Hans Hofmann  Telephone: 12345
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Edgar Hofmann  Telephone: 42345
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: Dieter Meier  Telephone: 793045
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Goethe  Telephone: 847159
+Inserting some entries
+Entries in pbs-copy.pb&lt;3&gt;:
+  Text: Dieter Meier  Telephone: 793045
+  Text: Edgar Hofmann  Telephone: 42345
+  Text: Goethe  Telephone: 847159
+  Text: Hans Hofmann  Telephone: 12345
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Hans-Dieter Schmidt  Telephone: 41598254
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Hans-Dieter|Hofmann  Telephone: 34058
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: new line with 
+ continued  Telephone: 08152
+Erasing all Hans-Dieter Schmidt entries
+About to erase:
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Hans-Dieter Schmidt  Telephone: 41598254
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+Writing back to file
+|Dieter Meier|793045
+|Edgar Hofmann|42345
+|Goethe|847159
+|Hans Hofmann|12345
+|Hans-Dieter\|Hofmann|34058
+|Heiner M\xFCller|7890
+|new line with \r continued|08152
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspbcc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+#ifdef HAVE_CONFIG_H
+#include &lt;gsm_config.h&gt;
+#endif
+#include &lt;gsmlib/gsm_sorted_phonebook.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;strstream&gt;
+#include &lt;iostream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+void printPb(PhonebookEntry &amp;e)
+{
+  cout &lt;&lt; &quot;number: &quot; &lt;&lt; e.telephone()
+       &lt;&lt; &quot; text: &quot; &lt;&lt; e.text() &lt;&lt; endl;
+}
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // open phonebook file
+    SortedPhonebook pb((string)&quot;spb-copy.pb&quot;, false);
+    
+    // print all entries
+    cout &lt;&lt; &quot;Entries in pbs-copy.pb:&quot; &lt;&lt; endl;
+    for (SortedPhonebook::iterator i = pb.begin(); i != pb.end(); ++i)
+      cout &lt;&lt; &quot;  Text: &quot; &lt;&lt; i-&gt;text()
+           &lt;&lt; &quot;  Telephone: &quot; &lt;&lt; i-&gt;telephone() &lt;&lt; endl;
+
+    // remove all entries with telephone == &quot;0815&quot;
+    cout &lt;&lt; &quot;Removing entries with telephone == 0815&quot; &lt;&lt; endl;
+    pb.setSortOrder(ByTelephone);
+
+    string s = &quot;0815&quot;;
+    pb.erase(s);
+
+    cout &lt;&lt; &quot;Entries in pbs-copy.pb&lt;2&gt;:&quot; &lt;&lt; endl;
+    for (SortedPhonebook::iterator i = pb.begin(); i != pb.end(); ++i)
+      cout &lt;&lt; &quot;  Text: &quot; &lt;&lt; i-&gt;text()
+           &lt;&lt; &quot;  Telephone: &quot; &lt;&lt; i-&gt;telephone() &lt;&lt; endl;
+
+    // insert some entries
+    cout &lt;&lt; &quot;Inserting some entries&quot; &lt;&lt; endl;
+    pb.insert(PhonebookEntryBase(&quot;08152&quot;, &quot;new line with \r continued&quot;));
+    pb.insert(PhonebookEntryBase(&quot;41598254&quot;, &quot;Hans-Dieter Schmidt&quot;));
+    pb.insert(PhonebookEntryBase(&quot;34058&quot;, &quot;Hans-Dieter|Hofmann&quot;));
+
+    pb.setSortOrder(ByText);
+    cout &lt;&lt; &quot;Entries in pbs-copy.pb&lt;3&gt;:&quot; &lt;&lt; endl;
+    for (SortedPhonebook::iterator i = pb.begin(); i != pb.end(); ++i)
+      cout &lt;&lt; &quot;  Text: &quot; &lt;&lt; i-&gt;text()
+           &lt;&lt; &quot;  Telephone: &quot; &lt;&lt; i-&gt;telephone() &lt;&lt; endl;
+
+    // test erasing all &quot;Hans-Dieter Schmidt&quot; entries
+    cout &lt;&lt; &quot;Erasing all Hans-Dieter Schmidt entries&quot; &lt;&lt; endl;
+    s = &quot;Hans-Dieter Schmidt&quot;;
+    pair&lt;SortedPhonebook::iterator, SortedPhonebook::iterator&gt; range =
+      pb.equal_range(s);
+    cout &lt;&lt; &quot;About to erase:&quot; &lt;&lt; endl;
+    for (SortedPhonebook::iterator i = range.first; i != range.second; ++i)
+      cout &lt;&lt; &quot;  Text: &quot; &lt;&lt; i-&gt;text()
+           &lt;&lt; &quot;  Telephone: &quot; &lt;&lt; i-&gt;telephone() &lt;&lt; endl;
+    
+    pb.erase(range.first, range.second);
+
+    // write back to file
+    cout &lt;&lt; &quot;Writing back to file&quot; &lt;&lt; endl;
+    pb.sync();
+
+    // tests the NoCopy class
+    //SortedPhonebook pb2(&quot;spb.pb&quot;);
+    //pb2 = pb;
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspb2outputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb2-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb2-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspb2-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+Entries in pbs-copy.pb:
+  Text: Dieter Meier  Telephone: 017793045
+  Text: Edgar Hofmann  Telephone: +4942345
+  Text: Goethe  Telephone: 847159
+  Text: Hans Hofmann  Telephone: 0171
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: line with |  Telephone: 0815
+  Text: line with\  Telephone: 0815
+  Text: One line
+back to start  Telephone: 0815
+  Text: two
+line  Telephone: 0815
+Removing entries with telephone == 0815
+Entries in pbs-copy.pb&lt;2&gt;:
+  Text: Edgar Hofmann  Telephone: +4942345
+  Text: Hans Hofmann  Telephone: 0171
+  Text: Dieter Meier  Telephone: 017793045
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Goethe  Telephone: 847159
+Inserting some entries
+Entries in pbs-copy.pb&lt;3&gt;:
+  Text: Dieter Meier  Telephone: 017793045
+  Text: Edgar Hofmann  Telephone: +4942345
+  Text: Goethe  Telephone: 847159
+  Text: Hans Hofmann  Telephone: 0171
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Hans-Dieter Schmidt  Telephone: 41598254
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+  Text: Hans-Dieter|Hofmann  Telephone: 34058
+  Text: Heiner M\xFCller  Telephone: 7890
+  Text: new line with 
+ continued  Telephone: 08152
+Erasing all Hans-Dieter Schmidt entries
+About to erase:
+  Text: Hans-Dieter Schmidt  Telephone: 13333345
+  Text: Hans-Dieter Schmidt  Telephone: 41598254
+  Text: Hans-Dieter Schmidt  Telephone: 82345
+Writing back to file
+|Dieter Meier|017793045
+|Edgar Hofmann|+4942345
+|Goethe|847159
+|Hans Hofmann|0171
+|Hans-Dieter\|Hofmann|34058
+|Heiner M\xFCller|7890
+|new line with \r continued|08152
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestspbioutputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspbi-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspbi-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testspbi-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+updating 'same name' tel# 23456 to new tel# 12345(index 5)
+deleting 'Nummer 3' tel# 3333333 (index #2)
+deleting 'Nummer 4' tel# 4444444 (index #4)
+inserting 'Nummer 4' tel# 4444444 (index #1)
+inserting 'Nummer 3' tel# 3333333 (index #3)
+1|Nummer 4|4444444
+3|Nummer 3|3333333
+5|same name|12345
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestssmsoutputtxt"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms-output.txt (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms-output.txt                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms-output.txt        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,157 @@
</span><ins>+Entries in sms.sms&lt;0&gt;:
+Inserting some entries
+Entries in sms.sms&lt;1&gt;:
+Entry#2:
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT
+SC address: ''
+Reject duplicates: 1
+Validity period format: relative
+Reply path: 0
+User data header indicator: 0
+Status report request: 0
+Message reference: 0
+Destination address: '0177123456'
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+Validity period: 2 days
+User data length: 9
+User data header: 0x
+User data: 'submit me'
+---------------------------------------------------------------------------
+
+
+Entry#3:
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT
+SC address: ''
+Reject duplicates: 1
+Validity period format: relative
+Reply path: 0
+User data header indicator: 0
+Status report request: 0
+Message reference: 0
+Destination address: ''
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+Validity period: 2 days
+User data length: 35
+User data header: 0x
+User data: 'This is a submit message, isn't it?'
+---------------------------------------------------------------------------
+
+
+Entry#1:
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '01805000102'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 12/17/1998 02:10:55 PM (+0100)
+User data length: 159
+User data header: 0x
+User data: 'Nicht vergessen! Die XtraWeihnachtsverlosung l\xE4uft noch bis zum 24.12. Nutzen Sie jetzt Ihre Gewinnchance und faxen Sie Ihren Teiln.-Gutschein an 0180/5000 056'
+---------------------------------------------------------------------------
+
+
+Entry#0:
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '171'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 04/16/1999 08:09:44 AM (+0200)
+User data length: 160
+User data header: 0x
+User data: 'T-D1 News bis 31.05.99 kostenlos testen! \xDCber 90 Programme aus Politik, Wirtschaft, B\xF6rse, Sport direkt per SMS aufs Handy. Mehr dar\xFCber unter der Kurzwahl 2323'
+---------------------------------------------------------------------------
+
+
+Entries in sms.sms&lt;2&gt;:
+Entry#3:
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT
+SC address: ''
+Reject duplicates: 1
+Validity period format: relative
+Reply path: 0
+User data header indicator: 0
+Status report request: 0
+Message reference: 0
+Destination address: ''
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+Validity period: 2 days
+User data length: 35
+User data header: 0x
+User data: 'This is a submit message, isn't it?'
+---------------------------------------------------------------------------
+
+
+Entry#2:
+---------------------------------------------------------------------------
+Message type: SMS-SUBMIT
+SC address: ''
+Reject duplicates: 1
+Validity period format: relative
+Reply path: 0
+User data header indicator: 0
+Status report request: 0
+Message reference: 0
+Destination address: '0177123456'
+Protocol identifier: 0x0
+Data coding scheme: default alphabet
+Validity period: 2 days
+User data length: 9
+User data header: 0x
+User data: 'submit me'
+---------------------------------------------------------------------------
+
+
+Entry#1:
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '01805000102'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 12/17/1998 02:10:55 PM (+0100)
+User data length: 159
+User data header: 0x
+User data: 'Nicht vergessen! Die XtraWeihnachtsverlosung l\xE4uft noch bis zum 24.12. Nutzen Sie jetzt Ihre Gewinnchance und faxen Sie Ihren Teiln.-Gutschein an 0180/5000 056'
+---------------------------------------------------------------------------
+
+
+Entry#0:
+---------------------------------------------------------------------------
+Message type: SMS-DELIVER
+SC address: '491710762100'
+More messages to send: 1
+Reply path: 0
+User data header indicator: 0
+Status report indication: 0
+Originating address: '171'
+Protocol identifier: 0x39
+Data coding scheme: default alphabet
+SC timestamp: 04/16/1999 08:09:44 AM (+0200)
+User data length: 160
+User data header: 0x
+User data: 'T-D1 News bis 31.05.99 kostenlos testen! \xDCber 90 Programme aus Politik, Wirtschaft, B\xF6rse, Sport direkt per SMS aufs Handy. Mehr dar\xFCber unter der Kurzwahl 2323'
+---------------------------------------------------------------------------
+
+
+Writing back to file
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1teststestssmscc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms.cc (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms.cc                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/tests/testssms.cc        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+#include &lt;gsmlib/gsm_unix_serial.h&gt;
+#include &lt;gsmlib/gsm_sorted_sms_store.h&gt;
+#include &lt;gsmlib/gsm_phonebook.h&gt;
+#include &lt;algorithm&gt;
+#include &lt;iostream&gt;
+#include &lt;strstream&gt;
+
+using namespace std;
+using namespace gsmlib;
+
+int main(int argc, char *argv[])
+{
+  try
+  {
+    // open SMS store file
+    SortedSMSStore sms((string)&quot;sms.sms&quot;);
+    
+    // print all entries
+    cout &lt;&lt; &quot;Entries in sms.sms&lt;0&gt;:&quot; &lt;&lt; endl;
+    for (SortedSMSStore::iterator i = sms.begin(); i != sms.end(); ++i)
+      cout &lt;&lt; &quot;Entry#&quot; &lt;&lt; i-&gt;index() &lt;&lt; &quot;:&quot; &lt;&lt; endl
+           &lt;&lt; i-&gt;message()-&gt;toString() &lt;&lt; endl;
+
+    // insert some entries
+    cout &lt;&lt; &quot;Inserting some entries&quot; &lt;&lt; endl;
+    SMSMessageRef smsMessage;
+    // test two SMS message I have received
+    smsMessage = SMSMessage::decode(&quot;079194710167120004038571F1390099406180904480A0D41631067296EF7390383D07CD622E58CD95CB81D6EF39BDEC66BFE7207A794E2FBB4320AFB82C07E56020A8FC7D9687DBED32285C9F83A06F769A9E5EB340D7B49C3E1FA3C3663A0B24E4CBE76516680A7FCBE920725A5E5ED341F0B21C346D4E41E1BA790E4286DDE4BC0BD42CA3E5207258EE1797E5A0BA9B5E9683C86539685997EBEF61341B249BC966&quot;);
+    sms.insert(SMSStoreEntry(smsMessage));
+
+    smsMessage = SMSMessage::decode(&quot;0791947101671200040B851008050001F23900892171410155409FCEF4184D07D9CBF273793E2FBB432062BA0CC2D2E5E16B398D7687C768FADC5E96B3DFF3BAFB0C62EFEB663AC8FD1EA341E2F41CA4AFB741329A2B2673819C75BABEEC064DD36590BA4CD7D34149B4BC0C3A96EF69B77B8C0EBBC76550DD4D0699C3F8B21B344D974149B4BCEC0651CB69B6DBD53AD6E9F331BA9C7683C26E102C8683BD6A30180C04ABD900&quot;);
+    sms.insert(SMSStoreEntry(smsMessage));
+
+    smsMessage = new SMSSubmitMessage(&quot;submit me&quot;, &quot;0177123456&quot;);
+    sms.insert(SMSStoreEntry(smsMessage));
+
+    SMSSubmitMessage *subsms = new SMSSubmitMessage();
+    subsms-&gt;setUserData(&quot;This is a submit message, isn't it?&quot;);
+    smsMessage = subsms;
+    sms.insert(SMSStoreEntry(smsMessage));
+
+    // print all entries
+    cout &lt;&lt; &quot;Entries in sms.sms&lt;1&gt;:&quot; &lt;&lt; endl;
+    for (SortedSMSStore::iterator i = sms.begin(); i != sms.end(); ++i)
+      cout &lt;&lt; &quot;Entry#&quot; &lt;&lt; i-&gt;index() &lt;&lt; &quot;:&quot; &lt;&lt; endl
+           &lt;&lt; i-&gt;message()-&gt;toString() &lt;&lt; endl;
+
+    // sort by telephone number
+    sms.setSortOrder(ByAddress);
+
+    // print all entries
+    cout &lt;&lt; &quot;Entries in sms.sms&lt;2&gt;:&quot; &lt;&lt; endl;
+    for (SortedSMSStore::iterator i = sms.begin(); i != sms.end(); ++i)
+      cout &lt;&lt; &quot;Entry#&quot; &lt;&lt; i-&gt;index() &lt;&lt; &quot;:&quot; &lt;&lt; endl
+           &lt;&lt; i-&gt;message()-&gt;toString() &lt;&lt; endl;
+
+    // write back to file
+    cout &lt;&lt; &quot;Writing back to file&quot; &lt;&lt; endl;
+    sms.sync();
+
+  }
+  catch (GsmException &amp;ge)
+  {
+    cerr &lt;&lt; &quot;GsmException '&quot; &lt;&lt; ge.what() &lt;&lt; &quot;'&quot; &lt;&lt; endl;
+    return 1;
+  }
+  return 0;
+}
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32COPYING"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/COPYING (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/COPYING                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/COPYING        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+WARNING
+
+     The files getopt.c and getopt.h in this subdirectory (win32) are
+     not covered by the GNU LIBRARY GENERAL PUBLIC LICENSE as
+     reproduced in ../COPYING. They carry their own license instead.
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32Makefileam"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.am (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.am                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.am        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+## Process this file with automake to produce Makefile.in
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: win32 Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 19.1.2001
+# *************************************************************************
+
+EXTRA_DIST =        getopt.c gsmctl.dsp gsmpb.dsp testgsmlib.dsp \
+                getopt.h gsmlib.dsp gsmsendsms.dsp testsms.dsp \
+                README.win gsm_config.h gsmlib.dsw gsmsmsstore.dsp \
+                gsmsmsd.dsp testsms2.dsp
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32Makefilein"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.in (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.in                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Makefile.in        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,259 @@
</span><ins>+# Makefile.in generated by automake 1.6.3 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# *************************************************************************
+# * GSM TA/ME library
+# *
+# * File:    Makefile.am
+# *
+# * Purpose: win32 Makefile
+# *
+# * Author:  Peter Hofmann (software@pxh.de)
+# *
+# * Created: 19.1.2001
+# *************************************************************************
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+
+EXEEXT = @EXEEXT@
+OBJEXT = @OBJEXT@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+AMTAR = @AMTAR@
+AS = @AS@
+AWK = @AWK@
+BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+CXX = @CXX@
+DATADIRNAME = @DATADIRNAME@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+ECHO = @ECHO@
+GENCAT = @GENCAT@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GSM_VERSION = @GSM_VERSION@
+HAVE_LIB = @HAVE_LIB@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLBISON = @INTLBISON@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
+LIB = @LIB@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIB = @LTLIB@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OBJDUMP = @OBJDUMP@
+PACKAGE = @PACKAGE@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+STRIP = @STRIP@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+am__include = @am__include@
+am__quote = @am__quote@
+install_sh = @install_sh@
+
+EXTRA_DIST = getopt.c gsmctl.dsp gsmpb.dsp testgsmlib.dsp \
+                getopt.h gsmlib.dsp gsmsendsms.dsp testsms.dsp \
+                README.win gsm_config.h gsmlib.dsw gsmsmsstore.dsp \
+                gsmsmsd.dsp testsms2.dsp
+
+subdir = win32
+mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/gsm_config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+DIST_COMMON = COPYING Makefile.am Makefile.in
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+        cd $(top_srcdir) &amp;&amp; \
+          $(AUTOMAKE) --gnu  win32/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+        -rm -f *.lo
+
+clean-libtool:
+        -rm -rf .libs _libs
+
+distclean-libtool:
+        -rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+distdir: $(DISTFILES)
+        @list='$(DISTFILES)'; for file in $$list; do \
+          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+            dir=&quot;/$$dir&quot;; \
+            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+          else \
+            dir=''; \
+          fi; \
+          if test -d $$d/$$file; then \
+            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+            fi; \
+            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+          else \
+            test -f $(distdir)/$$file \
+            || cp -p $$d/$$file $(distdir)/$$file \
+            || exit 1; \
+          fi; \
+        done
+check-am: all-am
+check: check-am
+all-am: Makefile
+
+installdirs:
+
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+          INSTALL_STRIP_FLAG=-s \
+          `test -z '$(STRIP)' || \
+            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+        -rm -f Makefile $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+        @echo &quot;This command is intended for maintainers to use&quot;
+        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+uninstall-am: uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+        distclean distclean-generic distclean-libtool distdir dvi \
+        dvi-am info info-am install install-am install-data \
+        install-data-am install-exec install-exec-am install-info \
+        install-info-am install-man install-strip installcheck \
+        installcheck-am installdirs maintainer-clean \
+        maintainer-clean-generic mostlyclean mostlyclean-generic \
+        mostlyclean-libtool uninstall uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32READMEwin"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/README.win (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/README.win                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/README.win        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+INTRODUCTION
+
+     This is a Win32 port of gsmlib contributed by Frediano Ziglio
+     (Frediano.Ziglio@omnitel.it) and adapted by me. You can use the
+     library for inclusion in your own programs or the command line tools
+     which have been ported (with the exception of gsmsmsd).
+
+COMPILATION
+
+     You need Microsoft VC++ 6.0 to compile the library and command
+     line tools. Because I prefer to use the ending .cc for C++ files you
+     need to make some changes to your development environment. These are
+     documented by Microsoft under this URL (one line):
+
+       http://support.microsoft.com/support/kb/articles/Q181/5/
+       06.ASP?LN=EN-US&amp;SD=gn&amp;FR=0&amp;qry=.cc&amp;rnk=1&amp;src=DHCS_MSPSS_gn_SRCH&amp;SPR=VCC
+
+     The title of the document is &quot;HOWTO: Make VC++ Recognize File
+     Extensions as C/C++ Files&quot;.
+
+     Then open the workspace gsmlib.dsw with Developer
+     Studio. Compilation should be straightforward after that, just make a
+     batch build of everything.
+
+     If you encounter problems you can use the debug versions and set
+     the environment variable GSMLIB_DEBUG to 1 or 2 to get debugging
+     output.
+
+HINTS
+     - Use COMx: (x is the number of the COM device) instead of the UNIX
+       device name. If this doesn't work use &quot;\\.\COMx:&quot;.
+
+     - The files under Release are without debugging code. If you see
+       errors please use the Debug versions and execute
+
+         set GSMLIB_DEBUG=2
+
+       for executing the programs. Please send me the debugging
+       output:
+
+         gsmsmsstore ..... 2&gt; \temp\debug.log
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32getoptc"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.c (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.c                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.c        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,185 @@
</span><ins>+/***************************************************************************** 
+ * 
+ *  MODULE NAME : GETOPT.C 
+ * 
+ *  COPYRIGHTS: 
+ *             This module contains code made available by IBM 
+ *             Corporation on an AS IS basis.  Any one receiving the 
+ *             module is considered to be licensed under IBM copyrights 
+ *             to use the IBM-provided source code in any way he or she 
+ *             deems fit, including copying it, compiling it, modifying 
+ *             it, and redistributing it, with or without 
+ *             modifications.  No license under any IBM patents or 
+ *             patent applications is to be implied from this copyright 
+ *             license. 
+ * 
+ *             A user of the module should understand that IBM cannot 
+ *             provide technical support for the module and will not be 
+ *             responsible for any consequences of use of the program. 
+ * 
+ *             Any notices, including this one, are not to be removed 
+ *             from the module without the prior written consent of 
+ *             IBM. 
+ * 
+ *  AUTHOR:   Original author: 
+ *                 G. R. Blair (BOBBLAIR at AUSVM1) 
+ *                 Internet: bobblair@bobblair.austin.ibm.com 
+ * 
+ *            Extensively revised by: 
+ *                 John Q. Walker II, Ph.D. (JOHHQ at RALVM6) 
+ *                 Internet: johnq@ralvm6.vnet.ibm.com 
+ * 
+ *****************************************************************************/ 

+/****************************************************************************** 
+ * getopt() 
+ * 
+ * The getopt() function is a command line parser.  It returns the next 
+ * option character in argv that matches an option character in opstring. 
+ * 
+ * The argv argument points to an array of argc+1 elements containing argc 
+ * pointers to character strings followed by a null pointer. 
+ * 
+ * The opstring argument points to a string of option characters; if an 
+ * option character is followed by a colon, the option is expected to have 
+ * an argument that may or may not be separated from it by white space. 
+ * The external variable optarg is set to point to the start of the option 
+ * argument on return from getopt(). 
+ * 
+ * The getopt() function places in optind the argv index of the next argument 
+ * to be processed.  The system initializes the external variable optind to 
+ * 1 before the first call to getopt(). 
+ * 
+ * When all options have been processed (that is, up to the first nonoption 
+ * argument), getopt() returns EOF.  The special option &quot;--&quot; may be used to 
+ * delimit the end of the options; EOF will be returned, and &quot;--&quot; will be 
+ * skipped. 
+ * 
+ * The getopt() function returns a question mark (?) when it encounters an 
+ * option character not included in opstring.  This error message can be 
+ * disabled by setting opterr to zero.  Otherwise, it returns the option 
+ * character that was detected. 
+ * 
+ * If the special option &quot;--&quot; is detected, or all options have been 
+ * processed, EOF is returned. 
+ * 
+ * Options are marked by either a minus sign (-) or a slash (/). 
+ * 
+ * No errors are defined. 
+ *****************************************************************************/ 

+#include &lt;stdio.h&gt;                  /* for EOF */ 
+#include &lt;string.h&gt;                 /* for strchr() */ 


+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+/* static (global) variables that are specified as exported by getopt() */ 
+char *optarg = NULL;    /* pointer to the start of the option argument  */ 
+int   optind = 1;       /* number of the next argv[] to be evaluated    */ 
+int   opterr = 1;       /* non-zero if a question mark should be returned 
+                           when a non-valid option character is detected */ 

+/* handle possible future character set concerns by putting this in a macro */ 
+#define _next_char(string)  (char)(*(string+1)) 

+int getopt(int argc, char *argv[], char *opstring) 
+{ 
+  static char *pIndexPosition = NULL; /* place inside current argv string */ 
+  char *pArgString = NULL;        /* where to start from next */ 
+  char *pOptString;               /* the string in our program */ 


+  if (pIndexPosition != NULL) { 
+    /* we last left off inside an argv string */ 
+    if (*(++pIndexPosition)) { 
+      /* there is more to come in the most recent argv */ 
+      pArgString = pIndexPosition; 
+    } 
+  } 

+  if (pArgString == NULL) { 
+    /* we didn't leave off in the middle of an argv string */ 
+    if (optind &gt;= argc) { 
+      /* more command-line arguments than the argument count */ 
+      pIndexPosition = NULL;  /* not in the middle of anything */ 
+      return EOF;             /* used up all command-line arguments */ 
+    } 

+    /*--------------------------------------------------------------------- 
+     * If the next argv[] is not an option, there can be no more options. 
+     *-------------------------------------------------------------------*/ 
+    pArgString = argv[optind++]; /* set this to the next argument ptr */ 

+    if (('/' != *pArgString) &amp;&amp; /* doesn't start with a slash or a dash? */ 
+        ('-' != *pArgString)) { 
+      --optind;               /* point to current arg once we're done */ 
+      optarg = NULL;          /* no argument follows the option */ 
+      pIndexPosition = NULL;  /* not in the middle of anything */ 
+      return EOF;             /* used up all the command-line flags */ 
+    } 

+    /* check for special end-of-flags markers */ 
+    if ((strcmp(pArgString, &quot;-&quot;) == 0) || 
+        (strcmp(pArgString, &quot;--&quot;) == 0)) { 
+      optarg = NULL;          /* no argument follows the option */ 
+      pIndexPosition = NULL;  /* not in the middle of anything */ 
+      return EOF;             /* encountered the special flag */ 
+    } 

+    pArgString++;               /* look past the / or - */ 
+  } 

+  if (':' == *pArgString) {       /* is it a colon? */ 
+    /*--------------------------------------------------------------------- 
+     * Rare case: if opterr is non-zero, return a question mark; 
+     * otherwise, just return the colon we're on. 
+     *-------------------------------------------------------------------*/ 
+    return (opterr ? (int)'?' : (int)':'); 
+  } 
+  else if ((pOptString = strchr(opstring, *pArgString)) == 0) { 
+    /*--------------------------------------------------------------------- 
+     * The letter on the command-line wasn't any good. 
+     *-------------------------------------------------------------------*/ 
+    optarg = NULL;              /* no argument follows the option */ 
+    pIndexPosition = NULL;      /* not in the middle of anything */ 
+    return (opterr ? (int)'?' : (int)*pArgString); 
+  } 
+  else { 
+    /*--------------------------------------------------------------------- 
+     * The letter on the command-line matches one we expect to see 
+     *-------------------------------------------------------------------*/ 
+    if (':' == _next_char(pOptString)) { /* is the next letter a colon? */ 
+      /* It is a colon.  Look for an argument string. */ 
+      if ('\0' != _next_char(pArgString)) {  /* argument in this argv? */ 
+        optarg = &amp;pArgString[1];   /* Yes, it is */ 
+      } 
+      else { 
+        /*------------------------------------------------------------- 
+         * The argument string must be in the next argv. 
+         * But, what if there is none (bad input from the user)? 
+         * In that case, return the letter, and optarg as NULL. 
+         *-----------------------------------------------------------*/ 
+        if (optind &lt; argc) 
+          optarg = argv[optind++]; 
+        else { 
+          optarg = NULL; 
+          return (opterr ? (int)'?' : (int)*pArgString); 
+        } 
+      } 
+      pIndexPosition = NULL;  /* not in the middle of anything */ 
+    } 
+    else { 
+      /* it's not a colon, so just return the letter */ 
+      optarg = NULL;          /* no argument follows the option */ 
+      pIndexPosition = pArgString;    /* point to the letter we're on */ 
+    } 
+    return (int)*pArgString;    /* return the letter that matched */ 
+  } 
+}
+
+#ifdef __cplusplus
+}
+#endif
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32getopth"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/getopt.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+/***************************************************************************** 
+ * 
+ *  MODULE NAME : GETOPT.H 
+ * 
+ *  COPYRIGHTS: 
+ *             This module contains code made available by IBM 
+ *             Corporation on an AS IS basis.  Any one receiving the 
+ *             module is considered to be licensed under IBM copyrights 
+ *             to use the IBM-provided source code in any way he or she 
+ *             deems fit, including copying it, compiling it, modifying 
+ *             it, and redistributing it, with or without 
+ *             modifications.  No license under any IBM patents or 
+ *             patent applications is to be implied from this copyright 
+ *             license. 
+ * 
+ *             A user of the module should understand that IBM cannot 
+ *             provide technical support for the module and will not be 
+ *             responsible for any consequences of use of the program. 
+ * 
+ *             Any notices, including this one, are not to be removed 
+ *             from the module without the prior written consent of 
+ *             IBM. 
+ * 
+ *  AUTHOR:   Original author: 
+ *                 G. R. Blair (BOBBLAIR at AUSVM1) 
+ *                 Internet: bobblair@bobblair.austin.ibm.com 
+ * 
+ *            Extensively revised by: 
+ *                 John Q. Walker II, Ph.D. (JOHHQ at RALVM6) 
+ *                 Internet: johnq@ralvm6.vnet.ibm.com 
+ * 
+ *****************************************************************************/ 
+#ifndef WIN32_GETOPT_H
+#define WIN32_GETOPT_H
+
+#ifdef __cplusplus
+extern &quot;C&quot; {
+#endif
+
+extern char * optarg; 
+extern int    optind; 

+int getopt ( int argc, char **argv, char *optstring); 
+
+#ifdef __cplusplus
+}
+#endif

+#endif // WIN32_GETOPT_H
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsm_configh"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsm_config.h (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsm_config.h                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsm_config.h        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,169 @@
</span><ins>+/* gsm_config.h.in.  Generated automatically from configure.in by autoheader.  */
+
+/* Define if using alloca.c.  */
+#undef C_ALLOCA
+
+/* Define to empty if the keyword does not work.  */
+#undef const
+
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
+   This function is required for alloca.c support on those systems.  */
+#undef CRAY_STACKSEG_END
+
+/* Define if you have alloca, as a function or macro.  */
+#define HAVE_ALLOCA 1
+#define alloca _alloca // Microsoft
+
+/* Define if you have &lt;alloca.h&gt; and it should be used (not on Ultrix).  */
+#undef HAVE_ALLOCA_H
+
+/* Define if you have a working `mmap' system call.  */
+#undef HAVE_MMAP
+
+/* Define as __inline if that's what the C compiler calls it.  */
+#undef inline
+
+/* Define to `long' if &lt;sys/types.h&gt; doesn't define.  */
+#undef off_t
+
+/* Define if you need to in order for stat and other things to work.  */
+#undef _POSIX_SOURCE
+
+/* Define to `unsigned' if &lt;sys/types.h&gt; doesn't define.  */
+#undef size_t
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at run-time.
+ STACK_DIRECTION &gt; 0 =&gt; grows toward higher addresses
+ STACK_DIRECTION &lt; 0 =&gt; grows toward lower addresses
+ STACK_DIRECTION = 0 =&gt; direction of growth unknown
+ */
+#undef STACK_DIRECTION
+
+/* Define if you have the ANSI C header files.  */
+#define STDC_HEADERS 1
+
+/* used by libtool*/
+#define PACKAGE 0
+
+/* used by libtool*/
+#define VERSION 0
+
+/* Define if getopt_long() available */
+#undef HAVE_GETOPT_LONG
+
+/* Define if alarm() available */
+#undef HAVE_ALARM
+
+/* Define for NLS */
+#undef ENABLE_NLS
+#undef HAVE_CATGETS
+#undef HAVE_GETTEXT
+#undef HAVE_LC_MESSAGES
+#undef HAVE_STPCPY
+
+/* Define LOCALEDIR */
+#define LOCALEDIR &quot;/usr/share/locale&quot;
+
+/* Define if vsnprintf() function available */
+#define HAVE_VSNPRINTF 1
+#define vsnprintf _vsnprintf
+
+/* The number of bytes in a unsigned int.  */
+#define SIZEOF_UNSIGNED_INT 4
+
+/* The number of bytes in a unsigned long int.  */
+#define SIZEOF_UNSIGNED_LONG_INT 4
+
+/* The number of bytes in a unsigned short int.  */
+#define SIZEOF_UNSIGNED_SHORT_INT 2
+
+/* Define if you have the __argz_count function.  */
+#undef HAVE___ARGZ_COUNT
+
+/* Define if you have the __argz_next function.  */
+#undef HAVE___ARGZ_NEXT
+
+/* Define if you have the __argz_stringify function.  */
+#undef HAVE___ARGZ_STRINGIFY
+
+/* Define if you have the dcgettext function.  */
+#undef HAVE_DCGETTEXT
+
+/* Define if you have the getcwd function.  */
+#undef HAVE_GETCWD
+
+/* Define if you have the getpagesize function.  */
+#undef HAVE_GETPAGESIZE
+
+/* Define if you have the munmap function.  */
+#undef HAVE_MUNMAP
+
+/* Define if you have the putenv function.  */
+#undef HAVE_PUTENV
+
+/* Define if you have the setenv function.  */
+#undef HAVE_SETENV
+
+/* Define if you have the setlocale function.  */
+#define HAVE_SETLOCALE 1
+
+/* Define if you have the stpcpy function.  */
+#undef HAVE_STPCPY
+
+/* Define if you have the strcasecmp function.  */
+#undef HAVE_STRCASECMP
+#define strcasecmp _strcmpi
+
+/* Define if you have the strchr function.  */
+#define HAVE_STRCHR 1
+
+/* Define if you have the strdup function.  */
+#define HAVE_STRDUP 1
+
+/* Define if you have the &lt;argz.h&gt; header file.  */
+#undef HAVE_ARGZ_H
+
+/* Define if you have the &lt;libintl.h&gt; header file.  */
+#undef HAVE_LIBINTL_H
+
+/* Define if you have the &lt;limits.h&gt; header file.  */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the &lt;locale.h&gt; header file.  */
+#define HAVE_LOCALE_H 1
+
+/* Define if you have the &lt;malloc.h&gt; header file.  */
+#define HAVE_MALLOC_H 1
+
+/* Define if you have the &lt;netinet/in.h&gt; header file.  */
+#undef HAVE_NETINET_IN_H
+
+/* Define if you have the &lt;nl_types.h&gt; header file.  */
+#undef HAVE_NL_TYPES_H
+
+/* Define if you have the &lt;string.h&gt; header file.  */
+#define HAVE_STRING_H 1
+
+/* Define if you have the &lt;sys/param.h&gt; header file.  */
+#undef HAVE_SYS_PARAM_H
+
+/* Define if you have the &lt;unistd.h&gt; header file.  */
+#undef HAVE_UNISTD_H
+
+/* Define if you have the i library (-li).  */
+#undef HAVE_LIBI
+
+/* Define if you have the intl library (-lintl).  */
+#undef HAVE_LIBINTL
+
+// WIN32 specific defines
+#pragma warning( disable : 4786 )  // Disable warning messages
+                                   // 4786 (id too long)
+
+// Win32 strftime() does not return length of output when passing
+// NULL pointer
+#define BROKEN_STRFTIME
+// Win32 STL erase() for maps makes iterators invalid
+#define BUGGY_MAP_ERASE
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmctldsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmctl.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmctl.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmctl.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,118 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmctl&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=gsmctl - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmctl.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmctl.mak&quot; CFG=&quot;gsmctl - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmctl - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;gsmctl - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmctl - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmctl - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmctl - Win32 Release&quot;
+# Name &quot;gsmctl - Win32 Debug&quot;
+# Begin Group &quot;Quellcodedateien&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=.\getopt.c
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmctl - Win32 Release&quot;
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmctl - Win32 Debug&quot;
+
+# ADD CPP /Od
+
+!ENDIF 
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\apps\gsmctl.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header-Dateien&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=.\getopt.h
+# End Source File
+# End Group
+# Begin Group &quot;Ressourcendateien&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmlibdsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,232 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmlib&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Static Library&quot; 0x0104
+
+CFG=gsmlib - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmlib.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmlib.mak&quot; CFG=&quot;gsmlib - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmlib - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Static Library&quot;)
+!MESSAGE &quot;gsmlib - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Static Library&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmlib - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_MBCS&quot; /D &quot;_LIB&quot; /YX /FD /c
+# ADD CPP /nologo /W3 /GR /GX /O2 /I &quot;../vcproject&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_MBCS&quot; /D &quot;_LIB&quot; /D &quot;HAVE_CONFIG_H&quot; /FR /YX /FD /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmlib - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_MBCS&quot; /D &quot;_LIB&quot; /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GR /GX /ZI /Od /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_MBCS&quot; /D &quot;_LIB&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmlib - Win32 Release&quot;
+# Name &quot;gsmlib - Win32 Debug&quot;
+# Begin Group &quot;Source Files&quot;
+
+# PROP Default_Filter &quot;cpp;cc;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_at.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_error.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_cb.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_event.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_me_ta.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_nls.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_parser.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_phonebook.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms_codec.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms_store.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_phonebook.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_phonebook_base.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_sms_store.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_util.cc
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_win32_serial.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header Files&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_at.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_cb.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_error.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_event.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_map_key.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_me_ta.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_nls.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_parser.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_phonebook.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_port.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms_codec.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sms_store.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_phonebook.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_phonebook_base.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sorted_sms_store.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_sysdep.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_util.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\gsmlib\gsm_win32_serial.h
+# End Source File
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmlibdsw"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsw (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsw                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmlib.dsw        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,149 @@
</span><ins>+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL\xD6SCHT WERDEN!
+
+###############################################################################
+
+Project: &quot;gsmctl&quot;=&quot;.\gsmctl.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;gsmlib&quot;=&quot;.\gsmlib.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+}}}
+
+###############################################################################
+
+Project: &quot;gsmpb&quot;=&quot;.\gsmpb.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;gsmsendsms&quot;=&quot;.\gsmsendsms.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;gsmsmsd&quot;=&quot;.\gsmsmsd.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;gsmsmsstore&quot;=&quot;.\gsmsmsstore.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;testgsmlib&quot;=&quot;.\testgsmlib.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;testsms&quot;=&quot;.\testsms.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Project: &quot;testsms2&quot;=&quot;.\testsms2.dsp&quot; - Package Owner=&lt;4&gt;
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;4&gt;
+{{{
+    Begin Project Dependency
+    Project_Dep_Name gsmlib
+    End Project Dependency
+}}}
+
+###############################################################################
+
+Global:
+
+Package=&lt;5&gt;
+{{{
+}}}
+
+Package=&lt;3&gt;
+{{{
+}}}
+
+###############################################################################
+
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmpbdsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmpb.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmpb.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmpb.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,118 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmpb&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=gsmpb - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmpb.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmpb.mak&quot; CFG=&quot;gsmpb - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmpb - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;gsmpb - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmpb - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmpb - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmpb - Win32 Release&quot;
+# Name &quot;gsmpb - Win32 Debug&quot;
+# Begin Group &quot;Quellcodedateien&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=.\getopt.c
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmpb - Win32 Release&quot;
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmpb - Win32 Debug&quot;
+
+# ADD CPP /Od
+
+!ENDIF 
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\apps\gsmpb.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header-Dateien&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=.\getopt.h
+# End Source File
+# End Group
+# Begin Group &quot;Ressourcendateien&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsendsmsdsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsendsms.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsendsms.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsendsms.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,118 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmsendsms&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=gsmsendsms - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsendsms.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsendsms.mak&quot; CFG=&quot;gsmsendsms - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmsendsms - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;gsmsendsms - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsendsms - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsendsms - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmsendsms - Win32 Release&quot;
+# Name &quot;gsmsendsms - Win32 Debug&quot;
+# Begin Group &quot;Quellcodedateien&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=.\getopt.c
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsendsms - Win32 Release&quot;
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsendsms - Win32 Debug&quot;
+
+# ADD CPP /Od
+
+!ENDIF 
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\apps\gsmsendsms.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header-Dateien&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=.\getopt.h
+# End Source File
+# End Group
+# Begin Group &quot;Ressourcendateien&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsmsddsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsd.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsd.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsd.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,118 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmsmsd&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=gsmsmsd - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsmsd.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsmsd.mak&quot; CFG=&quot;gsmsmsd - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmsmsd - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;gsmsmsd - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsmsd - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsmsd - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmsmsd - Win32 Release&quot;
+# Name &quot;gsmsmsd - Win32 Debug&quot;
+# Begin Group &quot;Quellcodedateien&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=.\getopt.c
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsmsd - Win32 Release&quot;
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsmsd - Win32 Debug&quot;
+
+# ADD CPP /Od
+
+!ENDIF 
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\apps\gsmsmsd.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header-Dateien&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=.\getopt.h
+# End Source File
+# End Group
+# Begin Group &quot;Ressourcendateien&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32gsmsmsstoredsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsstore.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsstore.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/gsmsmsstore.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,119 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;gsmsmsstore&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=gsmsmsstore - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsmsstore.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;gsmsmsstore.mak&quot; CFG=&quot;gsmsmsstore - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;gsmsmsstore - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;gsmsmsstore - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsmsstore - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsmsstore - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /Yu&quot;stdafx.h&quot; /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x407 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x407 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;gsmsmsstore - Win32 Release&quot;
+# Name &quot;gsmsmsstore - Win32 Debug&quot;
+# Begin Group &quot;Quellcodedateien&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=.\getopt.c
+
+!IF  &quot;$(CFG)&quot; == &quot;gsmsmsstore - Win32 Release&quot;
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;gsmsmsstore - Win32 Debug&quot;
+
+# ADD CPP /Od
+
+!ENDIF 
+
+# End Source File
+# Begin Source File
+
+SOURCE=..\apps\gsmsmsstore.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header-Dateien&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# Begin Source File
+
+SOURCE=.\getopt.h
+# End Source File
+# End Group
+# Begin Group &quot;Ressourcendateien&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testgsmlibdsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testgsmlib.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testgsmlib.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testgsmlib.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,101 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;testgsmlib&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=testgsmlib - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testgsmlib.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testgsmlib.mak&quot; CFG=&quot;testgsmlib - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;testgsmlib - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;testgsmlib - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;testgsmlib - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;testgsmlib - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;testgsmlib - Win32 Release&quot;
+# Name &quot;testgsmlib - Win32 Debug&quot;
+# Begin Group &quot;Source Files&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=..\tests\testgsmlib.cc
+# ADD CPP /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;HAVE_CONFIG_H&quot;
+# End Source File
+# End Group
+# Begin Group &quot;Header Files&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# End Group
+# Begin Group &quot;Resource Files&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testsmsdsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;testsms&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=testsms - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testsms.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testsms.mak&quot; CFG=&quot;testsms - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;testsms - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;testsms - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;testsms - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;testsms - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;testsms - Win32 Release&quot;
+# Name &quot;testsms - Win32 Debug&quot;
+# Begin Group &quot;Source Files&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=..\tests\testsms.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header Files&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# End Group
+# Begin Group &quot;Resource Files&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110patched12ubuntu1win32testsms2dsp"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms2.dsp (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms2.dsp                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/testsms2.dsp        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+# Microsoft Developer Studio Project File - Name=&quot;testsms2&quot; - Package Owner=&lt;4&gt;
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE &quot;Win32 (x86) Console Application&quot; 0x0103
+
+CFG=testsms2 - Win32 Debug
+!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl &quot;Makefile exportieren&quot; und f\xFChren Sie den Befehl
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testsms2.mak&quot;.
+!MESSAGE 
+!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE 
+!MESSAGE NMAKE /f &quot;testsms2.mak&quot; CFG=&quot;testsms2 - Win32 Debug&quot;
+!MESSAGE 
+!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl:
+!MESSAGE 
+!MESSAGE &quot;testsms2 - Win32 Release&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE &quot;testsms2 - Win32 Debug&quot; (basierend auf  &quot;Win32 (x86) Console Application&quot;)
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName &quot;&quot;
+# PROP Scc_LocalPath &quot;&quot;
+CPP=cl.exe
+RSC=rc.exe
+
+!IF  &quot;$(CFG)&quot; == &quot;testsms2 - Win32 Release&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir &quot;Release&quot;
+# PROP BASE Intermediate_Dir &quot;Release&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir &quot;Release&quot;
+# PROP Intermediate_Dir &quot;Release&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /GX /O2 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;NDEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;NDEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF  &quot;$(CFG)&quot; == &quot;testsms2 - Win32 Debug&quot;
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir &quot;Debug&quot;
+# PROP BASE Intermediate_Dir &quot;Debug&quot;
+# PROP BASE Target_Dir &quot;&quot;
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir &quot;Debug&quot;
+# PROP Intermediate_Dir &quot;Debug&quot;
+# PROP Target_Dir &quot;&quot;
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I &quot;../gsmlib&quot; /I &quot;..&quot; /I &quot;.&quot; /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_MBCS&quot; /D &quot;HAVE_CONFIG_H&quot; /YX /FD /GZ /TP /c
+# ADD BASE RSC /l 0x409 /d &quot;_DEBUG&quot;
+# ADD RSC /l 0x409 /d &quot;_DEBUG&quot;
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name &quot;testsms2 - Win32 Release&quot;
+# Name &quot;testsms2 - Win32 Debug&quot;
+# Begin Group &quot;Source Files&quot;
+
+# PROP Default_Filter &quot;cpp;c;cxx;rc;def;r;odl;idl;hpj;bat&quot;
+# Begin Source File
+
+SOURCE=..\tests\testsms2.cc
+# End Source File
+# End Group
+# Begin Group &quot;Header Files&quot;
+
+# PROP Default_Filter &quot;h;hpp;hxx;hm;inl&quot;
+# End Group
+# Begin Group &quot;Resource Files&quot;
+
+# PROP Default_Filter &quot;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe&quot;
+# End Group
+# End Target
+# End Project
</ins></span></pre></div>
<a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib110targz"></a>
<div class="binary"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10.tar.gz</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Property changes on: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib-1.10.tar.gz
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:mime-type
</span><span class="cx">   + application/octet-stream
</span><a id="freeswitchbranchesgmaruzzmod_gsmopengsmlibgsmlib_11012ubuntu1diff"></a>
<div class="addfile"><h4>Added: freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib_1.10-12ubuntu1.diff (0 => 16173)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib_1.10-12ubuntu1.diff                                (rev 0)
+++ freeswitch/branches/gmaruzz/mod_gsmopen/gsmlib/gsmlib_1.10-12ubuntu1.diff        2010-01-06 14:07:02 UTC (rev 16173)
</span><span class="lines">@@ -0,0 +1,63790 @@
</span><ins>+--- gsmlib-1.10.orig/intl/Makefile
++++ gsmlib-1.10/intl/Makefile
+@@ -0,0 +1,214 @@
++# Makefile for directory with message catalog handling in GNU NLS Utilities.
++# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
++#
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2, or (at your option)
++# any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++PACKAGE = gsmlib
++VERSION = 1.10
++
++SHELL = /bin/sh
++
++srcdir = .
++top_srcdir = ..
++top_builddir = ..
++
++
++prefix = /usr
++exec_prefix = ${prefix}
++transform = s,x,x,
++libdir = $(exec_prefix)/lib
++includedir = $(prefix)/include
++datadir = $(prefix)/share
++localedir = $(datadir)/locale
++gnulocaledir = $(prefix)/share/locale
++gettextsrcdir = ${prefix}/share/gettext/intl
++aliaspath = $(localedir):.
++subdir = intl
++
++INSTALL = /usr/bin/install -c
++INSTALL_DATA = ${INSTALL} -m 644
++MKINSTALLDIRS = $(top_builddir)/scripts/mkinstalldirs
++
++l = @l@
++
++AR = ar
++CC = i486-linux-gnu-gcc
++LIBTOOL = $(SHELL) $(top_builddir)/libtool
++RANLIB = ranlib
++
++DEFS = -DGNULOCALEDIR=\&quot;$(gnulocaledir)\&quot; \
++-DLOCALE_ALIAS_PATH=\&quot;$(aliaspath)\&quot; -DHAVE_CONFIG_H
++CPPFLAGS = 
++CFLAGS = -D_REENTRANT 
++LDFLAGS = 
++
++COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
++
++HEADERS = $(COMHDRS) libgettext.h loadinfo.h
++COMHDRS = gettext.h gettextP.h hash-string.h
++SOURCES = $(COMSRCS) intl-compat.c cat-compat.c
++COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
++finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
++explodename.c
++OBJECTS =  bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
++finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
++explodename.$lo
++CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo
++GETTOBJS = intl-compat.$lo
++DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
++xopen-msg.sed $(HEADERS) $(SOURCES)
++DISTFILES.normal = VERSION
++DISTFILES.gettext = libintl.glibc intlh.inst.in
++
++.SUFFIXES:
++.SUFFIXES: .c .o .lo
++.c.o:
++        $(COMPILE) $&lt;
++.c.lo:
++        $(LIBTOOL) --mode=compile $(COMPILE) $&lt;
++
++INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib
++
++all: all-no
++
++all-yes: libintl.$la intlh.inst
++all-no:
++
++libintl.a: $(OBJECTS)
++        rm -f $@
++        $(AR) cru $@ $(OBJECTS)
++        $(RANLIB) $@
++
++libintl.la: $(OBJECTS)
++        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
++                   -version-info 1:0 -rpath $(libdir)
++
++../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
++        cd ../po &amp;&amp; $(MAKE) cat-id-tbl.$lo
++
++check: all
++
++# This installation goal is only used in GNU gettext.  Packages which
++# only use the library should use install instead.
++
++# We must not install the libintl.h/libintl.a files if we are on a
++# system which has the gettext() function in its C library or in a
++# separate library or use the catgets interface.  A special case is
++# where configure found a previously installed GNU gettext library.
++# If you want to use the one which comes with this version of the
++# package, you have to use `configure --with-included-gettext'.
++install: install-exec install-data
++install-exec: all
++        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot; \
++           &amp;&amp; test '' = '$(GETTOBJS)'; then \
++          if test -r $(MKINSTALLDIRS); then \
++            $(MKINSTALLDIRS) $(libdir) $(includedir); \
++          else \
++            $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \
++          fi; \
++          $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \
++          $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \
++        else \
++          : ; \
++        fi
++install-data: all
++        if test &quot;$(PACKAGE)&quot; = &quot;gettext&quot;; then \
++          if test -r $(MKINSTALLDIRS); then \
++            $(MKINSTALLDIRS) $(gettextsrcdir); \
++          else \
++            $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
++          fi; \
++          $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \
++          dists=&quot;$(DISTFILES.common)&quot;; \
++          for file in $$dists; do \
++            $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \
++          done; \
++        else \
++          : ; \
++        fi
++
++# Define this as empty until I found a useful application.
++installcheck:
++
++uninstall:
++        dists=&quot;$(DISTFILES.common)&quot;; \
++        for file in $$dists; do \
++          rm -f $(gettextsrcdir)/$$file; \
++        done
++
++info dvi:
++
++$(OBJECTS): ../gsm_config.h libgettext.h
++bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
++dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
++
++tags: TAGS
++
++TAGS: $(HEADERS) $(SOURCES)
++        here=`pwd`; cd $(srcdir) &amp;&amp; etags -o $$here/TAGS $(HEADERS) $(SOURCES)
++
++id: ID
++
++ID: $(HEADERS) $(SOURCES)
++        here=`pwd`; cd $(srcdir) &amp;&amp; mkid -f$$here/ID $(HEADERS) $(SOURCES)
++
++
++mostlyclean:
++        rm -f *.a *.o *.lo core core.*
++
++clean: mostlyclean
++
++distclean: clean
++        rm -f Makefile ID TAGS po2msg.sed po2tbl.sed
++
++maintainer-clean: distclean
++        @echo &quot;This command is intended for maintainers to use;&quot;
++        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
++
++
++# GNU gettext needs not contain the file `VERSION' but contains some
++# other files which should not be distributed in other packages.
++distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
++dist distdir: Makefile $(DISTFILES)
++        if test &quot;$(PACKAGE)&quot; = gettext; then \
++          additional=&quot;$(DISTFILES.gettext)&quot;; \
++        else \
++          additional=&quot;$(DISTFILES.normal)&quot;; \
++        fi; \
++        for file in $(DISTFILES.common) $$additional; do \
++          ln $(srcdir)/$$file $(distdir) 2&gt; /dev/null \
++            || cp -p $(srcdir)/$$file $(distdir); \
++        done
++
++dist-libc:
++        tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc
++
++Makefile: Makefile.in ../config.status
++        cd .. \
++          &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
++
++# The dependency for intlh.inst is different in gettext and all other
++# packages.  Because we cannot you GNU make features we have to solve
++# the problem while rewriting Makefile.in.
++@GT_YES@intlh.inst: intlh.inst.in ../config.status
++@GT_YES@        cd .. \
++@GT_YES@        &amp;&amp; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
++@GT_YES@          $(SHELL) ./config.status
++@GT_NO@.PHONY: intlh.inst
++@GT_NO@intlh.inst:
++
++# Tell versions [3.59,3.63) of GNU make not to export all variables.
++# Otherwise a system limit (for SysV at least) may be exceeded.
++.NOEXPORT:
+--- gsmlib-1.10.orig/po/gsmlib.pot
++++ gsmlib-1.10/po/gsmlib.pot
+@@ -7,7 +7,8 @@
+ msgid &quot;&quot;
+ msgstr &quot;&quot;
+ &quot;Project-Id-Version: PACKAGE VERSION\n&quot;
+-&quot;POT-Creation-Date: 2002-10-22 22:48+0200\n&quot;
++&quot;Report-Msgid-Bugs-To: \n&quot;
++&quot;POT-Creation-Date: 2007-09-29 18:24+0100\n&quot;
+ &quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&quot;
+ &quot;Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n&quot;
+ &quot;Language-Team: LANGUAGE &lt;LL@li.org&gt;\n&quot;
+@@ -15,168 +16,225 @@
+ &quot;Content-Type: text/plain; charset=CHARSET\n&quot;
+ &quot;Content-Transfer-Encoding: 8bit\n&quot;

+-#: apps/gsmsmsd.cc:164
++#: apps/gsmsmsd.cc:171
+ #, c-format
+ msgid &quot;could not execute '%s'&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:168
++#: apps/gsmsmsd.cc:175
+ #, c-format
+ msgid &quot;error writing to '%s'&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:196
++#: apps/gsmsmsd.cc:196 apps/gsmsmsd.cc:197 apps/gsmsmsd.cc:198
++#, c-format
++msgid &quot;%d&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:215
+ #, c-format
+ msgid &quot;error when calling opendir('%s')(errno: %d/%s)&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:225
++#: apps/gsmsmsd.cc:259
+ #, c-format
+ msgid &quot;count not open SMS spool file %s&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:341 apps/gsmsendsms.cc:144 apps/gsmpb.cc:311
++#: apps/gsmsmsd.cc:435 apps/gsmsendsms.cc:144 apps/gsmpb.cc:311
+ #: apps/gsmctl.cc:380 apps/gsmsmsstore.cc:179
+ #, c-format
+ msgid &quot;: version %s [compiled %s]&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:346
++#: apps/gsmsmsd.cc:440
+ msgid &quot;&quot;
+ &quot;: [-a action][-b baudrate][-C sca][-d device][-f][-h][-I init string]\n&quot;
+ &quot;  [-s spool dir][-t][-v]{sms_type}&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:350
++#: apps/gsmsmsd.cc:444
+ msgid &quot;&quot;
+ &quot;  -a, --action      the action to execute when an SMS arrives\n&quot;
+ &quot;                    (SMS is send to stdin of action)&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:354 apps/gsmsendsms.cc:153 apps/gsmpb.cc:322
++#: apps/gsmsmsd.cc:448 apps/gsmsendsms.cc:153 apps/gsmpb.cc:322
+ #: apps/gsmctl.cc:389 apps/gsmsmsstore.cc:194
+ msgid &quot;  -b, --baudrate    baudrate to use for device (default: 38400)&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:357
++#: apps/gsmsmsd.cc:451
+ msgid &quot;  -c, --concatenate start ID for concatenated SMS messages&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:359 apps/gsmsendsms.cc:158 apps/gsmsmsstore.cc:200
++#: apps/gsmsmsd.cc:453 apps/gsmsendsms.cc:158 apps/gsmsmsstore.cc:200
+ msgid &quot;  -C, --sca         SMS service centre address&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:360
++#: apps/gsmsmsd.cc:454
+ msgid &quot;  -d, --device      sets the device to connect to&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:361
++#: apps/gsmsmsd.cc:455
+ msgid &quot;  -D, --direct      enable direct routing of SMSs&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:362
++#: apps/gsmsmsd.cc:456
+ msgid &quot;  -f, --flush       flush SMS from store&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:363 apps/gsmsendsms.cc:161 apps/gsmpb.cc:332
++#: apps/gsmsmsd.cc:457
++msgid &quot;  -F, --failed      directory to move failed SMS to,&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:458 apps/gsmsmsd.cc:471
++msgid &quot;                    if unset, the SMS will be deleted&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:459 apps/gsmsendsms.cc:161 apps/gsmpb.cc:332
+ #: apps/gsmctl.cc:394 apps/gsmsmsstore.cc:204
+ msgid &quot;  -h, --help        prints this message&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:364 apps/gsmsendsms.cc:162 apps/gsmpb.cc:335
++#: apps/gsmsmsd.cc:460 apps/gsmsendsms.cc:162 apps/gsmpb.cc:335
+ #: apps/gsmctl.cc:395 apps/gsmsmsstore.cc:205
+ msgid &quot;  -I, --init        device AT init sequence&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:365 apps/gsmsendsms.cc:163
++#: apps/gsmsmsd.cc:462
++msgid &quot;  -L, --syslog      log errors and information to syslog&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:465
++msgid &quot;  -P, --priorities  number of priority levels to use,&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:466
++msgid &quot;                    (default: none)&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:467 apps/gsmsendsms.cc:163
+ msgid &quot;  -r, --requeststat request SMS status report&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:366
++#: apps/gsmsmsd.cc:468
+ msgid &quot;  -s, --spool       spool directory for outgoing SMS&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:368
++#: apps/gsmsmsd.cc:470
++msgid &quot;  -S, --sent        directory to move sent SMS to,&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:472
+ msgid &quot;&quot;
+ &quot;  -t, --store       name of SMS store to use for flush\n&quot;
+ &quot;                    and/or temporary SMS storage&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:371 apps/gsmsendsms.cc:167 apps/gsmpb.cc:343
++#: apps/gsmsmsd.cc:475 apps/gsmsendsms.cc:167 apps/gsmpb.cc:343
+ #: apps/gsmctl.cc:399 apps/gsmsmsstore.cc:213
+ msgid &quot;  -v, --version     prints version and exits&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:372 apps/gsmsendsms.cc:169 apps/gsmpb.cc:346
++#: apps/gsmsmsd.cc:476 apps/gsmsendsms.cc:169 apps/gsmpb.cc:346
+ #: apps/gsmctl.cc:400 apps/gsmsmsstore.cc:218
+ msgid &quot;  -X, --xonxoff     switch on software handshake&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:374
++#: apps/gsmsmsd.cc:478
+ msgid &quot;  sms_type may be any combination of&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:375
++#: apps/gsmsmsd.cc:479
+ msgid &quot;    sms, no_sms     controls reception of normal SMS&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:377
++#: apps/gsmsmsd.cc:481
+ msgid &quot;    cb, no_cb       controls reception of cell broadcast messages&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:379
++#: apps/gsmsmsd.cc:483
+ msgid &quot;    stat, no_stat   controls reception of status reports&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:381
++#: apps/gsmsmsd.cc:485
+ msgid &quot;  default is \&quot;sms cb stat\&quot;&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:382
++#: apps/gsmsmsd.cc:486
+ msgid &quot;If no action is given, the SMS is printed to stdout&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:387 apps/gsmsendsms.cc:178 apps/gsmpb.cc:354
++#: apps/gsmsmsd.cc:488
++msgid &quot;If -P is given, it activates the priority system and sets the&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:489
++msgid &quot;number or levels to use. For every level, there must be directories&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:490
++msgid &quot;named &lt;spool directory&gt;+&lt;priority level&gt;.&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:491
++msgid &quot;For example \&quot;-P 2 -s queue -S send -F failed\&quot; needs the following&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:492
++msgid &quot;directories: queue1/ queue2/ send1/ send2/ failed1/ failed2/&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:493
++msgid &quot;Before sending one SMS from queue2, all pending SMS from queue1&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:494
++msgid &quot;will be sent.&quot;
++msgstr &quot;&quot;
++
++#: apps/gsmsmsd.cc:499 apps/gsmsendsms.cc:178 apps/gsmpb.cc:354
+ #: apps/gsmctl.cc:414 apps/gsmsmsstore.cc:223
+ msgid &quot;unknown option&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:426
++#: apps/gsmsmsd.cc:538
+ #, c-format
+ msgid &quot;error when calling sigaction() (errno: %d/%s)&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:446
++#: apps/gsmsmsd.cc:558
+ msgid &quot;store name must be given for flush option&quot;
+ msgstr &quot;&quot;

+ #. process the new message
+-#: apps/gsmsmsd.cc:454 apps/gsmsmsd.cc:522
++#: apps/gsmsmsd.cc:566 apps/gsmsmsd.cc:634
+ msgid &quot;Type of message: &quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:458 apps/gsmsmsd.cc:526
++#: apps/gsmsmsd.cc:570 apps/gsmsmsd.cc:638
+ msgid &quot;SMS message\n&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:461
++#: apps/gsmsmsd.cc:573
+ msgid &quot;submit report message\n&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:464 apps/gsmsmsd.cc:532
++#: apps/gsmsmsd.cc:576 apps/gsmsmsd.cc:644
+ msgid &quot;status report message\n&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:529
++#: apps/gsmsmsd.cc:641
+ msgid &quot;cell broadcast message\n&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:585 apps/gsmsmsd.cc:587 apps/gsmsendsms.cc:253
++#: apps/gsmsmsd.cc:697 apps/gsmsmsd.cc:699 apps/gsmsendsms.cc:253
+ #: apps/gsmpb.cc:503 apps/gsmctl.cc:631 apps/gsmsmsstore.cc:435
+ msgid &quot;[ERROR]: &quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsd.cc:588
++#: apps/gsmsmsd.cc:700
+ msgid &quot;(try setting sms_type, please refer to gsmsmsd manpage)&quot;
+ msgstr &quot;&quot;

+@@ -372,7 +430,7 @@
+ msgstr &quot;&quot;

+ #: apps/gsmctl.cc:131 gsmlib/gsm_error.cc:104 gsmlib/gsm_sms.cc:441
+-#: gsmlib/gsm_sms_codec.cc:204
++#: gsmlib/gsm_sms_codec.cc:205
+ msgid &quot;unknown&quot;
+ msgstr &quot;&quot;

+@@ -618,7 +676,7 @@
+ msgid &quot;destination required&quot;
+ msgstr &quot;&quot;

+-#: apps/gsmsmsstore.cc:254 gsmlib/gsm_util.cc:285
++#: apps/gsmsmsstore.cc:254 gsmlib/gsm_util.cc:286
+ #, c-format
+ msgid &quot;expected number, got '%s'&quot;
+ msgstr &quot;&quot;
+@@ -1107,52 +1165,52 @@
+ msgid &quot;unexpected unsolicited event '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:536
++#: gsmlib/gsm_me_ta.cc:538
+ msgid &quot;unable to set operator&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:663
++#: gsmlib/gsm_me_ta.cc:665
+ msgid &quot;call forward time must be in the range 0..30&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:811
++#: gsmlib/gsm_me_ta.cc:813
+ msgid &quot;Functionality Level commands not supported by ME&quot;
+ msgstr &quot;&quot;

+ #. If the number was just out of range, we get here.
+-#: gsmlib/gsm_me_ta.cc:830
++#: gsmlib/gsm_me_ta.cc:832
+ msgid &quot;Requested Functionality Level out of range&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:941
++#: gsmlib/gsm_me_ta.cc:943
+ msgid &quot;unsupported alphabet for SMS&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:950
++#: gsmlib/gsm_me_ta.cc:952
+ msgid &quot;SMS text is larger than allowed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:962
++#: gsmlib/gsm_me_ta.cc:964
+ msgid &quot;not more than 255 concatenated SMSs allowed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:995
++#: gsmlib/gsm_me_ta.cc:997
+ msgid &quot;only serviceLevel 0 or 1 supported&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:1108 gsmlib/gsm_me_ta.cc:1150
++#: gsmlib/gsm_me_ta.cc:1110 gsmlib/gsm_me_ta.cc:1152
+ msgid &quot;cannot route SMS messages to TE&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:1122 gsmlib/gsm_me_ta.cc:1164
++#: gsmlib/gsm_me_ta.cc:1124 gsmlib/gsm_me_ta.cc:1166
+ msgid &quot;cannot route cell broadcast messages to TE&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:1134
++#: gsmlib/gsm_me_ta.cc:1136
+ msgid &quot;cannot route status reports messages to TE&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_me_ta.cc:1178
++#: gsmlib/gsm_me_ta.cc:1180
+ msgid &quot;cannot route status report messages to TE&quot;
+ msgstr &quot;&quot;

+@@ -1314,7 +1372,7 @@
+ msgid &quot;Validity period format: &quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms.cc:432 gsmlib/gsm_sms_codec.cc:183
++#: gsmlib/gsm_sms.cc:432 gsmlib/gsm_sms_codec.cc:184
+ msgid &quot;not present&quot;
+ msgstr &quot;&quot;

+@@ -1402,160 +1460,163 @@
+ msgid &quot;Message type: SMS-SUBMIT-REPORT&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:188 gsmlib/gsm_sms_codec.cc:190
++#: gsmlib/gsm_sms_codec.cc:189 gsmlib/gsm_sms_codec.cc:191
+ msgid &quot; minutes&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:192
++#: gsmlib/gsm_sms_codec.cc:193
+ msgid &quot; days&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:194
++#: gsmlib/gsm_sms_codec.cc:195
+ msgid &quot; weeks&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:213
++#: gsmlib/gsm_sms_codec.cc:214
+ msgid &quot;compressed   &quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:218
++#: gsmlib/gsm_sms_codec.cc:219
+ msgid &quot;voicemail message waiting&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:221
++#: gsmlib/gsm_sms_codec.cc:222
+ msgid &quot;fax message waiting&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:224
++#: gsmlib/gsm_sms_codec.cc:225
+ msgid &quot;electronic mail message waiting&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:227
++#: gsmlib/gsm_sms_codec.cc:228
+ msgid &quot;other message waiting&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:234
++#: gsmlib/gsm_sms_codec.cc:235
+ msgid &quot;default alphabet&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:237
++#: gsmlib/gsm_sms_codec.cc:238
+ msgid &quot;8-bit alphabet&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:240
++#: gsmlib/gsm_sms_codec.cc:241
+ msgid &quot;16-bit alphabet&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:243
++#: gsmlib/gsm_sms_codec.cc:244
+ msgid &quot;reserved alphabet&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:256
++#: gsmlib/gsm_sms_codec.cc:257
+ msgid &quot;bad hexadecimal PDU format&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:285 gsmlib/gsm_sms_codec.cc:295
+-#: gsmlib/gsm_sms_codec.cc:310 gsmlib/gsm_sms_codec.cc:318
+-#: gsmlib/gsm_sms_codec.cc:339 gsmlib/gsm_sms_codec.cc:347
+-#: gsmlib/gsm_sms_codec.cc:368 gsmlib/gsm_sms_codec.cc:382
++#: gsmlib/gsm_sms_codec.cc:286 gsmlib/gsm_sms_codec.cc:296
++#: gsmlib/gsm_sms_codec.cc:311 gsmlib/gsm_sms_codec.cc:319
++#: gsmlib/gsm_sms_codec.cc:340 gsmlib/gsm_sms_codec.cc:348
++#: gsmlib/gsm_sms_codec.cc:369 gsmlib/gsm_sms_codec.cc:383
+ msgid &quot;premature end of PDU&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_sms_codec.cc:473
++#: gsmlib/gsm_sms_codec.cc:474
+ msgid &quot;unknown time period format&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:119
++#: gsmlib/gsm_unix_serial.cc:120
+ msgid &quot;interrupted when reading from TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:144
++#: gsmlib/gsm_unix_serial.cc:135
++msgid &quot;end of file when reading from TA&quot;
++msgstr &quot;&quot;
++
++#: gsmlib/gsm_unix_serial.cc:145
+ msgid &quot;reading from TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:149
++#: gsmlib/gsm_unix_serial.cc:150
+ msgid &quot;timeout when reading from TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:176
++#: gsmlib/gsm_unix_serial.cc:177
+ #, c-format
+ msgid &quot;opening device '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:182
++#: gsmlib/gsm_unix_serial.cc:184
+ msgid &quot;getting file status flags failed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:185
++#: gsmlib/gsm_unix_serial.cc:189
+ msgid &quot;switching of non-blocking mode failed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:198
++#: gsmlib/gsm_unix_serial.cc:204
+ msgid &quot;clearing DTR failed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:202
++#: gsmlib/gsm_unix_serial.cc:210
+ msgid &quot;setting DTR failed&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:206
++#: gsmlib/gsm_unix_serial.cc:215
+ #, c-format
+ msgid &quot;tcgetattr device '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:233
++#: gsmlib/gsm_unix_serial.cc:244
+ #, c-format
+ msgid &quot;tcsetattr device '%s'&quot;
+ msgstr &quot;&quot;

+-#. no response after 3 tries
+-#: gsmlib/gsm_unix_serial.cc:287
++#: gsmlib/gsm_unix_serial.cc:302
+ #, c-format
+ msgid &quot;reset modem failed '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:332 gsmlib/gsm_unix_serial.cc:364
++#: gsmlib/gsm_unix_serial.cc:347 gsmlib/gsm_unix_serial.cc:379
+ msgid &quot;interrupted when writing to TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:347 gsmlib/gsm_unix_serial.cc:356
++#: gsmlib/gsm_unix_serial.cc:362 gsmlib/gsm_unix_serial.cc:371
+ msgid &quot;writing to TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:377
++#: gsmlib/gsm_unix_serial.cc:392
+ msgid &quot;timeout when writing to TA&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_unix_serial.cc:438
++#: gsmlib/gsm_unix_serial.cc:453
+ #, c-format
+ msgid &quot;unknown baudrate '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:205
++#: gsmlib/gsm_util.cc:206
+ #, c-format
+ msgid &quot;error when calling stat('%s') (errno: %d/%s)&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:236
++#: gsmlib/gsm_util.cc:237
+ #, c-format
+ msgid &quot;file '%s' is neither file nor character device&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:240
++#: gsmlib/gsm_util.cc:241
+ msgid &quot;maxmimum number of symbolic links exceeded&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:250
++#: gsmlib/gsm_util.cc:251
+ #, c-format
+ msgid &quot;error renaming '%s' to '%s'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:348
++#: gsmlib/gsm_util.cc:349
+ #, c-format
+ msgid &quot;text '%s' contains illegal character '\&quot;'&quot;
+ msgstr &quot;&quot;

+-#: gsmlib/gsm_util.cc:358
++#: gsmlib/gsm_util.cc:359
+ #, c-format
+ msgid &quot;illegal character in telephone number '%s'&quot;
+ msgstr &quot;&quot;
+--- gsmlib-1.10.orig/po/de.po
++++ gsmlib-1.10/po/de.po
+@@ -233,7 +233,7 @@

+ #: apps/gsmsendsms.cc:171
+ msgid &quot;  phonenumber       recipient's phone number&quot;
+-msgstr &quot;  Telefonummer      die Telefonnumer des Empf\xE4ngers&quot;
++msgstr &quot;  Telefonummer      die Telefonnummer des Empf\xE4ngers&quot;

+ #: apps/gsmsendsms.cc:172
+ msgid &quot;&quot;
+@@ -295,7 +295,7 @@

+ #: apps/gsmpb.cc:325
+ msgid &quot;  -c, --copy        copy source entries to destination&quot;
+-msgstr &quot;  -c, --copy        kopiere Quell-Entr\xE4ge zum Zielger\xE4t/-datei&quot;
++msgstr &quot;  -c, --copy        kopiere Quell-Eintr\xE4ge zum Zielger\xE4t/-datei&quot;

+ #: apps/gsmpb.cc:327
+ msgid &quot;&quot;
+@@ -626,14 +626,14 @@
+ msgstr &quot;&quot;
+ &quot;: [-a][-b Baud-Rate][-c][-C sca][-d Ger\xE4t oder Datei]\n&quot;
+ &quot;  [-h][-I Init String][-k][-l][-s Ger\xE4t oder Datei][-t SMS Speichername]\n&quot;
+-&quot;  [-v][-V][-x][-X]{Indices}|[Telefonnumer Text]&quot;
++&quot;  [-v][-V][-x][-X]{Indices}|[Telefonnummer Text]&quot;

+ #: apps/gsmsmsstore.cc:191
+ msgid &quot;&quot;
+ &quot;  -a, --add         add new SMS submit message\n&quot;
+ &quot;                    (phonenumber and text) to destination&quot;
+ msgstr &quot;&quot;
+-&quot;  -a, --add         f\xFCge neue SMS-Submit-Nachricht (Telefonnumer und\n&quot;
++&quot;  -a, --add         f\xFCge neue SMS-Submit-Nachricht (Telefonnummer und\n&quot;
+ &quot;                    Text) in das Zielger\xE4t/-datei ein&quot;

+ #: apps/gsmsmsstore.cc:197
+@@ -1437,7 +1437,7 @@

+ #: gsmlib/gsm_sms.cc:450 gsmlib/gsm_sms.cc:626
+ msgid &quot;Destination address: '&quot;
+-msgstr &quot;Zieladdresse: '&quot;
++msgstr &quot;Zieladresse: '&quot;

+ #: gsmlib/gsm_sms.cc:455
+ msgid &quot;Validity period: &quot;
+--- gsmlib-1.10.orig/po/cat-id-tbl.c
++++ gsmlib-1.10/po/cat-id-tbl.c
+@@ -1,435 +0,0 @@
+-/* Automatically generated by po2tbl.sed from gsmlib.pot.  */
+-
+-#if HAVE_CONFIG_H
+-# include &lt;config.h&gt;
+-#endif
+-
+-#include &quot;libgettext.h&quot;
+-
+-const struct _msg_ent _msg_tbl[] = {
+-  {&quot;&quot;, 1},
+-  {&quot;could not execute '%s'&quot;, 2},
+-  {&quot;error writing to '%s'&quot;, 3},
+-  {&quot;error when calling opendir('%s')(errno: %d/%s)&quot;, 4},
+-  {&quot;count not open SMS spool file %s&quot;, 5},
+-  {&quot;: version %s [compiled %s]&quot;, 6},
+-  {&quot;\
+-: [-a action][-b baudrate][-C sca][-d device][-f][-h][-I init string]\n\
+-  [-s spool dir][-t][-v]{sms_type}&quot;, 7},
+-  {&quot;\
+-  -a, --action      the action to execute when an SMS arrives\n\
+-                    (SMS is send to stdin of action)&quot;, 8},
+-  {&quot;  -b, --baudrate    baudrate to use for device (default: 38400)&quot;, 9},
+-  {&quot;  -c, --concatenate start ID for concatenated SMS messages&quot;, 10},
+-  {&quot;  -C, --sca         SMS service centre address&quot;, 11},
+-  {&quot;  -d, --device      sets the device to connect to&quot;, 12},
+-  {&quot;  -D, --direct      enable direct routing of SMSs&quot;, 13},
+-  {&quot;  -f, --flush       flush SMS from store&quot;, 14},
+-  {&quot;  -h, --help        prints this message&quot;, 15},
+-  {&quot;  -I, --init        device AT init sequence&quot;, 16},
+-  {&quot;  -r, --requeststat request SMS status report&quot;, 17},
+-  {&quot;  -s, --spool       spool directory for outgoing SMS&quot;, 18},
+-  {&quot;\
+-  -t, --store       name of SMS store to use for flush\n\
+-                    and/or temporary SMS storage&quot;, 19},
+-  {&quot;  -v, --version     prints version and exits&quot;, 20},
+-  {&quot;  -X, --xonxoff     switch on software handshake&quot;, 21},
+-  {&quot;  sms_type may be any combination of&quot;, 22},
+-  {&quot;    sms, no_sms     controls reception of normal SMS&quot;, 23},
+-  {&quot;    cb, no_cb       controls reception of cell broadcast messages&quot;, 24},
+-  {&quot;    stat, no_stat   controls reception of status reports&quot;, 25},
+-  {&quot;  default is \&quot;sms cb stat\&quot;&quot;, 26},
+-  {&quot;If no action is given, the SMS is printed to stdout&quot;, 27},
+-  {&quot;unknown option&quot;, 28},
+-  {&quot;error when calling sigaction() (errno: %d/%s)&quot;, 29},
+-  {&quot;store name must be given for flush option&quot;, 30},
+-  {&quot;Type of message: &quot;, 31},
+-  {&quot;SMS message\n&quot;, 32},
+-  {&quot;submit report message\n&quot;, 33},
+-  {&quot;status report message\n&quot;, 34},
+-  {&quot;cell broadcast message\n&quot;, 35},
+-  {&quot;[ERROR]: &quot;, 36},
+-  {&quot;(try setting sms_type, please refer to gsmsmsd manpage)&quot;, 37},
+-  {&quot;\
+-: [-b baudrate][-c concatenatedID][-C sca][-d device][-h][-I init string]\n\
+-  [-t][-v][-X] phonenumber [text]&quot;, 38},
+-  {&quot;  -c, --concatenate ID for concatenated SMS messages&quot;, 39},
+-  {&quot;  -d, --device      sets the destination device to connect to&quot;, 40},
+-  {&quot;\
+-  -t, --test        convert text to GSM alphabet and vice\n\
+-                    versa, no SMS message is sent&quot;, 41},
+-  {&quot;  phonenumber       recipient's phone number&quot;, 42},
+-  {&quot;\
+-  text              optional text of the SMS message\n\
+-                    if omitted: read from stdin&quot;, 43},
+-  {&quot;phone number and text missing&quot;, 44},
+-  {&quot;more than two parameters given&quot;, 45},
+-  {&quot;text is larger than 160 characters&quot;, 46},
+-  {&quot;inserting '%s' tel# %s&quot;, 47},
+-  {&quot; (index #%d)&quot;, 48},
+-  {&quot;updating '%s' tel# %s to new tel# %s&quot;, 49},
+-  {&quot;updating '%s' tel# %s to new tel# %s(index %d)&quot;, 50},
+-  {&quot;deleting '%s' tel# %s&quot;, 51},
+-  {&quot;\
+-: [-b baudrate][-c][-d device or file][-h][-I init string]\n\
+-  [-p phonebook name][-s device or file][-t charset][-v][-V][-y][-X]&quot;, 52},
+-  {&quot;  -c, --copy        copy source entries to destination&quot;, 53},
+-  {&quot;\
+-  -d, --destination sets the destination device to connect \n\
+-                    to, or the file to write&quot;, 54},
+-  {&quot;  -D, --destination-backend sets the destination backend&quot;, 55},
+-  {&quot;  -i, --index       takes index positions into account&quot;, 56},
+-  {&quot;  -p, --phonebook   name of phonebook to use&quot;, 57},
+-  {&quot;\
+-  -s, --source      sets the source device to connect to,\n\
+-                    or the file to read&quot;, 58},
+-  {&quot;\
+-  -t, --charset     sets the character set to use for\n\
+-                    phonebook entries&quot;, 59},
+-  {&quot;  -S, --source-backend sets the source backend&quot;, 60},
+-  {&quot;  -V, --verbose     print detailed progress messages&quot;, 61},
+-  {&quot;\
+-  -y, --synchronize synchronize destination with source\n\
+-                    entries (destination is overwritten)\n\
+-                    (see gsmpb(1) for details)&quot;, 62},
+-  {&quot;both source and destination must be given&quot;, 63},
+-  {&quot;phonebook name must be given&quot;, 64},
+-  {&quot;\
+-text '%s' is too large to fit into destination (maximum size %d characters)&quot;, 65},
+-  {&quot;\
+-phone number '%s' is too large to fit into destination (maximum size %d \
+-characters)&quot;, 66},
+-  {&quot;active &quot;, 67},
+-  {&quot;inactive &quot;, 68},
+-  {&quot;number: &quot;, 69},
+-  {&quot;  subaddr: &quot;, 70},
+-  {&quot;  time: &quot;, 71},
+-  {&quot;&lt;ME0&gt;  Manufacturer: &quot;, 72},
+-  {&quot;&lt;ME1&gt;  Model: &quot;, 73},
+-  {&quot;&lt;ME2&gt;  Revision: &quot;, 74},
+-  {&quot;&lt;ME3&gt;  Serial Number: &quot;, 75},
+-  {&quot;&lt;FUN&gt;  Functionality Level: &quot;, 76},
+-  {&quot;unsupported&quot;, 77},
+-  {&quot;&gt;  Status: &quot;, 78},
+-  {&quot;unknown&quot;, 79},
+-  {&quot;current&quot;, 80},
+-  {&quot;available&quot;, 81},
+-  {&quot;forbidden&quot;, 82},
+-  {&quot;  Long name: '&quot;, 83},
+-  {&quot;  Short name: '&quot;, 84},
+-  {&quot;  Numeric name: &quot;, 85},
+-  {&quot;  Mode: &quot;, 86},
+-  {&quot;automatic&quot;, 87},
+-  {&quot;manual&quot;, 88},
+-  {&quot;deregister&quot;, 89},
+-  {&quot;manual/automatic&quot;, 90},
+-  {&quot;  Voice&quot;, 91},
+-  {&quot;  unknown&quot;, 92},
+-  {&quot;  Data&quot;, 93},
+-  {&quot;  Fax&quot;, 94},
+-  {&quot;on&quot;, 95},
+-  {&quot;off&quot;, 96},
+-  {&quot;UnconditionalReason&quot;, 97},
+-  {&quot;MobileBusyReason&quot;, 98},
+-  {&quot;NoReplyReason&quot;, 99},
+-  {&quot;NotReachableReason&quot;, 100},
+-  {&quot;0 ME is powered by the battery&quot;, 101},
+-  {&quot;1 ME has a battery connected, but is not powered by it&quot;, 102},
+-  {&quot;2 ME does not have a battery connected&quot;, 103},
+-  {&quot;3 Recognized power fault, calls inhibited&quot;, 104},
+-  {&quot;unknown facility class parameter '%c'&quot;, 105},
+-  {&quot;not enough parameters, minimum number of parameters is %d&quot;, 106},
+-  {&quot;too many parameters, maximum number of parameters is %d&quot;, 107},
+-  {&quot;\
+-: [-b baudrate][-d device][-h][-I init string][-o operation]\n\
+-  [-v][-X]{parameters}&quot;, 108},
+-  {&quot;\
+-  -o, --operation   operation to perform on the mobile \n\
+-                    phone with the specified parameters&quot;, 109},
+-  {&quot;\
+-  parameters        parameters to use for the operation\n\
+-                    (if an operation is given) or\n\
+-                    a specification which kind of\n\
+-                    information to read from the mobile phone&quot;, 110},
+-  {&quot;\
+-Refer to gsmctl(1) for details on the available parameters and operations.&quot;, 111},
+-  {&quot;unknown information parameter '%s'&quot;, 112},
+-  {&quot;unknown opmode parameter '%s'&quot;, 113},
+-  {&quot;unknown forward reason parameter '%s'&quot;, 114},
+-  {&quot;unknown forward mode parameter '%s'&quot;, 115},
+-  {&quot;unknown operation '%s'&quot;, 116},
+-  {&quot;inserting entry #%d from source into destination&quot;, 117},
+-  {&quot;incompatible options '%c' and '%c'&quot;, 118},
+-  {&quot;\
+-: [-a][-b baudrate][-c][-C sca][-d device or file]\n\
+-  [-h][-I init string][-k][-l][-s device or file][-t SMS store name]\n\
+-  [-v][-V][-x][-X]{indices}|[phonenumber text]&quot;, 119},
+-  {&quot;\
+-  -a, --add         add new SMS submit message\n\
+-                    (phonenumber and text) to destination&quot;, 120},
+-  {&quot;\
+-  -c, --copy        copy source entries to destination\n\
+-                    (if indices are given, copy only these entries)&quot;, 121},
+-  {&quot;\
+-  -d, --destination sets the destination device to\n\
+-                    connect to, or the file to write to&quot;, 122},
+-  {&quot;\
+-  -k, --backup      backup new entries to destination\n\
+-                    (if indices are given, copy only these entries)&quot;, 123},
+-  {&quot;  -l, --list        list source to stdout&quot;, 124},
+-  {&quot;  -t, --store       name of SMS store to use&quot;, 125},
+-  {&quot;  -x, --delete      delete entries denoted by indices&quot;, 126},
+-  {&quot;no operation option given&quot;, 127},
+-  {&quot;both source and destination required&quot;, 128},
+-  {&quot;destination must not be given&quot;, 129},
+-  {&quot;source required&quot;, 130},
+-  {&quot;source must not be given&quot;, 131},
+-  {&quot;destination required&quot;, 132},
+-  {&quot;expected number, got '%s'&quot;, 133},
+-  {&quot;not enough parameters given&quot;, 134},
+-  {&quot;unexpected parameters&quot;, 135},
+-  {&quot;store name must be given&quot;, 136},
+-  {&quot;no index '%s' in source&quot;, 137},
+-  {&quot;index #%d&quot;, 138},
+-  {&quot;inserting new entry into destination&quot;, 139},
+-  {&quot;deleting entry #%d from destination&quot;, 140},
+-  {&quot;no index '%s' in destination&quot;, 141},
+-  {&quot;unspecified ME/TA error&quot;, 142},
+-  {&quot;ME/TA error '&quot;, 143},
+-  {&quot;(code %s)&quot;, 144},
+-  {&quot;ME/TA error '&lt;unspecified&gt;' (code not known)&quot;, 145},
+-  {&quot;unexpected response '%s' when sending 'AT%s'&quot;, 146},
+-  {&quot;unexpected character in PDU handshake&quot;, 147},
+-  {&quot;phone failure&quot;, 148},
+-  {&quot;no connection to phone&quot;, 149},
+-  {&quot;phone adaptor link reserved&quot;, 150},
+-  {&quot;operation not allowed&quot;, 151},
+-  {&quot;operation not supported&quot;, 152},
+-  {&quot;ph SIM PIN required&quot;, 153},
+-  {&quot;SIM not inserted&quot;, 154},
+-  {&quot;SIM PIN required&quot;, 155},
+-  {&quot;SIM PUK required&quot;, 156},
+-  {&quot;SIM failure&quot;, 157},
+-  {&quot;SIM busy&quot;, 158},
+-  {&quot;SIM wrong&quot;, 159},
+-  {&quot;incorrect password&quot;, 160},
+-  {&quot;SIM PIN2 required&quot;, 161},
+-  {&quot;SIM PUK2 required&quot;, 162},
+-  {&quot;memory full&quot;, 163},
+-  {&quot;invalid index&quot;, 164},
+-  {&quot;not found&quot;, 165},
+-  {&quot;memory failure&quot;, 166},
+-  {&quot;text string too long&quot;, 167},
+-  {&quot;invalid characters in text string&quot;, 168},
+-  {&quot;dial string too long&quot;, 169},
+-  {&quot;invalid characters in dial string&quot;, 170},
+-  {&quot;no network service&quot;, 171},
+-  {&quot;network timeout&quot;, 172},
+-  {&quot;invalid ME error %d&quot;, 173},
+-  {&quot;Unassigned (unallocated) number&quot;, 174},
+-  {&quot;Operator determined barring&quot;, 175},
+-  {&quot;Call barred&quot;, 176},
+-  {&quot;Network failure&quot;, 177},
+-  {&quot;Short message transfer rejected&quot;, 178},
+-  {&quot;Congestion&quot;, 179},
+-  {&quot;Destination out of service&quot;, 180},
+-  {&quot;Unidentified subscriber&quot;, 181},
+-  {&quot;Facility rejected&quot;, 182},
+-  {&quot;Unknown subscriber&quot;, 183},
+-  {&quot;Network out of order&quot;, 184},
+-  {&quot;Temporary failure&quot;, 185},
+-  {&quot;Resources unavailable, unspecified&quot;, 186},
+-  {&quot;Requested facility not subscribed&quot;, 187},
+-  {&quot;Requested facility not implemented&quot;, 188},
+-  {&quot;Invalid Transaction Identifier&quot;, 189},
+-  {&quot;Semantically incorrect message&quot;, 190},
+-  {&quot;Invalid mandatory information&quot;, 191},
+-  {&quot;Message type non-existent or not implemented&quot;, 192},
+-  {&quot;Message not compatible with short message protocol state&quot;, 193},
+-  {&quot;Information element non-existent or not implemented&quot;, 194},
+-  {&quot;Protocol error, unspecified&quot;, 195},
+-  {&quot;Interworking, unspecified&quot;, 196},
+-  {&quot;Telematic interworking not supported&quot;, 197},
+-  {&quot;Short message Type 0 not supported&quot;, 198},
+-  {&quot;Cannot replace short message&quot;, 199},
+-  {&quot;Unspecified TP-PID error&quot;, 200},
+-  {&quot;Data coding scheme (alphabet) not supported&quot;, 201},
+-  {&quot;Message class not supported&quot;, 202},
+-  {&quot;Unspecifiec TP-DCS error&quot;, 203},
+-  {&quot;Command cannot be actioned&quot;, 204},
+-  {&quot;Command unsupported&quot;, 205},
+-  {&quot;Unspecified TP-Command error&quot;, 206},
+-  {&quot;TPDU not supported&quot;, 207},
+-  {&quot;SC busy&quot;, 208},
+-  {&quot;No SC subscription&quot;, 209},
+-  {&quot;SC system failure&quot;, 210},
+-  {&quot;Invalid SME address&quot;, 211},
+-  {&quot;Destination SME barred&quot;, 212},
+-  {&quot;SM Rejected-Duplicated SM&quot;, 213},
+-  {&quot;SIM SMS storage full&quot;, 214},
+-  {&quot;No SMS storage capability in SIM&quot;, 215},
+-  {&quot;Error in MS&quot;, 216},
+-  {&quot;Memory Capacity Exceed&quot;, 217},
+-  {&quot;Unspecified error cause&quot;, 218},
+-  {&quot;ME failure&quot;, 219},
+-  {&quot;SMS service of ME reserved&quot;, 220},
+-  {&quot;invalid PDU mode parameter&quot;, 221},
+-  {&quot;invalid text mode parameter&quot;, 222},
+-  {&quot;PH-SIM PIN required&quot;, 223},
+-  {&quot;invalid memory index&quot;, 224},
+-  {&quot;SMSC address unknown&quot;, 225},
+-  {&quot;no +CNMA acknowledgement expected&quot;, 226},
+-  {&quot;unknown error&quot;, 227},
+-  {&quot;invalid SMS error %d&quot;, 228},
+-  {&quot;Short message received by the SME&quot;, 229},
+-  {&quot;\
+-Short message forwarded by the SC to the SME but the SC is unable to confirm \
+-delivery&quot;, 230},
+-  {&quot;Short message replaced by the SC&quot;, 231},
+-  {&quot;reserved&quot;, 232},
+-  {&quot;SME busy&quot;, 233},
+-  {&quot;No response from SME&quot;, 234},
+-  {&quot;Service rejected&quot;, 235},
+-  {&quot;Quality of service not available&quot;, 236},
+-  {&quot;Error in SME&quot;, 237},
+-  {&quot; (Temporary error, SC is not making any more transfer attempts)&quot;, 238},
+-  {&quot; (Temporary error, SC still trying to transfer SM)&quot;, 239},
+-  {&quot;Remote Procedure Error&quot;, 240},
+-  {&quot;Incompatible destination&quot;, 241},
+-  {&quot;Connection rejected by SME&quot;, 242},
+-  {&quot;Not obtainable&quot;, 243},
+-  {&quot;No interworking available&quot;, 244},
+-  {&quot;SM validity period expired&quot;, 245},
+-  {&quot;SM deleted by originating SME&quot;, 246},
+-  {&quot;SM deleted by SC administration&quot;, 247},
+-  {&quot;SM does not exit&quot;, 248},
+-  {&quot; (Permanent Error, SC is not making any more transfer attempts)&quot;, 249},
+-  {&quot;unexpected number format %d&quot;, 250},
+-  {&quot;unexpected unsolicited event '%s'&quot;, 251},
+-  {&quot;unable to set operator&quot;, 252},
+-  {&quot;call forward time must be in the range 0..30&quot;, 253},
+-  {&quot;Functionality Level commands not supported by ME&quot;, 254},
+-  {&quot;Requested Functionality Level out of range&quot;, 255},
+-  {&quot;unsupported alphabet for SMS&quot;, 256},
+-  {&quot;SMS text is larger than allowed&quot;, 257},
+-  {&quot;not more than 255 concatenated SMSs allowed&quot;, 258},
+-  {&quot;only serviceLevel 0 or 1 supported&quot;, 259},
+-  {&quot;cannot route SMS messages to TE&quot;, 260},
+-  {&quot;cannot route cell broadcast messages to TE&quot;, 261},
+-  {&quot;cannot route status reports messages to TE&quot;, 262},
+-  {&quot;cannot route status report messages to TE&quot;, 263},
+-  {&quot;expected parameter&quot;, 264},
+-  {&quot;expected '\&quot;'&quot;, 265},
+-  {&quot;expected number&quot;, 266},
+-  {&quot;unexpected end of string '%s'&quot;, 267},
+-  {&quot; (at position %d of string '%s')&quot;, 268},
+-  {&quot;expected '%c'&quot;, 269},
+-  {&quot;expected ')' or ','&quot;, 270},
+-  {&quot;expected ')', ',' or '-'&quot;, 271},
+-  {&quot;range of the form a-b-c not allowed&quot;, 272},
+-  {&quot;range of the form a- no allowed&quot;, 273},
+-  {&quot;expected comma&quot;, 274},
+-  {&quot;expected end of line&quot;, 275},
+-  {&quot;\
+-length of text '%s' exceeds maximum text length (%d characters) of phonebook \
+-'%s'&quot;, 276},
+-  {&quot;\
+-length of telephone number '%s' exceeds maximum telephone number length (%d \
+-characters) of phonebook '%s'&quot;, 277},
+-  {&quot;phonebook full&quot;, 278},
+-  {&quot;attempt to overwrite phonebook entry&quot;, 279},
+-  {&quot;SIM card changed while accessing phonebook&quot;, 280},
+-  {&quot;unhandled SMS TPDU type&quot;, 281},
+-  {&quot;can only send SMS-SUBMIT and SMS-COMMAND TPDUs&quot;, 282},
+-  {&quot;no device given for sending SMS&quot;, 283},
+-  {&quot;Message type: SMS-DELIVER&quot;, 284},
+-  {&quot;SC address: '&quot;, 285},
+-  {&quot;More messages to send: &quot;, 286},
+-  {&quot;Reply path: &quot;, 287},
+-  {&quot;User data header indicator: &quot;, 288},
+-  {&quot;Status report indication: &quot;, 289},
+-  {&quot;Originating address: '&quot;, 290},
+-  {&quot;Protocol identifier: 0x&quot;, 291},
+-  {&quot;Data coding scheme: &quot;, 292},
+-  {&quot;SC timestamp: &quot;, 293},
+-  {&quot;User data length: &quot;, 294},
+-  {&quot;User data header: 0x&quot;, 295},
+-  {&quot;User data: '&quot;, 296},
+-  {&quot;Message type: SMS-SUBMIT&quot;, 297},
+-  {&quot;Reject duplicates: &quot;, 298},
+-  {&quot;Validity period format: &quot;, 299},
+-  {&quot;not present&quot;, 300},
+-  {&quot;relative&quot;, 301},
+-  {&quot;absolute&quot;, 302},
+-  {&quot;Status report request: &quot;, 303},
+-  {&quot;Message reference: &quot;, 304},
+-  {&quot;Destination address: '&quot;, 305},
+-  {&quot;Validity period: &quot;, 306},
+-  {&quot;Message type: SMS-STATUS-REPORT&quot;, 307},
+-  {&quot;Status report qualifier: &quot;, 308},
+-  {&quot;Recipient address: '&quot;, 309},
+-  {&quot;Discharge time: &quot;, 310},
+-  {&quot;Status: 0x&quot;, 311},
+-  {&quot;Message type: SMS-COMMAND&quot;, 312},
+-  {&quot;Command type: 0x&quot;, 313},
+-  {&quot;Message number: &quot;, 314},
+-  {&quot;Command data length: &quot;, 315},
+-  {&quot;Command data: '&quot;, 316},
+-  {&quot;Message type: SMS-DELIVER-REPORT&quot;, 317},
+-  {&quot;Protocol identifier present: &quot;, 318},
+-  {&quot;Data coding scheme present: &quot;, 319},
+-  {&quot;User data length present: &quot;, 320},
+-  {&quot;Message type: SMS-SUBMIT-REPORT&quot;, 321},
+-  {&quot; minutes&quot;, 322},
+-  {&quot; days&quot;, 323},
+-  {&quot; weeks&quot;, 324},
+-  {&quot;compressed   &quot;, 325},
+-  {&quot;voicemail message waiting&quot;, 326},
+-  {&quot;fax message waiting&quot;, 327},
+-  {&quot;electronic mail message waiting&quot;, 328},
+-  {&quot;other message waiting&quot;, 329},
+-  {&quot;default alphabet&quot;, 330},
+-  {&quot;8-bit alphabet&quot;, 331},
+-  {&quot;16-bit alphabet&quot;, 332},
+-  {&quot;reserved alphabet&quot;, 333},
+-  {&quot;bad hexadecimal PDU format&quot;, 334},
+-  {&quot;premature end of PDU&quot;, 335},
+-  {&quot;unknown time period format&quot;, 336},
+-  {&quot;interrupted when reading from TA&quot;, 337},
+-  {&quot;reading from TA&quot;, 338},
+-  {&quot;timeout when reading from TA&quot;, 339},
+-  {&quot;opening device '%s'&quot;, 340},
+-  {&quot;getting file status flags failed&quot;, 341},
+-  {&quot;switching of non-blocking mode failed&quot;, 342},
+-  {&quot;clearing DTR failed&quot;, 343},
+-  {&quot;setting DTR failed&quot;, 344},
+-  {&quot;tcgetattr device '%s'&quot;, 345},
+-  {&quot;tcsetattr device '%s'&quot;, 346},
+-  {&quot;reset modem failed '%s'&quot;, 347},
+-  {&quot;interrupted when writing to TA&quot;, 348},
+-  {&quot;writing to TA&quot;, 349},
+-  {&quot;timeout when writing to TA&quot;, 350},
+-  {&quot;unknown baudrate '%s'&quot;, 351},
+-  {&quot;error when calling stat('%s') (errno: %d/%s)&quot;, 352},
+-  {&quot;file '%s' is neither file nor character device&quot;, 353},
+-  {&quot;maxmimum number of symbolic links exceeded&quot;, 354},
+-  {&quot;error renaming '%s' to '%s'&quot;, 355},
+-  {&quot;text '%s' contains illegal character '\&quot;'&quot;, 356},
+-  {&quot;illegal character in telephone number '%s'&quot;, 357},
+-  {&quot;error reading from file '%s&quot;, 358},
+-  {&quot;entry '%s' lacks index&quot;, 359},
+-  {&quot;line '%s' has invalid format&quot;, 360},
+-  {&quot;error opening file '%s' for writing&quot;, 361},
+-  {&quot;&lt;STDOUT&gt;&quot;, 362},
+-  {&quot;error writing to file '%s'&quot;, 363},
+-  {&quot;attempt to change phonebook read from &lt;STDIN&gt;&quot;, 364},
+-  {&quot;cannot open file '%s'&quot;, 365},
+-  {&quot;&lt;STDIN&gt;&quot;, 366},
+-  {&quot;indices must be unique in phonebook&quot;, 367},
+-  {&quot;error reading from file '%s'&quot;, 368},
+-  {&quot;file '%s' has wrong version&quot;, 369},
+-  {&quot;corrupt SMS store file '%s'&quot;, 370},
+-  {&quot;attempt to change SMS store read from &lt;STDIN&gt;&quot;, 371},
+-};
+-
+-int _msg_tbl_length = 371;
+--- gsmlib-1.10.orig/Makefile.in
++++ gsmlib-1.10/Makefile.in
+@@ -1,8 +1,6 @@
+-# Makefile.in generated by automake 1.6.3 from Makefile.am.
+-# @configure_input@
++# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am

+-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+-# Free Software Foundation, Inc.
++# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
+ # This Makefile.in is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+ # with or without modifications, as long as this notice is preserved.
+@@ -12,8 +10,6 @@
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ # PARTICULAR PURPOSE.

+-@SET_MAKE@
+-
+ # *************************************************************************
+ # * GSM TA/ME library
+ # *
+@@ -25,6 +21,8 @@
+ # *
+ # * Created: 21.5.1999
+ # *************************************************************************
++
++
+ SHELL = @SHELL@

+ srcdir = @srcdir@
+@@ -45,9 +43,13 @@
+ mandir = @mandir@
+ includedir = @includedir@
+ oldincludedir = /usr/include
++
++DESTDIR =
++
+ pkgdatadir = $(datadir)/@PACKAGE@
+ pkglibdir = $(libdir)/@PACKAGE@
+ pkgincludedir = $(includedir)/@PACKAGE@
++
+ top_builddir = .

+ ACLOCAL = @ACLOCAL@
+@@ -55,16 +57,12 @@
+ AUTOMAKE = @AUTOMAKE@
+ AUTOHEADER = @AUTOHEADER@

+-am__cd = CDPATH=&quot;$${ZSH_VERSION+.}$(PATH_SEPARATOR)&quot; &amp;&amp; cd
+ INSTALL = @INSTALL@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
+ INSTALL_DATA = @INSTALL_DATA@
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_HEADER = $(INSTALL_DATA)
+ transform = @program_transform_name@
++
+ NORMAL_INSTALL = :
+ PRE_INSTALL = :
+ POST_INSTALL = :
+@@ -73,33 +71,38 @@
+ POST_UNINSTALL = :
+ host_alias = @host_alias@
+ host_triplet = @host@
+-
+-EXEEXT = @EXEEXT@
+-OBJEXT = @OBJEXT@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-AMTAR = @AMTAR@
++AR = @AR@
+ AS = @AS@
+-AWK = @AWK@
+ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
+ CATOBJEXT = @CATOBJEXT@
+ CC = @CC@
+ CPP = @CPP@
+ CXX = @CXX@
++CXXCPP = @CXXCPP@
+ DATADIRNAME = @DATADIRNAME@
+-DEPDIR = @DEPDIR@
+ DLLTOOL = @DLLTOOL@
+ ECHO = @ECHO@
++EGREP = @EGREP@
++EXEEXT = @EXEEXT@
++F77 = @F77@
++GCJ = @GCJ@
++GCJFLAGS = @GCJFLAGS@
+ GENCAT = @GENCAT@
++GLIBC2 = @GLIBC2@
+ GLIBC21 = @GLIBC21@
+ GMSGFMT = @GMSGFMT@
+ GSM_VERSION = @GSM_VERSION@
++HAVE_ASPRINTF = @HAVE_ASPRINTF@
+ HAVE_LIB = @HAVE_LIB@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
++HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
++HAVE_SNPRINTF = @HAVE_SNPRINTF@
++HAVE_WPRINTF = @HAVE_WPRINTF@
+ INSTOBJEXT = @INSTOBJEXT@
+ INTLBISON = @INTLBISON@
+ INTLLIBS = @INTLLIBS@
+ INTLOBJS = @INTLOBJS@
+ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
++INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+ LIB = @LIB@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+@@ -108,89 +111,83 @@
+ LTLIB = @LTLIB@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
++MAKEINFO = @MAKEINFO@
+ MKINSTALLDIRS = @MKINSTALLDIRS@
+ OBJDUMP = @OBJDUMP@
++OBJEXT = @OBJEXT@
+ PACKAGE = @PACKAGE@
+ POSUB = @POSUB@
+ RANLIB = @RANLIB@
++RC = @RC@
+ STRIP = @STRIP@
+ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+ USE_NLS = @USE_NLS@
+ VERSION = @VERSION@
+-am__include = @am__include@
+-am__quote = @am__quote@
+-install_sh = @install_sh@

+ SUBDIRS_ = po gsmlib apps tests doc scripts win32 ext

+ EXTRA_DIST = gsmlib.spec
+-
+ @COMPILE_INTL_TRUE@SUBDIRS = intl $(SUBDIRS_) # po - make automake happy
+ @COMPILE_INTL_FALSE@SUBDIRS = $(SUBDIRS_) # po intl - make automake happy
+-subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
+ CONFIG_HEADER = gsm_config.h
+-CONFIG_CLEAN_FILES = intl/Makefile
+-DIST_SOURCES =
++CONFIG_CLEAN_FILES = 
++DIST_COMMON =  README ./stamp-h.in ABOUT-NLS AUTHORS COPYING ChangeLog \
++INSTALL Makefile.am Makefile.in NEWS TODO acconfig.h acinclude.m4 \
++aclocal.m4 configure configure.in gsm_config.h.in

+-RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
+-        uninstall-info-recursive all-recursive install-data-recursive \
+-        install-exec-recursive installdirs-recursive install-recursive \
+-        uninstall-recursive check-recursive installcheck-recursive
+-DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL \
+-        Makefile.am Makefile.in NEWS TODO acconfig.h acinclude.m4 \
+-        aclocal.m4 configure configure.in gsm_config.h.in
+-DIST_SUBDIRS = po gsmlib apps tests doc scripts win32 ext intl
+-all: gsm_config.h
+-        $(MAKE) $(AM_MAKEFLAGS) all-recursive

++DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
++
++TAR = tar
++GZIP_ENV = --best
++DIST_SUBDIRS =  intl po gsmlib apps tests doc scripts win32 ext po \
++gsmlib apps tests doc scripts win32 ext
++all: all-redirect
+ .SUFFIXES:
++$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
++        cd $(top_srcdir) &amp;&amp; $(AUTOMAKE) --gnu Makefile

+-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+- configure.lineno
+-$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
+-        cd $(top_srcdir) &amp;&amp; \
+-          $(AUTOMAKE) --gnu  Makefile
+-Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+-        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $@ $(am__depfiles_maybe)
++Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
++        cd $(top_builddir) \
++          &amp;&amp; CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

+-$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
++$(ACLOCAL_M4):  configure.in  acinclude.m4
++        cd $(srcdir) &amp;&amp; $(ACLOCAL)
++
++config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+         $(SHELL) ./config.status --recheck
+-$(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
++$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+         cd $(srcdir) &amp;&amp; $(AUTOCONF)

+-$(ACLOCAL_M4):  configure.in acinclude.m4
+-        cd $(srcdir) &amp;&amp; $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+-
+-gsm_config.h: stamp-h1
++gsm_config.h: stamp-h
+         @if test ! -f $@; then \
+-          rm -f stamp-h1; \
+-          $(MAKE) stamp-h1; \
++                rm -f stamp-h; \
++                $(MAKE) stamp-h; \
+         else :; fi
+-
+-stamp-h1: $(srcdir)/gsm_config.h.in $(top_builddir)/config.status
+-        @rm -f stamp-h1
+-        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status gsm_config.h
+-
+-$(srcdir)/gsm_config.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
++stamp-h: $(srcdir)/gsm_config.h.in $(top_builddir)/config.status
++        cd $(top_builddir) \
++          &amp;&amp; CONFIG_FILES= CONFIG_HEADERS=gsm_config.h \
++             $(SHELL) ./config.status
++        @echo timestamp &gt; stamp-h 2&gt; /dev/null
++$(srcdir)/gsm_config.h.in: $(srcdir)/stamp-h.in
++        @if test ! -f $@; then \
++                rm -f $(srcdir)/stamp-h.in; \
++                $(MAKE) $(srcdir)/stamp-h.in; \
++        else :; fi
++$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
+         cd $(top_srcdir) &amp;&amp; $(AUTOHEADER)
+-        touch $(srcdir)/gsm_config.h.in
++        @echo timestamp &gt; $(srcdir)/stamp-h.in 2&gt; /dev/null

+-distclean-hdr:
+-        -rm -f gsm_config.h stamp-h1
+-intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
+-        cd $(top_builddir) &amp;&amp; $(SHELL) ./config.status $@
++mostlyclean-hdr:

+-mostlyclean-libtool:
+-        -rm -f *.lo
++clean-hdr:

+-clean-libtool:
+-        -rm -rf .libs _libs
++distclean-hdr:
++        -rm -f gsm_config.h

+-distclean-libtool:
+-        -rm -f libtool
+-uninstall-info-am:
++maintainer-clean-hdr:

+ # This directory's subdirectories are mostly independent; you can cd
+ # into them and run `make' without going through this Makefile.
+@@ -198,8 +195,13 @@
+ # (1) if the variable is set in `config.status', edit `config.status'
+ #     (which will cause the Makefiles to be regenerated when you run `make');
+ # (2) otherwise, pass the desired values on the `make' command line.
+-$(RECURSIVE_TARGETS):
+-        @set fnord $$MAKEFLAGS; amf=$$2; \
++
++@SET_MAKE@
++
++all-recursive install-data-recursive install-exec-recursive \
++installdirs-recursive install-recursive uninstall-recursive  \
++check-recursive installcheck-recursive info-recursive dvi-recursive:
++        @set fnord $(MAKEFLAGS); amf=$$2; \
+         dot_seen=no; \
+         target=`echo $@ | sed s/-recursive//`; \
+         list='$(SUBDIRS)'; for subdir in $$list; do \
+@@ -219,18 +221,13 @@

+ mostlyclean-recursive clean-recursive distclean-recursive \
+ maintainer-clean-recursive:
+-        @set fnord $$MAKEFLAGS; amf=$$2; \
++        @set fnord $(MAKEFLAGS); amf=$$2; \
+         dot_seen=no; \
+-        case &quot;$@&quot; in \
+-          distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+-          *) list='$(SUBDIRS)' ;; \
+-        esac; \
+-        rev=''; for subdir in $$list; do \
+-          if test &quot;$$subdir&quot; = &quot;.&quot;; then :; else \
+-            rev=&quot;$$subdir $$rev&quot;; \
+-          fi; \
++        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
++          rev=&quot;$$subdir $$rev&quot;; \
++          test &quot;$$subdir&quot; != &quot;.&quot; || dot_seen=yes; \
+         done; \
+-        rev=&quot;$$rev .&quot;; \
++        test &quot;$$dot_seen&quot; = &quot;no&quot; &amp;&amp; rev=&quot;. $$rev&quot;; \
+         target=`echo $@ | sed s/-recursive//`; \
+         for subdir in $$rev; do \
+           echo &quot;Making $$target in $$subdir&quot;; \
+@@ -247,237 +244,180 @@
+           test &quot;$$subdir&quot; = . || (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) tags); \
+         done

+-ETAGS = etags
+-ETAGSFLAGS =
+-
+ tags: TAGS

+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+-        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+-        unique=`for i in $$list; do \
+-            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+-          done | \
+-          $(AWK) '    { files[$$0] = 1; } \
++ID: $(HEADERS) $(SOURCES) $(LISP)
++        list='$(SOURCES) $(HEADERS)'; \
++        unique=`for i in $$list; do echo $$i; done | \
++          awk '    { files[$$0] = 1; } \
+                END { for (i in files) print i; }'`; \
+-        mkid -fID $$unique
++        here=`pwd` &amp;&amp; cd $(srcdir) \
++          &amp;&amp; mkid -f$$here/ID $$unique $(LISP)

+-TAGS: tags-recursive $(HEADERS) $(SOURCES) gsm_config.h.in $(TAGS_DEPENDENCIES) \
+-                $(TAGS_FILES) $(LISP)
++TAGS: tags-recursive $(HEADERS) $(SOURCES) gsm_config.h.in $(TAGS_DEPENDENCIES) $(LISP)
+         tags=; \
+         here=`pwd`; \
+         list='$(SUBDIRS)'; for subdir in $$list; do \
+-          if test &quot;$$subdir&quot; = .; then :; else \
++   if test &quot;$$subdir&quot; = .; then :; else \
+             test -f $$subdir/TAGS &amp;&amp; tags=&quot;$$tags -i $$here/$$subdir/TAGS&quot;; \
+-          fi; \
++   fi; \
+         done; \
+-        list='$(SOURCES) $(HEADERS) gsm_config.h.in $(LISP) $(TAGS_FILES)'; \
+-        unique=`for i in $$list; do \
+-            if test -f &quot;$$i&quot;; then echo $$i; else echo $(srcdir)/$$i; fi; \
+-          done | \
+-          $(AWK) '    { files[$$0] = 1; } \
++        list='$(SOURCES) $(HEADERS)'; \
++        unique=`for i in $$list; do echo $$i; done | \
++          awk '    { files[$$0] = 1; } \
+                END { for (i in files) print i; }'`; \
+-        test -z &quot;$(ETAGS_ARGS)$$tags$$unique&quot; \
+-          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+-             $$tags $$unique
+-
+-GTAGS:
+-        here=`$(am__cd) $(top_builddir) &amp;&amp; pwd` \
+-          &amp;&amp; cd $(top_srcdir) \
+-          &amp;&amp; gtags -i $(GTAGS_ARGS) $$here
++        test -z &quot;$(ETAGS_ARGS)gsm_config.h.in$$unique$(LISP)$$tags&quot; \
++          || (cd $(srcdir) &amp;&amp; etags -o $$here/TAGS $(ETAGS_ARGS) $$tags gsm_config.h.in $$unique $(LISP))

+-distclean-tags:
+-        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
++mostlyclean-tags:

+-top_distdir = .
+-distdir = $(PACKAGE)-$(VERSION)
++clean-tags:

+-am__remove_distdir = \
+-  { test ! -d $(distdir) \
+-    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+-         &amp;&amp; rm -fr $(distdir); }; }
++distclean-tags:
++        -rm -f TAGS ID

+-GZIP_ENV = --best
+-distcleancheck_listfiles = find . -type f -print
++maintainer-clean-tags:

++distdir = $(PACKAGE)-$(VERSION)
++top_distdir = $(distdir)
++
++# This target untars the dist file and tries a VPATH configuration.  Then
++# it guarantees that the distribution is self-contained by making another
++# tarfile.
++distcheck: dist
++        -rm -rf $(distdir)
++        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
++        mkdir $(distdir)/=build
++        mkdir $(distdir)/=inst
++        dc_install_base=`cd $(distdir)/=inst &amp;&amp; pwd`; \
++        cd $(distdir)/=build \
++          &amp;&amp; ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dvi \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) check \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) install \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) installcheck \
++          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dist
++        -rm -rf $(distdir)
++        @banner=&quot;$(distdir).tar.gz is ready for distribution&quot;; \
++        dashes=`echo &quot;$$banner&quot; | sed s/./=/g`; \
++        echo &quot;$$dashes&quot;; \
++        echo &quot;$$banner&quot;; \
++        echo &quot;$$dashes&quot;
++dist: distdir
++        -chmod -R a+r $(distdir)
++        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
++        -rm -rf $(distdir)
++dist-all: distdir
++        -chmod -R a+r $(distdir)
++        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
++        -rm -rf $(distdir)
+ distdir: $(DISTFILES)
+-        $(am__remove_distdir)
++        -rm -rf $(distdir)
+         mkdir $(distdir)
+-        $(mkinstalldirs) $(distdir)/intl $(distdir)/po
+-        @list='$(DISTFILES)'; for file in $$list; do \
+-          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+-          dir=`echo &quot;$$file&quot; | sed -e 's,/[^/]*$$,,'`; \
+-          if test &quot;$$dir&quot; != &quot;$$file&quot; &amp;&amp; test &quot;$$dir&quot; != &quot;.&quot;; then \
+-            dir=&quot;/$$dir&quot;; \
+-            $(mkinstalldirs) &quot;$(distdir)$$dir&quot;; \
+-          else \
+-            dir=''; \
+-          fi; \
++        -chmod 777 $(distdir)
++        here=`cd $(top_builddir) &amp;&amp; pwd`; \
++        top_distdir=`cd $(distdir) &amp;&amp; pwd`; \
++        distdir=`cd $(distdir) &amp;&amp; pwd`; \
++        cd $(top_srcdir) \
++          &amp;&amp; $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
++        @for file in $(DISTFILES); do \
++          d=$(srcdir); \
+           if test -d $$d/$$file; then \
+-            if test -d $(srcdir)/$$file &amp;&amp; test $$d != $(srcdir); then \
+-              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+-            fi; \
+-            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
++            cp -pr $$d/$$file $(distdir)/$$file; \
+           else \
+             test -f $(distdir)/$$file \
+-            || cp -p $$d/$$file $(distdir)/$$file \
+-            || exit 1; \
++            || ln $$d/$$file $(distdir)/$$file 2&gt; /dev/null \
++            || cp -p $$d/$$file $(distdir)/$$file || :; \
+           fi; \
+         done
+-        list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
++        for subdir in $(DIST_SUBDIRS); do \
+           if test &quot;$$subdir&quot; = .; then :; else \
+             test -d $(distdir)/$$subdir \
+             || mkdir $(distdir)/$$subdir \
+             || exit 1; \
+-            (cd $$subdir &amp;&amp; \
+-              $(MAKE) $(AM_MAKEFLAGS) \
+-                top_distdir=&quot;$(top_distdir)&quot; \
+-                distdir=../$(distdir)/$$subdir \
+-                distdir) \
++            chmod 777 $(distdir)/$$subdir; \
++            (cd $$subdir &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
+               || exit 1; \
+           fi; \
+         done
+-        -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+-          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+-          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+-          ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+-        || chmod -R a+r $(distdir)
+-dist-gzip: distdir
+-        $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c &gt;$(distdir).tar.gz
+-        $(am__remove_distdir)
+-
+-dist dist-all: distdir
+-        $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c &gt;$(distdir).tar.gz
+-        $(am__remove_distdir)
+-
+-# This target untars the dist file and tries a VPATH configuration.  Then
+-# it guarantees that the distribution is self-contained by making another
+-# tarfile.
+-distcheck: dist
+-        $(am__remove_distdir)
+-        GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
+-        chmod -R a-w $(distdir); chmod a+w $(distdir)
+-        mkdir $(distdir)/=build
+-        mkdir $(distdir)/=inst
+-        chmod a-w $(distdir)
+-        dc_install_base=`$(am__cd) $(distdir)/=inst &amp;&amp; pwd` \
+-          &amp;&amp; cd $(distdir)/=build \
+-          &amp;&amp; ../configure --srcdir=.. --prefix=$$dc_install_base \
+-            --with-included-gettext \
+-            $(DISTCHECK_CONFIGURE_FLAGS) \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dvi \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) check \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) install \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) installcheck \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) uninstall \
+-          &amp;&amp; (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
+-              || { echo &quot;ERROR: files left after uninstall:&quot; ; \
+-                   find $$dc_install_base -type f -print ; \
+-                   exit 1; } &gt;&amp;2 ) \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
+-          &amp;&amp; rm -f $(distdir).tar.gz \
+-          &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+-        $(am__remove_distdir)
+-        @echo &quot;$(distdir).tar.gz is ready for distribution&quot; | \
+-          sed 'h;s/./=/g;p;x;p;x'
+-distcleancheck: distclean
+-        if test '$(srcdir)' = . ; then \
+-          echo &quot;ERROR: distcleancheck can only run from a VPATH build&quot; ; \
+-          exit 1 ; \
+-        fi
+-        test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+-          || { echo &quot;ERROR: files left after distclean:&quot; ; \
+-               $(distcleancheck_listfiles) ; \
+-               exit 1; } &gt;&amp;2
++info-am:
++info: info-recursive
++dvi-am:
++dvi: dvi-recursive
+ check-am: all-am
+ check: check-recursive
+-all-am: Makefile gsm_config.h
+-installdirs: installdirs-recursive
+-installdirs-am:
++installcheck-am:
++installcheck: installcheck-recursive
++all-recursive-am: gsm_config.h
++        $(MAKE) $(AM_MAKEFLAGS) all-recursive

+-install: install-recursive
++install-exec-am:
+ install-exec: install-exec-recursive
++
++install-data-am:
+ install-data: install-data-recursive
+-uninstall: uninstall-recursive

+ install-am: all-am
+         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-recursive
++install: install-recursive
++uninstall-am:
++uninstall: uninstall-recursive
++all-am: Makefile gsm_config.h
++all-redirect: all-recursive-am
+ install-strip:
+-        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=&quot;$(INSTALL_STRIP_PROGRAM)&quot; \
+-          INSTALL_STRIP_FLAG=-s \
+-          `test -z '$(STRIP)' || \
+-            echo &quot;INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'&quot;` install
++        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
++installdirs: installdirs-recursive
++installdirs-am:
++
++
+ mostlyclean-generic:

+ clean-generic:

+ distclean-generic:
+         -rm -f Makefile $(CONFIG_CLEAN_FILES)
++        -rm -f config.cache config.log stamp-h stamp-h[0-9]*

+ maintainer-clean-generic:
+-        @echo &quot;This command is intended for maintainers to use&quot;
+-        @echo &quot;it deletes files that may require special tools to rebuild.&quot;
+-clean: clean-recursive
+-
+-clean-am: clean-generic clean-libtool mostlyclean-am
+-
+-distclean: distclean-recursive
+-        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+-distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
+-        distclean-tags
++mostlyclean-am:  mostlyclean-hdr mostlyclean-tags mostlyclean-generic

+-dvi: dvi-recursive
+-
+-dvi-am:
+-
+-info: info-recursive
+-
+-info-am:
++mostlyclean: mostlyclean-recursive

+-install-data-am:
++clean-am:  clean-hdr clean-tags clean-generic mostlyclean-am

+-install-exec-am:
++clean: clean-recursive

+-install-info: install-info-recursive
++distclean-am:  distclean-hdr distclean-tags distclean-generic clean-am
++        -rm -f libtool

+-install-man:
++distclean: distclean-recursive
++        -rm -f config.status

+-installcheck-am:
++maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-tags \
++                maintainer-clean-generic distclean-am
++        @echo &quot;This command is intended for maintainers to use;&quot;
++        @echo &quot;it deletes files that may require special tools to rebuild.&quot;

+ maintainer-clean: maintainer-clean-recursive
+-        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+-        -rm -rf autom4te.cache
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-recursive
+-
+-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
++        -rm -f config.status

+-uninstall-am: uninstall-info-am
+-
+-uninstall-info: uninstall-info-recursive
+-
+-.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
+-        clean-generic clean-libtool clean-recursive dist dist-all \
+-        dist-gzip distcheck distclean distclean-generic distclean-hdr \
+-        distclean-libtool distclean-recursive distclean-tags \
+-        distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
+-        info-recursive install install-am install-data install-data-am \
+-        install-data-recursive install-exec install-exec-am \
+-        install-exec-recursive install-info install-info-am \
+-        install-info-recursive install-man install-recursive \
+-        install-strip installcheck installcheck-am installdirs \
+-        installdirs-am installdirs-recursive maintainer-clean \
+-        maintainer-clean-generic maintainer-clean-recursive mostlyclean \
+-        mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
+-        tags tags-recursive uninstall uninstall-am uninstall-info-am \
+-        uninstall-info-recursive uninstall-recursive
++.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
++install-data-recursive uninstall-data-recursive install-exec-recursive \
++uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
++all-recursive check-recursive installcheck-recursive info-recursive \
++dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
++maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
++distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
++dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
++install-exec-am install-exec install-data-am install-data install-am \
++install uninstall-am uninstall all-redirect all-am all installdirs-am \
++installdirs mostlyclean-generic distclean-generic clean-generic \
++maintainer-clean-generic clean mostlyclean distclean maintainer-clean


+ all:
++
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
+--- gsmlib-1.10.orig/aclocal.m4
++++ gsmlib-1.10/aclocal.m4
+@@ -1,7 +1,7 @@
+-# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
++# generated automatically by aclocal 1.9.6 -*- Autoconf -*-

+-# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
+-# Free Software Foundation, Inc.
++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
++# 2005  Free Software Foundation, Inc.
+ # This file is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+ # with or without modifications, as long as this notice is preserved.
+@@ -11,5211 +11,1221 @@
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ # PARTICULAR PURPOSE.

++# codeset.m4 serial AM1 (gettext-0.10.40)
++dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
+-
+-# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
++dnl From Bruno Haible.

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++AC_DEFUN([AM_LANGINFO_CODESET],
++[
++  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
++    [AC_TRY_LINK([#include &lt;langinfo.h&gt;],
++      [char* cs = nl_langinfo(CODESET);],
++      am_cv_langinfo_codeset=yes,
++      am_cv_langinfo_codeset=no)
++    ])
++  if test $am_cv_langinfo_codeset = yes; then
++    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
++      [Define if you have &lt;langinfo.h&gt; and nl_langinfo(CODESET).])
++  fi
++])

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++# gettext.m4 serial 37 (gettext-0.14.4)
++dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are *not* in the public domain.

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++dnl Authors:
++dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
++dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.

+-AC_PREREQ([2.52])
++dnl Macro to add for using GNU gettext.

+-# serial 6
++dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
++dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
++dnl    default (if it is not specified or empty) is 'no-libtool'.
++dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
++dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
++dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
++dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
++dnl    depending on --{enable,disable}-{shared,static} and on the presence of
++dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
++dnl    $(top_builddir)/intl/libintl.a will be created.
++dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
++dnl    implementations (in libc or libintl) without the ngettext() function
++dnl    will be ignored.  If NEEDSYMBOL is specified and is
++dnl    'need-formatstring-macros', then GNU gettext implementations that don't
++dnl    support the ISO C 99 &lt;inttypes.h&gt; formatstring macros will be ignored.
++dnl INTLDIR is used to find the intl libraries.  If empty,
++dnl    the value `$(top_builddir)/intl/' is used.
++dnl
++dnl The result of the configuration is one of three cases:
++dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
++dnl    and used.
++dnl    Catalog format: GNU --&gt; install in $(datadir)
++dnl    Catalog extension: .mo after installation, .gmo in source tree
++dnl 2) GNU gettext has been found in the system's C library.
++dnl    Catalog format: GNU --&gt; install in $(datadir)
++dnl    Catalog extension: .mo after installation, .gmo in source tree
++dnl 3) No internationalization, always use English msgid.
++dnl    Catalog format: none
++dnl    Catalog extension: none
++dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
++dnl The use of .gmo is historical (it was needed to avoid overwriting the
++dnl GNU format catalogs when building on a platform with an X/Open gettext),
++dnl but we keep it in order not to force irrelevant filename changes on the
++dnl maintainers.
++dnl
++AC_DEFUN([AM_GNU_GETTEXT],
++[
++  dnl Argument checking.
++  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
++    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
++])])])])])
++  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
++    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
++])])])])
++  define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
++  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))

+-# When config.status generates a header, we must update the stamp-h file.
+-# This file resides in the same directory as the config header
+-# that is generated.  We must strip everything past the first &quot;:&quot;,
+-# and everything past the last &quot;/&quot;.
++  AC_REQUIRE([AM_PO_SUBDIRS])dnl
++  ifelse(gt_included_intl, yes, [
++    AC_REQUIRE([AM_INTL_SUBDIR])dnl
++  ])

+-# _AM_DIRNAME(PATH)
+-# -----------------
+-# Like AS_DIRNAME, only do it during macro expansion
+-AC_DEFUN([_AM_DIRNAME],
+-       [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
+-              m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
+-                    m4_if(regexp([$1], [^/.*]), -1,
+-                          [.],
+-                          patsubst([$1], [^\(/\).*], [\1])),
+-                    patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
+-              patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
+-])# _AM_DIRNAME
+-
+-
+-# The stamp files are numbered to have different names.
+-# We could number them on a directory basis, but that's additional
+-# complications, let's have a unique counter.
+-m4_define([_AM_STAMP_Count], [0])
++  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
++  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
++  AC_REQUIRE([AC_LIB_RPATH])

++  dnl Sometimes libintl requires libiconv, so first search for libiconv.
++  dnl Ideally we would do this search only after the
++  dnl      if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
++  dnl        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
++  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
++  dnl the configure script would need to contain the same shell code
++  dnl again, outside any 'if'. There are two solutions:
++  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
++  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
++  dnl Since AC_PROVIDE_IFELSE is only in autoconf &gt;= 2.52 and not
++  dnl documented, we avoid it.
++  ifelse(gt_included_intl, yes, , [
++    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
++  ])

+-# _AM_STAMP(HEADER)
+-# -----------------
+-# The name of the stamp file for HEADER.
+-AC_DEFUN([_AM_STAMP],
+-[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
+-AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
+-                               [:.*])))/stamp-h[]_AM_STAMP_Count])
++  dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
++  gt_INTL_MACOSX

++  dnl Set USE_NLS.
++  AM_NLS

+-# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
+-# ------------------------------------------------------------
+-# We used to try to get a real timestamp in stamp-h.  But the fear is that
+-# that will cause unnecessary cvs conflicts.
+-AC_DEFUN([_AM_CONFIG_HEADER],
+-[# Add the stamp file to the list of files AC keeps track of,
+-# along with our hook.
+-AC_CONFIG_HEADERS([$1],
+-                  [# update the timestamp
+-echo 'timestamp for $1' &gt;&quot;_AM_STAMP([$1])&quot;
+-$2],
+-                  [$3])
+-])# _AM_CONFIG_HEADER
+-
+-
+-# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
+-# --------------------------------------------------------------
+-AC_DEFUN([AM_CONFIG_HEADER],
+-[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
+-])# AM_CONFIG_HEADER
++  ifelse(gt_included_intl, yes, [
++    BUILD_INCLUDED_LIBINTL=no
++    USE_INCLUDED_LIBINTL=no
++  ])
++  LIBINTL=
++  LTLIBINTL=
++  POSUB=

+-# Do all the work for Automake.                            -*- Autoconf -*-
++  dnl If we use NLS figure out what method
++  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
++    gt_use_preinstalled_gnugettext=no
++    ifelse(gt_included_intl, yes, [
++      AC_MSG_CHECKING([whether included gettext is requested])
++      AC_ARG_WITH(included-gettext,
++        [  --with-included-gettext use the GNU gettext library included here],
++        nls_cv_force_use_gnu_gettext=$withval,
++        nls_cv_force_use_gnu_gettext=no)
++      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)

+-# This macro actually does too much some checks are only needed if
+-# your package does certain things.  But this isn't really a big deal.
++      nls_cv_use_gnu_gettext=&quot;$nls_cv_force_use_gnu_gettext&quot;
++      if test &quot;$nls_cv_force_use_gnu_gettext&quot; != &quot;yes&quot;; then
++    ])
++        dnl User does not insist on using GNU NLS library.  Figure out what
++        dnl to use.  If GNU gettext is available we use this.  Else we have
++        dnl to fall back to GNU NLS library.

+-# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
+-# Free Software Foundation, Inc.
++        dnl Add a version number to the cache macros.
++        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
++        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
++        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
++         [AC_TRY_LINK([#include &lt;libintl.h&gt;
++]ifelse([$2], [need-formatstring-macros],
++[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
++#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
++#endif
++changequote(,)dnl
++typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
++changequote([,])dnl
++], [])[extern int _nl_msg_cat_cntr;
++extern int *_nl_domain_bindings;],
++            [bindtextdomain (&quot;&quot;, &quot;&quot;);
++return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
++            gt_cv_func_gnugettext_libc=yes,
++            gt_cv_func_gnugettext_libc=no)])

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
++          dnl Sometimes libintl requires libiconv, so first search for libiconv.
++          ifelse(gt_included_intl, yes, , [
++            AM_ICONV_LINK
++          ])
++          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
++          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
++          dnl because that would add &quot;-liconv&quot; to LIBINTL and LTLIBINTL
++          dnl even if libiconv doesn't exist.
++          AC_LIB_LINKFLAGS_BODY([intl])
++          AC_CACHE_CHECK([for GNU gettext in libintl],
++            gt_cv_func_gnugettext_libintl,
++           [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++            CPPFLAGS=&quot;$CPPFLAGS $INCINTL&quot;
++            gt_save_LIBS=&quot;$LIBS&quot;
++            LIBS=&quot;$LIBS $LIBINTL&quot;
++            dnl Now see whether libintl exists and does not depend on libiconv.
++            AC_TRY_LINK([#include &lt;libintl.h&gt;
++]ifelse([$2], [need-formatstring-macros],
++[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
++#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
++#endif
++changequote(,)dnl
++typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
++changequote([,])dnl
++], [])[extern int _nl_msg_cat_cntr;
++extern
++#ifdef __cplusplus
++&quot;C&quot;
++#endif
++const char *_nl_expand_alias (const char *);],
++              [bindtextdomain (&quot;&quot;, &quot;&quot;);
++return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)],
++              gt_cv_func_gnugettext_libintl=yes,
++              gt_cv_func_gnugettext_libintl=no)
++            dnl Now see whether libintl exists and depends on libiconv.
++            if test &quot;$gt_cv_func_gnugettext_libintl&quot; != yes &amp;&amp; test -n &quot;$LIBICONV&quot;; then
++              LIBS=&quot;$LIBS $LIBICONV&quot;
++              AC_TRY_LINK([#include &lt;libintl.h&gt;
++]ifelse([$2], [need-formatstring-macros],
++[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
++#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
++#endif
++changequote(,)dnl
++typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
++changequote([,])dnl
++], [])[extern int _nl_msg_cat_cntr;
++extern
++#ifdef __cplusplus
++&quot;C&quot;
++#endif
++const char *_nl_expand_alias (const char *);],
++                [bindtextdomain (&quot;&quot;, &quot;&quot;);
++return * gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + * ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)],
++               [LIBINTL=&quot;$LIBINTL $LIBICONV&quot;
++                LTLIBINTL=&quot;$LTLIBINTL $LTLIBICONV&quot;
++                gt_cv_func_gnugettext_libintl=yes
++               ])
++            fi
++            CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++            LIBS=&quot;$gt_save_LIBS&quot;])
++        fi

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++        dnl If an already present or preinstalled GNU gettext() is found,
++        dnl use it.  But if this macro is used in GNU gettext, and GNU
++        dnl gettext is already preinstalled in libintl, we update this
++        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
++        if test &quot;$gt_cv_func_gnugettext_libc&quot; = &quot;yes&quot; \
++           || { test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot; \
++                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-runtime \
++                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-tools; }; then
++          gt_use_preinstalled_gnugettext=yes
++        else
++          dnl Reset the values set by searching for libintl.
++          LIBINTL=
++          LTLIBINTL=
++          INCINTL=
++        fi

+-# serial 8
++    ifelse(gt_included_intl, yes, [
++        if test &quot;$gt_use_preinstalled_gnugettext&quot; != &quot;yes&quot;; then
++          dnl GNU gettext is not found in the C library.
++          dnl Fall back on included GNU gettext library.
++          nls_cv_use_gnu_gettext=yes
++        fi
++      fi

+-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+-# written in clear, in which case automake, when reading aclocal.m4,
+-# will think it sees a *use*, and therefore will trigger all it's
+-# C support machinery.  Also note that it means that autoscan, seeing
+-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
++      if test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
++        dnl Mark actions used to generate GNU NLS library.
++        BUILD_INCLUDED_LIBINTL=yes
++        USE_INCLUDED_LIBINTL=yes
++        LIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV&quot;
++        LTLIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV&quot;
++        LIBS=`echo &quot; $LIBS &quot; | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
++      fi

++      CATOBJEXT=
++      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
++         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
++        dnl Mark actions to use GNU gettext tools.
++        CATOBJEXT=.gmo
++      fi
++    ])

+-AC_PREREQ([2.52])
++    if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
++      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
++         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
++        dnl Some extra flags are needed during linking.
++        LIBINTL=&quot;$LIBINTL $INTL_MACOSX_LIBS&quot;
++        LTLIBINTL=&quot;$LTLIBINTL $INTL_MACOSX_LIBS&quot;
++      fi
++    fi

+-# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
+-# the ones we care about.
+-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
++    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
++       || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
++      AC_DEFINE(ENABLE_NLS, 1,
++        [Define to 1 if translation of program messages to the user's native language
++   is requested.])
++    else
++      USE_NLS=no
++    fi
++  fi

+-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+-# AM_INIT_AUTOMAKE([OPTIONS])
+-# -----------------------------------------------
+-# The call with PACKAGE and VERSION arguments is the old style
+-# call (pre autoconf-2.50), which is being phased out.  PACKAGE
+-# and VERSION should now be passed to AC_INIT and removed from
+-# the call to AM_INIT_AUTOMAKE.
+-# We support both call styles for the transition.  After
+-# the next Automake release, Autoconf can make the AC_INIT
+-# arguments mandatory, and then we can depend on a new Autoconf
+-# release and drop the old call support.
+-AC_DEFUN([AM_INIT_AUTOMAKE],
+-[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+- AC_REQUIRE([AC_PROG_INSTALL])dnl
+-# test to see if srcdir already configured
+-if test &quot;`cd $srcdir &amp;&amp; pwd`&quot; != &quot;`pwd`&quot; &amp;&amp;
+-   test -f $srcdir/config.status; then
+-  AC_MSG_ERROR([source directory already configured; run &quot;make distclean&quot; there first])
+-fi
++  AC_MSG_CHECKING([whether to use NLS])
++  AC_MSG_RESULT([$USE_NLS])
++  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
++    AC_MSG_CHECKING([where the gettext function comes from])
++    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
++      if test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot;; then
++        gt_source=&quot;external libintl&quot;
++      else
++        gt_source=&quot;libc&quot;
++      fi
++    else
++      gt_source=&quot;included intl directory&quot;
++    fi
++    AC_MSG_RESULT([$gt_source])
++  fi

+-# Define the identity of the package.
+-dnl Distinguish between old-style and new-style calls.
+-m4_ifval([$2],
+-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+- AC_SUBST([PACKAGE], [$1])dnl
+- AC_SUBST([VERSION], [$2])],
+-[_AM_SET_OPTIONS([$1])dnl
+- AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
+- AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
++  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then

+-_AM_IF_OPTION([no-define],,
+-[AC_DEFINE_UNQUOTED(PACKAGE, &quot;$PACKAGE&quot;, [Name of package])
+- AC_DEFINE_UNQUOTED(VERSION, &quot;$VERSION&quot;, [Version number of package])])dnl
++    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
++      if test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot;; then
++        AC_MSG_CHECKING([how to link with libintl])
++        AC_MSG_RESULT([$LIBINTL])
++        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
++      fi

+-# Some tools Automake needs.
+-AC_REQUIRE([AM_SANITY_CHECK])dnl
+-AC_REQUIRE([AC_ARG_PROGRAM])dnl
+-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+-AM_MISSING_PROG(AUTOCONF, autoconf)
+-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+-AM_MISSING_PROG(AUTOHEADER, autoheader)
+-AM_MISSING_PROG(MAKEINFO, makeinfo)
+-AM_MISSING_PROG(AMTAR, tar)
+-AM_PROG_INSTALL_SH
+-AM_PROG_INSTALL_STRIP
+-# We need awk for the &quot;check&quot; target.  The system &quot;awk&quot; is bad on
+-# some platforms.
+-AC_REQUIRE([AC_PROG_AWK])dnl
+-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
++      dnl For backward compatibility. Some packages may be using this.
++      AC_DEFINE(HAVE_GETTEXT, 1,
++       [Define if the GNU gettext() function is already present or preinstalled.])
++      AC_DEFINE(HAVE_DCGETTEXT, 1,
++       [Define if the GNU dcgettext() function is already present or preinstalled.])
++    fi

+-_AM_IF_OPTION([no-dependencies],,
+-[AC_PROVIDE_IFELSE([AC_PROG_][CC],
+-                  [_AM_DEPENDENCIES(CC)],
+-                  [define([AC_PROG_][CC],
+-                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
+-AC_PROVIDE_IFELSE([AC_PROG_][CXX],
+-                  [_AM_DEPENDENCIES(CXX)],
+-                  [define([AC_PROG_][CXX],
+-                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+-])
+-])
++    dnl We need to process the po/ directory.
++    POSUB=po
++  fi

+-# Copyright 2002  Free Software Foundation, Inc.
++  ifelse(gt_included_intl, yes, [
++    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
++    dnl to 'yes' because some of the testsuite requires it.
++    if test &quot;$PACKAGE&quot; = gettext-runtime || test &quot;$PACKAGE&quot; = gettext-tools; then
++      BUILD_INCLUDED_LIBINTL=yes
++    fi

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++    dnl Make all variables we use known to autoconf.
++    AC_SUBST(BUILD_INCLUDED_LIBINTL)
++    AC_SUBST(USE_INCLUDED_LIBINTL)
++    AC_SUBST(CATOBJEXT)

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++    dnl For backward compatibility. Some configure.ins may be using this.
++    nls_cv_header_intl=
++    nls_cv_header_libgt=

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
++    dnl For backward compatibility. Some Makefiles may be using this.
++    DATADIRNAME=share
++    AC_SUBST(DATADIRNAME)

+-# AM_AUTOMAKE_VERSION(VERSION)
+-# ----------------------------
+-# Automake X.Y traces this macro to ensure aclocal.m4 has been
+-# generated from the m4 files accompanying Automake X.Y.
+-AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version=&quot;1.6&quot;])
++    dnl For backward compatibility. Some Makefiles may be using this.
++    INSTOBJEXT=.mo
++    AC_SUBST(INSTOBJEXT)

+-# AM_SET_CURRENT_AUTOMAKE_VERSION
+-# -------------------------------
+-# Call AM_AUTOMAKE_VERSION so it can be traced.
+-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+-         [AM_AUTOMAKE_VERSION([1.6.3])])
++    dnl For backward compatibility. Some Makefiles may be using this.
++    GENCAT=gencat
++    AC_SUBST(GENCAT)

+-# Helper functions for option handling.                    -*- Autoconf -*-
++    dnl For backward compatibility. Some Makefiles may be using this.
++    INTLOBJS=
++    if test &quot;$USE_INCLUDED_LIBINTL&quot; = yes; then
++      INTLOBJS=&quot;\$(GETTOBJS)&quot;
++    fi
++    AC_SUBST(INTLOBJS)

+-# Copyright 2001, 2002  Free Software Foundation, Inc.
++    dnl Enable libtool support if the surrounding package wishes it.
++    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
++    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
++  ])

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++  dnl For backward compatibility. Some Makefiles may be using this.
++  INTLLIBS=&quot;$LIBINTL&quot;
++  AC_SUBST(INTLLIBS)

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++  dnl Make all documented variables known to autoconf.
++  AC_SUBST(LIBINTL)
++  AC_SUBST(LTLIBINTL)
++  AC_SUBST(POSUB)
++])

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.

+-# serial 2
++dnl Checks for all prerequisites of the intl subdirectory,
++dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
++dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
++AC_DEFUN([AM_INTL_SUBDIR],
++[
++  AC_REQUIRE([AC_PROG_INSTALL])dnl
++  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
++  AC_REQUIRE([AC_PROG_CC])dnl
++  AC_REQUIRE([AC_CANONICAL_HOST])dnl
++  AC_REQUIRE([gt_GLIBC2])dnl
++  AC_REQUIRE([AC_PROG_RANLIB])dnl
++  AC_REQUIRE([AC_ISC_POSIX])dnl
++  AC_REQUIRE([AC_HEADER_STDC])dnl
++  AC_REQUIRE([AC_C_CONST])dnl
++  AC_REQUIRE([bh_C_SIGNED])dnl
++  AC_REQUIRE([AC_C_INLINE])dnl
++  AC_REQUIRE([AC_TYPE_OFF_T])dnl
++  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
++  AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
++  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
++  AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
++  AC_REQUIRE([gt_TYPE_WINT_T])dnl
++  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
++  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
++  AC_REQUIRE([gt_TYPE_INTMAX_T])
++  AC_REQUIRE([gt_PRINTF_POSIX])
++  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
++  AC_REQUIRE([AC_FUNC_MMAP])dnl
++  AC_REQUIRE([gl_GLIBC21])dnl
++  AC_REQUIRE([gt_INTDIV0])dnl
++  AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
++  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
++  AC_REQUIRE([gt_INTTYPES_PRI])dnl
++  AC_REQUIRE([gl_XSIZE])dnl
++  AC_REQUIRE([gt_INTL_MACOSX])dnl

+-# _AM_MANGLE_OPTION(NAME)
+-# -----------------------
+-AC_DEFUN([_AM_MANGLE_OPTION],
+-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
++  AC_CHECK_TYPE([ptrdiff_t], ,
++    [AC_DEFINE([ptrdiff_t], [long],
++       [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
++    ])
++  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
++stdlib.h string.h unistd.h sys/param.h])
++  AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
++mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
++strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
++__fsetlocking])
++
++  dnl Use the _snprintf function only if it is declared (because on NetBSD it
++  dnl is defined as a weak alias of snprintf; we prefer to use the latter).
++  gt_CHECK_DECL(_snprintf, [#include &lt;stdio.h&gt;])
++  gt_CHECK_DECL(_snwprintf, [#include &lt;stdio.h&gt;])
++
++  dnl Use the *_unlocked functions only if they are declared.
++  dnl (because some of them were defined without being declared in Solaris
++  dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
++  dnl on Solaris 2.5.1 to run on Solaris 2.6).
++  dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
++  gt_CHECK_DECL(feof_unlocked, [#include &lt;stdio.h&gt;])
++  gt_CHECK_DECL(fgets_unlocked, [#include &lt;stdio.h&gt;])
++  gt_CHECK_DECL(getc_unlocked, [#include &lt;stdio.h&gt;])
++
++  case $gt_cv_func_printf_posix in
++    *yes) HAVE_POSIX_PRINTF=1 ;;
++    *) HAVE_POSIX_PRINTF=0 ;;
++  esac
++  AC_SUBST([HAVE_POSIX_PRINTF])
++  if test &quot;$ac_cv_func_asprintf&quot; = yes; then
++    HAVE_ASPRINTF=1
++  else
++    HAVE_ASPRINTF=0
++  fi
++  AC_SUBST([HAVE_ASPRINTF])
++  if test &quot;$ac_cv_func_snprintf&quot; = yes; then
++    HAVE_SNPRINTF=1
++  else
++    HAVE_SNPRINTF=0
++  fi
++  AC_SUBST([HAVE_SNPRINTF])
++  if test &quot;$ac_cv_func_wprintf&quot; = yes; then
++    HAVE_WPRINTF=1
++  else
++    HAVE_WPRINTF=0
++  fi
++  AC_SUBST([HAVE_WPRINTF])

+-# _AM_SET_OPTION(NAME)
+-# ------------------------------
+-# Set option NAME.  Presently that only means defining a flag for this option.
+-AC_DEFUN([_AM_SET_OPTION],
+-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
++  AM_ICONV
++  AM_LANGINFO_CODESET
++  if test $ac_cv_header_locale_h = yes; then
++    gt_LC_MESSAGES
++  fi

+-# _AM_SET_OPTIONS(OPTIONS)
+-# ----------------------------------
+-# OPTIONS is a space-separated list of Automake options.
+-AC_DEFUN([_AM_SET_OPTIONS],
+-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
++  if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
++    CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++  fi

+-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+-# -------------------------------------------
+-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+-AC_DEFUN([_AM_IF_OPTION],
+-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
++  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
++  dnl because plural.y uses bison specific features. It requires at least
++  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
++  dnl compile.
++  dnl bison is only needed for the maintainer (who touches plural.y). But in
++  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
++  dnl the rule in general Makefile. Now, some people carelessly touch the
++  dnl files or have a broken &quot;make&quot; program, hence the plural.c rule will
++  dnl sometimes fire. To avoid an error, defines BISON to &quot;:&quot; if it is not
++  dnl present or too old.
++  AC_CHECK_PROGS([INTLBISON], [bison])
++  if test -z &quot;$INTLBISON&quot;; then
++    ac_verc_fail=yes
++  else
++    dnl Found it, now check the version.
++    AC_MSG_CHECKING([version of bison])
++changequote(&lt;&lt;,&gt;&gt;)dnl
++    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
++    case $ac_prog_version in
++      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
++      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
++changequote([,])dnl
++         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
++      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
++    esac
++    AC_MSG_RESULT([$ac_prog_version])
++  fi
++  if test $ac_verc_fail = yes; then
++    INTLBISON=:
++  fi
++])

+-#
+-# Check to make sure that the build environment is sane.
+-#

+-# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
++dnl Checks for special options needed on MacOS X.
++dnl Defines INTL_MACOSX_LIBS.
++AC_DEFUN([gt_INTL_MACOSX],
++[
++  dnl Check for API introduced in MacOS X 10.2.
++  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
++    gt_cv_func_CFPreferencesCopyAppValue,
++    [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     AC_TRY_LINK([#include &lt;CFPreferences.h&gt;],
++       [CFPreferencesCopyAppValue(NULL, NULL)],
++       [gt_cv_func_CFPreferencesCopyAppValue=yes],
++       [gt_cv_func_CFPreferencesCopyAppValue=no])
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;])
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
++    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
++      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
++  fi
++  dnl Check for API introduced in MacOS X 10.3.
++  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
++    [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     AC_TRY_LINK([#include &lt;CFLocale.h&gt;], [CFLocaleCopyCurrent();],
++       [gt_cv_func_CFLocaleCopyCurrent=yes],
++       [gt_cv_func_CFLocaleCopyCurrent=no])
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;])
++  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
++    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
++      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
++  fi
++  INTL_MACOSX_LIBS=
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
++    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
++  fi
++  AC_SUBST([INTL_MACOSX_LIBS])
++])

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++dnl gt_CHECK_DECL(FUNC, INCLUDES)
++dnl Check whether a function is declared.
++AC_DEFUN([gt_CHECK_DECL],
++[
++  AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
++    [AC_TRY_COMPILE([$2], [
++#ifndef $1
++  char *p = (char *) $1;
++#endif
++], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
++  if test $ac_cv_have_decl_$1 = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi
++  AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
++    [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
++])

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.

+-# serial 3
++dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
++AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])

+-# AM_SANITY_CHECK
+-# ---------------
+-AC_DEFUN([AM_SANITY_CHECK],
+-[AC_MSG_CHECKING([whether build environment is sane])
+-# Just in case
+-sleep 1
+-echo timestamp &gt; conftest.file
+-# Do `set' in a subshell so we don't clobber the current shell's
+-# arguments.  Must try -L first in case configure is actually a
+-# symlink; some systems play weird games with the mod time of symlinks
+-# (eg FreeBSD returns the mod time of the symlink's containing
+-# directory).
+-if (
+-   set X `ls -Lt $srcdir/configure conftest.file 2&gt; /dev/null`
+-   if test &quot;$[*]&quot; = &quot;X&quot;; then
+-      # -L didn't work.
+-      set X `ls -t $srcdir/configure conftest.file`
+-   fi
+-   rm -f conftest.file
+-   if test &quot;$[*]&quot; != &quot;X $srcdir/configure conftest.file&quot; \
+-      &amp;&amp; test &quot;$[*]&quot; != &quot;X conftest.file $srcdir/configure&quot;; then
+-
+-      # If neither matched, then we have a broken ls.  This can happen
+-      # if, for instance, CONFIG_SHELL is bash and it inherits a
+-      # broken ls alias from the environment.  This has actually
+-      # happened.  Such a system could not be considered &quot;sane&quot;.
+-      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
+-alias in your environment])
+-   fi
+-
+-   test &quot;$[2]&quot; = conftest.file
+-   )
+-then
+-   # Ok.
+-   :
+-else
+-   AC_MSG_ERROR([newly created file is older than distributed files!
+-Check your system clock])
+-fi
+-AC_MSG_RESULT(yes)])
+-
+-#  -*- Autoconf -*-
++# glibc2.m4 serial 1
++dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

++# Test for the GNU C Library, version 2.0 or newer.
++# From Bruno Haible.

+-# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
++AC_DEFUN([gt_GLIBC2],
++  [
++    AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
++      ac_cv_gnu_library_2,
++      [AC_EGREP_CPP([Lucky GNU user],
++        [
++#include &lt;features.h&gt;
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ &gt;= 2)
++  Lucky GNU user
++ #endif
++#endif
++        ],
++        ac_cv_gnu_library_2=yes,
++        ac_cv_gnu_library_2=no)
++      ]
++    )
++    AC_SUBST(GLIBC2)
++    GLIBC2=&quot;$ac_cv_gnu_library_2&quot;
++  ]
++)

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++# glibc21.m4 serial 3
++dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++# Test for the GNU C Library, version 2.1 or newer.
++# From Bruno Haible.

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++AC_DEFUN([gl_GLIBC21],
++  [
++    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
++      ac_cv_gnu_library_2_1,
++      [AC_EGREP_CPP([Lucky GNU user],
++        [
++#include &lt;features.h&gt;
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
++  Lucky GNU user
++ #endif
++#endif
++        ],
++        ac_cv_gnu_library_2_1=yes,
++        ac_cv_gnu_library_2_1=no)
++      ]
++    )
++    AC_SUBST(GLIBC21)
++    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
++  ]
++)

+-# serial 3
++# iconv.m4 serial AM4 (gettext-0.11.3)
++dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# AM_MISSING_PROG(NAME, PROGRAM)
+-# ------------------------------
+-AC_DEFUN([AM_MISSING_PROG],
+-[AC_REQUIRE([AM_MISSING_HAS_RUN])
+-$1=${$1-&quot;${am_missing_run}$2&quot;}
+-AC_SUBST($1)])
++dnl From Bruno Haible.

++AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
++[
++  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
++  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
++  AC_REQUIRE([AC_LIB_RPATH])

+-# AM_MISSING_HAS_RUN
+-# ------------------
+-# Define MISSING if not defined so far and test if it supports --run.
+-# If it does, set am_missing_run to use it, otherwise, to nothing.
+-AC_DEFUN([AM_MISSING_HAS_RUN],
+-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+-test x&quot;${MISSING+set}&quot; = xset || MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
+-# Use eval to expand $SHELL
+-if eval &quot;$MISSING --run true&quot;; then
+-  am_missing_run=&quot;$MISSING --run &quot;
+-else
+-  am_missing_run=
+-  AC_MSG_WARN([`missing' script is too old or missing])
+-fi
++  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
++  dnl accordingly.
++  AC_LIB_LINKFLAGS_BODY([iconv])
+ ])

+-# AM_AUX_DIR_EXPAND
+-
+-# Copyright 2001 Free Software Foundation, Inc.
+-
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++AC_DEFUN([AM_ICONV_LINK],
++[
++  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
++  dnl those with the standalone portable GNU libiconv installed).

+-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+-# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
+-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+-#
+-# Of course, Automake must honor this variable whenever it calls a
+-# tool from the auxiliary directory.  The problem is that $srcdir (and
+-# therefore $ac_aux_dir as well) can be either absolute or relative,
+-# depending on how configure is run.  This is pretty annoying, since
+-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+-# source directory, any form will work fine, but in subdirectories a
+-# relative path needs to be adjusted first.
+-#
+-# $ac_aux_dir/missing
+-#    fails when called from a subdirectory if $ac_aux_dir is relative
+-# $top_srcdir/$ac_aux_dir/missing
+-#    fails if $ac_aux_dir is absolute,
+-#    fails when called from a subdirectory in a VPATH build with
+-#          a relative $ac_aux_dir
+-#
+-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+-# are both prefixed by $srcdir.  In an in-source build this is usually
+-# harmless because $srcdir is `.', but things will broke when you
+-# start a VPATH build or use an absolute $srcdir.
+-#
+-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+-# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
+-#   am_aux_dir='\$(top_srcdir)/'`expr &quot;$ac_aux_dir&quot; : &quot;$srcdir//*\(.*\)&quot;`
+-# and then we would define $MISSING as
+-#   MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
+-# This will work as long as MISSING is not called from configure, because
+-# unfortunately $(top_srcdir) has no meaning in configure.
+-# However there are other variables, like CC, which are often used in
+-# configure, and could therefore not use this &quot;fixed&quot; $ac_aux_dir.
+-#
+-# Another solution, used here, is to always expand $ac_aux_dir to an
+-# absolute PATH.  The drawback is that using absolute paths prevent a
+-# configured tree to be moved without reconfiguration.
++  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
++  dnl accordingly.
++  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])

+-# Rely on autoconf to set up CDPATH properly.
+-AC_PREREQ([2.50])
++  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
++  dnl because if the user has installed libiconv and not disabled its use
++  dnl via --without-libiconv-prefix, he wants to use it. The first
++  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
++  am_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])

+-AC_DEFUN([AM_AUX_DIR_EXPAND], [
+-# expand $ac_aux_dir to an absolute path
+-am_aux_dir=`cd $ac_aux_dir &amp;&amp; pwd`
++  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
++    am_cv_func_iconv=&quot;no, consider installing GNU libiconv&quot;
++    am_cv_lib_iconv=no
++    AC_TRY_LINK([#include &lt;stdlib.h&gt;
++#include &lt;iconv.h&gt;],
++      [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
++       iconv(cd,NULL,NULL,NULL,NULL);
++       iconv_close(cd);],
++      am_cv_func_iconv=yes)
++    if test &quot;$am_cv_func_iconv&quot; != yes; then
++      am_save_LIBS=&quot;$LIBS&quot;
++      LIBS=&quot;$LIBS $LIBICONV&quot;
++      AC_TRY_LINK([#include &lt;stdlib.h&gt;
++#include &lt;iconv.h&gt;],
++        [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
++         iconv(cd,NULL,NULL,NULL,NULL);
++         iconv_close(cd);],
++        am_cv_lib_iconv=yes
++        am_cv_func_iconv=yes)
++      LIBS=&quot;$am_save_LIBS&quot;
++    fi
++  ])
++  if test &quot;$am_cv_func_iconv&quot; = yes; then
++    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
++  fi
++  if test &quot;$am_cv_lib_iconv&quot; = yes; then
++    AC_MSG_CHECKING([how to link with libiconv])
++    AC_MSG_RESULT([$LIBICONV])
++  else
++    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
++    dnl either.
++    CPPFLAGS=&quot;$am_save_CPPFLAGS&quot;
++    LIBICONV=
++    LTLIBICONV=
++  fi
++  AC_SUBST(LIBICONV)
++  AC_SUBST(LTLIBICONV)
+ ])

+-# AM_PROG_INSTALL_SH
+-# ------------------
+-# Define $install_sh.
++AC_DEFUN([AM_ICONV],
++[
++  AM_ICONV_LINK
++  if test &quot;$am_cv_func_iconv&quot; = yes; then
++    AC_MSG_CHECKING([for iconv declaration])
++    AC_CACHE_VAL(am_cv_proto_iconv, [
++      AC_TRY_COMPILE([
++#include &lt;stdlib.h&gt;
++#include &lt;iconv.h&gt;
++extern
++#ifdef __cplusplus
++&quot;C&quot;
++#endif
++#if defined(__STDC__) || defined(__cplusplus)
++size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
++#else
++size_t iconv();
++#endif
++], [], am_cv_proto_iconv_arg1=&quot;&quot;, am_cv_proto_iconv_arg1=&quot;const&quot;)
++      am_cv_proto_iconv=&quot;extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);&quot;])
++    am_cv_proto_iconv=`echo &quot;[$]am_cv_proto_iconv&quot; | tr -s ' ' | sed -e 's/( /(/'`
++    AC_MSG_RESULT([$]{ac_t:-
++         }[$]am_cv_proto_iconv)
++    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
++      [Define as const if the declaration of iconv() needs const.])
++  fi
++])

+-# Copyright 2001 Free Software Foundation, Inc.
++# intdiv0.m4 serial 1 (gettext-0.11.3)
++dnl Copyright (C) 2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++dnl From Bruno Haible.

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++AC_DEFUN([gt_INTDIV0],
++[
++  AC_REQUIRE([AC_PROG_CC])dnl
++  AC_REQUIRE([AC_CANONICAL_HOST])dnl

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
++    gt_cv_int_divbyzero_sigfpe,
++    [
++      AC_TRY_RUN([
++#include &lt;stdlib.h&gt;
++#include &lt;signal.h&gt;

+-AC_DEFUN([AM_PROG_INSTALL_SH],
+-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+-install_sh=${install_sh-&quot;$am_aux_dir/install-sh&quot;}
+-AC_SUBST(install_sh)])
++static void
++#ifdef __cplusplus
++sigfpe_handler (int sig)
++#else
++sigfpe_handler (sig) int sig;
++#endif
++{
++  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
++  exit (sig != SIGFPE);
++}

+-# AM_PROG_INSTALL_STRIP
+-
+-# Copyright 2001 Free Software Foundation, Inc.
++int x = 1;
++int y = 0;
++int z;
++int nan;

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++int main ()
++{
++  signal (SIGFPE, sigfpe_handler);
++/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
++#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
++  signal (SIGTRAP, sigfpe_handler);
++#endif
++/* Linux/SPARC yields signal SIGILL.  */
++#if defined (__sparc__) &amp;&amp; defined (__linux__)
++  signal (SIGILL, sigfpe_handler);
++#endif

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++  z = x / y;
++  nan = y / y;
++  exit (1);
++}
++], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
++        [
++          # Guess based on the CPU.
++          case &quot;$host_cpu&quot; in
++            alpha* | i[34567]86 | m68k | s390*)
++              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
++            *)
++              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
++          esac
++        ])
++    ])
++  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
++    *yes) value=1;;
++    *) value=0;;
++  esac
++  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
++    [Define if integer division by zero raises signal SIGFPE.])
++])

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++# intmax.m4 serial 2 (gettext-0.14.2)
++dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# One issue with vendor `install' (even GNU) is that you can't
+-# specify the program used to strip binaries.  This is especially
+-# annoying in cross-compiling environments, where the build's strip
+-# is unlikely to handle the host's binaries.
+-# Fortunately install-sh will honor a STRIPPROG variable, so we
+-# always use install-sh in `make install-strip', and initialize
+-# STRIPPROG with the value of the STRIP variable (set by the user).
+-AC_DEFUN([AM_PROG_INSTALL_STRIP],
+-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+-# Installed binaries are usually stripped using `strip' when the user
+-# run `make install-strip'.  However `strip' might not be the right
+-# tool to use in cross-compilation environments, therefore Automake
+-# will honor the `STRIP' environment variable to overrule this program.
+-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+-if test &quot;$cross_compiling&quot; != no; then
+-  AC_CHECK_TOOL([STRIP], [strip], :)
+-fi
+-INSTALL_STRIP_PROGRAM=&quot;\${SHELL} \$(install_sh) -c -s&quot;
+-AC_SUBST([INSTALL_STRIP_PROGRAM])])
++dnl From Bruno Haible.
++dnl Test whether the system has the 'intmax_t' type, but don't attempt to
++dnl find a replacement if it is lacking.

+-# serial 4                                                -*- Autoconf -*-
++AC_DEFUN([gt_TYPE_INTMAX_T],
++[
++  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
++  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
++  AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
++    [AC_TRY_COMPILE([
++#include &lt;stddef.h&gt;
++#include &lt;stdlib.h&gt;
++#if HAVE_STDINT_H_WITH_UINTMAX
++#include &lt;stdint.h&gt;
++#endif
++#if HAVE_INTTYPES_H_WITH_UINTMAX
++#include &lt;inttypes.h&gt;
++#endif
++], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
++  if test $gt_cv_c_intmax_t = yes; then
++    AC_DEFINE(HAVE_INTMAX_T, 1,
++      [Define if you have the 'intmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.])
++  fi
++])

+-# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
++# inttypes-pri.m4 serial 1 (gettext-0.11.4)
++dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++dnl From Bruno Haible.

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++# Define PRI_MACROS_BROKEN if &lt;inttypes.h&gt; exists and defines the PRI*
++# macros to non-string values.  This is the case on AIX 4.3.3.

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++AC_DEFUN([gt_INTTYPES_PRI],
++[
++  AC_REQUIRE([gt_HEADER_INTTYPES_H])
++  if test $gt_cv_header_inttypes_h = yes; then
++    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
++      gt_cv_inttypes_pri_broken,
++      [
++        AC_TRY_COMPILE([#include &lt;inttypes.h&gt;
++#ifdef PRId32
++char *p = PRId32;
++#endif
++], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
++      ])
++  fi
++  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
++    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
++      [Define if &lt;inttypes.h&gt; exists and defines unusable PRI* macros.])
++  fi
++])

++# inttypes.m4 serial 1 (gettext-0.11.4)
++dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+-# written in clear, in which case automake, when reading aclocal.m4,
+-# will think it sees a *use*, and therefore will trigger all it's
+-# C support machinery.  Also note that it means that autoscan, seeing
+-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
++dnl From Paul Eggert.

++# Define HAVE_INTTYPES_H if &lt;inttypes.h&gt; exists and doesn't clash with
++# &lt;sys/types.h&gt;.

++AC_DEFUN([gt_HEADER_INTTYPES_H],
++[
++  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
++  [
++    AC_TRY_COMPILE(
++      [#include &lt;sys/types.h&gt;
++#include &lt;inttypes.h&gt;],
++      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
++  ])
++  if test $gt_cv_header_inttypes_h = yes; then
++    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
++      [Define if &lt;inttypes.h&gt; exists and doesn't clash with &lt;sys/types.h&gt;.])
++  fi
++])

+-# _AM_DEPENDENCIES(NAME)
+-# ----------------------
+-# See how the compiler implements dependency checking.
+-# NAME is &quot;CC&quot;, &quot;CXX&quot;, &quot;GCJ&quot;, or &quot;OBJC&quot;.
+-# We try a few techniques and use that to set a single cache variable.
+-#
+-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+-# dependency, and given that the user is not expected to run this macro,
+-# just rely on AC_PROG_CC.
+-AC_DEFUN([_AM_DEPENDENCIES],
+-[AC_REQUIRE([AM_SET_DEPDIR])dnl
+-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+-AC_REQUIRE([AM_DEP_TRACK])dnl
++# inttypes_h.m4 serial 6
++dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-ifelse([$1], CC,   [depcc=&quot;$CC&quot;   am_compiler_list=],
+-       [$1], CXX,  [depcc=&quot;$CXX&quot;  am_compiler_list=],
+-       [$1], OBJC, [depcc=&quot;$OBJC&quot; am_compiler_list='gcc3 gcc'],
+-       [$1], GCJ,  [depcc=&quot;$GCJ&quot;  am_compiler_list='gcc3 gcc'],
+-                   [depcc=&quot;$$1&quot;   am_compiler_list=])
++dnl From Paul Eggert.

+-AC_CACHE_CHECK([dependency style of $depcc],
+-               [am_cv_$1_dependencies_compiler_type],
+-[if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+-  # We make a subdir and do the tests there.  Otherwise we can end up
+-  # making bogus files that we don't know about and never remove.  For
+-  # instance it was reported that on HP-UX the gcc test will end up
+-  # making a dummy file named `D' -- because `-MD' means `put the output
+-  # in D'.
+-  mkdir conftest.dir
+-  # Copy depcomp to subdir because otherwise we won't find it if we're
+-  # using a relative directory.
+-  cp &quot;$am_depcomp&quot; conftest.dir
+-  cd conftest.dir
++# Define HAVE_INTTYPES_H_WITH_UINTMAX if &lt;inttypes.h&gt; exists,
++# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.

+-  am_cv_$1_dependencies_compiler_type=none
+-  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+-     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] &lt; ./depcomp`
++AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
++[
++  AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
++  [AC_TRY_COMPILE(
++    [#include &lt;sys/types.h&gt;
++#include &lt;inttypes.h&gt;],
++    [uintmax_t i = (uintmax_t) -1;],
++    gl_cv_header_inttypes_h=yes,
++    gl_cv_header_inttypes_h=no)])
++  if test $gl_cv_header_inttypes_h = yes; then
++    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
++      [Define if &lt;inttypes.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
++       and declares uintmax_t. ])
+   fi
+-  for depmode in $am_compiler_list; do
+-    # We need to recreate these files for each test, as the compiler may
+-    # overwrite some of them when testing with obscure command lines.
+-    # This happens at least with the AIX C compiler.
+-    echo '#include &quot;conftest.h&quot;' &gt; conftest.c
+-    echo 'int i;' &gt; conftest.h
+-    echo &quot;${am__include} ${am__quote}conftest.Po${am__quote}&quot; &gt; confmf
+-
+-    case $depmode in
+-    nosideeffect)
+-      # after this tag, mechanisms are not by side-effect, so they'll
+-      # only be used when explicitly requested
+-      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+-        continue
+-      else
+-        break
+-      fi
+-      ;;
+-    none) break ;;
+-    esac
+-    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+-    # mode.  It turns out that the SunPro C++ compiler does not properly
+-    # handle `-M -o', and we need to detect this.
+-    if depmode=$depmode \
+-       source=conftest.c object=conftest.o \
+-       depfile=conftest.Po tmpdepfile=conftest.TPo \
+-       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       grep conftest.h conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+-       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+-      am_cv_$1_dependencies_compiler_type=$depmode
+-      break
+-    fi
+-  done
+-
+-  cd ..
+-  rm -rf conftest.dir
+-else
+-  am_cv_$1_dependencies_compiler_type=none
+-fi
+-])
+-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+ ])

++# lcmessage.m4 serial 4 (gettext-0.14.2)
++dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are *not* in the public domain.

+-# AM_SET_DEPDIR
+-# -------------
+-# Choose a directory name for dependency files.
+-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+-AC_DEFUN([AM_SET_DEPDIR],
+-[rm -f .deps 2&gt;/dev/null
+-mkdir .deps 2&gt;/dev/null
+-if test -d .deps; then
+-  DEPDIR=.deps
+-else
+-  # MS-DOS does not allow filenames that begin with a dot.
+-  DEPDIR=_deps
+-fi
+-rmdir .deps 2&gt;/dev/null
+-AC_SUBST([DEPDIR])
+-])
++dnl Authors:
++dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995.

++# Check whether LC_MESSAGES is available in &lt;locale.h&gt;.

+-# AM_DEP_TRACK
+-# ------------
+-AC_DEFUN([AM_DEP_TRACK],
+-[AC_ARG_ENABLE(dependency-tracking,
+-[  --disable-dependency-tracking Speeds up one-time builds
+-  --enable-dependency-tracking  Do not reject slow dependency extractors])
+-if test &quot;x$enable_dependency_tracking&quot; != xno; then
+-  am_depcomp=&quot;$ac_aux_dir/depcomp&quot;
+-  AMDEPBACKSLASH='\'
+-fi
+-AM_CONDITIONAL([AMDEP], [test &quot;x$enable_dependency_tracking&quot; != xno])
+-AC_SUBST([AMDEPBACKSLASH])
++AC_DEFUN([gt_LC_MESSAGES],
++[
++  AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
++    [AC_TRY_LINK([#include &lt;locale.h&gt;], [return LC_MESSAGES],
++       gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
++  if test $gt_cv_val_LC_MESSAGES = yes; then
++    AC_DEFINE(HAVE_LC_MESSAGES, 1,
++      [Define if your &lt;locale.h&gt; file defines LC_MESSAGES.])
++  fi
+ ])

+-# Generate code to set up dependency tracking.   -*- Autoconf -*-
+-
+-# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+-
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++# lib-ld.m4 serial 3 (gettext-0.13)
++dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++dnl Subroutines of libtool.m4,
++dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
++dnl with libtool.m4.

+-#serial 2
++dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
++AC_DEFUN([AC_LIB_PROG_LD_GNU],
++[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
++[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
++case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
++*GNU* | *'with BFD'*)
++  acl_cv_prog_gnu_ld=yes ;;
++*)
++  acl_cv_prog_gnu_ld=no ;;
++esac])
++with_gnu_ld=$acl_cv_prog_gnu_ld
++])

+-# _AM_OUTPUT_DEPENDENCY_COMMANDS
+-# ------------------------------
+-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+-[for mf in $CONFIG_FILES; do
+-  # Strip MF so we end up with the name of the file.
+-  mf=`echo &quot;$mf&quot; | sed -e 's/:.*$//'`
+-  # Check whether this is an Automake generated Makefile or not.
+-  # We used to match only the files named `Makefile.in', but
+-  # some people rename them; so instead we look at the file content.
+-  # Grep'ing the first line is not enough: some people post-process
+-  # each Makefile.in and add a new line on top of each file to say so.
+-  # So let's grep whole file.
+-  if grep '^#.*generated by automake' $mf &gt; /dev/null 2&gt;&amp;1; then
+-    dirpart=`AS_DIRNAME(&quot;$mf&quot;)`
++dnl From libtool-1.4. Sets the variable LD.
++AC_DEFUN([AC_LIB_PROG_LD],
++[AC_ARG_WITH(gnu-ld,
++[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
++test &quot;$withval&quot; = no || with_gnu_ld=yes, with_gnu_ld=no)
++AC_REQUIRE([AC_PROG_CC])dnl
++AC_REQUIRE([AC_CANONICAL_HOST])dnl
++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
+   else
+-    continue
++    PATH_SEPARATOR=:
+   fi
+-  grep '^DEP_FILES *= *[[^ @%:@]]' &lt; &quot;$mf&quot; &gt; /dev/null || continue
+-  # Extract the definition of DEP_FILES from the Makefile without
+-  # running `make'.
+-  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' &lt; &quot;$mf&quot;`
+-  test -z &quot;$DEPDIR&quot; &amp;&amp; continue
+-  # When using ansi2knr, U may be empty or an underscore; expand it
+-  U=`sed -n -e '/^U = / s///p' &lt; &quot;$mf&quot;`
+-  test -d &quot;$dirpart/$DEPDIR&quot; || mkdir &quot;$dirpart/$DEPDIR&quot;
+-  # We invoke sed twice because it is the simplest approach to
+-  # changing $(DEPDIR) to its actual value in the expansion.
+-  for file in `sed -n -e '
+-    /^DEP_FILES = .*\\\\$/ {
+-      s/^DEP_FILES = //
+-      :loop
+-        s/\\\\$//
+-        p
+-        n
+-        /\\\\$/ b loop
+-      p
+-    }
+-    /^DEP_FILES = / s/^DEP_FILES = //p' &lt; &quot;$mf&quot; | \
+-       sed -e 's/\$(DEPDIR)/'&quot;$DEPDIR&quot;'/g' -e 's/\$U/'&quot;$U&quot;'/g'`; do
+-    # Make sure the directory exists.
+-    test -f &quot;$dirpart/$file&quot; &amp;&amp; continue
+-    fdir=`AS_DIRNAME([&quot;$file&quot;])`
+-    AS_MKDIR_P([$dirpart/$fdir])
+-    # echo &quot;creating $dirpart/$file&quot;
+-    echo '# dummy' &gt; &quot;$dirpart/$file&quot;
+-  done
+-done
+-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+-
+-
+-# AM_OUTPUT_DEPENDENCY_COMMANDS
+-# -----------------------------
+-# This macro should only be invoked once -- use via AC_REQUIRE.
+-#
+-# This code is only required when automatic dependency tracking
+-# is enabled.  FIXME.  This creates each `.P' file that we will
+-# need in order to bootstrap the dependency handling code.
+-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+-[AC_CONFIG_COMMANDS([depfiles],
+-     [test x&quot;$AMDEP_TRUE&quot; != x&quot;&quot; || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+-     [AMDEP_TRUE=&quot;$AMDEP_TRUE&quot; ac_aux_dir=&quot;$ac_aux_dir&quot;])
+-])
+-
+-# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
+-
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
+-
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
+-
+-# serial 2
+-
+-# AM_MAKE_INCLUDE()
+-# -----------------
+-# Check to see how make treats includes.
+-AC_DEFUN([AM_MAKE_INCLUDE],
+-[am_make=${MAKE-make}
+-cat &gt; confinc &lt;&lt; 'END'
+-doit:
+-        @echo done
+-END
+-# If we don't find an include directive, just comment out the code.
+-AC_MSG_CHECKING([for style of include used by $am_make])
+-am__include=&quot;#&quot;
+-am__quote=
+-_am_result=none
+-# First try GNU make style include.
+-echo &quot;include confinc&quot; &gt; confmf
+-# We grep out `Entering directory' and `Leaving directory'
+-# messages which can occur if `w' ends up in MAKEFLAGS.
+-# In particular we don't look at `^make:' because GNU make might
+-# be invoked under some other name (usually &quot;gmake&quot;), in which
+-# case it prints its new name instead of `make'.
+-if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | fgrep -v 'ing directory'`&quot; = &quot;done&quot;; then
+-   am__include=include
+-   am__quote=
+-   _am_result=GNU
++  rm -f conf$$.sh
+ fi
+-# Now try BSD make style include.
+-if test &quot;$am__include&quot; = &quot;#&quot;; then
+-   echo '.include &quot;confinc&quot;' &gt; confmf
+-   if test &quot;`$am_make -s -f confmf 2&gt; /dev/null`&quot; = &quot;done&quot;; then
+-      am__include=.include
+-      am__quote=&quot;\&quot;&quot;
+-      _am_result=BSD
+-   fi
++ac_prog=ld
++if test &quot;$GCC&quot; = yes; then
++  # Check if gcc -print-prog-name=ld gives a path.
++  AC_MSG_CHECKING([for ld used by GCC])
++  case $host in
++  *-*-mingw*)
++    # gcc leaves a trailing carriage return which upsets mingw
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
++  *)
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
++  esac
++  case $ac_prog in
++    # Accept absolute paths.
++    [[\\/]* | [A-Za-z]:[\\/]*)]
++      [re_direlt='/[^/][^/]*/\.\./']
++      # Canonicalize the path of ld
++      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
++      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
++        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
++      done
++      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
++      ;;
++  &quot;&quot;)
++    # If it fails, then pretend we aren't using GCC.
++    ac_prog=ld
++    ;;
++  *)
++    # If it is relative, then search for the first ld in PATH.
++    with_gnu_ld=unknown
++    ;;
++  esac
++elif test &quot;$with_gnu_ld&quot; = yes; then
++  AC_MSG_CHECKING([for GNU ld])
++else
++  AC_MSG_CHECKING([for non-GNU ld])
+ fi
+-AC_SUBST(am__include)
+-AC_SUBST(am__quote)
+-AC_MSG_RESULT($_am_result)
+-rm -f confinc confmf
++AC_CACHE_VAL(acl_cv_path_LD,
++[if test -z &quot;$LD&quot;; then
++  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR-:}&quot;
++  for ac_dir in $PATH; do
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
++      acl_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
++      # Check to see if the program is GNU ld.  I'd rather use --version,
++      # but apparently some GNU ld's only accept -v.
++      # Break only if it was the GNU/non-GNU ld that we prefer.
++      case `&quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null` in
++      *GNU* | *'with BFD'*)
++        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break ;;
++      *)
++        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break ;;
++      esac
++    fi
++  done
++  IFS=&quot;$ac_save_ifs&quot;
++else
++  acl_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
++fi])
++LD=&quot;$acl_cv_path_LD&quot;
++if test -n &quot;$LD&quot;; then
++  AC_MSG_RESULT($LD)
++else
++  AC_MSG_RESULT(no)
++fi
++test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
++AC_LIB_PROG_LD_GNU
+ ])

+-# AM_CONDITIONAL                                              -*- Autoconf -*-
+-
+-# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
+-
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2, or (at your option)
+-# any later version.
++# lib-link.m4 serial 6 (gettext-0.14.3)
++dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-# GNU General Public License for more details.
++dnl From Bruno Haible.

+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+-# 02111-1307, USA.
++AC_PREREQ(2.50)

+-# serial 5
++dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
++dnl the libraries corresponding to explicit and implicit dependencies.
++dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
++dnl augments the CPPFLAGS variable.
++AC_DEFUN([AC_LIB_LINKFLAGS],
++[
++  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
++  AC_REQUIRE([AC_LIB_RPATH])
++  define([Name],[translit([$1],[./-], [___])])
++  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
++                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
++  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
++    AC_LIB_LINKFLAGS_BODY([$1], [$2])
++    ac_cv_lib[]Name[]_libs=&quot;$LIB[]NAME&quot;
++    ac_cv_lib[]Name[]_ltlibs=&quot;$LTLIB[]NAME&quot;
++    ac_cv_lib[]Name[]_cppflags=&quot;$INC[]NAME&quot;
++  ])
++  LIB[]NAME=&quot;$ac_cv_lib[]Name[]_libs&quot;
++  LTLIB[]NAME=&quot;$ac_cv_lib[]Name[]_ltlibs&quot;
++  INC[]NAME=&quot;$ac_cv_lib[]Name[]_cppflags&quot;
++  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
++  AC_SUBST([LIB]NAME)
++  AC_SUBST([LTLIB]NAME)
++  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
++  dnl results of this search when this library appears as a dependency.
++  HAVE_LIB[]NAME=yes
++  undefine([Name])
++  undefine([NAME])
++])

+-AC_PREREQ(2.52)
++dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
++dnl searches for libname and the libraries corresponding to explicit and
++dnl implicit dependencies, together with the specified include files and
++dnl the ability to compile and link the specified testcode. If found, it
++dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
++dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
++dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
++dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
++AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
++[
++  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
++  AC_REQUIRE([AC_LIB_RPATH])
++  define([Name],[translit([$1],[./-], [___])])
++  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
++                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])

+-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+-# -------------------------------------
+-# Define a conditional.
+-AC_DEFUN([AM_CONDITIONAL],
+-[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
+-        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+-AC_SUBST([$1_TRUE])
+-AC_SUBST([$1_FALSE])
+-if $2; then
+-  $1_TRUE=
+-  $1_FALSE='#'
+-else
+-  $1_TRUE='#'
+-  $1_FALSE=
+-fi
+-AC_CONFIG_COMMANDS_PRE(
+-[if test -z &quot;${$1_TRUE}&quot; &amp;&amp; test -z &quot;${$1_FALSE}&quot;; then
+-  AC_MSG_ERROR([conditional \&quot;$1\&quot; was never defined.
+-Usually this means the macro was only invoked conditionally.])
+-fi])])
++  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
++  dnl accordingly.
++  AC_LIB_LINKFLAGS_BODY([$1], [$2])

+-# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
++  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
++  dnl because if the user has installed lib[]Name and not disabled its use
++  dnl via --without-lib[]Name-prefix, he wants to use it.
++  ac_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)

+-# serial 46 AC_PROG_LIBTOOL
++  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
++    ac_save_LIBS=&quot;$LIBS&quot;
++    LIBS=&quot;$LIBS $LIB[]NAME&quot;
++    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
++    LIBS=&quot;$ac_save_LIBS&quot;
++  ])
++  if test &quot;$ac_cv_lib[]Name&quot; = yes; then
++    HAVE_LIB[]NAME=yes
++    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
++    AC_MSG_CHECKING([how to link with lib[]$1])
++    AC_MSG_RESULT([$LIB[]NAME])
++  else
++    HAVE_LIB[]NAME=no
++    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
++    dnl $INC[]NAME either.
++    CPPFLAGS=&quot;$ac_save_CPPFLAGS&quot;
++    LIB[]NAME=
++    LTLIB[]NAME=
++  fi
++  AC_SUBST([HAVE_LIB]NAME)
++  AC_SUBST([LIB]NAME)
++  AC_SUBST([LTLIB]NAME)
++  undefine([Name])
++  undefine([NAME])
++])

+-AC_DEFUN([AC_PROG_LIBTOOL],
+-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
+-
+-# This can be used to rebuild libtool when needed
+-LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
+-
+-# Always use our own libtool.
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+-AC_SUBST(LIBTOOL)dnl
+-
+-# Prevent multiple expansion
+-define([AC_PROG_LIBTOOL], [])
+-])
+-
+-AC_DEFUN([AC_LIBTOOL_SETUP],
+-[AC_PREREQ(2.13)dnl
+-AC_REQUIRE([AC_ENABLE_SHARED])dnl
+-AC_REQUIRE([AC_ENABLE_STATIC])dnl
+-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
+-AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+-AC_REQUIRE([AC_PROG_CC])dnl
+-AC_REQUIRE([AC_PROG_LD])dnl
+-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
+-AC_REQUIRE([AC_PROG_NM])dnl
+-AC_REQUIRE([AC_PROG_LN_S])dnl
+-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+-AC_REQUIRE([AC_OBJEXT])dnl
+-AC_REQUIRE([AC_EXEEXT])dnl
+-dnl
+-
+-_LT_AC_PROG_ECHO_BACKSLASH
+-# Only perform the check for file, if the check method requires it
+-case $deplibs_check_method in
+-file_magic*)
+-  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
+-    AC_PATH_MAGIC
+-  fi
+-  ;;
+-esac
+-
+-AC_CHECK_TOOL(RANLIB, ranlib, :)
+-AC_CHECK_TOOL(STRIP, strip, :)
+-
+-ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
+-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
+-enable_win32_dll=yes, enable_win32_dll=no)
+-
+-AC_ARG_ENABLE(libtool-lock,
+-  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
+-test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+-
+-# Some flags need to be propagated to the compiler or linker for good
+-# libtool support.
+-case $host in
+-*-*-irix6*)
+-  # Find out which ABI we are using.
+-  echo '[#]line __oline__ &quot;configure&quot;' &gt; conftest.$ac_ext
+-  if AC_TRY_EVAL(ac_compile); then
+-    case `/usr/bin/file conftest.$ac_objext` in
+-    *32-bit*)
+-      LD=&quot;${LD-ld} -32&quot;
+-      ;;
+-    *N32*)
+-      LD=&quot;${LD-ld} -n32&quot;
+-      ;;
+-    *64-bit*)
+-      LD=&quot;${LD-ld} -64&quot;
+-      ;;
+-    esac
+-  fi
+-  rm -rf conftest*
+-  ;;
+-
+-*-*-sco3.2v5*)
+-  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+-  SAVE_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -belf&quot;
+-  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+-    [AC_LANG_SAVE
+-     AC_LANG_C
+-     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+-     AC_LANG_RESTORE])
+-  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
+-    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+-    CFLAGS=&quot;$SAVE_CFLAGS&quot;
+-  fi
+-  ;;
+-
+-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
+-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
+-  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+-  AC_CHECK_TOOL(AS, as, false)
+-  AC_CHECK_TOOL(OBJDUMP, objdump, false)
+-
+-  # recent cygwin and mingw systems supply a stub DllMain which the user
+-  # can override, but on older systems we have to supply one
+-  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
+-    [AC_TRY_LINK([],
+-      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
+-      DllMain (0, 0, 0);],
+-      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
+-
+-  case $host/$CC in
+-  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
+-    # old mingw systems require &quot;-dll&quot; to link a DLL, while more recent ones
+-    # require &quot;-mdll&quot;
+-    SAVE_CFLAGS=&quot;$CFLAGS&quot;
+-    CFLAGS=&quot;$CFLAGS -mdll&quot;
+-    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
+-      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
+-    CFLAGS=&quot;$SAVE_CFLAGS&quot; ;;
+-  *-*-cygwin* | *-*-pw32*)
+-    # cygwin systems need to pass --dll to the linker, and not link
+-    # crt.o which will require a WinMain@16 definition.
+-    lt_cv_cc_dll_switch=&quot;-Wl,--dll -nostartfiles&quot; ;;
+-  esac
+-  ;;
++dnl Determine the platform dependent parameters needed to use rpath:
++dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
++dnl hardcode_direct, hardcode_minus_L.
++AC_DEFUN([AC_LIB_RPATH],
++[
++  dnl Tell automake &gt;= 1.10 to complain if config.rpath is missing.
++  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
++  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
++  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
++  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
++  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
++  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
++    CC=&quot;$CC&quot; GCC=&quot;$GCC&quot; LDFLAGS=&quot;$LDFLAGS&quot; LD=&quot;$LD&quot; with_gnu_ld=&quot;$with_gnu_ld&quot; \
++    ${CONFIG_SHELL-/bin/sh} &quot;$ac_aux_dir/config.rpath&quot; &quot;$host&quot; &gt; conftest.sh
++    . ./conftest.sh
++    rm -f ./conftest.sh
++    acl_cv_rpath=done
+   ])
+-esac
+-
+-_LT_AC_LTCONFIG_HACK
+-
++  wl=&quot;$acl_cv_wl&quot;
++  libext=&quot;$acl_cv_libext&quot;
++  shlibext=&quot;$acl_cv_shlibext&quot;
++  hardcode_libdir_flag_spec=&quot;$acl_cv_hardcode_libdir_flag_spec&quot;
++  hardcode_libdir_separator=&quot;$acl_cv_hardcode_libdir_separator&quot;
++  hardcode_direct=&quot;$acl_cv_hardcode_direct&quot;
++  hardcode_minus_L=&quot;$acl_cv_hardcode_minus_L&quot;
++  dnl Determine whether the user wants rpath handling at all.
++  AC_ARG_ENABLE(rpath,
++    [  --disable-rpath         do not hardcode runtime library paths],
++    :, enable_rpath=yes)
+ ])

+-# AC_LIBTOOL_HEADER_ASSERT
+-# ------------------------
+-AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
+-[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
+-    [lt_cv_func_assert_works],
+-    [case $host in
+-    *-*-solaris*)
+-      if test &quot;$GCC&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; != yes; then
+-        case `$CC --version 2&gt;/dev/null` in
+-        [[12]].*) lt_cv_func_assert_works=no ;;
+-        *)        lt_cv_func_assert_works=yes ;;
+-        esac
+-      fi
+-      ;;
+-    esac])
+-
+-if test &quot;x$lt_cv_func_assert_works&quot; = xyes; then
+-  AC_CHECK_HEADERS(assert.h)
+-fi
+-])# AC_LIBTOOL_HEADER_ASSERT
+-
+-# _LT_AC_CHECK_DLFCN
+-# --------------------
+-AC_DEFUN([_LT_AC_CHECK_DLFCN],
+-[AC_CHECK_HEADERS(dlfcn.h)
+-])# _LT_AC_CHECK_DLFCN
+-
+-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+-# ---------------------------------
+-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
+-[AC_REQUIRE([AC_CANONICAL_HOST])
+-AC_REQUIRE([AC_PROG_NM])
+-AC_REQUIRE([AC_OBJEXT])
+-# Check for command to grab the raw symbol name followed by C symbol from nm.
+-AC_MSG_CHECKING([command to parse $NM output])
+-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
+-
+-# These are sane defaults that work on at least a few old systems.
+-# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+-
+-# Character class describing NM global symbol codes.
+-symcode='[[BCDEGRST]]'
+-
+-# Regexp to match symbols that can be accessed directly from C.
+-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+-
+-# Transform the above into a raw symbol and a C symbol.
+-symxfrm='\1 \2\3 \3'
+-
+-# Transform an extracted symbol line into a proper C declaration
+-lt_cv_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;
+-
+-# Transform an extracted symbol line into symbol name and symbol address
+-lt_cv_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+-
+-# Define system-specific variables.
+-case $host_os in
+-aix*)
+-  symcode='[[BCDT]]'
+-  ;;
+-cygwin* | mingw* | pw32*)
+-  symcode='[[ABCDGISTW]]'
+-  ;;
+-hpux*) # Its linker distinguishes data from code symbols
+-  lt_cv_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+-  lt_cv_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+-  ;;
+-irix*)
+-  symcode='[[BCDEGRST]]'
+-  ;;
+-solaris* | sysv5*)
+-  symcode='[[BDT]]'
+-  ;;
+-sysv4)
+-  symcode='[[DFNSTU]]'
+-  ;;
+-esac
+-
+-# Handle CRLF in mingw tool chain
+-opt_cr=
+-case $host_os in
+-mingw*)
+-  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+-  ;;
+-esac
+-
+-# If we're using GNU nm, then use its standard symbol codes.
+-if $NM -V 2&gt;&amp;1 | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-  symcode='[[ABCDGISTW]]'
+-fi
+-
+-# Try without a prefix undercore, then with it.
+-for ac_symprfx in &quot;&quot; &quot;_&quot;; do
+-
+-  # Write the raw and C identifiers.
+-lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[[         ]]\($symcode$symcode*\)[[         ]][[         ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'&quot;
+-
+-  # Check to see that the pipe works correctly.
+-  pipe_works=no
+-  rm -f conftest*
+-  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+-#ifdef __cplusplus
+-extern &quot;C&quot; {
+-#endif
+-char nm_test_var;
+-void nm_test_func(){}
+-#ifdef __cplusplus
+-}
+-#endif
+-int main(){nm_test_var='a';nm_test_func();return(0);}
+-EOF
+-
+-  if AC_TRY_EVAL(ac_compile); then
+-    # Now try to grab the symbols.
+-    nlist=conftest.nm
+-    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) &amp;&amp; test -s &quot;$nlist&quot;; then
+-      # Try sorting and uniquifying the output.
+-      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+-        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
++dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
++dnl the libraries corresponding to explicit and implicit dependencies.
++dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
++AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
++[
++  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
++                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
++  dnl By default, look in $includedir and $libdir.
++  use_additional=yes
++  AC_LIB_WITH_FINAL_PREFIX([
++    eval additional_includedir=\&quot;$includedir\&quot;
++    eval additional_libdir=\&quot;$libdir\&quot;
++  ])
++  AC_LIB_ARG_WITH([lib$1-prefix],
++[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
++  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
++[
++    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
++      use_additional=no
++    else
++      if test &quot;X$withval&quot; = &quot;X&quot;; then
++        AC_LIB_WITH_FINAL_PREFIX([
++          eval additional_includedir=\&quot;$includedir\&quot;
++          eval additional_libdir=\&quot;$libdir\&quot;
++        ])
+       else
+-        rm -f &quot;$nlist&quot;T
+-      fi
+-
+-      # Make sure that we snagged all the symbols we need.
+-      if egrep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+-        if egrep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+-          cat &lt;&lt;EOF &gt; conftest.$ac_ext
+-#ifdef __cplusplus
+-extern &quot;C&quot; {
+-#endif
+-
+-EOF
+-          # Now generate the symbol file.
+-          eval &quot;$lt_cv_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; &gt;&gt; conftest.$ac_ext'
+-
+-          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
+-#if defined (__STDC__) &amp;&amp; __STDC__
+-# define lt_ptr void *
+-#else
+-# define lt_ptr char *
+-# define const
+-#endif
+-
+-/* The mapping between symbol names and symbols. */
+-const struct {
+-  const char *name;
+-  lt_ptr address;
+-}
+-lt_preloaded_symbols[[]] =
+-{
+-EOF
+-          sed &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; &gt;&gt; conftest.$ac_ext
+-          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
+-  {0, (lt_ptr) 0}
+-};
+-
+-#ifdef __cplusplus
+-}
+-#endif
+-EOF
+-          # Now try linking the two files.
+-          mv conftest.$ac_objext conftstm.$ac_objext
+-          save_LIBS=&quot;$LIBS&quot;
+-          save_CFLAGS=&quot;$CFLAGS&quot;
+-          LIBS=&quot;conftstm.$ac_objext&quot;
+-          CFLAGS=&quot;$CFLAGS$no_builtin_flag&quot;
+-          if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest; then
+-            pipe_works=yes
+-          fi
+-          LIBS=&quot;$save_LIBS&quot;
+-          CFLAGS=&quot;$save_CFLAGS&quot;
+-        else
+-          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;AC_FD_CC
+-        fi
+-      else
+-        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;AC_FD_CC
+-      fi
+-    else
+-      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;AC_FD_CC
+-    fi
+-  else
+-    echo &quot;$progname: failed program was:&quot; &gt;&amp;AC_FD_CC
+-    cat conftest.$ac_ext &gt;&amp;5
+-  fi
+-  rm -f conftest* conftst*
+-
+-  # Do not use the global_symbol_pipe unless it works.
+-  if test &quot;$pipe_works&quot; = yes; then
+-    break
+-  else
+-    lt_cv_sys_global_symbol_pipe=
+-  fi
+-done
+-])
+-global_symbol_pipe=&quot;$lt_cv_sys_global_symbol_pipe&quot;
+-if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
+-  global_symbol_to_cdecl=
+-  global_symbol_to_c_name_address=
+-else
+-  global_symbol_to_cdecl=&quot;$lt_cv_global_symbol_to_cdecl&quot;
+-  global_symbol_to_c_name_address=&quot;$lt_cv_global_symbol_to_c_name_address&quot;
+-fi
+-if test -z &quot;$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address&quot;;
+-then
+-  AC_MSG_RESULT(failed)
+-else
+-  AC_MSG_RESULT(ok)
+-fi
+-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+-
+-# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+-# ---------------------------------
+-AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
+-[# Find the correct PATH separator.  Usually this is `:', but
+-# DJGPP uses `;' like DOS.
+-if test &quot;X${PATH_SEPARATOR+set}&quot; != Xset; then
+-  UNAME=${UNAME-`uname 2&gt;/dev/null`}
+-  case X$UNAME in
+-    *-DOS) lt_cv_sys_path_separator=';' ;;
+-    *)     lt_cv_sys_path_separator=':' ;;
+-  esac
+-  PATH_SEPARATOR=$lt_cv_sys_path_separator
+-fi
+-])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+-
+-# _LT_AC_PROG_ECHO_BACKSLASH
+-# --------------------------
+-# Add some code to the start of the generated configure script which
+-# will find an echo command which doesn't interpret backslashes.
+-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
+-[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+-                              [AC_DIVERT_PUSH(NOTICE)])
+-_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+-
+-# Check that we are running under the correct shell.
+-SHELL=${CONFIG_SHELL-/bin/sh}
+-
+-case X$ECHO in
+-X*--fallback-echo)
+-  # Remove one level of quotation (which was required for Make).
+-  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+-  ;;
+-esac
+-
+-echo=${ECHO-echo}
+-if test &quot;X[$]1&quot; = X--no-reexec; then
+-  # Discard the --no-reexec flag, and continue.
+-  shift
+-elif test &quot;X[$]1&quot; = X--fallback-echo; then
+-  # Avoid inline document here, it may be left over
+-  :
+-elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+-  # Yippee, $echo works!
+-  :
+-else
+-  # Restart under the correct shell.
+-  exec $SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
+-fi
+-
+-if test &quot;X[$]1&quot; = X--fallback-echo; then
+-  # used as fallback echo
+-  shift
+-  cat &lt;&lt;EOF
+-$*
+-EOF
+-  exit 0
+-fi
+-
+-# The HP-UX ksh and POSIX shell print the target directory to stdout
+-# if CDPATH is set.
+-if test &quot;X${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi
+-
+-if test -z &quot;$ECHO&quot;; then
+-if test &quot;X${echo_test_string+set}&quot; != Xset; then
+-# find a string as large as possible, as long as the shell can cope with it
+-  for cmd in 'sed 50q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 2q &quot;[$]0&quot;' 'echo test'; do
+-    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+-    if (echo_test_string=&quot;`eval $cmd`&quot;) 2&gt;/dev/null &amp;&amp;
+-       echo_test_string=&quot;`eval $cmd`&quot; &amp;&amp;
+-       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
+-    then
+-      break
+-    fi
+-  done
+-fi
+-
+-if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-  :
+-else
+-  # The Solaris, AIX, and Digital Unix default echo programs unquote
+-  # backslashes.  This makes it impossible to quote backslashes using
+-  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
+-  #
+-  # So, first we look for a working echo in the user's PATH.
+-
+-  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+-  for dir in $PATH /usr/ucb; do
+-    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+-       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-      echo=&quot;$dir/echo&quot;
+-      break
+-    fi
+-  done
+-  IFS=&quot;$save_ifs&quot;
+-
+-  if test &quot;X$echo&quot; = Xecho; then
+-    # We didn't find a better echo, so look for alternatives.
+-    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-      # This shell has a builtin print -r that does the trick.
+-      echo='print -r'
+-    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
+-         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+-      # If we have ksh, try running configure again with it.
+-      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+-      export ORIGINAL_CONFIG_SHELL
+-      CONFIG_SHELL=/bin/ksh
+-      export CONFIG_SHELL
+-      exec $CONFIG_SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
+-    else
+-      # Try using printf.
+-      echo='printf %s\n'
+-      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        # Cool, printf works
+-        :
+-      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+-           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+-        export CONFIG_SHELL
+-        SHELL=&quot;$CONFIG_SHELL&quot;
+-        export SHELL
+-        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
+-      elif echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+-           echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
+-      else
+-        # maybe with a smaller string...
+-        prev=:
+-
+-        for cmd in 'echo test' 'sed 2q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 50q &quot;[$]0&quot;'; do
+-          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
+-          then
+-            break
+-          fi
+-          prev=&quot;$cmd&quot;
+-        done
+-
+-        if test &quot;$prev&quot; != 'sed 50q &quot;[$]0&quot;'; then
+-          echo_test_string=`eval $prev`
+-          export echo_test_string
+-          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;[$]0&quot; ${1+&quot;[$]@&quot;}
+-        else
+-          # Oops.  We lost completely, so just stick with echo.
+-          echo=echo
+-        fi
+-      fi
+-    fi
+-  fi
+-fi
+-fi
+-
+-# Copy echo and quote the copy suitably for passing to libtool from
+-# the Makefile, instead of quoting the original, which is used later.
+-ECHO=$echo
+-if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL [$]0 --fallback-echo&quot;; then
+-   ECHO=&quot;$CONFIG_SHELL \\\$\[$]0 --fallback-echo&quot;
+-fi
+-
+-AC_SUBST(ECHO)
+-AC_DIVERT_POP
+-])# _LT_AC_PROG_ECHO_BACKSLASH
+-
+-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+-#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+-# ------------------------------------------------------------------
+-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
+-[if test &quot;$cross_compiling&quot; = yes; then :
+-  [$4]
+-else
+-  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+-  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+-  lt_status=$lt_dlunknown
+-  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+-[#line __oline__ &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#if HAVE_DLFCN_H
+-#include &lt;dlfcn.h&gt;
+-#endif
+-
+-#include &lt;stdio.h&gt;
+-
+-#ifdef RTLD_GLOBAL
+-#  define LT_DLGLOBAL                RTLD_GLOBAL
+-#else
+-#  ifdef DL_GLOBAL
+-#    define LT_DLGLOBAL                DL_GLOBAL
+-#  else
+-#    define LT_DLGLOBAL                0
+-#  endif
+-#endif
+-
+-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+-   find out it does not work in some platform. */
+-#ifndef LT_DLLAZY_OR_NOW
+-#  ifdef RTLD_LAZY
+-#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+-#  else
+-#    ifdef DL_LAZY
+-#      define LT_DLLAZY_OR_NOW                DL_LAZY
+-#    else
+-#      ifdef RTLD_NOW
+-#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+-#      else
+-#        ifdef DL_NOW
+-#          define LT_DLLAZY_OR_NOW        DL_NOW
+-#        else
+-#          define LT_DLLAZY_OR_NOW        0
+-#        endif
+-#      endif
+-#    endif
+-#  endif
+-#endif
+-
+-#ifdef __cplusplus
+-extern &quot;C&quot; void exit (int);
+-#endif
+-
+-void fnord() { int i=42;}
+-int main ()
+-{
+-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+-  int status = $lt_dlunknown;
+-
+-  if (self)
+-    {
+-      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+-      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+-      /* dlclose (self); */
+-    }
+-
+-    exit (status);
+-}]
+-EOF
+-  if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+-    (./conftest; exit; ) 2&gt;/dev/null
+-    lt_status=$?
+-    case x$lt_status in
+-      x$lt_dlno_uscore) $1 ;;
+-      x$lt_dlneed_uscore) $2 ;;
+-      x$lt_unknown|x*) $3 ;;
+-    esac
+-  else :
+-    # compilation failed
+-    $3
+-  fi
+-fi
+-rm -fr conftest*
+-])# _LT_AC_TRY_DLOPEN_SELF
+-
+-# AC_LIBTOOL_DLOPEN_SELF
+-# -------------------
+-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
+-[if test &quot;x$enable_dlopen&quot; != xyes; then
+-  enable_dlopen=unknown
+-  enable_dlopen_self=unknown
+-  enable_dlopen_self_static=unknown
+-else
+-  lt_cv_dlopen=no
+-  lt_cv_dlopen_libs=
+-
+-  case $host_os in
+-  beos*)
+-    lt_cv_dlopen=&quot;load_add_on&quot;
+-    lt_cv_dlopen_libs=
+-    lt_cv_dlopen_self=yes
+-    ;;
+-
+-  cygwin* | mingw* | pw32*)
+-    lt_cv_dlopen=&quot;LoadLibrary&quot;
+-    lt_cv_dlopen_libs=
+-   ;;
+-
+-  *)
+-    AC_CHECK_FUNC([shl_load],
+-          [lt_cv_dlopen=&quot;shl_load&quot;],
+-      [AC_CHECK_LIB([dld], [shl_load],
+-            [lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;],
+-        [AC_CHECK_FUNC([dlopen],
+-              [lt_cv_dlopen=&quot;dlopen&quot;],
+-          [AC_CHECK_LIB([dl], [dlopen],
+-                [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;],
+-            [AC_CHECK_LIB([svld], [dlopen],
+-                  [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;],
+-              [AC_CHECK_LIB([dld], [dld_link],
+-                    [lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;])
+-              ])
+-            ])
+-          ])
+-        ])
+-      ])
+-    ;;
+-  esac
+-
+-  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+-    enable_dlopen=yes
+-  else
+-    enable_dlopen=no
+-  fi
+-
+-  case $lt_cv_dlopen in
+-  dlopen)
+-    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+-    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+-    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+-
+-    save_LDFLAGS=&quot;$LDFLAGS&quot;
+-    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+-
+-    save_LIBS=&quot;$LIBS&quot;
+-    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+-
+-    AC_CACHE_CHECK([whether a program can dlopen itself],
+-          lt_cv_dlopen_self, [dnl
+-          _LT_AC_TRY_DLOPEN_SELF(
+-            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+-            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+-    ])
+-
+-    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+-      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+-      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+-              lt_cv_dlopen_self_static, [dnl
+-          _LT_AC_TRY_DLOPEN_SELF(
+-            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+-            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
+-      ])
+-    fi
+-
+-    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+-    LDFLAGS=&quot;$save_LDFLAGS&quot;
+-    LIBS=&quot;$save_LIBS&quot;
+-    ;;
+-  esac
+-
+-  case $lt_cv_dlopen_self in
+-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+-  *) enable_dlopen_self=unknown ;;
+-  esac
+-
+-  case $lt_cv_dlopen_self_static in
+-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+-  *) enable_dlopen_self_static=unknown ;;
+-  esac
+-fi
+-])# AC_LIBTOOL_DLOPEN_SELF
+-
+-AC_DEFUN([_LT_AC_LTCONFIG_HACK],
+-[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
+-# Sed substitution that helps us do robust quoting.  It backslashifies
+-# metacharacters that are still active within double-quoted strings.
+-Xsed='sed -e s/^X//'
+-sed_quote_subst='s/\([[\\&quot;\\`$\\\\]]\)/\\\1/g'
+-
+-# Same as above, but do not quote variable references.
+-double_quote_subst='s/\([[\\&quot;\\`\\\\]]\)/\\\1/g'
+-
+-# Sed substitution to delay expansion of an escaped shell variable in a
+-# double_quote_subst'ed string.
+-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+-
+-# Constants:
+-rm=&quot;rm -f&quot;
+-
+-# Global variables:
+-default_ofile=libtool
+-can_build_shared=yes
+-
+-# All known linkers require a `.a' archive for static linking (except M$VC,
+-# which needs '.lib').
+-libext=a
+-ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
+-ofile=&quot;$default_ofile&quot;
+-with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
+-need_locks=&quot;$enable_libtool_lock&quot;
+-
+-old_CC=&quot;$CC&quot;
+-old_CFLAGS=&quot;$CFLAGS&quot;
+-
+-# Set sane defaults for various variables
+-test -z &quot;$AR&quot; &amp;&amp; AR=ar
+-test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
+-test -z &quot;$AS&quot; &amp;&amp; AS=as
+-test -z &quot;$CC&quot; &amp;&amp; CC=cc
+-test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
+-test -z &quot;$LD&quot; &amp;&amp; LD=ld
+-test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
+-test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
+-test -z &quot;$NM&quot; &amp;&amp; NM=nm
+-test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+-test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
+-test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
+-test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
+-
+-if test x&quot;$host&quot; != x&quot;$build&quot;; then
+-  ac_tool_prefix=${host_alias}-
+-else
+-  ac_tool_prefix=
+-fi
+-
+-# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+-case $host_os in
+-linux-gnu*) ;;
+-linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+-esac
+-
+-case $host_os in
+-aix3*)
+-  # AIX sometimes has problems with the GCC collect2 program.  For some
+-  # reason, if we set the COLLECT_NAMES environment variable, the problems
+-  # vanish in a puff of smoke.
+-  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+-    COLLECT_NAMES=
+-    export COLLECT_NAMES
+-  fi
+-  ;;
+-esac
+-
+-# Determine commands to create old-style static archives.
+-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+-old_postinstall_cmds='chmod 644 $oldlib'
+-old_postuninstall_cmds=
+-
+-if test -n &quot;$RANLIB&quot;; then
+-  case $host_os in
+-  openbsd*)
+-    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
+-    ;;
+-  *)
+-    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+-    ;;
+-  esac
+-  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
+-fi
+-
+-# Allow CC to be a program name with arguments.
+-set dummy $CC
+-compiler=&quot;[$]2&quot;
+-
+-AC_MSG_CHECKING([for objdir])
+-rm -f .libs 2&gt;/dev/null
+-mkdir .libs 2&gt;/dev/null
+-if test -d .libs; then
+-  objdir=.libs
+-else
+-  # MS-DOS does not allow filenames that begin with a dot.
+-  objdir=_libs
+-fi
+-rmdir .libs 2&gt;/dev/null
+-AC_MSG_RESULT($objdir)
+-
+-
+-AC_ARG_WITH(pic,
+-[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
+-pic_mode=&quot;$withval&quot;, pic_mode=default)
+-test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default
+-
+-# We assume here that the value for lt_cv_prog_cc_pic will not be cached
+-# in isolation, and that seeing it set (from the cache) indicates that
+-# the associated values are set (in the cache) correctly too.
+-AC_MSG_CHECKING([for $compiler option to produce PIC])
+-AC_CACHE_VAL(lt_cv_prog_cc_pic,
+-[ lt_cv_prog_cc_pic=
+-  lt_cv_prog_cc_shlib=
+-  lt_cv_prog_cc_wl=
+-  lt_cv_prog_cc_static=
+-  lt_cv_prog_cc_no_builtin=
+-  lt_cv_prog_cc_can_build_shared=$can_build_shared
+-
+-  if test &quot;$GCC&quot; = yes; then
+-    lt_cv_prog_cc_wl='-Wl,'
+-    lt_cv_prog_cc_static='-static'
+-
+-    case $host_os in
+-    aix*)
+-      # Below there is a dirty hack to force normal static linking with -ldl
+-      # The problem is because libdl dynamically linked with both libc and
+-      # libC (AIX C++ library), which obviously doesn't included in libraries
+-      # list by gcc. This cause undefined symbols with -static flags.
+-      # This hack allows C programs to be linked with &quot;-static -ldl&quot;, but
+-      # not sure about C++ programs.
+-      lt_cv_prog_cc_static=&quot;$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC&quot;
+-      ;;
+-    amigaos*)
+-      # FIXME: we need at least 68020 code to build shared libraries, but
+-      # adding the `-m68020' flag to GCC prevents building anything better,
+-      # like `-m68040'.
+-      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
+-      ;;
+-    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
+-      # PIC is the default for these OSes.
+-      ;;
+-    darwin* | rhapsody*)
+-      # PIC is the default on this platform
+-      # Common symbols not allowed in MH_DYLIB files
+-      lt_cv_prog_cc_pic='-fno-common'
+-      ;;
+-    cygwin* | mingw* | pw32* | os2*)
+-      # This hack is so that the source file can tell whether it is being
+-      # built for inclusion in a dll (and should export symbols for example).
+-      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+-      ;;
+-    sysv4*MP*)
+-      if test -d /usr/nec; then
+-         lt_cv_prog_cc_pic=-Kconform_pic
+-      fi
+-      ;;
+-    *)
+-      lt_cv_prog_cc_pic='-fPIC'
+-      ;;
+-    esac
+-  else
+-    # PORTME Check for PIC flags for the system compiler.
+-    case $host_os in
+-    aix3* | aix4* | aix5*)
+-      lt_cv_prog_cc_wl='-Wl,'
+-      # All AIX code is PIC.
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        # AIX 5 now supports IA64 processor
+-        lt_cv_prog_cc_static='-Bstatic'
+-      else
+-        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
+-      fi
+-      ;;
+-
+-    hpux9* | hpux10* | hpux11*)
+-      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static=&quot;${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive&quot;
+-      lt_cv_prog_cc_pic='+Z'
+-      ;;
+-
+-    irix5* | irix6*)
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static='-non_shared'
+-      # PIC (with -KPIC) is the default.
+-      ;;
+-
+-    cygwin* | mingw* | pw32* | os2*)
+-      # This hack is so that the source file can tell whether it is being
+-      # built for inclusion in a dll (and should export symbols for example).
+-      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+-      ;;
+-
+-    newsos6)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      ;;
+-
+-    osf3* | osf4* | osf5*)
+-      # All OSF/1 code is PIC.
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static='-non_shared'
+-      ;;
+-
+-    sco3.2v5*)
+-      lt_cv_prog_cc_pic='-Kpic'
+-      lt_cv_prog_cc_static='-dn'
+-      lt_cv_prog_cc_shlib='-belf'
+-      ;;
+-
+-    solaris*)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      lt_cv_prog_cc_wl='-Wl,'
+-      ;;
+-
+-    sunos4*)
+-      lt_cv_prog_cc_pic='-PIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      lt_cv_prog_cc_wl='-Qoption ld '
+-      ;;
+-
+-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      if test &quot;x$host_vendor&quot; = xsni; then
+-        lt_cv_prog_cc_wl='-LD'
+-      else
+-        lt_cv_prog_cc_wl='-Wl,'
+-      fi
+-      ;;
+-
+-    uts4*)
+-      lt_cv_prog_cc_pic='-pic'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      ;;
+-
+-    sysv4*MP*)
+-      if test -d /usr/nec ;then
+-        lt_cv_prog_cc_pic='-Kconform_pic'
+-        lt_cv_prog_cc_static='-Bstatic'
+-      fi
+-      ;;
+-
+-    *)
+-      lt_cv_prog_cc_can_build_shared=no
+-      ;;
+-    esac
+-  fi
+-])
+-if test -z &quot;$lt_cv_prog_cc_pic&quot;; then
+-  AC_MSG_RESULT([none])
+-else
+-  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
+-
+-  # Check to make sure the pic_flag actually works.
+-  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
+-  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
+-    save_CFLAGS=&quot;$CFLAGS&quot;
+-    CFLAGS=&quot;$CFLAGS $lt_cv_prog_cc_pic -DPIC&quot;
+-    AC_TRY_COMPILE([], [], [dnl
+-      case $host_os in
+-      hpux9* | hpux10* | hpux11*)
+-        # On HP-UX, both CC and GCC only warn that PIC is supported... then
+-        # they create non-PIC objects.  So, if there were any warnings, we
+-        # assume that PIC is not supported.
+-        if test -s conftest.err; then
+-          lt_cv_prog_cc_pic_works=no
+-        else
+-          lt_cv_prog_cc_pic_works=yes
+-        fi
+-        ;
+-      *)
+-        lt_cv_prog_cc_pic_works=yes
+-        ;
+-      esac
+-    ], [dnl
+-      lt_cv_prog_cc_pic_works=no
+-    ])
+-    CFLAGS=&quot;$save_CFLAGS&quot;
+-  ])
+-
+-  if test &quot;X$lt_cv_prog_cc_pic_works&quot; = Xno; then
+-    lt_cv_prog_cc_pic=
+-    lt_cv_prog_cc_can_build_shared=no
+-  else
+-    lt_cv_prog_cc_pic=&quot; $lt_cv_prog_cc_pic&quot;
+-  fi
+-
+-  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
+-fi
+-
+-# Check for any special shared library compilation flags.
+-if test -n &quot;$lt_cv_prog_cc_shlib&quot;; then
+-  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
+-  if echo &quot;$old_CC $old_CFLAGS &quot; | egrep -e &quot;[[         ]]$lt_cv_prog_cc_shlib[[         ]]&quot; &gt;/dev/null; then :
+-  else
+-   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
+-    lt_cv_prog_cc_can_build_shared=no
+-  fi
+-fi
+-
+-AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
+-AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
+-  lt_cv_prog_cc_static_works=no
+-  save_LDFLAGS=&quot;$LDFLAGS&quot;
+-  LDFLAGS=&quot;$LDFLAGS $lt_cv_prog_cc_static&quot;
+-  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
+-  LDFLAGS=&quot;$save_LDFLAGS&quot;
+-])
+-
+-# Belt *and* braces to stop my trousers falling down:
+-test &quot;X$lt_cv_prog_cc_static_works&quot; = Xno &amp;&amp; lt_cv_prog_cc_static=
+-AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
+-
+-pic_flag=&quot;$lt_cv_prog_cc_pic&quot;
+-special_shlib_compile_flags=&quot;$lt_cv_prog_cc_shlib&quot;
+-wl=&quot;$lt_cv_prog_cc_wl&quot;
+-link_static_flag=&quot;$lt_cv_prog_cc_static&quot;
+-no_builtin_flag=&quot;$lt_cv_prog_cc_no_builtin&quot;
+-can_build_shared=&quot;$lt_cv_prog_cc_can_build_shared&quot;
+-
+-
+-# Check to see if options -o and -c are simultaneously supported by compiler
+-AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
+-AC_CACHE_VAL([lt_cv_compiler_c_o], [
+-$rm -r conftest 2&gt;/dev/null
+-mkdir conftest
+-cd conftest
+-echo &quot;int some_variable = 0;&quot; &gt; conftest.$ac_ext
+-mkdir out
+-# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
+-# that will create temporary files in the current directory regardless of
+-# the output directory.  Thus, making CWD read-only will cause this test
+-# to fail, enabling locking or at least warning the user not to do parallel
+-# builds.
+-chmod -w .
+-save_CFLAGS=&quot;$CFLAGS&quot;
+-CFLAGS=&quot;$CFLAGS -o out/conftest2.$ac_objext&quot;
+-compiler_c_o=no
+-if { (eval echo configure:__oline__: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;out/conftest.err; } &amp;&amp; test -s out/conftest2.$ac_objext; then
+-  # The compiler can only warn and ignore the option if not recognized
+-  # So say no if there are warnings
+-  if test -s out/conftest.err; then
+-    lt_cv_compiler_c_o=no
+-  else
+-    lt_cv_compiler_c_o=yes
+-  fi
+-else
+-  # Append any errors to the config.log.
+-  cat out/conftest.err 1&gt;&amp;AC_FD_CC
+-  lt_cv_compiler_c_o=no
+-fi
+-CFLAGS=&quot;$save_CFLAGS&quot;
+-chmod u+w .
+-$rm conftest* out/*
+-rmdir out
+-cd ..
+-rmdir conftest
+-$rm -r conftest 2&gt;/dev/null
+-])
+-compiler_c_o=$lt_cv_compiler_c_o
+-AC_MSG_RESULT([$compiler_c_o])
+-
+-if test x&quot;$compiler_c_o&quot; = x&quot;yes&quot;; then
+-  # Check to see if we can write to a .lo
+-  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
+-  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
+-  lt_cv_compiler_o_lo=no
+-  save_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -c -o conftest.lo&quot;
+-  save_objext=&quot;$ac_objext&quot;
+-  ac_objext=lo
+-  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
+-    # The compiler can only warn and ignore the option if not recognized
+-    # So say no if there are warnings
+-    if test -s conftest.err; then
+-      lt_cv_compiler_o_lo=no
+-    else
+-      lt_cv_compiler_o_lo=yes
+-    fi
+-  ])
+-  ac_objext=&quot;$save_objext&quot;
+-  CFLAGS=&quot;$save_CFLAGS&quot;
+-  ])
+-  compiler_o_lo=$lt_cv_compiler_o_lo
+-  AC_MSG_RESULT([$compiler_o_lo])
+-else
+-  compiler_o_lo=no
+-fi
+-
+-# Check to see if we can do hard links to lock some files if needed
+-hard_links=&quot;nottested&quot;
+-if test &quot;$compiler_c_o&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+-  # do not overwrite the value of need_locks provided by the user
+-  AC_MSG_CHECKING([if we can lock with hard links])
+-  hard_links=yes
+-  $rm conftest*
+-  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+-  touch conftest.a
+-  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+-  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+-  AC_MSG_RESULT([$hard_links])
+-  if test &quot;$hard_links&quot; = no; then
+-    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
+-    need_locks=warn
+-  fi
+-else
+-  need_locks=no
+-fi
+-
+-if test &quot;$GCC&quot; = yes; then
+-  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
+-  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
+-  echo &quot;int some_variable = 0;&quot; &gt; conftest.$ac_ext
+-  save_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext&quot;
+-  compiler_rtti_exceptions=no
+-  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
+-    # The compiler can only warn and ignore the option if not recognized
+-    # So say no if there are warnings
+-    if test -s conftest.err; then
+-      compiler_rtti_exceptions=no
+-    else
+-      compiler_rtti_exceptions=yes
+-    fi
+-  ])
+-  CFLAGS=&quot;$save_CFLAGS&quot;
+-  AC_MSG_RESULT([$compiler_rtti_exceptions])
+-
+-  if test &quot;$compiler_rtti_exceptions&quot; = &quot;yes&quot;; then
+-    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
+-  else
+-    no_builtin_flag=' -fno-builtin'
+-  fi
+-fi
+-
+-# See if the linker supports building shared libraries.
+-AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
+-
+-allow_undefined_flag=
+-no_undefined_flag=
+-need_lib_prefix=unknown
+-need_version=unknown
+-# when you set need_version to no, make sure it does not cause -set_version
+-# flags to be left without arguments
+-archive_cmds=
+-archive_expsym_cmds=
+-old_archive_from_new_cmds=
+-old_archive_from_expsyms_cmds=
+-export_dynamic_flag_spec=
+-whole_archive_flag_spec=
+-thread_safe_flag_spec=
+-hardcode_into_libs=no
+-hardcode_libdir_flag_spec=
+-hardcode_libdir_separator=
+-hardcode_direct=no
+-hardcode_minus_L=no
+-hardcode_shlibpath_var=unsupported
+-runpath_var=
+-link_all_deplibs=unknown
+-always_export_symbols=no
+-export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+-# include_expsyms should be a list of space-separated symbols to be *always*
+-# included in the symbol list
+-include_expsyms=
+-# exclude_expsyms can be an egrep regular expression of symbols to exclude
+-# it will be wrapped by ` (' and `)$', so one must not match beginning or
+-# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+-# as well as any symbol that contains `d'.
+-exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+-# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+-# platforms (ab)use it in PIC code, but their linkers get confused if
+-# the symbol is explicitly referenced.  Since portable code cannot
+-# rely on this symbol name, it's probably fine to never include it in
+-# preloaded symbol tables.
+-extract_expsyms_cmds=
+-
+-case $host_os in
+-cygwin* | mingw* | pw32*)
+-  # FIXME: the MSVC++ port hasn't been tested in a loooong time
+-  # When not using gcc, we currently assume that we are using
+-  # Microsoft Visual C++.
+-  if test &quot;$GCC&quot; != yes; then
+-    with_gnu_ld=no
+-  fi
+-  ;;
+-openbsd*)
+-  with_gnu_ld=no
+-  ;;
+-esac
+-
+-ld_shlibs=yes
+-if test &quot;$with_gnu_ld&quot; = yes; then
+-  # If archive_cmds runs LD, not CC, wlarc should be empty
+-  wlarc='${wl}'
+-
+-  # See if GNU ld supports shared libraries.
+-  case $host_os in
+-  aix3* | aix4* | aix5*)
+-    # On AIX, the GNU linker is very broken
+-    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
+-    ld_shlibs=no
+-    cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+-*** to be unable to reliably create shared libraries on AIX.
+-*** Therefore, libtool is disabling shared libraries support.  If you
+-*** really care for shared libraries, you may want to modify your PATH
+-*** so that a non-GNU linker is found, and then restart.
+-
+-EOF
+-    ;;
+-
+-  amigaos*)
+-    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-
+-    # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+-    # that the semantics of dynamic libraries on AmigaOS, at least up
+-    # to version 4, is to share data among multiple programs linked
+-    # with the same dynamic library.  Since this doesn't match the
+-    # behavior of shared libraries on other platforms, we can use
+-    # them.
+-    ld_shlibs=no
+-    ;;
+-
+-  beos*)
+-    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      allow_undefined_flag=unsupported
+-      # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+-      # support --undefined.  This deserves some investigation.  FIXME
+-      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-    else
+-      ld_shlibs=no
+-    fi
+-    ;;
+-
+-  cygwin* | mingw* | pw32*)
+-    # hardcode_libdir_flag_spec is actually meaningless, as there is
+-    # no search path for DLLs.
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    allow_undefined_flag=unsupported
+-    always_export_symbols=yes
+-
+-    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
+-      sed -e &quot;/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }&quot; -e d &lt; $''0 &gt; $output_objdir/impgen.c~
+-      test -f $output_objdir/impgen.exe || (cd $output_objdir &amp;&amp; \
+-      if test &quot;x$HOST_CC&quot; != &quot;x&quot; ; then $HOST_CC -o impgen impgen.c ; \
+-      else $CC -o impgen impgen.c ; fi)~
+-      $output_objdir/impgen $dir/$soroot &gt; $output_objdir/$soname-def'
+-
+-    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
+-
+-    # cygwin and mingw dlls have different entry points and sets of symbols
+-    # to exclude.
+-    # FIXME: what about values for MSVC?
+-    dll_entry=__cygwin_dll_entry@12
+-    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
+-    case $host_os in
+-    mingw*)
+-      # mingw values
+-      dll_entry=_DllMainCRTStartup@12
+-      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
+-      ;;
+-    esac
+-
+-    # mingw and cygwin differ, and it's simplest to just exclude the union
+-    # of the two symbol sets.
+-    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
+-
+-    # recent cygwin and mingw systems supply a stub DllMain which the user
+-    # can override, but on older systems we have to supply one (in ltdll.c)
+-    if test &quot;x$lt_cv_need_dllmain&quot; = &quot;xyes&quot;; then
+-      ltdll_obj='$output_objdir/$soname-ltdll.'&quot;$ac_objext &quot;
+-      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $''0 &gt; $output_objdir/$soname-ltdll.c~
+-        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir &amp;&amp; $CC -c $soname-ltdll.c)~'
+-    else
+-      ltdll_obj=
+-      ltdll_cmds=
+-    fi
+-
+-    # Extract the symbol export list from an `--export-all' def file,
+-    # then regenerate the def file from the symbol export list, so that
+-    # the compiled dll only exports the symbol export list.
+-    # Be careful not to strip the DATA tag left be newer dlltools.
+-    export_symbols_cmds=&quot;$ltdll_cmds&quot;'
+-      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
+-      sed -e &quot;1,/EXPORTS/d&quot; -e &quot;s/ @ [[0-9]]*//&quot; -e &quot;s/ *;.*$//&quot; &lt; $output_objdir/$soname-def &gt; $export_symbols'
+-
+-    # If the export-symbols file already is a .def file (1st line
+-    # is EXPORTS), use it as is.
+-    # If DATA tags from a recent dlltool are present, honour them!
+-    archive_expsym_cmds='if test &quot;x`head -1 $export_symbols`&quot; = xEXPORTS; then
+-        cp $export_symbols $output_objdir/$soname-def;
+-      else
+-        echo EXPORTS &gt; $output_objdir/$soname-def;
+-        _lt_hint=1;
+-        cat $export_symbols | while read symbol; do
+-         set dummy \$symbol;
+-         case \[$]# in
+-           2) echo &quot;   \[$]2 @ \$_lt_hint ; &quot; &gt;&gt; $output_objdir/$soname-def;;
+-           *) echo &quot;     \[$]2 @ \$_lt_hint \[$]3 ; &quot; &gt;&gt; $output_objdir/$soname-def;;
+-         esac;
+-         _lt_hint=`expr 1 + \$_lt_hint`;
+-        done;
+-      fi~
+-      '&quot;$ltdll_cmds&quot;'
+-      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
+-      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
+-      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
+-    ;;
+-
+-  netbsd*)
+-    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+-      wlarc=
+-    else
+-      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+-    fi
+-    ;;
+-
+-  solaris* | sysv5*)
+-    if $LD -v 2&gt;&amp;1 | egrep 'BFD 2\.8' &gt; /dev/null; then
+-      ld_shlibs=no
+-      cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+-*** create shared libraries on Solaris systems.  Therefore, libtool
+-*** is disabling shared libraries support.  We urge you to upgrade GNU
+-*** binutils to release 2.9.1 or newer.  Another option is to modify
+-*** your PATH or compiler configuration so that the native linker is
+-*** used, and then restart.
+-
+-EOF
+-    elif $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+-    else
+-      ld_shlibs=no
+-    fi
+-    ;;
+-
+-  sunos4*)
+-    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-    wlarc=
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  *)
+-    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+-    else
+-      ld_shlibs=no
+-    fi
+-    ;;
+-  esac
+-
+-  if test &quot;$ld_shlibs&quot; = yes; then
+-    runpath_var=LD_RUN_PATH
+-    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+-    export_dynamic_flag_spec='${wl}--export-dynamic'
+-    case $host_os in
+-    cygwin* | mingw* | pw32*)
+-      # dlltool doesn't understand --whole-archive et. al.
+-      whole_archive_flag_spec=
+-      ;;
+-    *)
+-      # ancient GNU ld didn't support --whole-archive et. al.
+-      if $LD --help 2&gt;&amp;1 | egrep 'no-whole-archive' &gt; /dev/null; then
+-        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+-      else
+-        whole_archive_flag_spec=
+-      fi
+-      ;;
+-    esac
+-  fi
+-else
+-  # PORTME fill in a description of your system's linker (not GNU ld)
+-  case $host_os in
+-  aix3*)
+-    allow_undefined_flag=unsupported
+-    always_export_symbols=yes
+-    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+-    # Note: this linker hardcodes the directories in LIBPATH if there
+-    # are no directories specified by -L.
+-    hardcode_minus_L=yes
+-    if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+-      # Neither direct hardcoding nor static linking is supported with a
+-      # broken collect2.
+-      hardcode_direct=unsupported
+-    fi
+-    ;;
+-
+-  aix4* | aix5*)
+-    if test &quot;$host_cpu&quot; = ia64; then
+-      # On IA64, the linker does run time linking by default, so we don't
+-      # have to do anything special.
+-      aix_use_runtimelinking=no
+-      exp_sym_flag='-Bexport'
+-      no_entry_flag=&quot;&quot;
+-    else
+-      aix_use_runtimelinking=no
+-
+-      # Test if we are trying to use run time linking or normal
+-      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+-      # need to do runtime linking.
+-      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
+-        for ld_flag in $LDFLAGS; do
+-          if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+-            aix_use_runtimelinking=yes
+-            break
+-          fi
+-        done
+-      esac
+-
+-      exp_sym_flag='-bexport'
+-      no_entry_flag='-bnoentry'
+-    fi
+-
+-    # When large executables or shared objects are built, AIX ld can
+-    # have problems creating the table of contents.  If linking a library
+-    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+-    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+-    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+-
+-    hardcode_direct=yes
+-    archive_cmds=''
+-    hardcode_libdir_separator=':'
+-    if test &quot;$GCC&quot; = yes; then
+-      case $host_os in aix4.[[012]]|aix4.[[012]].*)
+-        collect2name=`${CC} -print-prog-name=collect2`
+-        if test -f &quot;$collect2name&quot; &amp;&amp; \
+-          strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+-        then
+-          # We have reworked collect2
+-          hardcode_direct=yes
+-        else
+-          # We have old collect2
+-          hardcode_direct=unsupported
+-          # It fails to find uninstalled libraries when the uninstalled
+-          # path is not listed in the libpath.  Setting hardcode_minus_L
+-          # to unsupported forces relinking
+-          hardcode_minus_L=yes
+-          hardcode_libdir_flag_spec='-L$libdir'
+-          hardcode_libdir_separator=
+-        fi
+-      esac
+-
+-      shared_flag='-shared'
+-    else
+-      # not using gcc
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        shared_flag='${wl}-G'
+-      else
+-        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-          shared_flag='${wl}-G'
+-        else
+-          shared_flag='${wl}-bM:SRE'
+-        fi
+-      fi
+-    fi
+-
+-    # It seems that -bexpall can do strange things, so it is better to
+-    # generate a list of symbols to export.
+-    always_export_symbols=yes
+-    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-      # Warning - without using the other runtime loading flags (-brtl),
+-      # -berok will link without error, but may produce a broken library.
+-      allow_undefined_flag='-berok'
+-      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
+-      archive_expsym_cmds=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+-    else
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+-        allow_undefined_flag=&quot;-z nodefs&quot;
+-        archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+-      else
+-        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
+-        # Warning - without using the other run time loading flags,
+-        # -berok will link without error, but may produce a broken library.
+-        allow_undefined_flag='${wl}-berok'
+-        # This is a bit strange, but is similar to how AIX traditionally builds
+-        # it's shared libraries.
+-        archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
+-      fi
+-    fi
+-    ;;
+-
+-  amigaos*)
+-    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-    # see comment about different semantics on the GNU ld section
+-    ld_shlibs=no
+-    ;;
+-
+-  cygwin* | mingw* | pw32*)
+-    # When not using gcc, we currently assume that we are using
+-    # Microsoft Visual C++.
+-    # hardcode_libdir_flag_spec is actually meaningless, as there is
+-    # no search path for DLLs.
+-    hardcode_libdir_flag_spec=' '
+-    allow_undefined_flag=unsupported
+-    # Tell ltmain to make .lib files, not .a files.
+-    libext=lib
+-    # FIXME: Setting linknames here is a bad hack.
+-    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+-    # The linker will automatically build a .lib file if we build a DLL.
+-    old_archive_from_new_cmds='true'
+-    # FIXME: Should let the user specify the lib program.
+-    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+-    fix_srcfile_path='`cygpath -w &quot;$srcfile&quot;`'
+-    ;;
+-
+-  darwin* | rhapsody*)
+-    case &quot;$host_os&quot; in
+-    rhapsody* | darwin1.[[012]])
+-      allow_undefined_flag='-undefined suppress'
+-      ;;
+-    *) # Darwin 1.3 on
+-      allow_undefined_flag='-flat_namespace -undefined suppress'
+-      ;;
+-    esac
+-    # FIXME: Relying on posixy $() will cause problems for
+-    #        cross-compilation, but unfortunately the echo tests do not
+-    #        yet detect zsh echo's removal of \ escapes.
+-    archive_cmds='$nonopt $(test &quot;x$module&quot; = xyes &amp;&amp; echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
+-    # We need to add '_' to the symbols in $export_symbols first
+-    #archive_expsym_cmds=&quot;$archive_cmds&quot;' &amp;&amp; strip -s $export_symbols'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    whole_archive_flag_spec='-all_load $convenience'
+-    ;;
+-
+-  freebsd1*)
+-    ld_shlibs=no
+-    ;;
+-
+-  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+-  # support.  Future versions do this automatically, but an explicit c++rt0.o
+-  # does not break anything, and helps significantly (at the cost of a little
+-  # extra space).
+-  freebsd2.2*)
+-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-  freebsd2*)
+-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+-  freebsd*)
+-    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  hpux9* | hpux10* | hpux11*)
+-    case $host_os in
+-    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
+-    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
+-    esac
+-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes # Not in the search PATH, but as the default
+-                         # location of the library.
+-    export_dynamic_flag_spec='${wl}-E'
+-    ;;
+-
+-  irix5* | irix6*)
+-    if test &quot;$GCC&quot; = yes; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-    else
+-      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-    fi
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    link_all_deplibs=yes
+-    ;;
+-
+-  netbsd*)
+-    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+-    else
+-      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+-    fi
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  newsos6)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  openbsd*)
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+-      export_dynamic_flag_spec='${wl}-E'
+-    else
+-      case &quot;$host_os&quot; in
+-      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+-        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-        hardcode_libdir_flag_spec='-R$libdir'
+-        ;;
+-      *)
+-        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
+-        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+-        ;;
+-      esac
+-    fi
+-    ;;
+-
+-  os2*)
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-    allow_undefined_flag=unsupported
+-    archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+-    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+-    ;;
+-
+-  osf3*)
+-    if test &quot;$GCC&quot; = yes; then
+-      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+-      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-    else
+-      allow_undefined_flag=' -expect_unresolved \*'
+-      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-    fi
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    ;;
+-
+-  osf4* | osf5*)        # as osf3* with the addition of -msym flag
+-    if test &quot;$GCC&quot; = yes; then
+-      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+-      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    else
+-      allow_undefined_flag=' -expect_unresolved \*'
+-      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-      archive_expsym_cmds='for i in `cat $export_symbols`; do printf &quot;-exported_symbol &quot; &gt;&gt; $lib.exp; echo &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+-      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+-
+-      #Both c and cxx compiler support -rpath directly
+-      hardcode_libdir_flag_spec='-rpath $libdir'
+-    fi
+-    hardcode_libdir_separator=:
+-    ;;
+-
+-  sco3.2v5*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_shlibpath_var=no
+-    runpath_var=LD_RUN_PATH
+-    hardcode_runpath_var=yes
+-    export_dynamic_flag_spec='${wl}-Bexport'
+-    ;;
+-
+-  solaris*)
+-    # gcc --version &lt; 3.0 without binutils cannot create self contained
+-    # shared libraries reliably, requiring libgcc.a to resolve some of
+-    # the object symbols generated in some cases.  Libraries that use
+-    # assert need libgcc.a to resolve __eprintf, for example.  Linking
+-    # a copy of libgcc.a into every shared library to guarantee resolving
+-    # such symbols causes other problems:  According to Tim Van Holder
+-    # &lt;tim.van.holder@pandora.be&gt;, C++ libraries end up with a separate
+-    # (to the application) exception stack for one thing.
+-    no_undefined_flag=' -z defs'
+-    if test &quot;$GCC&quot; = yes; then
+-      case `$CC --version 2&gt;/dev/null` in
+-      [[12]].*)
+-        cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
+-*** create self contained shared libraries on Solaris systems, without
+-*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
+-*** -no-undefined support, which will at least allow you to build shared
+-*** libraries.  However, you may find that when you link such libraries
+-*** into an application without using GCC, you have to manually add
+-*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
+-*** upgrade to a newer version of GCC.  Another option is to rebuild your
+-*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
+-
+-EOF
+-        no_undefined_flag=
+-        ;
+-      esac
+-    fi
+-    # $CC -shared without GNU ld will not create a library from C++
+-    # object files and a static libstdc++, better avoid it by now
+-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+-                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_shlibpath_var=no
+-    case $host_os in
+-    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+-    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+-      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+-    esac
+-    link_all_deplibs=yes
+-    ;;
+-
+-  sunos4*)
+-    if test &quot;x$host_vendor&quot; = xsequent; then
+-      # Use $CC to link under sequent, because it throws in some extra .o
+-      # files that make .init and .fini sections work.
+-      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+-    else
+-      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+-    fi
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  sysv4)
+-    if test &quot;x$host_vendor&quot; = xsno; then
+-      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_direct=yes # is this really true???
+-    else
+-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+-    fi
+-    runpath_var='LD_RUN_PATH'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  sysv4.3*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_shlibpath_var=no
+-    export_dynamic_flag_spec='-Bexport'
+-    ;;
+-
+-  sysv5*)
+-    no_undefined_flag=' -z text'
+-    # $CC -shared without GNU ld will not create a library from C++
+-    # object files and a static libstdc++, better avoid it by now
+-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+-                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+-    hardcode_libdir_flag_spec=
+-    hardcode_shlibpath_var=no
+-    runpath_var='LD_RUN_PATH'
+-    ;;
+-
+-  uts4*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  dgux*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  sysv4*MP*)
+-    if test -d /usr/nec; then
+-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_shlibpath_var=no
+-      runpath_var=LD_RUN_PATH
+-      hardcode_runpath_var=yes
+-      ld_shlibs=yes
+-    fi
+-    ;;
+-
+-  sysv4.2uw2*)
+-    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_minus_L=no
+-    hardcode_shlibpath_var=no
+-    hardcode_runpath_var=yes
+-    runpath_var=LD_RUN_PATH
+-    ;;
+-
+-  sysv5uw7* | unixware7*)
+-    no_undefined_flag='${wl}-z ${wl}text'
+-    if test &quot;$GCC&quot; = yes; then
+-      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+-    else
+-      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+-    fi
+-    runpath_var='LD_RUN_PATH'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  *)
+-    ld_shlibs=no
+-    ;;
+-  esac
+-fi
+-AC_MSG_RESULT([$ld_shlibs])
+-test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no
+-
+-# Check hardcoding attributes.
+-AC_MSG_CHECKING([how to hardcode library paths into programs])
+-hardcode_action=
+-if test -n &quot;$hardcode_libdir_flag_spec&quot; || \
+-   test -n &quot;$runpath_var&quot;; then
+-
+-  # We can hardcode non-existant directories.
+-  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
+-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+-     # have to relink, otherwise we might link with an installed library
+-     # when we should be linking with a yet-to-be-installed one
+-     ## test &quot;$hardcode_shlibpath_var&quot; != no &amp;&amp;
+-     test &quot;$hardcode_minus_L&quot; != no; then
+-    # Linking always hardcodes the temporary library directory.
+-    hardcode_action=relink
+-  else
+-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+-    hardcode_action=immediate
+-  fi
+-else
+-  # We cannot hardcode anything, or else we can only hardcode existing
+-  # directories.
+-  hardcode_action=unsupported
+-fi
+-AC_MSG_RESULT([$hardcode_action])
+-
+-striplib=
+-old_striplib=
+-AC_MSG_CHECKING([whether stripping libraries is possible])
+-if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+-  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+-  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+-  AC_MSG_RESULT([yes])
+-else
+-  AC_MSG_RESULT([no])
+-fi
+-
+-reload_cmds='$LD$reload_flag -o $output$reload_objs'
+-test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown
+-
+-# PORTME Fill in your ld.so characteristics
+-AC_MSG_CHECKING([dynamic linker characteristics])
+-library_names_spec=
+-libname_spec='lib$name'
+-soname_spec=
+-postinstall_cmds=
+-postuninstall_cmds=
+-finish_cmds=
+-finish_eval=
+-shlibpath_var=
+-shlibpath_overrides_runpath=unknown
+-version_type=none
+-dynamic_linker=&quot;$host_os ld.so&quot;
+-sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+-sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
+-
+-case $host_os in
+-aix3*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix $libname.a'
+-  shlibpath_var=LIBPATH
+-
+-  # AIX has no versioning support, so we append a major version to the name.
+-  soname_spec='${libname}${release}.so$major'
+-  ;;
+-
+-aix4* | aix5*)
+-  version_type=linux
+-  if test &quot;$host_cpu&quot; = ia64; then
+-    # AIX 5 supports IA64
+-    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
+-    shlibpath_var=LD_LIBRARY_PATH
+-  else
+-    # With GCC up to 2.95.x, collect2 would create an import file
+-    # for dependence libraries.  The import file would start with
+-    # the line `#! .'.  This would cause the generated library to
+-    # depend on `.', always an invalid library.  This was fixed in
+-    # development snapshots of GCC prior to 3.0.
+-    case $host_os in
+-      aix4 | aix4.[[01]] | aix4.[[01]].*)
+-        if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+-             echo ' yes '
+-             echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+-          :
+-        else
+-          can_build_shared=no
+-        fi
+-        ;
+-    esac
+-    # AIX (on Power*) has no versioning support, so currently we can
+-    # not hardcode correct soname into executable. Probably we can
+-    # add versioning support to collect2, so additional links can
+-    # be useful in future.
+-    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+-      # instead of lib&lt;name&gt;.a to let people know that these are not
+-      # typical AIX shared libraries.
+-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-    else
+-      # We preserve .a as extension for shared libraries through AIX4.2
+-      # and later when we are not doing run time linking.
+-      library_names_spec='${libname}${release}.a $libname.a'
+-      soname_spec='${libname}${release}.so$major'
+-    fi
+-    shlibpath_var=LIBPATH
+-  fi
+-  ;;
+-
+-amigaos*)
+-  library_names_spec='$libname.ixlibrary $libname.a'
+-  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+-  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;(cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a)&quot;; (cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+-  ;;
+-
+-beos*)
+-  library_names_spec='${libname}.so'
+-  dynamic_linker=&quot;$host_os ld.so&quot;
+-  shlibpath_var=LIBRARY_PATH
+-  ;;
+-
+-bsdi4*)
+-  version_type=linux
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+-  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+-  export_dynamic_flag_spec=-rdynamic
+-  # the default ld.so.conf also contains /usr/contrib/lib and
+-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+-  # libtool to hard-code these into programs
+-  ;;
+-
+-cygwin* | mingw* | pw32*)
+-  version_type=windows
+-  need_version=no
+-  need_lib_prefix=no
+-  case $GCC,$host_os in
+-  yes,cygwin*)
+-    library_names_spec='$libname.dll.a'
+-    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
+-    postinstall_cmds='dlpath=`bash 2&gt;&amp;1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+-      dldir=$destdir/`dirname \$dlpath`~
+-      test -d \$dldir || mkdir -p \$dldir~
+-      $install_prog .libs/$dlname \$dldir/$dlname'
+-    postuninstall_cmds='dldll=`bash 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+-      dlpath=$dir/\$dldll~
+-       $rm \$dlpath'
+-    ;;
+-  yes,mingw*)
+-    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
+-    sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s/;/ /g&quot;`
+-    ;;
+-  yes,pw32*)
+-    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+-    ;;
+-  *)
+-    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
+-    ;;
+-  esac
+-  dynamic_linker='Win32 ld.exe'
+-  # FIXME: first we should search . and the directory the executable is in
+-  shlibpath_var=PATH
+-  ;;
+-
+-darwin* | rhapsody*)
+-  dynamic_linker=&quot;$host_os dyld&quot;
+-  version_type=darwin
+-  need_lib_prefix=no
+-  need_version=no
+-  # FIXME: Relying on posixy $() will cause problems for
+-  #        cross-compilation, but unfortunately the echo tests do not
+-  #        yet detect zsh echo's removal of \ escapes.
+-  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes &amp;&amp; echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes &amp;&amp; echo so || echo dylib) ${libname}.$(test .$module = .yes &amp;&amp; echo so || echo dylib)'
+-  soname_spec='${libname}${release}${major}.$(test .$module = .yes &amp;&amp; echo so || echo dylib)'
+-  shlibpath_overrides_runpath=yes
+-  shlibpath_var=DYLD_LIBRARY_PATH
+-  ;;
+-
+-freebsd1*)
+-  dynamic_linker=no
+-  ;;
+-
+-freebsd*)
+-  objformat=`test -x /usr/bin/objformat &amp;&amp; /usr/bin/objformat || echo aout`
+-  version_type=freebsd-$objformat
+-  case $version_type in
+-    freebsd-elf*)
+-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+-      need_version=no
+-      need_lib_prefix=no
+-      ;;
+-    freebsd-*)
+-      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+-      need_version=yes
+-      ;;
+-  esac
+-  shlibpath_var=LD_LIBRARY_PATH
+-  case $host_os in
+-  freebsd2*)
+-    shlibpath_overrides_runpath=yes
+-    ;;
+-  *)
+-    shlibpath_overrides_runpath=no
+-    hardcode_into_libs=yes
+-    ;;
+-  esac
+-  ;;
+-
+-gnu*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  hardcode_into_libs=yes
+-  ;;
+-
+-hpux9* | hpux10* | hpux11*)
+-  # Give a soname corresponding to the major version so that dld.sl refuses to
+-  # link against other versions.
+-  dynamic_linker=&quot;$host_os dld.sl&quot;
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  shlibpath_var=SHLIB_PATH
+-  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+-  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+-  soname_spec='${libname}${release}.sl$major'
+-  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+-  postinstall_cmds='chmod 555 $lib'
+-  ;;
+-
+-irix5* | irix6*)
+-  version_type=irix
+-  need_lib_prefix=no
+-  need_version=no
+-  soname_spec='${libname}${release}.so$major'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
+-  case $host_os in
+-  irix5*)
+-    libsuff= shlibsuff=
+-    ;;
+-  *)
+-    case $LD in # libtool.m4 will add one of these switches to LD
+-    *-32|*&quot;-32 &quot;) libsuff= shlibsuff= libmagic=32-bit;;
+-    *-n32|*&quot;-n32 &quot;) libsuff=32 shlibsuff=N32 libmagic=N32;;
+-    *-64|*&quot;-64 &quot;) libsuff=64 shlibsuff=64 libmagic=64-bit;;
+-    *) libsuff= shlibsuff= libmagic=never-match;;
+-    esac
+-    ;;
+-  esac
+-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+-  shlibpath_overrides_runpath=no
+-  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+-  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+-  ;;
+-
+-# No shared lib support for Linux oldld, aout, or coff.
+-linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
+-  dynamic_linker=no
+-  ;;
+-
+-# This must be Linux ELF.
+-linux-gnu*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=no
+-  # This implies no fast_install, which is unacceptable.
+-  # Some rework will be needed to allow for fast_install
+-  # before this can be enabled.
+-  hardcode_into_libs=yes
+-
+-  # We used to test for /lib/ld.so.1 and disable shared libraries on
+-  # powerpc, because MkLinux only supported shared libraries with the
+-  # GNU dynamic linker.  Since this was broken with cross compilers,
+-  # most powerpc-linux boxes support dynamic linking these days and
+-  # people can always --disable-shared, the test was removed, and we
+-  # assume the GNU/Linux dynamic linker is in use.
+-  dynamic_linker='GNU/Linux ld.so'
+-  ;;
+-
+-netbsd*)
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+-    dynamic_linker='NetBSD (a.out) ld.so'
+-  else
+-    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
+-    soname_spec='${libname}${release}.so$major'
+-    dynamic_linker='NetBSD ld.elf_so'
+-  fi
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  hardcode_into_libs=yes
+-  ;;
+-
+-newsos6)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  ;;
+-
+-openbsd*)
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-    case &quot;$host_os&quot; in
+-    openbsd2.[[89]] | openbsd2.[[89]].*)
+-      shlibpath_overrides_runpath=no
+-      ;;
+-    *)
+-      shlibpath_overrides_runpath=yes
+-      ;;
+-    esac
+-  else
+-    shlibpath_overrides_runpath=yes
+-  fi
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
+-
+-os2*)
+-  libname_spec='$name'
+-  need_lib_prefix=no
+-  library_names_spec='$libname.dll $libname.a'
+-  dynamic_linker='OS/2 ld.exe'
+-  shlibpath_var=LIBPATH
+-  ;;
+-
+-osf3* | osf4* | osf5*)
+-  version_type=osf
+-  need_version=no
+-  soname_spec='${libname}${release}.so'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+-  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+-  ;;
+-
+-sco3.2v5*)
+-  version_type=osf
+-  soname_spec='${libname}${release}.so$major'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
+-
+-solaris*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  hardcode_into_libs=yes
+-  # ldd complains unless libraries are executable
+-  postinstall_cmds='chmod +x $lib'
+-  ;;
+-
+-sunos4*)
+-  version_type=sunos
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  if test &quot;$with_gnu_ld&quot; = yes; then
+-    need_lib_prefix=no
+-  fi
+-  need_version=yes
+-  ;;
+-
+-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  case $host_vendor in
+-    sni)
+-      shlibpath_overrides_runpath=no
+-      ;;
+-    motorola)
+-      need_lib_prefix=no
+-      need_version=no
+-      shlibpath_overrides_runpath=no
+-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+-      ;;
+-  esac
+-  ;;
+-
+-uts4*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
+-
+-dgux*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
+-
+-sysv4*MP*)
+-  if test -d /usr/nec ;then
+-    version_type=linux
+-    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
+-    soname_spec='$libname.so.$major'
+-    shlibpath_var=LD_LIBRARY_PATH
+-  fi
+-  ;;
+-
+-*)
+-  dynamic_linker=no
+-  ;;
+-esac
+-AC_MSG_RESULT([$dynamic_linker])
+-test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
+-
+-# Report the final consequences.
+-AC_MSG_CHECKING([if libtool supports shared libraries])
+-AC_MSG_RESULT([$can_build_shared])
+-
+-AC_MSG_CHECKING([whether to build shared libraries])
+-test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
+-
+-# On AIX, shared libraries and static libraries use the same namespace, and
+-# are all built from PIC.
+-case &quot;$host_os&quot; in
+-aix3*)
+-  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+-  if test -n &quot;$RANLIB&quot;; then
+-    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+-    postinstall_cmds='$RANLIB $lib'
+-  fi
+-  ;;
+-
+-aix4*)
+-  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+-    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+-  fi
+-  ;;
+-esac
+-AC_MSG_RESULT([$enable_shared])
+-
+-AC_MSG_CHECKING([whether to build static libraries])
+-# Make sure either enable_shared or enable_static is yes.
+-test &quot;$enable_shared&quot; = yes || enable_static=yes
+-AC_MSG_RESULT([$enable_static])
+-
+-if test &quot;$hardcode_action&quot; = relink; then
+-  # Fast installation is not supported
+-  enable_fast_install=no
+-elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+-     test &quot;$enable_shared&quot; = no; then
+-  # Fast installation is not necessary
+-  enable_fast_install=needless
+-fi
+-
+-variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+-if test &quot;$GCC&quot; = yes; then
+-  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+-fi
+-
+-AC_LIBTOOL_DLOPEN_SELF
+-
+-if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+-  case $archive_cmds in
+-  *'~'*)
+-    # FIXME: we may have to deal with multi-command sequences.
+-    ;;
+-  '$CC '*)
+-    # Test whether the compiler implicitly links with -lc since on some
+-    # systems, -lgcc has to come before -lc. If gcc already passes -lc
+-    # to ld, don't add -lc before -lgcc.
+-    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+-    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
+-    [$rm conftest*
+-    echo 'static int dummy;' &gt; conftest.$ac_ext
+-
+-    if AC_TRY_EVAL(ac_compile); then
+-      soname=conftest
+-      lib=conftest
+-      libobjs=conftest.$ac_objext
+-      deplibs=
+-      wl=$lt_cv_prog_cc_wl
+-      compiler_flags=-v
+-      linker_flags=-v
+-      verstring=
+-      output_objdir=.
+-      libname=conftest
+-      save_allow_undefined_flag=$allow_undefined_flag
+-      allow_undefined_flag=
+-      if AC_TRY_EVAL(archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1)
+-      then
+-        lt_cv_archive_cmds_need_lc=no
+-      else
+-        lt_cv_archive_cmds_need_lc=yes
+-      fi
+-      allow_undefined_flag=$save_allow_undefined_flag
+-    else
+-      cat conftest.err 1&gt;&amp;5
+-    fi])
+-    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
+-    ;;
+-  esac
+-fi
+-need_lc=${lt_cv_archive_cmds_need_lc-yes}
+-
+-# The second clause should only fire when bootstrapping the
+-# libtool distribution, otherwise you forgot to ship ltmain.sh
+-# with your package, and you will get complaints that there are
+-# no rules to generate ltmain.sh.
+-if test -f &quot;$ltmain&quot;; then
+-  :
+-else
+-  # If there is no Makefile yet, we rely on a make rule to execute
+-  # `config.status --recheck' to rerun these tests and create the
+-  # libtool script then.
+-  test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+-fi
+-
+-if test -f &quot;$ltmain&quot;; then
+-  trap &quot;$rm \&quot;${ofile}T\&quot;; exit 1&quot; 1 2 15
+-  $rm -f &quot;${ofile}T&quot;
+-
+-  echo creating $ofile
+-
+-  # Now quote all the things that may contain metacharacters while being
+-  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+-  # variables and quote the copies for generation of the libtool script.
+-  for var in echo old_CC old_CFLAGS \
+-    AR AR_FLAGS CC LD LN_S NM SHELL \
+-    reload_flag reload_cmds wl \
+-    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+-    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
+-    library_names_spec soname_spec \
+-    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+-    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
+-    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
+-    old_striplib striplib file_magic_cmd export_symbols_cmds \
+-    deplibs_check_method allow_undefined_flag no_undefined_flag \
+-    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
+-    global_symbol_to_c_name_address \
+-    hardcode_libdir_flag_spec hardcode_libdir_separator  \
+-    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+-    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+-
+-    case $var in
+-    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+-    old_postinstall_cmds | old_postuninstall_cmds | \
+-    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+-    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
+-    postinstall_cmds | postuninstall_cmds | \
+-    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+-      # Double-quote double-evaled strings.
+-      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+-      ;;
+-    *)
+-      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+-      ;;
+-    esac
+-  done
+-
+-  cat &lt;&lt;__EOF__ &gt; &quot;${ofile}T&quot;
+-#! $SHELL
+-
+-# `$echo &quot;$ofile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+-#
+-# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+-# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+-#
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2 of the License, or
+-# (at your option) any later version.
+-#
+-# This program is distributed in the hope that it will be useful, but
+-# WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+-# General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-#
+-# As a special exception to the GNU General Public License, if you
+-# distribute this file as part of a program that contains a
+-# configuration script generated by Autoconf, you may include it under
+-# the same distribution terms that you use for the rest of that program.
+-
+-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+-Xsed=&quot;sed -e s/^X//&quot;
+-
+-# The HP-UX ksh and POSIX shell print the target directory to stdout
+-# if CDPATH is set.
+-if test &quot;X\${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi
+-
+-# ### BEGIN LIBTOOL CONFIG
+-
+-# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+-
+-# Shell to use when invoking shell scripts.
+-SHELL=$lt_SHELL
+-
+-# Whether or not to build shared libraries.
+-build_libtool_libs=$enable_shared
+-
+-# Whether or not to build static libraries.
+-build_old_libs=$enable_static
+-
+-# Whether or not to add -lc for building shared libraries.
+-build_libtool_need_lc=$need_lc
+-
+-# Whether or not to optimize for fast installation.
+-fast_install=$enable_fast_install
+-
+-# The host system.
+-host_alias=$host_alias
+-host=$host
+-
+-# An echo program that does not interpret backslashes.
+-echo=$lt_echo
+-
+-# The archiver.
+-AR=$lt_AR
+-AR_FLAGS=$lt_AR_FLAGS
+-
+-# The default C compiler.
+-CC=$lt_CC
+-
+-# Is the compiler the GNU C compiler?
+-with_gcc=$GCC
+-
+-# The linker used to build libraries.
+-LD=$lt_LD
+-
+-# Whether we need hard or soft links.
+-LN_S=$lt_LN_S
+-
+-# A BSD-compatible nm program.
+-NM=$lt_NM
+-
+-# A symbol stripping program
+-STRIP=$STRIP
+-
+-# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+-MAGIC_CMD=$MAGIC_CMD
+-
+-# Used on cygwin: DLL creation program.
+-DLLTOOL=&quot;$DLLTOOL&quot;
+-
+-# Used on cygwin: object dumper.
+-OBJDUMP=&quot;$OBJDUMP&quot;
+-
+-# Used on cygwin: assembler.
+-AS=&quot;$AS&quot;
+-
+-# The name of the directory that contains temporary libtool files.
+-objdir=$objdir
+-
+-# How to create reloadable object files.
+-reload_flag=$lt_reload_flag
+-reload_cmds=$lt_reload_cmds
+-
+-# How to pass a linker flag through the compiler.
+-wl=$lt_wl
+-
+-# Object file suffix (normally &quot;o&quot;).
+-objext=&quot;$ac_objext&quot;
+-
+-# Old archive suffix (normally &quot;a&quot;).
+-libext=&quot;$libext&quot;
+-
+-# Executable file suffix (normally &quot;&quot;).
+-exeext=&quot;$exeext&quot;
+-
+-# Additional compiler flags for building library objects.
+-pic_flag=$lt_pic_flag
+-pic_mode=$pic_mode
+-
+-# Does compiler simultaneously support -c and -o options?
+-compiler_c_o=$lt_compiler_c_o
+-
+-# Can we write directly to a .lo ?
+-compiler_o_lo=$lt_compiler_o_lo
+-
+-# Must we lock files when doing compilation ?
+-need_locks=$lt_need_locks
+-
+-# Do we need the lib prefix for modules?
+-need_lib_prefix=$need_lib_prefix
+-
+-# Do we need a version for libraries?
+-need_version=$need_version
+-
+-# Whether dlopen is supported.
+-dlopen_support=$enable_dlopen
+-
+-# Whether dlopen of programs is supported.
+-dlopen_self=$enable_dlopen_self
+-
+-# Whether dlopen of statically linked programs is supported.
+-dlopen_self_static=$enable_dlopen_self_static
+-
+-# Compiler flag to prevent dynamic linking.
+-link_static_flag=$lt_link_static_flag
+-
+-# Compiler flag to turn off builtin functions.
+-no_builtin_flag=$lt_no_builtin_flag
+-
+-# Compiler flag to allow reflexive dlopens.
+-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+-
+-# Compiler flag to generate shared objects directly from archives.
+-whole_archive_flag_spec=$lt_whole_archive_flag_spec
+-
+-# Compiler flag to generate thread-safe objects.
+-thread_safe_flag_spec=$lt_thread_safe_flag_spec
+-
+-# Library versioning type.
+-version_type=$version_type
+-
+-# Format of library name prefix.
+-libname_spec=$lt_libname_spec
+-
+-# List of archive names.  First name is the real one, the rest are links.
+-# The last name is the one that the linker finds with -lNAME.
+-library_names_spec=$lt_library_names_spec
+-
+-# The coded name of the library, if different from the real name.
+-soname_spec=$lt_soname_spec
+-
+-# Commands used to build and install an old-style archive.
+-RANLIB=$lt_RANLIB
+-old_archive_cmds=$lt_old_archive_cmds
+-old_postinstall_cmds=$lt_old_postinstall_cmds
+-old_postuninstall_cmds=$lt_old_postuninstall_cmds
+-
+-# Create an old-style archive from a shared archive.
+-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+-
+-# Create a temporary old-style archive to link instead of a shared archive.
+-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+-
+-# Commands used to build and install a shared archive.
+-archive_cmds=$lt_archive_cmds
+-archive_expsym_cmds=$lt_archive_expsym_cmds
+-postinstall_cmds=$lt_postinstall_cmds
+-postuninstall_cmds=$lt_postuninstall_cmds
+-
+-# Commands to strip libraries.
+-old_striplib=$lt_old_striplib
+-striplib=$lt_striplib
+-
+-# Method to check whether dependent libraries are shared objects.
+-deplibs_check_method=$lt_deplibs_check_method
+-
+-# Command to use when deplibs_check_method == file_magic.
+-file_magic_cmd=$lt_file_magic_cmd
+-
+-# Flag that allows shared libraries with undefined symbols to be built.
+-allow_undefined_flag=$lt_allow_undefined_flag
+-
+-# Flag that forces no undefined symbols.
+-no_undefined_flag=$lt_no_undefined_flag
+-
+-# Commands used to finish a libtool library installation in a directory.
+-finish_cmds=$lt_finish_cmds
+-
+-# Same as above, but a single script fragment to be evaled but not shown.
+-finish_eval=$lt_finish_eval
+-
+-# Take the output of nm and produce a listing of raw symbols and C names.
+-global_symbol_pipe=$lt_global_symbol_pipe
+-
+-# Transform the output of nm in a proper C declaration
+-global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
+-
+-# Transform the output of nm in a C name address pair
+-global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
+-
+-# This is the shared library runtime path variable.
+-runpath_var=$runpath_var
+-
+-# This is the shared library path variable.
+-shlibpath_var=$shlibpath_var
+-
+-# Is shlibpath searched before the hard-coded library search path?
+-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+-
+-# How to hardcode a shared library path into an executable.
+-hardcode_action=$hardcode_action
+-
+-# Whether we should hardcode library paths into libraries.
+-hardcode_into_libs=$hardcode_into_libs
+-
+-# Flag to hardcode \$libdir into a binary during linking.
+-# This must work even if \$libdir does not exist.
+-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+-
+-# Whether we need a single -rpath flag with a separated argument.
+-hardcode_libdir_separator=$lt_hardcode_libdir_separator
+-
+-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+-# resulting binary.
+-hardcode_direct=$hardcode_direct
+-
+-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+-# resulting binary.
+-hardcode_minus_L=$hardcode_minus_L
+-
+-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+-# the resulting binary.
+-hardcode_shlibpath_var=$hardcode_shlibpath_var
+-
+-# Variables whose values should be saved in libtool wrapper scripts and
+-# restored at relink time.
+-variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
+-
+-# Whether libtool must link a program against all its dependency libraries.
+-link_all_deplibs=$link_all_deplibs
+-
+-# Compile-time system search path for libraries
+-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+-
+-# Run-time system search path for libraries
+-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+-
+-# Fix the shell variable \$srcfile for the compiler.
+-fix_srcfile_path=&quot;$fix_srcfile_path&quot;
+-
+-# Set to yes if exported symbols are required.
+-always_export_symbols=$always_export_symbols
+-
+-# The commands to list exported symbols.
+-export_symbols_cmds=$lt_export_symbols_cmds
+-
+-# The commands to extract the exported symbol list from a shared archive.
+-extract_expsyms_cmds=$lt_extract_expsyms_cmds
+-
+-# Symbols that should not be listed in the preloaded symbols.
+-exclude_expsyms=$lt_exclude_expsyms
+-
+-# Symbols that must always be exported.
+-include_expsyms=$lt_include_expsyms
+-
+-# ### END LIBTOOL CONFIG
+-
+-__EOF__
+-
+-  case $host_os in
+-  aix3*)
+-    cat &lt;&lt;\EOF &gt;&gt; &quot;${ofile}T&quot;
+-
+-# AIX sometimes has problems with the GCC collect2 program.  For some
+-# reason, if we set the COLLECT_NAMES environment variable, the problems
+-# vanish in a puff of smoke.
+-if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+-  COLLECT_NAMES=
+-  export COLLECT_NAMES
+-fi
+-EOF
+-    ;;
+-  esac
+-
+-  case $host_os in
+-  cygwin* | mingw* | pw32* | os2*)
+-    cat &lt;&lt;'EOF' &gt;&gt; &quot;${ofile}T&quot;
+-      # This is a source program that is used to create dlls on Windows
+-      # Don't remove nor modify the starting and closing comments
+-# /* ltdll.c starts here */
+-# #define WIN32_LEAN_AND_MEAN
+-# #include &lt;windows.h&gt;
+-# #undef WIN32_LEAN_AND_MEAN
+-# #include &lt;stdio.h&gt;
+-#
+-# #ifndef __CYGWIN__
+-# #  ifdef __CYGWIN32__
+-# #    define __CYGWIN__ __CYGWIN32__
+-# #  endif
+-# #endif
+-#
+-# #ifdef __cplusplus
+-# extern &quot;C&quot; {
+-# #endif
+-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+-# #ifdef __cplusplus
+-# }
+-# #endif
+-#
+-# #ifdef __CYGWIN__
+-# #include &lt;cygwin/cygwin_dll.h&gt;
+-# DECLARE_CYGWIN_DLL( DllMain );
+-# #endif
+-# HINSTANCE __hDllInstance_base;
+-#
+-# BOOL APIENTRY
+-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+-# {
+-#   __hDllInstance_base = hInst;
+-#   return TRUE;
+-# }
+-# /* ltdll.c ends here */
+-        # This is a source program that is used to create import libraries
+-        # on Windows for dlls which lack them. Don't remove nor modify the
+-        # starting and closing comments
+-# /* impgen.c starts here */
+-# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
+-#
+-#  This file is part of GNU libtool.
+-#
+-#  This program is free software; you can redistribute it and/or modify
+-#  it under the terms of the GNU General Public License as published by
+-#  the Free Software Foundation; either version 2 of the License, or
+-#  (at your option) any later version.
+-#
+-#  This program is distributed in the hope that it will be useful,
+-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-#  GNU General Public License for more details.
+-#
+-#  You should have received a copy of the GNU General Public License
+-#  along with this program; if not, write to the Free Software
+-#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-#  */
+-#
+-# #include &lt;stdio.h&gt;                /* for printf() */
+-# #include &lt;unistd.h&gt;                /* for open(), lseek(), read() */
+-# #include &lt;fcntl.h&gt;                /* for O_RDONLY, O_BINARY */
+-# #include &lt;string.h&gt;                /* for strdup() */
+-#
+-# /* O_BINARY isn't required (or even defined sometimes) under Unix */
+-# #ifndef O_BINARY
+-# #define O_BINARY 0
+-# #endif
+-#
+-# static unsigned int
+-# pe_get16 (fd, offset)
+-#      int fd;
+-#      int offset;
+-# {
+-#   unsigned char b[2];
+-#   lseek (fd, offset, SEEK_SET);
+-#   read (fd, b, 2);
+-#   return b[0] + (b[1]&lt;&lt;8);
+-# }
+-#
+-# static unsigned int
+-# pe_get32 (fd, offset)
+-#     int fd;
+-#     int offset;
+-# {
+-#   unsigned char b[4];
+-#   lseek (fd, offset, SEEK_SET);
+-#   read (fd, b, 4);
+-#   return b[0] + (b[1]&lt;&lt;8) + (b[2]&lt;&lt;16) + (b[3]&lt;&lt;24);
+-# }
+-#
+-# static unsigned int
+-# pe_as32 (ptr)
+-#      void *ptr;
+-# {
+-#   unsigned char *b = ptr;
+-#   return b[0] + (b[1]&lt;&lt;8) + (b[2]&lt;&lt;16) + (b[3]&lt;&lt;24);
+-# }
+-#
+-# int
+-# main (argc, argv)
+-#     int argc;
+-#     char *argv[];
+-# {
+-#     int dll;
+-#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
+-#     unsigned long export_rva, export_size, nsections, secptr, expptr;
+-#     unsigned long name_rvas, nexp;
+-#     unsigned char *expdata, *erva;
+-#     char *filename, *dll_name;
+-#
+-#     filename = argv[1];
+-#
+-#     dll = open(filename, O_RDONLY|O_BINARY);
+-#     if (dll &lt; 1)
+-#         return 1;
+-#
+-#     dll_name = filename;
+-#
+-#     for (i=0; filename[i]; i++)
+-#         if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
+-#             dll_name = filename + i +1;
+-#
+-#     pe_header_offset = pe_get32 (dll, 0x3c);
+-#     opthdr_ofs = pe_header_offset + 4 + 20;
+-#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
+-#
+-#     if (num_entries &lt; 1) /* no exports */
+-#         return 1;
+-#
+-#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
+-#     export_size = pe_get32 (dll, opthdr_ofs + 100);
+-#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
+-#     secptr = (pe_header_offset + 4 + 20 +
+-#               pe_get16 (dll, pe_header_offset + 4 + 16));
+-#
+-#     expptr = 0;
+-#     for (i = 0; i &lt; nsections; i++)
+-#     {
+-#         char sname[8];
+-#         unsigned long secptr1 = secptr + 40 * i;
+-#         unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
+-#         unsigned long vsize = pe_get32 (dll, secptr1 + 16);
+-#         unsigned long fptr = pe_get32 (dll, secptr1 + 20);
+-#         lseek(dll, secptr1, SEEK_SET);
+-#         read(dll, sname, 8);
+-#         if (vaddr &lt;= export_rva &amp;&amp; vaddr+vsize &gt; export_rva)
+-#         {
+-#             expptr = fptr + (export_rva - vaddr);
+-#             if (export_rva + export_size &gt; vaddr + vsize)
+-#                 export_size = vsize - (export_rva - vaddr);
+-#             break;
+-#         }
+-#     }
+-#
+-#     expdata = (unsigned char*)malloc(export_size);
+-#     lseek (dll, expptr, SEEK_SET);
+-#     read (dll, expdata, export_size);
+-#     erva = expdata - export_rva;
+-#
+-#     nexp = pe_as32 (expdata+24);
+-#     name_rvas = pe_as32 (expdata+32);
+-#
+-#     printf (&quot;EXPORTS\n&quot;);
+-#     for (i = 0; i&lt;nexp; i++)
+-#     {
+-#         unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
+-#         printf (&quot;\t%s @ %ld ;\n&quot;, erva+name_rva, 1+ i);
+-#     }
+-#
+-#     return 0;
+-# }
+-# /* impgen.c ends here */
+-
+-EOF
+-    ;;
+-  esac
+-
+-  # We use sed instead of cat because bash on DJGPP gets confused if
+-  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+-  # text mode, it properly converts lines to CR/LF.  This bash problem
+-  # is reportedly fixed, but why not run on old versions too?
+-  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;${ofile}T&quot; || (rm -f &quot;${ofile}T&quot;; exit 1)
+-
+-  mv -f &quot;${ofile}T&quot; &quot;$ofile&quot; || \
+-    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;${ofile}T&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;${ofile}T&quot;)
+-  chmod +x &quot;$ofile&quot;
+-fi
+-
+-])# _LT_AC_LTCONFIG_HACK
+-
+-# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
+-AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
+-
+-# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
+-AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
+-
+-# AC_ENABLE_SHARED - implement the --enable-shared flag
+-# Usage: AC_ENABLE_SHARED[(DEFAULT)]
+-#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+-#   `yes'.
+-AC_DEFUN([AC_ENABLE_SHARED],
+-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
+-AC_ARG_ENABLE(shared,
+-changequote(&lt;&lt;, &gt;&gt;)dnl
+-&lt;&lt;  --enable-shared[=PKGS]  build shared libraries [default=&gt;&gt;AC_ENABLE_SHARED_DEFAULT],
+-changequote([, ])dnl
+-[p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_shared=yes ;;
+-no) enable_shared=no ;;
+-*)
+-  enable_shared=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_shared=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac],
+-enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
+-])
+-
+-# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
+-AC_DEFUN([AC_DISABLE_SHARED],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-AC_ENABLE_SHARED(no)])
+-
+-# AC_ENABLE_STATIC - implement the --enable-static flag
+-# Usage: AC_ENABLE_STATIC[(DEFAULT)]
+-#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+-#   `yes'.
+-AC_DEFUN([AC_ENABLE_STATIC],
+-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
+-AC_ARG_ENABLE(static,
+-changequote(&lt;&lt;, &gt;&gt;)dnl
+-&lt;&lt;  --enable-static[=PKGS]  build static libraries [default=&gt;&gt;AC_ENABLE_STATIC_DEFAULT],
+-changequote([, ])dnl
+-[p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_static=yes ;;
+-no) enable_static=no ;;
+-*)
+-  enable_static=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_static=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac],
+-enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
+-])
+-
+-# AC_DISABLE_STATIC - set the default static flag to --disable-static
+-AC_DEFUN([AC_DISABLE_STATIC],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-AC_ENABLE_STATIC(no)])
+-
+-
+-# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
+-# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
+-#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+-#   `yes'.
+-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
+-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
+-AC_ARG_ENABLE(fast-install,
+-changequote(&lt;&lt;, &gt;&gt;)dnl
+-&lt;&lt;  --enable-fast-install[=PKGS]  optimize for fast installation [default=&gt;&gt;AC_ENABLE_FAST_INSTALL_DEFAULT],
+-changequote([, ])dnl
+-[p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_fast_install=yes ;;
+-no) enable_fast_install=no ;;
+-*)
+-  enable_fast_install=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_fast_install=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac],
+-enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
+-])
+-
+-# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
+-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-AC_ENABLE_FAST_INSTALL(no)])
+-
+-# AC_LIBTOOL_PICMODE - implement the --with-pic flag
+-# Usage: AC_LIBTOOL_PICMODE[(MODE)]
+-#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
+-#   `both'.
+-AC_DEFUN([AC_LIBTOOL_PICMODE],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-pic_mode=ifelse($#,1,$1,default)])
+-
+-
+-# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
+-AC_DEFUN([AC_PATH_TOOL_PREFIX],
+-[AC_MSG_CHECKING([for $1])
+-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+-[case $MAGIC_CMD in
+-  /*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+-  ;;
+-  ?:/*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a dos path.
+-  ;;
+-  *)
+-  ac_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+-  IFS=&quot;${IFS=   }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;:&quot;
+-dnl $ac_dummy forces splitting on constant user-supplied paths.
+-dnl POSIX.2 word splitting is done only on the output of word expansions,
+-dnl not every word.  This closes a longstanding sh security hole.
+-  ac_dummy=&quot;ifelse([$2], , $PATH, [$2])&quot;
+-  for ac_dir in $ac_dummy; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/$1; then
+-      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/$1&quot;
+-      if test -n &quot;$file_magic_test_file&quot;; then
+-        case $deplibs_check_method in
+-        &quot;file_magic &quot;*)
+-          file_magic_regex=&quot;`expr \&quot;$deplibs_check_method\&quot; : \&quot;file_magic \(.*\)\&quot;`&quot;
+-          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+-            egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
+-            :
+-          else
+-            cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: the command libtool uses to detect shared libraries,
+-*** $file_magic_cmd, produces output that libtool cannot recognize.
+-*** The result is that libtool may fail to recognize shared libraries
+-*** as such.  This will affect the creation of libtool libraries that
+-*** depend on shared libraries, but programs linked with such libtool
+-*** libraries will work regardless of this problem.  Nevertheless, you
+-*** may want to report the problem to your system manager and/or to
+-*** bug-libtool@gnu.org
+-
+-EOF
+-          fi ;;
+-        esac
+-      fi
+-      break
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  MAGIC_CMD=&quot;$ac_save_MAGIC_CMD&quot;
+-  ;;
+-esac])
+-MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-if test -n &quot;$MAGIC_CMD&quot;; then
+-  AC_MSG_RESULT($MAGIC_CMD)
+-else
+-  AC_MSG_RESULT(no)
+-fi
+-])
+-
+-
+-# AC_PATH_MAGIC - find a file program which can recognise a shared library
+-AC_DEFUN([AC_PATH_MAGIC],
+-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
+-AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
+-if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
+-  if test -n &quot;$ac_tool_prefix&quot;; then
+-    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
+-  else
+-    MAGIC_CMD=:
+-  fi
+-fi
+-])
+-
+-
+-# AC_PROG_LD - find the path to the GNU or non-GNU linker
+-AC_DEFUN([AC_PROG_LD],
+-[AC_ARG_WITH(gnu-ld,
+-[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
+-test &quot;$withval&quot; = no || with_gnu_ld=yes, with_gnu_ld=no)
+-AC_REQUIRE([AC_PROG_CC])dnl
+-AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+-AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
+-ac_prog=ld
+-if test &quot;$GCC&quot; = yes; then
+-  # Check if gcc -print-prog-name=ld gives a path.
+-  AC_MSG_CHECKING([for ld used by GCC])
+-  case $host in
+-  *-*-mingw*)
+-    # gcc leaves a trailing carriage return which upsets mingw
+-    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+-  *)
+-    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+-  esac
+-  case $ac_prog in
+-    # Accept absolute paths.
+-    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
+-      re_direlt='/[[^/]][[^/]]*/\.\./'
+-      # Canonicalize the path of ld
+-      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+-      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+-        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+-      done
+-      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+-      ;;
+-  &quot;&quot;)
+-    # If it fails, then pretend we aren't using GCC.
+-    ac_prog=ld
+-    ;;
+-  *)
+-    # If it is relative, then search for the first ld in PATH.
+-    with_gnu_ld=unknown
+-    ;;
+-  esac
+-elif test &quot;$with_gnu_ld&quot; = yes; then
+-  AC_MSG_CHECKING([for GNU ld])
+-else
+-  AC_MSG_CHECKING([for non-GNU ld])
+-fi
+-AC_CACHE_VAL(lt_cv_path_LD,
+-[if test -z &quot;$LD&quot;; then
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+-  for ac_dir in $PATH; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+-      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+-      # Check to see if the program is GNU ld.  I'd rather use --version,
+-      # but apparently some GNU ld's only accept -v.
+-      # Break only if it was the GNU/non-GNU ld that we prefer.
+-      if &quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+-      else
+-        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-else
+-  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+-fi])
+-LD=&quot;$lt_cv_path_LD&quot;
+-if test -n &quot;$LD&quot;; then
+-  AC_MSG_RESULT($LD)
+-else
+-  AC_MSG_RESULT(no)
+-fi
+-test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
+-AC_PROG_LD_GNU
+-])
+-
+-# AC_PROG_LD_GNU -
+-AC_DEFUN([AC_PROG_LD_GNU],
+-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+-if $LD -v 2&gt;&amp;1 &lt;/dev/null | egrep '(GNU|with BFD)' 1&gt;&amp;5; then
+-  lt_cv_prog_gnu_ld=yes
+-else
+-  lt_cv_prog_gnu_ld=no
+-fi])
+-with_gnu_ld=$lt_cv_prog_gnu_ld
+-])
+-
+-# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
+-#   -- PORTME Some linkers may need a different reload flag.
+-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
+-[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
+-[lt_cv_ld_reload_flag='-r'])
+-reload_flag=$lt_cv_ld_reload_flag
+-test -n &quot;$reload_flag&quot; &amp;&amp; reload_flag=&quot; $reload_flag&quot;
+-])
+-
+-# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
+-#  -- PORTME fill in with the dynamic library characteristics
+-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
+-[AC_CACHE_CHECK([how to recognise dependant libraries],
+-lt_cv_deplibs_check_method,
+-[lt_cv_file_magic_cmd='$MAGIC_CMD'
+-lt_cv_file_magic_test_file=
+-lt_cv_deplibs_check_method='unknown'
+-# Need to set the preceding variable on all platforms that support
+-# interlibrary dependencies.
+-# 'none' -- dependencies not supported.
+-# `unknown' -- same as none, but documents that we really don't know.
+-# 'pass_all' -- all dependencies passed with no checks.
+-# 'test_compile' -- check by making test program.
+-# 'file_magic [[regex]]' -- check by looking for files in library path
+-# which responds to the $file_magic_cmd with a given egrep regex.
+-# If you have `file' or equivalent on your system and you're not sure
+-# whether `pass_all' will *always* work, you probably want this one.
+-
+-case $host_os in
+-aix4* | aix5*)
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-beos*)
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-bsdi4*)
+-  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+-  lt_cv_file_magic_cmd='/usr/bin/file -L'
+-  lt_cv_file_magic_test_file=/shlib/libc.so
+-  ;;
+-
+-cygwin* | mingw* | pw32*)
+-  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+-  lt_cv_file_magic_cmd='$OBJDUMP -f'
+-  ;;
+-
+-darwin* | rhapsody*)
+-  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+-  lt_cv_file_magic_cmd='/usr/bin/file -L'
+-  case &quot;$host_os&quot; in
+-  rhapsody* | darwin1.[[012]])
+-    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+-    ;;
+-  *) # Darwin 1.3 on
+-    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
+-    ;;
+-  esac
+-  ;;
+-
+-freebsd*)
+-  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+-    case $host_cpu in
+-    i*86 )
+-      # Not sure whether the presence of OpenBSD here was a mistake.
+-      # Let's accept both of them until this is cleared up.
+-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
+-      lt_cv_file_magic_cmd=/usr/bin/file
+-      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+-      ;;
+-    esac
+-  else
+-    lt_cv_deplibs_check_method=pass_all
+-  fi
+-  ;;
+-
+-gnu*)
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-hpux10.20*|hpux11*)
+-  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+-  lt_cv_file_magic_cmd=/usr/bin/file
+-  lt_cv_file_magic_test_file=/usr/lib/libc.sl
+-  ;;
+-
+-irix5* | irix6*)
+-  case $host_os in
+-  irix5*)
+-    # this will be overridden with pass_all, but let us keep it just in case
+-    lt_cv_deplibs_check_method=&quot;file_magic ELF 32-bit MSB dynamic lib MIPS - version 1&quot;
+-    ;;
+-  *)
+-    case $LD in
+-    *-32|*&quot;-32 &quot;) libmagic=32-bit;;
+-    *-n32|*&quot;-n32 &quot;) libmagic=N32;;
+-    *-64|*&quot;-64 &quot;) libmagic=64-bit;;
+-    *) libmagic=never-match;;
+-    esac
+-    # this will be overridden with pass_all, but let us keep it just in case
+-    lt_cv_deplibs_check_method=&quot;file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1&quot;
+-    ;;
+-  esac
+-  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-# This must be Linux ELF.
+-linux-gnu*)
+-  case $host_cpu in
+-  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
+-    lt_cv_deplibs_check_method=pass_all ;;
+-  *)
+-    # glibc up to 2.1.1 does not perform some relocations on ARM
+-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
+-  esac
+-  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+-  ;;
+-
+-netbsd*)
+-  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+-    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
+-  else
+-    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
+-  fi
+-  ;;
+-
+-newos6*)
+-  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+-  lt_cv_file_magic_cmd=/usr/bin/file
+-  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+-  ;;
+-
+-openbsd*)
+-  lt_cv_file_magic_cmd=/usr/bin/file
+-  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+-  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
+-  else
+-    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+-  fi
+-  ;;
+-
+-osf3* | osf4* | osf5*)
+-  # this will be overridden with pass_all, but let us keep it just in case
+-  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
+-  lt_cv_file_magic_test_file=/shlib/libc.so
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-sco3.2v5*)
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-solaris*)
+-  lt_cv_deplibs_check_method=pass_all
+-  lt_cv_file_magic_test_file=/lib/libc.so
+-  ;;
+-
+-sysv5uw[[78]]* | sysv4*uw2*)
+-  lt_cv_deplibs_check_method=pass_all
+-  ;;
+-
+-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+-  case $host_vendor in
+-  motorola)
+-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+-    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+-    ;;
+-  ncr)
+-    lt_cv_deplibs_check_method=pass_all
+-    ;;
+-  sequent)
+-    lt_cv_file_magic_cmd='/bin/file'
+-    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+-    ;;
+-  sni)
+-    lt_cv_file_magic_cmd='/bin/file'
+-    lt_cv_deplibs_check_method=&quot;file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib&quot;
+-    lt_cv_file_magic_test_file=/lib/libc.so
+-    ;;
+-  esac
+-  ;;
+-esac
+-])
+-file_magic_cmd=$lt_cv_file_magic_cmd
+-deplibs_check_method=$lt_cv_deplibs_check_method
+-])
+-
+-
+-# AC_PROG_NM - find the path to a BSD-compatible name lister
+-AC_DEFUN([AC_PROG_NM],
+-[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
+-AC_MSG_CHECKING([for BSD-compatible nm])
+-AC_CACHE_VAL(lt_cv_path_NM,
+-[if test -n &quot;$NM&quot;; then
+-  # Let the user override the test.
+-  lt_cv_path_NM=&quot;$NM&quot;
+-else
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+-  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    tmp_nm=$ac_dir/${ac_tool_prefix}nm
+-    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
+-      # Check to see if the nm accepts a BSD-compat flag.
+-      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+-      #   nm: unknown option &quot;B&quot; ignored
+-      # Tru64's nm complains that /dev/null is an invalid object file
+-      if ($tmp_nm -B /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' &gt;/dev/null; then
+-        lt_cv_path_NM=&quot;$tmp_nm -B&quot;
+-        break
+-      elif ($tmp_nm -p /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+-        lt_cv_path_NM=&quot;$tmp_nm -p&quot;
+-        break
+-      else
+-        lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
+-        continue # so that we can try to find one that supports BSD flags
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  test -z &quot;$lt_cv_path_NM&quot; &amp;&amp; lt_cv_path_NM=nm
+-fi])
+-NM=&quot;$lt_cv_path_NM&quot;
+-AC_MSG_RESULT([$NM])
+-])
+-
+-# AC_CHECK_LIBM - check for math library
+-AC_DEFUN([AC_CHECK_LIBM],
+-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-LIBM=
+-case $host in
+-*-*-beos* | *-*-cygwin* | *-*-pw32*)
+-  # These system don't have libm
+-  ;;
+-*-ncr-sysv4.3*)
+-  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=&quot;-lmw&quot;)
+-  AC_CHECK_LIB(m, main, LIBM=&quot;$LIBM -lm&quot;)
+-  ;;
+-*)
+-  AC_CHECK_LIB(m, main, LIBM=&quot;-lm&quot;)
+-  ;;
+-esac
+-])
+-
+-# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
+-# the libltdl convenience library and INCLTDL to the include flags for
+-# the libltdl header and adds --enable-ltdl-convenience to the
+-# configure arguments.  Note that LIBLTDL and INCLTDL are not
+-# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
+-# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
+-# with '${top_builddir}/' and INCLTDL will be prefixed with
+-# '${top_srcdir}/' (note the single quotes!).  If your package is not
+-# flat and you're not using automake, define top_builddir and
+-# top_srcdir appropriately in the Makefiles.
+-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-  case $enable_ltdl_convenience in
+-  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
+-  &quot;&quot;) enable_ltdl_convenience=yes
+-      ac_configure_args=&quot;$ac_configure_args --enable-ltdl-convenience&quot; ;;
+-  esac
+-  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
+-  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+-])
+-
+-# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
+-# the libltdl installable library and INCLTDL to the include flags for
+-# the libltdl header and adds --enable-ltdl-install to the configure
+-# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
+-# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
+-# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
+-# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
+-# with '${top_srcdir}/' (note the single quotes!).  If your package is
+-# not flat and you're not using automake, define top_builddir and
+-# top_srcdir appropriately in the Makefiles.
+-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
+-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
+-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+-  AC_CHECK_LIB(ltdl, main,
+-  [test x&quot;$enable_ltdl_install&quot; != xyes &amp;&amp; enable_ltdl_install=no],
+-  [if test x&quot;$enable_ltdl_install&quot; = xno; then
+-     AC_MSG_WARN([libltdl not installed, but installation disabled])
+-   else
+-     enable_ltdl_install=yes
+-   fi
+-  ])
+-  if test x&quot;$enable_ltdl_install&quot; = x&quot;yes&quot;; then
+-    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install&quot;
+-    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
+-    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+-  else
+-    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install=no&quot;
+-    LIBLTDL=&quot;-lltdl&quot;
+-    INCLTDL=
+-  fi
+-])
+-
+-# old names
+-AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
+-AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
+-AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
+-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+-AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
+-AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
+-
+-# This is just to silence aclocal about the macro not being used
+-ifelse([AC_DISABLE_FAST_INSTALL])
+-
+-# gettext.m4 serial 16 (gettext-0.11.4)
+-dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-dnl
+-dnl This file can can be used in projects which are not available under
+-dnl the GNU General Public License or the GNU Library General Public
+-dnl License but which still want to provide support for the GNU gettext
+-dnl functionality.
+-dnl Please note that the actual code of the GNU gettext library is covered
+-dnl by the GNU Library General Public License, and the rest of the GNU
+-dnl gettext package package is covered by the GNU General Public License.
+-dnl They are *not* in the public domain.
+-
+-dnl Authors:
+-dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
+-dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2002.
+-
+-dnl Macro to add for using GNU gettext.
+-
+-dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
+-dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
+-dnl    default (if it is not specified or empty) is 'no-libtool'.
+-dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
+-dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
+-dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
+-dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
+-dnl    depending on --{enable,disable}-{shared,static} and on the presence of
+-dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
+-dnl    $(top_builddir)/intl/libintl.a will be created.
+-dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
+-dnl    implementations (in libc or libintl) without the ngettext() function
+-dnl    will be ignored.  If NEEDSYMBOL is specified and is
+-dnl    'need-formatstring-macros', then GNU gettext implementations that don't
+-dnl    support the ISO C 99 &lt;inttypes.h&gt; formatstring macros will be ignored.
+-dnl INTLDIR is used to find the intl libraries.  If empty,
+-dnl    the value `$(top_builddir)/intl/' is used.
+-dnl
+-dnl The result of the configuration is one of three cases:
+-dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
+-dnl    and used.
+-dnl    Catalog format: GNU --&gt; install in $(datadir)
+-dnl    Catalog extension: .mo after installation, .gmo in source tree
+-dnl 2) GNU gettext has been found in the system's C library.
+-dnl    Catalog format: GNU --&gt; install in $(datadir)
+-dnl    Catalog extension: .mo after installation, .gmo in source tree
+-dnl 3) No internationalization, always use English msgid.
+-dnl    Catalog format: none
+-dnl    Catalog extension: none
+-dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
+-dnl The use of .gmo is historical (it was needed to avoid overwriting the
+-dnl GNU format catalogs when building on a platform with an X/Open gettext),
+-dnl but we keep it in order not to force irrelevant filename changes on the
+-dnl maintainers.
+-dnl
+-AC_DEFUN([AM_GNU_GETTEXT],
+-[
+-  dnl Argument checking.
+-  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
+-    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
+-])])])])])
+-  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
+-    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
+-])])])])
+-  define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
+-  define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
+-
+-  AC_REQUIRE([AM_PO_SUBDIRS])dnl
+-  ifelse(gt_included_intl, yes, [
+-    AC_REQUIRE([AM_INTL_SUBDIR])dnl
+-  ])
+-
+-  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+-  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+-  AC_REQUIRE([AC_LIB_RPATH])
+-
+-  dnl Sometimes libintl requires libiconv, so first search for libiconv.
+-  dnl Ideally we would do this search only after the
+-  dnl      if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+-  dnl        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
+-  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
+-  dnl the configure script would need to contain the same shell code
+-  dnl again, outside any 'if'. There are two solutions:
+-  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
+-  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
+-  dnl Since AC_PROVIDE_IFELSE is only in autoconf &gt;= 2.52 and not
+-  dnl documented, we avoid it.
+-  ifelse(gt_included_intl, yes, , [
+-    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+-  ])
+-
+-  AC_MSG_CHECKING([whether NLS is requested])
+-  dnl Default is enabled NLS
+-  AC_ARG_ENABLE(nls,
+-    [  --disable-nls           do not use Native Language Support],
+-    USE_NLS=$enableval, USE_NLS=yes)
+-  AC_MSG_RESULT($USE_NLS)
+-  AC_SUBST(USE_NLS)
+-
+-  ifelse(gt_included_intl, yes, [
+-    BUILD_INCLUDED_LIBINTL=no
+-    USE_INCLUDED_LIBINTL=no
+-  ])
+-  LIBINTL=
+-  LTLIBINTL=
+-  POSUB=
+-
+-  dnl If we use NLS figure out what method
+-  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+-    gt_use_preinstalled_gnugettext=no
+-    ifelse(gt_included_intl, yes, [
+-      AC_MSG_CHECKING([whether included gettext is requested])
+-      AC_ARG_WITH(included-gettext,
+-        [  --with-included-gettext use the GNU gettext library included here],
+-        nls_cv_force_use_gnu_gettext=$withval,
+-        nls_cv_force_use_gnu_gettext=no)
+-      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
+-
+-      nls_cv_use_gnu_gettext=&quot;$nls_cv_force_use_gnu_gettext&quot;
+-      if test &quot;$nls_cv_force_use_gnu_gettext&quot; != &quot;yes&quot;; then
+-    ])
+-        dnl User does not insist on using GNU NLS library.  Figure out what
+-        dnl to use.  If GNU gettext is available we use this.  Else we have
+-        dnl to fall back to GNU NLS library.
+-
+-        dnl Add a version number to the cache macros.
+-        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
+-        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
+-        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
+-
+-        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
+-         [AC_TRY_LINK([#include &lt;libintl.h&gt;
+-]ifelse([$2], [need-formatstring-macros],
+-[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+-#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+-#endif
+-changequote(,)dnl
+-typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+-changequote([,])dnl
+-], [])[extern int _nl_msg_cat_cntr;
+-extern int *_nl_domain_bindings;],
+-            [bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + (int) ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
+-            gt_cv_func_gnugettext_libc=yes,
+-            gt_cv_func_gnugettext_libc=no)])
+-
+-        if test &quot;$gt_cv_func_gnugettext_libc&quot; != &quot;yes&quot;; then
+-          dnl Sometimes libintl requires libiconv, so first search for libiconv.
+-          ifelse(gt_included_intl, yes, , [
+-            AM_ICONV_LINK
+-          ])
+-          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
+-          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
+-          dnl because that would add &quot;-liconv&quot; to LIBINTL and LTLIBINTL
+-          dnl even if libiconv doesn't exist.
+-          AC_LIB_LINKFLAGS_BODY([intl])
+-          AC_CACHE_CHECK([for GNU gettext in libintl],
+-            gt_cv_func_gnugettext_libintl,
+-           [gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+-            CPPFLAGS=&quot;$CPPFLAGS $INCINTL&quot;
+-            gt_save_LIBS=&quot;$LIBS&quot;
+-            LIBS=&quot;$LIBS $LIBINTL&quot;
+-            dnl Now see whether libintl exists and does not depend on libiconv.
+-            AC_TRY_LINK([#include &lt;libintl.h&gt;
+-]ifelse([$2], [need-formatstring-macros],
+-[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+-#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+-#endif
+-changequote(,)dnl
+-typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+-changequote([,])dnl
+-], [])[extern int _nl_msg_cat_cntr;
+-extern
+-#ifdef __cplusplus
+-&quot;C&quot;
+-#endif
+-const char *_nl_expand_alias ();],
+-              [bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + (int) ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
+-              gt_cv_func_gnugettext_libintl=yes,
+-              gt_cv_func_gnugettext_libintl=no)
+-            dnl Now see whether libintl exists and depends on libiconv.
+-            if test &quot;$gt_cv_func_gnugettext_libintl&quot; != yes &amp;&amp; test -n &quot;$LIBICONV&quot;; then
+-              LIBS=&quot;$LIBS $LIBICONV&quot;
+-              AC_TRY_LINK([#include &lt;libintl.h&gt;
+-]ifelse([$2], [need-formatstring-macros],
+-[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+-#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+-#endif
+-changequote(,)dnl
+-typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) &gt;= 1) - 1];
+-changequote([,])dnl
+-], [])[extern int _nl_msg_cat_cntr;
+-extern
+-#ifdef __cplusplus
+-&quot;C&quot;
+-#endif
+-const char *_nl_expand_alias ();],
+-                [bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;)]ifelse([$2], [need-ngettext], [ + (int) ngettext (&quot;&quot;, &quot;&quot;, 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
+-               [LIBINTL=&quot;$LIBINTL $LIBICONV&quot;
+-                LTLIBINTL=&quot;$LTLIBINTL $LTLIBICONV&quot;
+-                gt_cv_func_gnugettext_libintl=yes
+-               ])
+-            fi
+-            CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+-            LIBS=&quot;$gt_save_LIBS&quot;])
+-        fi
+-
+-        dnl If an already present or preinstalled GNU gettext() is found,
+-        dnl use it.  But if this macro is used in GNU gettext, and GNU
+-        dnl gettext is already preinstalled in libintl, we update this
+-        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
+-        if test &quot;$gt_cv_func_gnugettext_libc&quot; = &quot;yes&quot; \
+-           || { test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot; \
+-                &amp;&amp; test &quot;$PACKAGE&quot; != gettext; }; then
+-          gt_use_preinstalled_gnugettext=yes
+-        else
+-          dnl Reset the values set by searching for libintl.
+-          LIBINTL=
+-          LTLIBINTL=
+-          INCINTL=
+-        fi
+-
+-    ifelse(gt_included_intl, yes, [
+-        if test &quot;$gt_use_preinstalled_gnugettext&quot; != &quot;yes&quot;; then
+-          dnl GNU gettext is not found in the C library.
+-          dnl Fall back on included GNU gettext library.
+-          nls_cv_use_gnu_gettext=yes
+-        fi
+-      fi
+-
+-      if test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+-        dnl Mark actions used to generate GNU NLS library.
+-        INTLOBJS=&quot;\$(GETTOBJS)&quot;
+-        BUILD_INCLUDED_LIBINTL=yes
+-        USE_INCLUDED_LIBINTL=yes
+-        LIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV&quot;
+-        LTLIBINTL=&quot;ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV&quot;
+-        LIBS=`echo &quot; $LIBS &quot; | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+-      fi
+-
+-      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+-         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+-        dnl Mark actions to use GNU gettext tools.
+-        CATOBJEXT=.gmo
+-      fi
+-    ])
+-
+-    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+-       || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+-      AC_DEFINE(ENABLE_NLS, 1,
+-        [Define to 1 if translation of program messages to the user's native language
+-   is requested.])
+-    else
+-      USE_NLS=no
+-    fi
+-  fi
+-
+-  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
+-
+-    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+-      if test &quot;$gt_cv_func_gnugettext_libintl&quot; = &quot;yes&quot;; then
+-        AC_MSG_CHECKING([how to link with libintl])
+-        AC_MSG_RESULT([$LIBINTL])
+-        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
+-      fi
+-
+-      dnl For backward compatibility. Some packages may be using this.
+-      AC_DEFINE(HAVE_GETTEXT, 1,
+-       [Define if the GNU gettext() function is already present or preinstalled.])
+-      AC_DEFINE(HAVE_DCGETTEXT, 1,
+-       [Define if the GNU dcgettext() function is already present or preinstalled.])
+-    fi
+-
+-    dnl We need to process the po/ directory.
+-    POSUB=po
+-  fi
+-
+-  ifelse(gt_included_intl, yes, [
+-    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
+-    dnl to 'yes' because some of the testsuite requires it.
+-    if test &quot;$PACKAGE&quot; = gettext; then
+-      BUILD_INCLUDED_LIBINTL=yes
+-    fi
+-
+-    dnl Make all variables we use known to autoconf.
+-    AC_SUBST(BUILD_INCLUDED_LIBINTL)
+-    AC_SUBST(USE_INCLUDED_LIBINTL)
+-    AC_SUBST(CATOBJEXT)
+-    AC_SUBST(INTLOBJS)
+-
+-    dnl For backward compatibility. Some configure.ins may be using this.
+-    nls_cv_header_intl=
+-    nls_cv_header_libgt=
+-
+-    dnl For backward compatibility. Some Makefiles may be using this.
+-    DATADIRNAME=share
+-    AC_SUBST(DATADIRNAME)
+-
+-    dnl For backward compatibility. Some Makefiles may be using this.
+-    INSTOBJEXT=.mo
+-    AC_SUBST(INSTOBJEXT)
+-
+-    dnl For backward compatibility. Some Makefiles may be using this.
+-    GENCAT=gencat
+-    AC_SUBST(GENCAT)
+-
+-    dnl Enable libtool support if the surrounding package wishes it.
+-    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
+-    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
+-  ])
+-
+-  dnl For backward compatibility. Some Makefiles may be using this.
+-  INTLLIBS=&quot;$LIBINTL&quot;
+-  AC_SUBST(INTLLIBS)
+-
+-  dnl Make all documented variables known to autoconf.
+-  AC_SUBST(LIBINTL)
+-  AC_SUBST(LTLIBINTL)
+-  AC_SUBST(POSUB)
+-])
+-
+-
+-dnl Checks for all prerequisites of the po subdirectory,
+-dnl except for USE_NLS.
+-AC_DEFUN([AM_PO_SUBDIRS],
+-[
+-  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+-  AC_REQUIRE([AC_PROG_INSTALL])dnl
+-  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+-
+-  dnl Perform the following tests also if --disable-nls has been given,
+-  dnl because they are needed for &quot;make dist&quot; to work.
+-
+-  dnl Search for GNU msgfmt in the PATH.
+-  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
+-  dnl The second test excludes FreeBSD msgfmt.
+-  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+-    [$ac_dir/$ac_word --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
+-    :)
+-  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+-
+-  dnl Search for GNU xgettext 0.11 or newer in the PATH.
+-  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
+-  dnl The second test excludes FreeBSD xgettext.
+-  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+-    [$ac_dir/$ac_word --omit-header --copyright-holder= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
+-    :)
+-  dnl Remove leftover from FreeBSD xgettext call.
+-  rm -f messages.po
+-
+-  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
+-  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
+-    [$ac_dir/$ac_word --update -q /dev/null /dev/null &gt;/dev/null 2&gt;&amp;1], :)
+-
+-  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+-  dnl Test whether we really found GNU msgfmt.
+-  if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
+-    dnl If it is no GNU msgfmt we define it as : so that the
+-    dnl Makefiles still can work.
+-    if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-      : ;
+-    else
+-      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
+-      AC_MSG_RESULT(
+-        [found $GMSGFMT program is not GNU msgfmt; ignore it])
+-      GMSGFMT=&quot;:&quot;
+-    fi
+-  fi
+-
+-  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+-  dnl Test whether we really found GNU xgettext.
+-  if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+-    dnl If it is no GNU xgettext we define it as : so that the
+-    dnl Makefiles still can work.
+-    if $XGETTEXT --omit-header --copyright-holder= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-      : ;
+-    else
+-      AC_MSG_RESULT(
+-        [found xgettext program is not GNU xgettext; ignore it])
+-      XGETTEXT=&quot;:&quot;
+-    fi
+-    dnl Remove leftover from FreeBSD xgettext call.
+-    rm -f messages.po
+-  fi
+-
+-  AC_OUTPUT_COMMANDS([
+-    for ac_file in $CONFIG_FILES; do
+-      # Support &quot;outfile[:infile[:infile...]]&quot;
+-      case &quot;$ac_file&quot; in
+-        *:*) ac_file=`echo &quot;$ac_file&quot;|sed 's%:.*%%'` ;;
+-      esac
+-      # PO directories have a Makefile.in generated from Makefile.in.in.
+-      case &quot;$ac_file&quot; in */Makefile.in)
+-        # Adjust a relative srcdir.
+-        ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
+-        ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
+-        ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
+-        # In autoconf-2.13 it is called $ac_given_srcdir.
+-        # In autoconf-2.50 it is called $srcdir.
+-        test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
+-        case &quot;$ac_given_srcdir&quot; in
+-          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+-          /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
+-          *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
+-        esac
+-        if test -f &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot;; then
+-          rm -f &quot;$ac_dir/POTFILES&quot;
+-          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/POTFILES&quot; || echo &quot;creating $ac_dir/POTFILES&quot;
+-          cat &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot; | sed -e &quot;/^#/d&quot; -e &quot;/^[         ]*\$/d&quot; -e &quot;s,.*,     $top_srcdir/&amp; \\\\,&quot; | sed -e &quot;\$s/\(.*\) \\\\/\1/&quot; &gt; &quot;$ac_dir/POTFILES&quot;
+-          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
+-          # on $ac_dir but don't depend on user-specified configuration
+-          # parameters.
+-          if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
+-            # The LINGUAS file contains the set of available languages.
+-            if test -n &quot;$ALL_LINGUAS&quot;; then
+-              test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
+-            fi
+-            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
+-            # Hide the ALL_LINGUAS assigment from automake.
+-            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+-          fi
+-          case &quot;$ac_given_srcdir&quot; in
+-            .) srcdirpre= ;;
+-            *) srcdirpre='$(srcdir)/' ;;
+-          esac
+-          POFILES=
+-          GMOFILES=
+-          UPDATEPOFILES=
+-          DUMMYPOFILES=
+-          for lang in $ALL_LINGUAS; do
+-            POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
+-            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+-            UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
+-            DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
+-          done
+-          # CATALOGS depends on both $ac_dir and the user's LINGUAS
+-          # environment variable.
+-          INST_LINGUAS=
+-          if test -n &quot;$ALL_LINGUAS&quot;; then
+-            for presentlang in $ALL_LINGUAS; do
+-              useit=no
+-              if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
+-                desiredlanguages=&quot;$LINGUAS&quot;
+-              else
+-                desiredlanguages=&quot;$ALL_LINGUAS&quot;
+-              fi
+-              for desiredlang in $desiredlanguages; do
+-                # Use the presentlang catalog if desiredlang is
+-                #   a. equal to presentlang, or
+-                #   b. a variant of presentlang (because in this case,
+-                #      presentlang can be used as a fallback for messages
+-                #      which are not translated in the desiredlang catalog).
+-                case &quot;$desiredlang&quot; in
+-                  &quot;$presentlang&quot;*) useit=yes;;
+-                esac
+-              done
+-              if test $useit = yes; then
+-                INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
+-              fi
+-            done
+-          fi
+-          CATALOGS=
+-          if test -n &quot;$INST_LINGUAS&quot;; then
+-            for lang in $INST_LINGUAS; do
+-              CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
+-            done
+-          fi
+-          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/Makefile&quot; || echo &quot;creating $ac_dir/Makefile&quot;
+-          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
+-          for f in &quot;$ac_given_srcdir/$ac_dir&quot;/Rules-*; do
+-            if test -f &quot;$f&quot;; then
+-              case &quot;$f&quot; in
+-                *.orig | *.bak | *~) ;;
+-                *) cat &quot;$f&quot; &gt;&gt; &quot;$ac_dir/Makefile&quot; ;;
+-              esac
+-            fi
+-          done
+-        fi
+-        ;;
+-      esac
+-    done],
+-   [# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
+-    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
+-    # from automake.
+-    eval 'ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
+-    # Capture the value of LINGUAS because we need it to compute CATALOGS.
+-    LINGUAS=&quot;${LINGUAS-%UNSET%}&quot;
+-   ])
+-])
+-
+-
+-dnl Checks for all prerequisites of the intl subdirectory,
+-dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
+-dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
+-AC_DEFUN([AM_INTL_SUBDIR],
+-[
+-  AC_REQUIRE([AC_PROG_INSTALL])dnl
+-  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+-  AC_REQUIRE([AC_PROG_CC])dnl
+-  AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-  AC_REQUIRE([AC_PROG_RANLIB])dnl
+-  AC_REQUIRE([AC_ISC_POSIX])dnl
+-  AC_REQUIRE([AC_HEADER_STDC])dnl
+-  AC_REQUIRE([AC_C_CONST])dnl
+-  AC_REQUIRE([AC_C_INLINE])dnl
+-  AC_REQUIRE([AC_TYPE_OFF_T])dnl
+-  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
+-  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
+-  AC_REQUIRE([AC_FUNC_MMAP])dnl
+-  AC_REQUIRE([jm_GLIBC21])dnl
+-  AC_REQUIRE([gt_INTDIV0])dnl
+-  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
+-  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
+-  AC_REQUIRE([gt_INTTYPES_PRI])dnl
+-
+-  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
+-stdlib.h string.h unistd.h sys/param.h])
+-  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
+-geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
+-strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
+-
+-  AM_ICONV
+-  AM_LANGINFO_CODESET
+-  if test $ac_cv_header_locale_h = yes; then
+-    AM_LC_MESSAGES
+-  fi
+-
+-  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
+-  dnl because plural.y uses bison specific features. It requires at least
+-  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
+-  dnl compile.
+-  dnl bison is only needed for the maintainer (who touches plural.y). But in
+-  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
+-  dnl the rule in general Makefile. Now, some people carelessly touch the
+-  dnl files or have a broken &quot;make&quot; program, hence the plural.c rule will
+-  dnl sometimes fire. To avoid an error, defines BISON to &quot;:&quot; if it is not
+-  dnl present or too old.
+-  AC_CHECK_PROGS([INTLBISON], [bison])
+-  if test -z &quot;$INTLBISON&quot;; then
+-    ac_verc_fail=yes
+-  else
+-    dnl Found it, now check the version.
+-    AC_MSG_CHECKING([version of bison])
+-changequote(&lt;&lt;,&gt;&gt;)dnl
+-    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+-    case $ac_prog_version in
+-      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
+-      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+-changequote([,])dnl
+-         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
+-      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
+-    esac
+-    AC_MSG_RESULT([$ac_prog_version])
+-  fi
+-  if test $ac_verc_fail = yes; then
+-    INTLBISON=:
+-  fi
+-])
+-
+-
+-AC_DEFUN([AM_MKINSTALLDIRS],
+-[
+-  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
+-  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
+-  dnl Try to locate is.
+-  MKINSTALLDIRS=
+-  if test -n &quot;$ac_aux_dir&quot;; then
+-    MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot;
+-  fi
+-  if test -z &quot;$MKINSTALLDIRS&quot;; then
+-    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
+-  fi
+-  AC_SUBST(MKINSTALLDIRS)
+-])
+-
+-
+-dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
+-AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
+-
+-# lib-prefix.m4 serial 1 (gettext-0.11)
+-dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-
+-dnl From Bruno Haible.
+-
+-dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
+-dnl to access previously installed libraries. The basic assumption is that
+-dnl a user will want packages to use other packages he previously installed
+-dnl with the same --prefix option.
+-dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
+-dnl libraries, but is otherwise very convenient.
+-AC_DEFUN([AC_LIB_PREFIX],
+-[
+-  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
+-  AC_REQUIRE([AC_PROG_CC])
+-  AC_REQUIRE([AC_CANONICAL_HOST])
+-  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+-  dnl By default, look in $includedir and $libdir.
+-  use_additional=yes
+-  AC_LIB_WITH_FINAL_PREFIX([
+-    eval additional_includedir=\&quot;$includedir\&quot;
+-    eval additional_libdir=\&quot;$libdir\&quot;
+-  ])
+-  AC_ARG_WITH([lib-prefix],
+-[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
+-  --without-lib-prefix    don't search for libraries in includedir and libdir],
+-[
+-    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+-      use_additional=no
+-    else
+-      if test &quot;X$withval&quot; = &quot;X&quot;; then
+-        AC_LIB_WITH_FINAL_PREFIX([
+-          eval additional_includedir=\&quot;$includedir\&quot;
+-          eval additional_libdir=\&quot;$libdir\&quot;
+-        ])
+-      else
+-        additional_includedir=&quot;$withval/include&quot;
+-        additional_libdir=&quot;$withval/lib&quot;
+-      fi
+-    fi
+-])
+-  if test $use_additional = yes; then
+-    dnl Potentially add $additional_includedir to $CPPFLAGS.
+-    dnl But don't add it
+-    dnl   1. if it's the standard /usr/include,
+-    dnl   2. if it's already present in $CPPFLAGS,
+-    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
+-    dnl   4. if it doesn't exist as a directory.
+-    if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
+-      haveit=
+-      for x in $CPPFLAGS; do
+-        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+-        if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
+-          haveit=yes
+-          break
+-        fi
+-      done
+-      if test -z &quot;$haveit&quot;; then
+-        if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+-          if test -n &quot;$GCC&quot;; then
+-            case $host_os in
+-              linux*) haveit=yes;;
+-            esac
+-          fi
+-        fi
+-        if test -z &quot;$haveit&quot;; then
+-          if test -d &quot;$additional_includedir&quot;; then
+-            dnl Really add $additional_includedir to $CPPFLAGS.
+-            CPPFLAGS=&quot;${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir&quot;
+-          fi
+-        fi
+-      fi
+-    fi
+-    dnl Potentially add $additional_libdir to $LDFLAGS.
+-    dnl But don't add it
+-    dnl   1. if it's the standard /usr/lib,
+-    dnl   2. if it's already present in $LDFLAGS,
+-    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
+-    dnl   4. if it doesn't exist as a directory.
+-    if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
+-      haveit=
+-      for x in $LDFLAGS; do
+-        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+-        if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
+-          haveit=yes
+-          break
+-        fi
+-      done
+-      if test -z &quot;$haveit&quot;; then
+-        if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+-          if test -n &quot;$GCC&quot;; then
+-            case $host_os in
+-              linux*) haveit=yes;;
+-            esac
+-          fi
+-        fi
+-        if test -z &quot;$haveit&quot;; then
+-          if test -d &quot;$additional_libdir&quot;; then
+-            dnl Really add $additional_libdir to $LDFLAGS.
+-            LDFLAGS=&quot;${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir&quot;
+-          fi
+-        fi
+-      fi
+-    fi
+-  fi
+-])
+-
+-dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
+-dnl acl_final_exec_prefix, containing the values to which $prefix and
+-dnl $exec_prefix will expand at the end of the configure script.
+-AC_DEFUN([AC_LIB_PREPARE_PREFIX],
+-[
+-  dnl Unfortunately, prefix and exec_prefix get only finally determined
+-  dnl at the end of configure.
+-  if test &quot;X$prefix&quot; = &quot;XNONE&quot;; then
+-    acl_final_prefix=&quot;$ac_default_prefix&quot;
+-  else
+-    acl_final_prefix=&quot;$prefix&quot;
+-  fi
+-  if test &quot;X$exec_prefix&quot; = &quot;XNONE&quot;; then
+-    acl_final_exec_prefix='${prefix}'
+-  else
+-    acl_final_exec_prefix=&quot;$exec_prefix&quot;
+-  fi
+-  acl_save_prefix=&quot;$prefix&quot;
+-  prefix=&quot;$acl_final_prefix&quot;
+-  eval acl_final_exec_prefix=\&quot;$acl_final_exec_prefix\&quot;
+-  prefix=&quot;$acl_save_prefix&quot;
+-])
+-
+-dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
+-dnl variables prefix and exec_prefix bound to the values they will have
+-dnl at the end of the configure script.
+-AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
+-[
+-  acl_save_prefix=&quot;$prefix&quot;
+-  prefix=&quot;$acl_final_prefix&quot;
+-  acl_save_exec_prefix=&quot;$exec_prefix&quot;
+-  exec_prefix=&quot;$acl_final_exec_prefix&quot;
+-  $1
+-  exec_prefix=&quot;$acl_save_exec_prefix&quot;
+-  prefix=&quot;$acl_save_prefix&quot;
+-])
+-
+-# lib-link.m4 serial 3 (gettext-0.11.3)
+-dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-
+-dnl From Bruno Haible.
+-
+-dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
+-dnl the libraries corresponding to explicit and implicit dependencies.
+-dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
+-dnl augments the CPPFLAGS variable.
+-AC_DEFUN([AC_LIB_LINKFLAGS],
+-[
+-  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+-  AC_REQUIRE([AC_LIB_RPATH])
+-  define([Name],[translit([$1],[./-], [___])])
+-  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+-                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+-  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
+-    AC_LIB_LINKFLAGS_BODY([$1], [$2])
+-    ac_cv_lib[]Name[]_libs=&quot;$LIB[]NAME&quot;
+-    ac_cv_lib[]Name[]_ltlibs=&quot;$LTLIB[]NAME&quot;
+-    ac_cv_lib[]Name[]_cppflags=&quot;$INC[]NAME&quot;
+-  ])
+-  LIB[]NAME=&quot;$ac_cv_lib[]Name[]_libs&quot;
+-  LTLIB[]NAME=&quot;$ac_cv_lib[]Name[]_ltlibs&quot;
+-  INC[]NAME=&quot;$ac_cv_lib[]Name[]_cppflags&quot;
+-  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+-  AC_SUBST([LIB]NAME)
+-  AC_SUBST([LTLIB]NAME)
+-  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
+-  dnl results of this search when this library appears as a dependency.
+-  HAVE_LIB[]NAME=yes
+-  undefine([Name])
+-  undefine([NAME])
+-])
+-
+-dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
+-dnl searches for libname and the libraries corresponding to explicit and
+-dnl implicit dependencies, together with the specified include files and
+-dnl the ability to compile and link the specified testcode. If found, it
+-dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
+-dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
+-dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
+-dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
+-AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
+-[
+-  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+-  AC_REQUIRE([AC_LIB_RPATH])
+-  define([Name],[translit([$1],[./-], [___])])
+-  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+-                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+-
+-  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
+-  dnl accordingly.
+-  AC_LIB_LINKFLAGS_BODY([$1], [$2])
+-
+-  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
+-  dnl because if the user has installed lib[]Name and not disabled its use
+-  dnl via --without-lib[]Name-prefix, he wants to use it.
+-  ac_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+-  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+-
+-  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
+-    ac_save_LIBS=&quot;$LIBS&quot;
+-    LIBS=&quot;$LIBS $LIB[]NAME&quot;
+-    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
+-    LIBS=&quot;$ac_save_LIBS&quot;
+-  ])
+-  if test &quot;$ac_cv_lib[]Name&quot; = yes; then
+-    HAVE_LIB[]NAME=yes
+-    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
+-    AC_MSG_CHECKING([how to link with lib[]$1])
+-    AC_MSG_RESULT([$LIB[]NAME])
+-  else
+-    HAVE_LIB[]NAME=no
+-    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
+-    dnl $INC[]NAME either.
+-    CPPFLAGS=&quot;$ac_save_CPPFLAGS&quot;
+-    LIB[]NAME=
+-    LTLIB[]NAME=
+-  fi
+-  AC_SUBST([HAVE_LIB]NAME)
+-  AC_SUBST([LIB]NAME)
+-  AC_SUBST([LTLIB]NAME)
+-  undefine([Name])
+-  undefine([NAME])
+-])
+-
+-dnl Determine the platform dependent parameters needed to use rpath:
+-dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
+-dnl hardcode_direct, hardcode_minus_L,
+-dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec.
+-AC_DEFUN([AC_LIB_RPATH],
+-[
+-  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
+-  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
+-  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
+-  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
+-  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
+-    CC=&quot;$CC&quot; GCC=&quot;$GCC&quot; LDFLAGS=&quot;$LDFLAGS&quot; LD=&quot;$LD&quot; with_gnu_ld=&quot;$with_gnu_ld&quot; \
+-    ${CONFIG_SHELL-/bin/sh} &quot;$ac_aux_dir/config.rpath&quot; &quot;$host&quot; &gt; conftest.sh
+-    . ./conftest.sh
+-    rm -f ./conftest.sh
+-    acl_cv_rpath=done
+-  ])
+-  wl=&quot;$acl_cv_wl&quot;
+-  libext=&quot;$acl_cv_libext&quot;
+-  shlibext=&quot;$acl_cv_shlibext&quot;
+-  hardcode_libdir_flag_spec=&quot;$acl_cv_hardcode_libdir_flag_spec&quot;
+-  hardcode_libdir_separator=&quot;$acl_cv_hardcode_libdir_separator&quot;
+-  hardcode_direct=&quot;$acl_cv_hardcode_direct&quot;
+-  hardcode_minus_L=&quot;$acl_cv_hardcode_minus_L&quot;
+-  sys_lib_search_path_spec=&quot;$acl_cv_sys_lib_search_path_spec&quot;
+-  sys_lib_dlsearch_path_spec=&quot;$acl_cv_sys_lib_dlsearch_path_spec&quot;
+-  dnl Determine whether the user wants rpath handling at all.
+-  AC_ARG_ENABLE(rpath,
+-    [  --disable-rpath         do not hardcode runtime library paths],
+-    :, enable_rpath=yes)
+-])
+-
+-dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
+-dnl the libraries corresponding to explicit and implicit dependencies.
+-dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+-AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+-[
+-  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+-                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+-  dnl By default, look in $includedir and $libdir.
+-  use_additional=yes
+-  AC_LIB_WITH_FINAL_PREFIX([
+-    eval additional_includedir=\&quot;$includedir\&quot;
+-    eval additional_libdir=\&quot;$libdir\&quot;
+-  ])
+-  AC_ARG_WITH([lib$1-prefix],
+-[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
+-  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
+-[
+-    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
+-      use_additional=no
+-    else
+-      if test &quot;X$withval&quot; = &quot;X&quot;; then
+-        AC_LIB_WITH_FINAL_PREFIX([
+-          eval additional_includedir=\&quot;$includedir\&quot;
+-          eval additional_libdir=\&quot;$libdir\&quot;
+-        ])
+-      else
+-        additional_includedir=&quot;$withval/include&quot;
+-        additional_libdir=&quot;$withval/lib&quot;
++        additional_includedir=&quot;$withval/include&quot;
++        additional_libdir=&quot;$withval/lib&quot;
+       fi
+     fi
+ ])
+@@ -5419,7 +1429,7 @@
+                 if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                   if test -n &quot;$GCC&quot;; then
+                     case $host_os in
+-                      linux*) haveit=yes;;
++                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                     esac
+                   fi
+                 fi
+@@ -5468,7 +1478,7 @@
+                       if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                         if test -n &quot;$GCC&quot;; then
+                           case $host_os in
+-                            linux*) haveit=yes;;
++                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                           esac
+                         fi
+                       fi
+@@ -5552,695 +1562,8143 @@
+               done
+             fi
+           else
+-            dnl Didn't find the library; assume it is in the system directories
+-            dnl known to the linker and runtime loader. (All the system
+-            dnl directories known to the linker should also be known to the
+-            dnl runtime loader, otherwise the system is severely misconfigured.)
+-            LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-l$name&quot;
+-            LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name&quot;
++            dnl Didn't find the library; assume it is in the system directories
++            dnl known to the linker and runtime loader. (All the system
++            dnl directories known to the linker should also be known to the
++            dnl runtime loader, otherwise the system is severely misconfigured.)
++            LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }-l$name&quot;
++            LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name&quot;
++          fi
++        fi
++      fi
++    done
++  done
++  if test &quot;X$rpathdirs&quot; != &quot;X&quot;; then
++    if test -n &quot;$hardcode_libdir_separator&quot;; then
++      dnl Weird platform: only the last -rpath option counts, the user must
++      dnl pass all path elements in one option. We can arrange that for a
++      dnl single library, but not when more than one $LIBNAMEs are used.
++      alldirs=
++      for found_dir in $rpathdirs; do
++        alldirs=&quot;${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir&quot;
++      done
++      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
++      acl_save_libdir=&quot;$libdir&quot;
++      libdir=&quot;$alldirs&quot;
++      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
++      libdir=&quot;$acl_save_libdir&quot;
++      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
++    else
++      dnl The -rpath options are cumulative.
++      for found_dir in $rpathdirs; do
++        acl_save_libdir=&quot;$libdir&quot;
++        libdir=&quot;$found_dir&quot;
++        eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
++        libdir=&quot;$acl_save_libdir&quot;
++        LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
++      done
++    fi
++  fi
++  if test &quot;X$ltrpathdirs&quot; != &quot;X&quot;; then
++    dnl When using libtool, the option that works for both libraries and
++    dnl executables is -R. The -R options are cumulative.
++    for found_dir in $ltrpathdirs; do
++      LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir&quot;
++    done
++  fi
++])
++
++dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
++dnl unless already present in VAR.
++dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
++dnl contains two or three consecutive elements that belong together.
++AC_DEFUN([AC_LIB_APPENDTOVAR],
++[
++  for element in [$2]; do
++    haveit=
++    for x in $[$1]; do
++      AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
++      if test &quot;X$x&quot; = &quot;X$element&quot;; then
++        haveit=yes
++        break
++      fi
++    done
++    if test -z &quot;$haveit&quot;; then
++      [$1]=&quot;${[$1]}${[$1]:+ }$element&quot;
++    fi
++  done
++])
++
++# lib-prefix.m4 serial 4 (gettext-0.14.2)
++dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++
++dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
++dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
++dnl require excessive bracketing.
++ifdef([AC_HELP_STRING],
++[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
++[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
++
++dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
++dnl to access previously installed libraries. The basic assumption is that
++dnl a user will want packages to use other packages he previously installed
++dnl with the same --prefix option.
++dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
++dnl libraries, but is otherwise very convenient.
++AC_DEFUN([AC_LIB_PREFIX],
++[
++  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
++  AC_REQUIRE([AC_PROG_CC])
++  AC_REQUIRE([AC_CANONICAL_HOST])
++  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
++  dnl By default, look in $includedir and $libdir.
++  use_additional=yes
++  AC_LIB_WITH_FINAL_PREFIX([
++    eval additional_includedir=\&quot;$includedir\&quot;
++    eval additional_libdir=\&quot;$libdir\&quot;
++  ])
++  AC_LIB_ARG_WITH([lib-prefix],
++[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
++  --without-lib-prefix    don't search for libraries in includedir and libdir],
++[
++    if test &quot;X$withval&quot; = &quot;Xno&quot;; then
++      use_additional=no
++    else
++      if test &quot;X$withval&quot; = &quot;X&quot;; then
++        AC_LIB_WITH_FINAL_PREFIX([
++          eval additional_includedir=\&quot;$includedir\&quot;
++          eval additional_libdir=\&quot;$libdir\&quot;
++        ])
++      else
++        additional_includedir=&quot;$withval/include&quot;
++        additional_libdir=&quot;$withval/lib&quot;
++      fi
++    fi
++])
++  if test $use_additional = yes; then
++    dnl Potentially add $additional_includedir to $CPPFLAGS.
++    dnl But don't add it
++    dnl   1. if it's the standard /usr/include,
++    dnl   2. if it's already present in $CPPFLAGS,
++    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
++    dnl   4. if it doesn't exist as a directory.
++    if test &quot;X$additional_includedir&quot; != &quot;X/usr/include&quot;; then
++      haveit=
++      for x in $CPPFLAGS; do
++        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
++        if test &quot;X$x&quot; = &quot;X-I$additional_includedir&quot;; then
++          haveit=yes
++          break
++        fi
++      done
++      if test -z &quot;$haveit&quot;; then
++        if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
++          if test -n &quot;$GCC&quot;; then
++            case $host_os in
++              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
++            esac
++          fi
++        fi
++        if test -z &quot;$haveit&quot;; then
++          if test -d &quot;$additional_includedir&quot;; then
++            dnl Really add $additional_includedir to $CPPFLAGS.
++            CPPFLAGS=&quot;${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir&quot;
++          fi
++        fi
++      fi
++    fi
++    dnl Potentially add $additional_libdir to $LDFLAGS.
++    dnl But don't add it
++    dnl   1. if it's the standard /usr/lib,
++    dnl   2. if it's already present in $LDFLAGS,
++    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
++    dnl   4. if it doesn't exist as a directory.
++    if test &quot;X$additional_libdir&quot; != &quot;X/usr/lib&quot;; then
++      haveit=
++      for x in $LDFLAGS; do
++        AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
++        if test &quot;X$x&quot; = &quot;X-L$additional_libdir&quot;; then
++          haveit=yes
++          break
++        fi
++      done
++      if test -z &quot;$haveit&quot;; then
++        if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
++          if test -n &quot;$GCC&quot;; then
++            case $host_os in
++              linux*) haveit=yes;;
++            esac
++          fi
++        fi
++        if test -z &quot;$haveit&quot;; then
++          if test -d &quot;$additional_libdir&quot;; then
++            dnl Really add $additional_libdir to $LDFLAGS.
++            LDFLAGS=&quot;${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir&quot;
++          fi
++        fi
++      fi
++    fi
++  fi
++])
++
++dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
++dnl acl_final_exec_prefix, containing the values to which $prefix and
++dnl $exec_prefix will expand at the end of the configure script.
++AC_DEFUN([AC_LIB_PREPARE_PREFIX],
++[
++  dnl Unfortunately, prefix and exec_prefix get only finally determined
++  dnl at the end of configure.
++  if test &quot;X$prefix&quot; = &quot;XNONE&quot;; then
++    acl_final_prefix=&quot;$ac_default_prefix&quot;
++  else
++    acl_final_prefix=&quot;$prefix&quot;
++  fi
++  if test &quot;X$exec_prefix&quot; = &quot;XNONE&quot;; then
++    acl_final_exec_prefix='${prefix}'
++  else
++    acl_final_exec_prefix=&quot;$exec_prefix&quot;
++  fi
++  acl_save_prefix=&quot;$prefix&quot;
++  prefix=&quot;$acl_final_prefix&quot;
++  eval acl_final_exec_prefix=\&quot;$acl_final_exec_prefix\&quot;
++  prefix=&quot;$acl_save_prefix&quot;
++])
++
++dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
++dnl variables prefix and exec_prefix bound to the values they will have
++dnl at the end of the configure script.
++AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
++[
++  acl_save_prefix=&quot;$prefix&quot;
++  prefix=&quot;$acl_final_prefix&quot;
++  acl_save_exec_prefix=&quot;$exec_prefix&quot;
++  exec_prefix=&quot;$acl_final_exec_prefix&quot;
++  $1
++  exec_prefix=&quot;$acl_save_exec_prefix&quot;
++  prefix=&quot;$acl_save_prefix&quot;
++])
++
++# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
++
++# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
++
++
++# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
++# -----------------------------------------------------------
++# If this macro is not defined by Autoconf, define it here.
++m4_ifdef([AC_PROVIDE_IFELSE],
++         [],
++         [m4_define([AC_PROVIDE_IFELSE],
++                 [m4_ifdef([AC_PROVIDE_$1],
++                           [$2], [$3])])])
++
++
++# AC_PROG_LIBTOOL
++# ---------------
++AC_DEFUN([AC_PROG_LIBTOOL],
++[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
++dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
++dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
++  AC_PROVIDE_IFELSE([AC_PROG_CXX],
++    [AC_LIBTOOL_CXX],
++    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
++  ])])
++dnl And a similar setup for Fortran 77 support
++  AC_PROVIDE_IFELSE([AC_PROG_F77],
++    [AC_LIBTOOL_F77],
++    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
++])])
++
++dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
++dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
++dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
++  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
++    [AC_LIBTOOL_GCJ],
++    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
++      [AC_LIBTOOL_GCJ],
++      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
++        [AC_LIBTOOL_GCJ],
++      [ifdef([AC_PROG_GCJ],
++             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
++       ifdef([A][M_PROG_GCJ],
++             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
++       ifdef([LT_AC_PROG_GCJ],
++             [define([LT_AC_PROG_GCJ],
++                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
++])])# AC_PROG_LIBTOOL
++
++
++# _AC_PROG_LIBTOOL
++# ----------------
++AC_DEFUN([_AC_PROG_LIBTOOL],
++[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
++AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
++AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
++AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
++
++# This can be used to rebuild libtool when needed
++LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
++
++# Always use our own libtool.
++LIBTOOL='$(SHELL) $(top_builddir)/libtool'
++AC_SUBST(LIBTOOL)dnl
++
++# Prevent multiple expansion
++define([AC_PROG_LIBTOOL], [])
++])# _AC_PROG_LIBTOOL
++
++
++# AC_LIBTOOL_SETUP
++# ----------------
++AC_DEFUN([AC_LIBTOOL_SETUP],
++[AC_PREREQ(2.50)dnl
++AC_REQUIRE([AC_ENABLE_SHARED])dnl
++AC_REQUIRE([AC_ENABLE_STATIC])dnl
++AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
++AC_REQUIRE([AC_CANONICAL_HOST])dnl
++AC_REQUIRE([AC_CANONICAL_BUILD])dnl
++AC_REQUIRE([AC_PROG_CC])dnl
++AC_REQUIRE([AC_PROG_LD])dnl
++AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
++AC_REQUIRE([AC_PROG_NM])dnl
++
++AC_REQUIRE([AC_PROG_LN_S])dnl
++AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
++# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
++AC_REQUIRE([AC_OBJEXT])dnl
++AC_REQUIRE([AC_EXEEXT])dnl
++dnl
++
++AC_LIBTOOL_SYS_MAX_CMD_LEN
++AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
++AC_LIBTOOL_OBJDIR
++
++AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
++_LT_AC_PROG_ECHO_BACKSLASH
++
++case $host_os in
++aix3*)
++  # AIX sometimes has problems with the GCC collect2 program.  For some
++  # reason, if we set the COLLECT_NAMES environment variable, the problems
++  # vanish in a puff of smoke.
++  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
++    COLLECT_NAMES=
++    export COLLECT_NAMES
++  fi
++  ;;
++esac
++
++# Sed substitution that helps us do robust quoting.  It backslashifies
++# metacharacters that are still active within double-quoted strings.
++Xsed='sed -e 1s/^X//'
++[sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g']
++
++# Same as above, but do not quote variable references.
++[double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g']
++
++# Sed substitution to delay expansion of an escaped shell variable in a
++# double_quote_subst'ed string.
++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
++
++# Sed substitution to avoid accidental globbing in evaled expressions
++no_glob_subst='s/\*/\\\*/g'
++
++# Constants:
++rm=&quot;rm -f&quot;
++
++# Global variables:
++default_ofile=libtool
++can_build_shared=yes
++
++# All known linkers require a `.a' archive for static linking (except MSVC,
++# which needs '.lib').
++libext=a
++ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
++ofile=&quot;$default_ofile&quot;
++with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
++
++AC_CHECK_TOOL(AR, ar, false)
++AC_CHECK_TOOL(RANLIB, ranlib, :)
++AC_CHECK_TOOL(STRIP, strip, :)
++
++old_CC=&quot;$CC&quot;
++old_CFLAGS=&quot;$CFLAGS&quot;
++
++# Set sane defaults for various variables
++test -z &quot;$AR&quot; &amp;&amp; AR=ar
++test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
++test -z &quot;$AS&quot; &amp;&amp; AS=as
++test -z &quot;$CC&quot; &amp;&amp; CC=cc
++test -z &quot;$LTCC&quot; &amp;&amp; LTCC=$CC
++test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
++test -z &quot;$LD&quot; &amp;&amp; LD=ld
++test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
++test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
++test -z &quot;$NM&quot; &amp;&amp; NM=nm
++test -z &quot;$SED&quot; &amp;&amp; SED=sed
++test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
++test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
++test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
++test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
++
++# Determine commands to create old-style static archives.
++old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
++old_postinstall_cmds='chmod 644 $oldlib'
++old_postuninstall_cmds=
++
++if test -n &quot;$RANLIB&quot;; then
++  case $host_os in
++  openbsd*)
++    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
++    ;;
++  *)
++    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
++    ;;
++  esac
++  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
++fi
++
++_LT_CC_BASENAME([$compiler])
++
++# Only perform the check for file, if the check method requires it
++case $deplibs_check_method in
++file_magic*)
++  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
++    AC_PATH_MAGIC
++  fi
++  ;;
++esac
++
++AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
++AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
++enable_win32_dll=yes, enable_win32_dll=no)
++
++AC_ARG_ENABLE([libtool-lock],
++    [AC_HELP_STRING([--disable-libtool-lock],
++        [avoid locking (might break parallel builds)])])
++test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
++
++AC_ARG_WITH([pic],
++    [AC_HELP_STRING([--with-pic],
++        [try to use only PIC/non-PIC objects @&lt;:@default=use both@:&gt;@])],
++    [pic_mode=&quot;$withval&quot;],
++    [pic_mode=default])
++test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default
++
++# Use C for the default configuration in the libtool script
++tagname=
++AC_LIBTOOL_LANG_C_CONFIG
++_LT_AC_TAGCONFIG
++])# AC_LIBTOOL_SETUP
++
++
++# _LT_AC_SYS_COMPILER
++# -------------------
++AC_DEFUN([_LT_AC_SYS_COMPILER],
++[AC_REQUIRE([AC_PROG_CC])dnl
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++])# _LT_AC_SYS_COMPILER
++
++
++# _LT_CC_BASENAME(CC)
++# -------------------
++# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
++AC_DEFUN([_LT_CC_BASENAME],
++[for cc_temp in $1&quot;&quot;; do
++  case $cc_temp in
++    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
++    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++])
++
++
++# _LT_COMPILER_BOILERPLATE
++# ------------------------
++# Check for compiler boilerplate output or warnings with
++# the simple compiler test code.
++AC_DEFUN([_LT_COMPILER_BOILERPLATE],
++[ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++])# _LT_COMPILER_BOILERPLATE
++
++
++# _LT_LINKER_BOILERPLATE
++# ----------------------
++# Check for linker boilerplate output or warnings with
++# the simple link test code.
++AC_DEFUN([_LT_LINKER_BOILERPLATE],
++[ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++])# _LT_LINKER_BOILERPLATE
++
++
++# _LT_AC_SYS_LIBPATH_AIX
++# ----------------------
++# Links a minimal program and checks the executable
++# for the system default hardcoded library path. In most cases,
++# this is /usr/lib:/lib, but when the MPI compilers are used
++# the location of the communication and MPI libs are included too.
++# If we don't find anything, use the default library path according
++# to the aix ld manual.
++AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
++[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi],[])
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++])# _LT_AC_SYS_LIBPATH_AIX
++
++
++# _LT_AC_SHELL_INIT(ARG)
++# ----------------------
++AC_DEFUN([_LT_AC_SHELL_INIT],
++[ifdef([AC_DIVERSION_NOTICE],
++             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
++         [AC_DIVERT_PUSH(NOTICE)])
++$1
++AC_DIVERT_POP
++])# _LT_AC_SHELL_INIT
++
++
++# _LT_AC_PROG_ECHO_BACKSLASH
++# --------------------------
++# Add some code to the start of the generated configure script which
++# will find an echo command which doesn't interpret backslashes.
++AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
++[_LT_AC_SHELL_INIT([
++# Check that we are running under the correct shell.
++SHELL=${CONFIG_SHELL-/bin/sh}
++
++case X$ECHO in
++X*--fallback-echo)
++  # Remove one level of quotation (which was required for Make).
++  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\[$]\\[$]0,'[$]0','`
++  ;;
++esac
++
++echo=${ECHO-echo}
++if test &quot;X[$]1&quot; = X--no-reexec; then
++  # Discard the --no-reexec flag, and continue.
++  shift
++elif test &quot;X[$]1&quot; = X--fallback-echo; then
++  # Avoid inline document here, it may be left over
++  :
++elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' ; then
++  # Yippee, $echo works!
++  :
++else
++  # Restart under the correct shell.
++  exec $SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
++fi
++
++if test &quot;X[$]1&quot; = X--fallback-echo; then
++  # used as fallback echo
++  shift
++  cat &lt;&lt;EOF
++[$]*
++EOF
++  exit 0
++fi
++
++# The HP-UX ksh and POSIX shell print the target directory to stdout
++# if CDPATH is set.
++(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
++
++if test -z &quot;$ECHO&quot;; then
++if test &quot;X${echo_test_string+set}&quot; != Xset; then
++# find a string as large as possible, as long as the shell can cope with it
++  for cmd in 'sed 50q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 2q &quot;[$]0&quot;' 'echo test'; do
++    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
++    if (echo_test_string=`eval $cmd`) 2&gt;/dev/null &amp;&amp;
++       echo_test_string=`eval $cmd` &amp;&amp;
++       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
++    then
++      break
++    fi
++  done
++fi
++
++if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++  :
++else
++  # The Solaris, AIX, and Digital Unix default echo programs unquote
++  # backslashes.  This makes it impossible to quote backslashes using
++  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
++  #
++  # So, first we look for a working echo in the user's PATH.
++
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  for dir in $PATH /usr/ucb; do
++    IFS=&quot;$lt_save_ifs&quot;
++    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
++       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++      echo=&quot;$dir/echo&quot;
++      break
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++
++  if test &quot;X$echo&quot; = Xecho; then
++    # We didn't find a better echo, so look for alternatives.
++    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++      # This shell has a builtin print -r that does the trick.
++      echo='print -r'
++    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
++         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
++      # If we have ksh, try running configure again with it.
++      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
++      export ORIGINAL_CONFIG_SHELL
++      CONFIG_SHELL=/bin/ksh
++      export CONFIG_SHELL
++      exec $CONFIG_SHELL &quot;[$]0&quot; --no-reexec ${1+&quot;[$]@&quot;}
++    else
++      # Try using printf.
++      echo='printf %s\n'
++      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        # Cool, printf works
++        :
++      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
++           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
++        export CONFIG_SHELL
++        SHELL=&quot;$CONFIG_SHELL&quot;
++        export SHELL
++        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
++      elif echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
++           echo_testing_string=`($CONFIG_SHELL &quot;[$]0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        echo=&quot;$CONFIG_SHELL [$]0 --fallback-echo&quot;
++      else
++        # maybe with a smaller string...
++        prev=:
++
++        for cmd in 'echo test' 'sed 2q &quot;[$]0&quot;' 'sed 10q &quot;[$]0&quot;' 'sed 20q &quot;[$]0&quot;' 'sed 50q &quot;[$]0&quot;'; do
++          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
++          then
++            break
++          fi
++          prev=&quot;$cmd&quot;
++        done
++
++        if test &quot;$prev&quot; != 'sed 50q &quot;[$]0&quot;'; then
++          echo_test_string=`eval $prev`
++          export echo_test_string
++          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;[$]0&quot; ${1+&quot;[$]@&quot;}
++        else
++          # Oops.  We lost completely, so just stick with echo.
++          echo=echo
++        fi
++      fi
++    fi
++  fi
++fi
++fi
++
++# Copy echo and quote the copy suitably for passing to libtool from
++# the Makefile, instead of quoting the original, which is used later.
++ECHO=$echo
++if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL [$]0 --fallback-echo&quot;; then
++   ECHO=&quot;$CONFIG_SHELL \\\$\[$]0 --fallback-echo&quot;
++fi
++
++AC_SUBST(ECHO)
++])])# _LT_AC_PROG_ECHO_BACKSLASH
++
++
++# _LT_AC_LOCK
++# -----------
++AC_DEFUN([_LT_AC_LOCK],
++[AC_ARG_ENABLE([libtool-lock],
++    [AC_HELP_STRING([--disable-libtool-lock],
++        [avoid locking (might break parallel builds)])])
++test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
++
++# Some flags need to be propagated to the compiler or linker for good
++# libtool support.
++case $host in
++ia64-*-hpux*)
++  # Find out which ABI we are using.
++  echo 'int i;' &gt; conftest.$ac_ext
++  if AC_TRY_EVAL(ac_compile); then
++    case `/usr/bin/file conftest.$ac_objext` in
++    *ELF-32*)
++      HPUX_IA64_MODE=&quot;32&quot;
++      ;;
++    *ELF-64*)
++      HPUX_IA64_MODE=&quot;64&quot;
++      ;;
++    esac
++  fi
++  rm -rf conftest*
++  ;;
++*-*-irix6*)
++  # Find out which ABI we are using.
++  echo '[#]line __oline__ &quot;configure&quot;' &gt; conftest.$ac_ext
++  if AC_TRY_EVAL(ac_compile); then
++   if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++    case `/usr/bin/file conftest.$ac_objext` in
++    *32-bit*)
++      LD=&quot;${LD-ld} -melf32bsmip&quot;
++      ;;
++    *N32*)
++      LD=&quot;${LD-ld} -melf32bmipn32&quot;
++      ;;
++    *64-bit*)
++      LD=&quot;${LD-ld} -melf64bmip&quot;
++      ;;
++    esac
++   else
++    case `/usr/bin/file conftest.$ac_objext` in
++    *32-bit*)
++      LD=&quot;${LD-ld} -32&quot;
++      ;;
++    *N32*)
++      LD=&quot;${LD-ld} -n32&quot;
++      ;;
++    *64-bit*)
++      LD=&quot;${LD-ld} -64&quot;
++      ;;
++    esac
++   fi
++  fi
++  rm -rf conftest*
++  ;;
++
++x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
++  # Find out which ABI we are using.
++  echo 'int i;' &gt; conftest.$ac_ext
++  if AC_TRY_EVAL(ac_compile); then
++    case `/usr/bin/file conftest.o` in
++    *32-bit*)
++      case $host in
++        x86_64-*linux*)
++          LD=&quot;${LD-ld} -m elf_i386&quot;
++          ;;
++        ppc64-*linux*|powerpc64-*linux*)
++          LD=&quot;${LD-ld} -m elf32ppclinux&quot;
++          ;;
++        s390x-*linux*)
++          LD=&quot;${LD-ld} -m elf_s390&quot;
++          ;;
++        sparc64-*linux*)
++          LD=&quot;${LD-ld} -m elf32_sparc&quot;
++          ;;
++      esac
++      ;;
++    *64-bit*)
++      case $host in
++        x86_64-*linux*)
++          LD=&quot;${LD-ld} -m elf_x86_64&quot;
++          ;;
++        ppc*-*linux*|powerpc*-*linux*)
++          LD=&quot;${LD-ld} -m elf64ppc&quot;
++          ;;
++        s390*-*linux*)
++          LD=&quot;${LD-ld} -m elf64_s390&quot;
++          ;;
++        sparc*-*linux*)
++          LD=&quot;${LD-ld} -m elf64_sparc&quot;
++          ;;
++      esac
++      ;;
++    esac
++  fi
++  rm -rf conftest*
++  ;;
++
++*-*-sco3.2v5*)
++  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
++  SAVE_CFLAGS=&quot;$CFLAGS&quot;
++  CFLAGS=&quot;$CFLAGS -belf&quot;
++  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
++    [AC_LANG_PUSH(C)
++     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
++     AC_LANG_POP])
++  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
++    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
++    CFLAGS=&quot;$SAVE_CFLAGS&quot;
++  fi
++  ;;
++AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
++[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
++  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
++  AC_CHECK_TOOL(AS, as, false)
++  AC_CHECK_TOOL(OBJDUMP, objdump, false)
++  ;;
++  ])
++esac
++
++need_locks=&quot;$enable_libtool_lock&quot;
++
++])# _LT_AC_LOCK
++
++
++# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
++#                [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
++# ----------------------------------------------------------------
++# Check whether the given compiler option works
++AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
++[AC_REQUIRE([LT_AC_PROG_SED])
++AC_CACHE_CHECK([$1], [$2],
++  [$2=no
++  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;$3&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:__oline__: $lt_compile\&quot;&quot; &gt;&amp;AS_MESSAGE_LOG_FD)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;AS_MESSAGE_LOG_FD
++   echo &quot;$as_me:__oline__: \$? = $ac_status&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       $2=yes
++     fi
++   fi
++   $rm conftest*
++])
++
++if test x&quot;[$]$2&quot; = xyes; then
++    ifelse([$5], , :, [$5])
++else
++    ifelse([$6], , :, [$6])
++fi
++])# AC_LIBTOOL_COMPILER_OPTION
++
++
++# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
++#                          [ACTION-SUCCESS], [ACTION-FAILURE])
++# ------------------------------------------------------------
++# Check whether the given compiler option works
++AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
++[AC_CACHE_CHECK([$1], [$2],
++  [$2=no
++   save_LDFLAGS=&quot;$LDFLAGS&quot;
++   LDFLAGS=&quot;$LDFLAGS $3&quot;
++   printf &quot;$lt_simple_link_test_code&quot; &gt; conftest.$ac_ext
++   if (eval $ac_link 2&gt;conftest.err) &amp;&amp; test -s conftest$ac_exeext; then
++     # The linker can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     if test -s conftest.err; then
++       # Append any errors to the config.log.
++       cat conftest.err 1&gt;&amp;AS_MESSAGE_LOG_FD
++       $echo &quot;X$_lt_linker_boilerplate&quot; | $Xsed &gt; conftest.exp
++       $SED '/^$/d' conftest.err &gt;conftest.er2
++       if diff conftest.exp conftest.er2 &gt;/dev/null; then
++         $2=yes
++       fi
++     else
++       $2=yes
++     fi
++   fi
++   $rm conftest*
++   LDFLAGS=&quot;$save_LDFLAGS&quot;
++])
++
++if test x&quot;[$]$2&quot; = xyes; then
++    ifelse([$4], , :, [$4])
++else
++    ifelse([$5], , :, [$5])
++fi
++])# AC_LIBTOOL_LINKER_OPTION
++
++
++# AC_LIBTOOL_SYS_MAX_CMD_LEN
++# --------------------------
++AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
++[# find the maximum length of command line arguments
++AC_MSG_CHECKING([the maximum length of command line arguments])
++AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
++  i=0
++  teststring=&quot;ABCD&quot;
++
++  case $build_os in
++  msdosdjgpp*)
++    # On DJGPP, this test can blow up pretty badly due to problems in libc
++    # (any single argument exceeding 2000 bytes causes a buffer overrun
++    # during glob expansion).  Even if it were fixed, the result of this
++    # check would be larger than it should be.
++    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
++    ;;
++
++  gnu*)
++    # Under GNU Hurd, this test is not required because there is
++    # no limit to the length of command line arguments.
++    # Libtool will interpret -1 as no limit whatsoever
++    lt_cv_sys_max_cmd_len=-1;
++    ;;
++
++  cygwin* | mingw*)
++    # On Win9x/ME, this test blows up -- it succeeds, but takes
++    # about 5 minutes as the teststring grows exponentially.
++    # Worse, since 9x/ME are not pre-emptively multitasking,
++    # you end up with a &quot;frozen&quot; computer, even though with patience
++    # the test eventually succeeds (with a max line length of 256k).
++    # Instead, let's just punt: use the minimum linelength reported by
++    # all of the supported platforms: 8192 (on NT/2K/XP).
++    lt_cv_sys_max_cmd_len=8192;
++    ;;
++
++  amigaos*)
++    # On AmigaOS with pdksh, this test takes hours, literally.
++    # So we just punt and use a minimum line length of 8192.
++    lt_cv_sys_max_cmd_len=8192;
++    ;;
++
++  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
++    # This has been around since 386BSD, at least.  Likely further.
++    if test -x /sbin/sysctl; then
++      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
++    elif test -x /usr/sbin/sysctl; then
++      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
++    else
++      lt_cv_sys_max_cmd_len=65536        # usable default for all BSDs
++    fi
++    # And add a safety zone
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
++    ;;
++  osf*)
++    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
++    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
++    # nice to cause kernel panics so lets avoid the loop below.
++    # First set a reasonable default.
++    lt_cv_sys_max_cmd_len=16384
++    #
++    if test -x /sbin/sysconfig; then
++      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
++        *1*) lt_cv_sys_max_cmd_len=-1 ;;
++      esac
++    fi
++    ;;
++  *)
++    # If test is not a shell built-in, we'll probably end up computing a
++    # maximum length that is only half of the actual maximum length, but
++    # we can't tell.
++    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
++    while (test &quot;X&quot;`$SHELL [$]0 --fallback-echo &quot;X$teststring&quot; 2&gt;/dev/null` \
++               = &quot;XX$teststring&quot;) &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++            new_result=`expr &quot;X$teststring&quot; : &quot;.*&quot; 2&gt;&amp;1` &amp;&amp;
++            lt_cv_sys_max_cmd_len=$new_result &amp;&amp;
++            test $i != 17 # 1/2 MB should be enough
++    do
++      i=`expr $i + 1`
++      teststring=$teststring$teststring
++    done
++    teststring=
++    # Add a significant safety factor because C++ compilers can tack on massive
++    # amounts of additional arguments before passing them to the linker.
++    # It appears as though 1/2 is a usable value.
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
++    ;;
++  esac
++])
++if test -n $lt_cv_sys_max_cmd_len ; then
++  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
++else
++  AC_MSG_RESULT(none)
++fi
++])# AC_LIBTOOL_SYS_MAX_CMD_LEN
++
++
++# _LT_AC_CHECK_DLFCN
++# --------------------
++AC_DEFUN([_LT_AC_CHECK_DLFCN],
++[AC_CHECK_HEADERS(dlfcn.h)dnl
++])# _LT_AC_CHECK_DLFCN
++
++
++# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
++#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
++# ------------------------------------------------------------------
++AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
++[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
++if test &quot;$cross_compiling&quot; = yes; then :
++  [$4]
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++[#line __oline__ &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}]
++EOF
++  if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;AS_MESSAGE_LOG_FD 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) $1 ;;
++      x$lt_dlneed_uscore) $2 ;;
++      x$lt_unknown|x*) $3 ;;
++    esac
++  else :
++    # compilation failed
++    $3
++  fi
++fi
++rm -fr conftest*
++])# _LT_AC_TRY_DLOPEN_SELF
++
++
++# AC_LIBTOOL_DLOPEN_SELF
++# -------------------
++AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
++[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
++if test &quot;x$enable_dlopen&quot; != xyes; then
++  enable_dlopen=unknown
++  enable_dlopen_self=unknown
++  enable_dlopen_self_static=unknown
++else
++  lt_cv_dlopen=no
++  lt_cv_dlopen_libs=
++
++  case $host_os in
++  beos*)
++    lt_cv_dlopen=&quot;load_add_on&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++    ;;
++
++  mingw* | pw32*)
++    lt_cv_dlopen=&quot;LoadLibrary&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  cygwin*)
++    lt_cv_dlopen=&quot;dlopen&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  darwin*)
++  # if libdl is installed we need to link against it
++    AC_CHECK_LIB([dl], [dlopen],
++                [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;],[
++    lt_cv_dlopen=&quot;dyld&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++    ])
++   ;;
++
++  *)
++    AC_CHECK_FUNC([shl_load],
++          [lt_cv_dlopen=&quot;shl_load&quot;],
++      [AC_CHECK_LIB([dld], [shl_load],
++            [lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;],
++        [AC_CHECK_FUNC([dlopen],
++              [lt_cv_dlopen=&quot;dlopen&quot;],
++          [AC_CHECK_LIB([dl], [dlopen],
++                [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;],
++            [AC_CHECK_LIB([svld], [dlopen],
++                  [lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;],
++              [AC_CHECK_LIB([dld], [dld_link],
++                    [lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;])
++              ])
++            ])
++          ])
++        ])
++      ])
++    ;;
++  esac
++
++  if test &quot;x$lt_cv_dlopen&quot; != xno; then
++    enable_dlopen=yes
++  else
++    enable_dlopen=no
++  fi
++
++  case $lt_cv_dlopen in
++  dlopen)
++    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
++
++    save_LDFLAGS=&quot;$LDFLAGS&quot;
++    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
++
++    save_LIBS=&quot;$LIBS&quot;
++    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
++
++    AC_CACHE_CHECK([whether a program can dlopen itself],
++          lt_cv_dlopen_self, [dnl
++          _LT_AC_TRY_DLOPEN_SELF(
++            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
++            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
++    ])
++
++    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
++      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
++      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
++              lt_cv_dlopen_self_static, [dnl
++          _LT_AC_TRY_DLOPEN_SELF(
++            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
++            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
++      ])
++    fi
++
++    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
++    LDFLAGS=&quot;$save_LDFLAGS&quot;
++    LIBS=&quot;$save_LIBS&quot;
++    ;;
++  esac
++
++  case $lt_cv_dlopen_self in
++  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
++  *) enable_dlopen_self=unknown ;;
++  esac
++
++  case $lt_cv_dlopen_self_static in
++  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
++  *) enable_dlopen_self_static=unknown ;;
++  esac
++fi
++])# AC_LIBTOOL_DLOPEN_SELF
++
++
++# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
++# ---------------------------------
++# Check to see if options -c and -o are simultaneously supported by compiler
++AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
++[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
++AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
++  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
++  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
++   $rm -r conftest 2&gt;/dev/null
++   mkdir conftest
++   cd conftest
++   mkdir out
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:__oline__: $lt_compile\&quot;&quot; &gt;&amp;AS_MESSAGE_LOG_FD)
++   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
++   ac_status=$?
++   cat out/conftest.err &gt;&amp;AS_MESSAGE_LOG_FD
++   echo &quot;$as_me:__oline__: \$? = $ac_status&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
++   then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
++     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
++     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
++       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
++     fi
++   fi
++   chmod u+w . 2&gt;&amp;AS_MESSAGE_LOG_FD
++   $rm conftest*
++   # SGI C++ compiler will create directory out/ii_files/ for
++   # template instantiation
++   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
++   $rm out/* &amp;&amp; rmdir out
++   cd ..
++   rmdir conftest
++   $rm conftest*
++])
++])# AC_LIBTOOL_PROG_CC_C_O
++
++
++# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
++# -----------------------------------------
++# Check to see if we can do hard links to lock some files if needed
++AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
++[AC_REQUIRE([_LT_AC_LOCK])dnl
++
++hard_links=&quot;nottested&quot;
++if test &quot;$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
++  # do not overwrite the value of need_locks provided by the user
++  AC_MSG_CHECKING([if we can lock with hard links])
++  hard_links=yes
++  $rm conftest*
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  touch conftest.a
++  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  AC_MSG_RESULT([$hard_links])
++  if test &quot;$hard_links&quot; = no; then
++    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
++    need_locks=warn
++  fi
++else
++  need_locks=no
++fi
++])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
++
++
++# AC_LIBTOOL_OBJDIR
++# -----------------
++AC_DEFUN([AC_LIBTOOL_OBJDIR],
++[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
++[rm -f .libs 2&gt;/dev/null
++mkdir .libs 2&gt;/dev/null
++if test -d .libs; then
++  lt_cv_objdir=.libs
++else
++  # MS-DOS does not allow filenames that begin with a dot.
++  lt_cv_objdir=_libs
++fi
++rmdir .libs 2&gt;/dev/null])
++objdir=$lt_cv_objdir
++])# AC_LIBTOOL_OBJDIR
++
++
++# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
++# ----------------------------------------------
++# Check hardcoding attributes.
++AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
++[AC_MSG_CHECKING([how to hardcode library paths into programs])
++_LT_AC_TAGVAR(hardcode_action, $1)=
++if test -n &quot;$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)&quot; || \
++   test -n &quot;$_LT_AC_TAGVAR(runpath_var, $1)&quot; || \
++   test &quot;X$_LT_AC_TAGVAR(hardcode_automatic, $1)&quot; = &quot;Xyes&quot; ; then
++
++  # We can hardcode non-existant directories.
++  if test &quot;$_LT_AC_TAGVAR(hardcode_direct, $1)&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)&quot; != no &amp;&amp;
++     test &quot;$_LT_AC_TAGVAR(hardcode_minus_L, $1)&quot; != no; then
++    # Linking always hardcodes the temporary library directory.
++    _LT_AC_TAGVAR(hardcode_action, $1)=relink
++  else
++    # We can link without hardcoding, and we can hardcode nonexisting dirs.
++    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
++  fi
++else
++  # We cannot hardcode anything, or else we can only hardcode existing
++  # directories.
++  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
++fi
++AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
++
++if test &quot;$_LT_AC_TAGVAR(hardcode_action, $1)&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
++
++
++# AC_LIBTOOL_SYS_LIB_STRIP
++# ------------------------
++AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
++[striplib=
++old_striplib=
++AC_MSG_CHECKING([whether stripping libraries is possible])
++if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
++  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
++  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
++  AC_MSG_RESULT([yes])
++else
++# FIXME - insert some real tests, host_os isn't really good enough
++  case $host_os in
++   darwin*)
++       if test -n &quot;$STRIP&quot; ; then
++         striplib=&quot;$STRIP -x&quot;
++         AC_MSG_RESULT([yes])
++       else
++  AC_MSG_RESULT([no])
++fi
++       ;;
++   *)
++  AC_MSG_RESULT([no])
++    ;;
++  esac
++fi
++])# AC_LIBTOOL_SYS_LIB_STRIP
++
++
++# AC_LIBTOOL_SYS_DYNAMIC_LINKER
++# -----------------------------
++# PORTME Fill in your ld.so characteristics
++AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
++[AC_MSG_CHECKING([dynamic linker characteristics])
++library_names_spec=
++libname_spec='lib$name'
++soname_spec=
++shrext_cmds=&quot;.so&quot;
++postinstall_cmds=
++postuninstall_cmds=
++finish_cmds=
++finish_eval=
++shlibpath_var=
++shlibpath_overrides_runpath=unknown
++version_type=none
++dynamic_linker=&quot;$host_os ld.so&quot;
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++if test &quot;$GCC&quot; = yes; then
++  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
++    # if the path contains &quot;;&quot; then we assume it to be the separator
++    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
++    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
++    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++  else
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++  fi
++else
++  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++fi
++need_lib_prefix=unknown
++hardcode_into_libs=no
++
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
++need_version=unknown
++
++case $host_os in
++aix3*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
++  shlibpath_var=LIBPATH
++
++  # AIX 3 has no versioning support, so we append a major version to the name.
++  soname_spec='${libname}${release}${shared_ext}$major'
++  ;;
++
++aix4* | aix5*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  hardcode_into_libs=yes
++  if test &quot;$host_cpu&quot; = ia64; then
++    # AIX 5 supports IA64
++    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
++    shlibpath_var=LD_LIBRARY_PATH
++  else
++    # With GCC up to 2.95.x, collect2 would create an import file
++    # for dependence libraries.  The import file would start with
++    # the line `#! .'.  This would cause the generated library to
++    # depend on `.', always an invalid library.  This was fixed in
++    # development snapshots of GCC prior to 3.0.
++    case $host_os in
++      aix4 | aix4.[[01]] | aix4.[[01]].*)
++      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
++           echo ' yes '
++           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
++        :
++      else
++        can_build_shared=no
++      fi
++      ;;
++    esac
++    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
++    # soname into executable. Probably we can add versioning support to
++    # collect2, so additional links can be useful in future.
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
++      # instead of lib&lt;name&gt;.a to let people know that these are not
++      # typical AIX shared libraries.
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    else
++      # We preserve .a as extension for shared libraries through AIX4.2
++      # and later when we are not doing run time linking.
++      library_names_spec='${libname}${release}.a $libname.a'
++      soname_spec='${libname}${release}${shared_ext}$major'
++    fi
++    shlibpath_var=LIBPATH
++  fi
++  ;;
++
++amigaos*)
++  library_names_spec='$libname.ixlibrary $libname.a'
++  # Create ${libname}_ixlibrary.a entries in /sys/libs.
++  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
++  ;;
++
++beos*)
++  library_names_spec='${libname}${shared_ext}'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  ;;
++
++bsdi[[45]]*)
++  version_type=linux
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
++  ;;
++
++cygwin* | mingw* | pw32*)
++  version_type=windows
++  shrext_cmds=&quot;.dll&quot;
++  need_version=no
++  need_lib_prefix=no
++
++  case $GCC,$host_os in
++  yes,cygwin* | yes,mingw* | yes,pw32*)
++    library_names_spec='$libname.dll.a'
++    # DLL is installed to $(libdir)/../bin by postinstall_cmds
++    postinstall_cmds='base_file=`basename \${file}`~
++      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
++      dldir=$destdir/`dirname \$dlpath`~
++      test -d \$dldir || mkdir -p \$dldir~
++      $install_prog $dir/$dlname \$dldir/$dlname~
++      chmod a+x \$dldir/$dlname'
++    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
++      dlpath=$dir/\$dldll~
++       $rm \$dlpath'
++    shlibpath_overrides_runpath=yes
++
++    case $host_os in
++    cygwin*)
++      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
++      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
++      ;;
++    mingw*)
++      # MinGW DLLs use traditional 'lib' prefix
++      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++      if echo &quot;$sys_lib_search_path_spec&quot; | [grep ';[c-zC-Z]:/' &gt;/dev/null]; then
++        # It is most probably a Windows format PATH printed by
++        # mingw gcc, but we are running on Cygwin. Gcc prints its search
++        # path with ; separators, and with drive letters. We can handle the
++        # drive letters (cygwin fileutils understands them), so leave them,
++        # especially as we might pass files found there to a mingw objdump,
++        # which wouldn't understand a cygwinified path. Ahh.
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++      else
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++      fi
++      ;;
++    pw32*)
++      # pw32 DLLs use 'pw' prefix rather than 'lib'
++      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
++      ;;
++    esac
++    ;;
++
++  *)
++    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
++    ;;
++  esac
++  dynamic_linker='Win32 ld.exe'
++  # FIXME: first we should search . and the directory the executable is in
++  shlibpath_var=PATH
++  ;;
++
++darwin* | rhapsody*)
++  dynamic_linker=&quot;$host_os dyld&quot;
++  version_type=darwin
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
++  soname_spec='${libname}${release}${major}$shared_ext'
++  shlibpath_overrides_runpath=yes
++  shlibpath_var=DYLD_LIBRARY_PATH
++  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
++  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
++  if test &quot;$GCC&quot; = yes; then
++    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
++  else
++    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
++  fi
++  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
++  ;;
++
++dgux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++freebsd1*)
++  dynamic_linker=no
++  ;;
++
++kfreebsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++freebsd* | dragonfly*)
++  # DragonFly does not have aout.  When/if they implement a new
++  # versioning mechanism, adjust this.
++  if test -x /usr/bin/objformat; then
++    objformat=`/usr/bin/objformat`
++  else
++    case $host_os in
++    freebsd[[123]]*) objformat=aout ;;
++    *) objformat=elf ;;
++    esac
++  fi
++  version_type=freebsd-$objformat
++  case $version_type in
++    freebsd-elf*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
++      need_version=yes
++      ;;
++  esac
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_os in
++  freebsd2*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
++    shlibpath_overrides_runpath=yes
++    hardcode_into_libs=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    hardcode_into_libs=yes
++    ;;
++  esac
++  ;;
++
++gnu*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  hardcode_into_libs=yes
++  ;;
++
++hpux9* | hpux10* | hpux11*)
++  # Give a soname corresponding to the major version so that dld.sl refuses to
++  # link against other versions.
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  case $host_cpu in
++  ia64*)
++    shrext_cmds='.so'
++    hardcode_into_libs=yes
++    dynamic_linker=&quot;$host_os dld.so&quot;
++    shlibpath_var=LD_LIBRARY_PATH
++    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
++    else
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
++    fi
++    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++    ;;
++   hppa*64*)
++     shrext_cmds='.sl'
++     hardcode_into_libs=yes
++     dynamic_linker=&quot;$host_os dld.sl&quot;
++     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
++     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++     soname_spec='${libname}${release}${shared_ext}$major'
++     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
++     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++     ;;
++   *)
++    shrext_cmds='.sl'
++    dynamic_linker=&quot;$host_os dld.sl&quot;
++    shlibpath_var=SHLIB_PATH
++    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    ;;
++  esac
++  # HP-UX runs *really* slowly unless shared libraries are mode 555.
++  postinstall_cmds='chmod 555 $lib'
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $host_os in
++    nonstopux*) version_type=nonstopux ;;
++    *)
++        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++                version_type=linux
++        else
++                version_type=irix
++        fi ;;
++  esac
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
++  case $host_os in
++  irix5* | nonstopux*)
++    libsuff= shlibsuff=
++    ;;
++  *)
++    case $LD in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
++      libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
++      libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
++      libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  hardcode_into_libs=yes
++  ;;
++
++# No shared lib support for Linux oldld, aout, or coff.
++linux*oldld* | linux*aout* | linux*coff*)
++  dynamic_linker=no
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  # This implies no fast_install, which is unacceptable.
++  # Some rework will be needed to allow for fast_install
++  # before this can be enabled.
++  hardcode_into_libs=yes
++
++  # Append ld.so.conf contents to the search path
++  if test -f /etc/ld.so.conf; then
++    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
++    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
++  fi
++
++  # We used to test for /lib/ld.so.1 and disable shared libraries on
++  # powerpc, because MkLinux only supported shared libraries with the
++  # GNU dynamic linker.  Since this was broken with cross compilers,
++  # most powerpc-linux boxes support dynamic linking these days and
++  # people can always --disable-shared, the test was removed, and we
++  # assume the GNU/Linux dynamic linker is in use.
++  dynamic_linker='GNU/Linux ld.so'
++  ;;
++
++netbsdelf*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='NetBSD ld.elf_so'
++  ;;
++
++knetbsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++netbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  ;;
++
++newsos6)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++nto-qnx*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++openbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
++  case $host_os in
++    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
++    *)                         need_version=no  ;;
++  esac
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    case $host_os in
++      openbsd2.[[89]] | openbsd2.[[89]].*)
++        shlibpath_overrides_runpath=no
++        ;
++      *)
++        shlibpath_overrides_runpath=yes
++        ;
++      esac
++  else
++    shlibpath_overrides_runpath=yes
++  fi
++  ;;
++
++os2*)
++  libname_spec='$name'
++  shrext_cmds=&quot;.dll&quot;
++  need_lib_prefix=no
++  library_names_spec='$libname${shared_ext} $libname.a'
++  dynamic_linker='OS/2 ld.exe'
++  shlibpath_var=LIBPATH
++  ;;
++
++osf3* | osf4* | osf5*)
++  version_type=osf
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++sco3.2v5*)
++  version_type=osf
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++solaris*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  # ldd complains unless libraries are executable
++  postinstall_cmds='chmod +x $lib'
++  ;;
++
++sunos4*)
++  version_type=sunos
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_vendor in
++    sni)
++      shlibpath_overrides_runpath=no
++      need_lib_prefix=no
++      export_dynamic_flag_spec='${wl}-Blargedynsym'
++      runpath_var=LD_RUN_PATH
++      ;;
++    siemens)
++      need_lib_prefix=no
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      ;;
++  esac
++  ;;
++
++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
++    soname_spec='$libname${shared_ext}.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
++uts4*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++*)
++  dynamic_linker=no
++  ;;
++esac
++AC_MSG_RESULT([$dynamic_linker])
++test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
++])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
++
++
++# _LT_AC_TAGCONFIG
++# ----------------
++AC_DEFUN([_LT_AC_TAGCONFIG],
++[AC_ARG_WITH([tags],
++    [AC_HELP_STRING([--with-tags@&lt;:@=TAGS@:&gt;@],
++        [include additional configurations @&lt;:@automatic@:&gt;@])],
++    [tagnames=&quot;$withval&quot;])
++
++if test -f &quot;$ltmain&quot; &amp;&amp; test -n &quot;$tagnames&quot;; then
++  if test ! -f &quot;${ofile}&quot;; then
++    AC_MSG_WARN([output file `$ofile' does not exist])
++  fi
++
++  if test -z &quot;$LTCC&quot;; then
++    eval &quot;`$SHELL ${ofile} --config | grep '^LTCC='`&quot;
++    if test -z &quot;$LTCC&quot;; then
++      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
++    else
++      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
++    fi
++  fi
++
++  # Extract list of available tagged configurations in $ofile.
++  # Note that this assumes the entire list is on one line.
++  available_tags=`grep &quot;^available_tags=&quot; &quot;${ofile}&quot; | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\&quot;//g'`
++
++  lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++  for tagname in $tagnames; do
++    IFS=&quot;$lt_save_ifs&quot;
++    # Check whether tagname contains only valid characters
++    case `$echo &quot;X$tagname&quot; | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
++    &quot;&quot;) ;;
++    *)  AC_MSG_ERROR([invalid tag name: $tagname])
++        ;
++    esac
++
++    if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;${ofile}&quot; &gt; /dev/null
++    then
++      AC_MSG_ERROR([tag name \&quot;$tagname\&quot; already exists])
++    fi
++
++    # Update the list of available tags.
++    if test -n &quot;$tagname&quot;; then
++      echo appending configuration tag \&quot;$tagname\&quot; to $ofile
++
++      case $tagname in
++      CXX)
++        if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
++            ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
++            (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
++          AC_LIBTOOL_LANG_CXX_CONFIG
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      F77)
++        if test -n &quot;$F77&quot; &amp;&amp; test &quot;X$F77&quot; != &quot;Xno&quot;; then
++          AC_LIBTOOL_LANG_F77_CONFIG
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      GCJ)
++        if test -n &quot;$GCJ&quot; &amp;&amp; test &quot;X$GCJ&quot; != &quot;Xno&quot;; then
++          AC_LIBTOOL_LANG_GCJ_CONFIG
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      RC)
++        AC_LIBTOOL_LANG_RC_CONFIG
++        ;
++
++      *)
++        AC_MSG_ERROR([Unsupported tag name: $tagname])
++        ;
++      esac
++
++      # Append the new tag name to the list of available tags.
++      if test -n &quot;$tagname&quot; ; then
++      available_tags=&quot;$available_tags $tagname&quot;
++    fi
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++
++  # Now substitute the updated list of available tags.
++  if eval &quot;sed -e 's/^available_tags=.*\$/available_tags=\&quot;$available_tags\&quot;/' \&quot;$ofile\&quot; &gt; \&quot;${ofile}T\&quot;&quot;; then
++    mv &quot;${ofile}T&quot; &quot;$ofile&quot;
++    chmod +x &quot;$ofile&quot;
++  else
++    rm -f &quot;${ofile}T&quot;
++    AC_MSG_ERROR([unable to update list of available tagged configurations.])
++  fi
++fi
++])# _LT_AC_TAGCONFIG
++
++
++# AC_LIBTOOL_DLOPEN
++# -----------------
++# enable checks for dlopen support
++AC_DEFUN([AC_LIBTOOL_DLOPEN],
++ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
++])# AC_LIBTOOL_DLOPEN
++
++
++# AC_LIBTOOL_WIN32_DLL
++# --------------------
++# declare package support for building win32 DLLs
++AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
++[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
++])# AC_LIBTOOL_WIN32_DLL
++
++
++# AC_ENABLE_SHARED([DEFAULT])
++# ---------------------------
++# implement the --enable-shared flag
++# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
++AC_DEFUN([AC_ENABLE_SHARED],
++[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
++AC_ARG_ENABLE([shared],
++    [AC_HELP_STRING([--enable-shared@&lt;:@=PKGS@:&gt;@],
++        [build shared libraries @&lt;:@default=]AC_ENABLE_SHARED_DEFAULT[@:&gt;@])],
++    [p=${PACKAGE-default}
++    case $enableval in
++    yes) enable_shared=yes ;;
++    no) enable_shared=no ;;
++    *)
++      enable_shared=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_shared=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac],
++    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
++])# AC_ENABLE_SHARED
++
++
++# AC_DISABLE_SHARED
++# -----------------
++#- set the default shared flag to --disable-shared
++AC_DEFUN([AC_DISABLE_SHARED],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++AC_ENABLE_SHARED(no)
++])# AC_DISABLE_SHARED
++
++
++# AC_ENABLE_STATIC([DEFAULT])
++# ---------------------------
++# implement the --enable-static flag
++# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
++AC_DEFUN([AC_ENABLE_STATIC],
++[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
++AC_ARG_ENABLE([static],
++    [AC_HELP_STRING([--enable-static@&lt;:@=PKGS@:&gt;@],
++        [build static libraries @&lt;:@default=]AC_ENABLE_STATIC_DEFAULT[@:&gt;@])],
++    [p=${PACKAGE-default}
++    case $enableval in
++    yes) enable_static=yes ;;
++    no) enable_static=no ;;
++    *)
++     enable_static=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_static=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac],
++    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
++])# AC_ENABLE_STATIC
++
++
++# AC_DISABLE_STATIC
++# -----------------
++# set the default static flag to --disable-static
++AC_DEFUN([AC_DISABLE_STATIC],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++AC_ENABLE_STATIC(no)
++])# AC_DISABLE_STATIC
++
++
++# AC_ENABLE_FAST_INSTALL([DEFAULT])
++# ---------------------------------
++# implement the --enable-fast-install flag
++# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
++AC_DEFUN([AC_ENABLE_FAST_INSTALL],
++[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
++AC_ARG_ENABLE([fast-install],
++    [AC_HELP_STRING([--enable-fast-install@&lt;:@=PKGS@:&gt;@],
++    [optimize for fast installation @&lt;:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:&gt;@])],
++    [p=${PACKAGE-default}
++    case $enableval in
++    yes) enable_fast_install=yes ;;
++    no) enable_fast_install=no ;;
++    *)
++      enable_fast_install=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_fast_install=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac],
++    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
++])# AC_ENABLE_FAST_INSTALL
++
++
++# AC_DISABLE_FAST_INSTALL
++# -----------------------
++# set the default to --disable-fast-install
++AC_DEFUN([AC_DISABLE_FAST_INSTALL],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++AC_ENABLE_FAST_INSTALL(no)
++])# AC_DISABLE_FAST_INSTALL
++
++
++# AC_LIBTOOL_PICMODE([MODE])
++# --------------------------
++# implement the --with-pic flag
++# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
++AC_DEFUN([AC_LIBTOOL_PICMODE],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++pic_mode=ifelse($#,1,$1,default)
++])# AC_LIBTOOL_PICMODE
++
++
++# AC_PROG_EGREP
++# -------------
++# This is predefined starting with Autoconf 2.54, so this conditional
++# definition can be removed once we require Autoconf 2.54 or later.
++m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
++[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
++   [if echo a | (grep -E '(a|b)') &gt;/dev/null 2&gt;&amp;1
++    then ac_cv_prog_egrep='grep -E'
++    else ac_cv_prog_egrep='egrep'
++    fi])
++ EGREP=$ac_cv_prog_egrep
++ AC_SUBST([EGREP])
++])])
++
++
++# AC_PATH_TOOL_PREFIX
++# -------------------
++# find a file program which can recognise shared library
++AC_DEFUN([AC_PATH_TOOL_PREFIX],
++[AC_REQUIRE([AC_PROG_EGREP])dnl
++AC_MSG_CHECKING([for $1])
++AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
++[case $MAGIC_CMD in
++[[\\/*] |  ?:[\\/]*])
++  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
++  ;;
++*)
++  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++dnl $ac_dummy forces splitting on constant user-supplied paths.
++dnl POSIX.2 word splitting is done only on the output of word expansions,
++dnl not every word.  This closes a longstanding sh security hole.
++  ac_dummy=&quot;ifelse([$2], , $PATH, [$2])&quot;
++  for ac_dir in $ac_dummy; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f $ac_dir/$1; then
++      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/$1&quot;
++      if test -n &quot;$file_magic_test_file&quot;; then
++        case $deplibs_check_method in
++        &quot;file_magic &quot;*)
++          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
++          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
++            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
++            :
++          else
++            cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the command libtool uses to detect shared libraries,
++*** $file_magic_cmd, produces output that libtool cannot recognize.
++*** The result is that libtool may fail to recognize shared libraries
++*** as such.  This will affect the creation of libtool libraries that
++*** depend on shared libraries, but programs linked with such libtool
++*** libraries will work regardless of this problem.  Nevertheless, you
++*** may want to report the problem to your system manager and/or to
++*** bug-libtool@gnu.org
++
++EOF
++          fi ;;
++        esac
++      fi
++      break
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
++  ;;
++esac])
++MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++if test -n &quot;$MAGIC_CMD&quot;; then
++  AC_MSG_RESULT($MAGIC_CMD)
++else
++  AC_MSG_RESULT(no)
++fi
++])# AC_PATH_TOOL_PREFIX
++
++
++# AC_PATH_MAGIC
++# -------------
++# find a file program which can recognise a shared library
++AC_DEFUN([AC_PATH_MAGIC],
++[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
++if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
++  if test -n &quot;$ac_tool_prefix&quot;; then
++    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
++  else
++    MAGIC_CMD=:
++  fi
++fi
++])# AC_PATH_MAGIC
++
++
++# AC_PROG_LD
++# ----------
++# find the pathname to the GNU or non-GNU linker
++AC_DEFUN([AC_PROG_LD],
++[AC_ARG_WITH([gnu-ld],
++    [AC_HELP_STRING([--with-gnu-ld],
++        [assume the C compiler uses GNU ld @&lt;:@default=no@:&gt;@])],
++    [test &quot;$withval&quot; = no || with_gnu_ld=yes],
++    [with_gnu_ld=no])
++AC_REQUIRE([LT_AC_PROG_SED])dnl
++AC_REQUIRE([AC_PROG_CC])dnl
++AC_REQUIRE([AC_CANONICAL_HOST])dnl
++AC_REQUIRE([AC_CANONICAL_BUILD])dnl
++ac_prog=ld
++if test &quot;$GCC&quot; = yes; then
++  # Check if gcc -print-prog-name=ld gives a path.
++  AC_MSG_CHECKING([for ld used by $CC])
++  case $host in
++  *-*-mingw*)
++    # gcc leaves a trailing carriage return which upsets mingw
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
++  *)
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
++  esac
++  case $ac_prog in
++    # Accept absolute paths.
++    [[\\/]]* | ?:[[\\/]]*)
++      re_direlt='/[[^/]][[^/]]*/\.\./'
++      # Canonicalize the pathname of ld
++      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
++      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
++        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
++      done
++      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
++      ;;
++  &quot;&quot;)
++    # If it fails, then pretend we aren't using GCC.
++    ac_prog=ld
++    ;;
++  *)
++    # If it is relative, then search for the first ld in PATH.
++    with_gnu_ld=unknown
++    ;;
++  esac
++elif test &quot;$with_gnu_ld&quot; = yes; then
++  AC_MSG_CHECKING([for GNU ld])
++else
++  AC_MSG_CHECKING([for non-GNU ld])
++fi
++AC_CACHE_VAL(lt_cv_path_LD,
++[if test -z &quot;$LD&quot;; then
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  for ac_dir in $PATH; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
++      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
++      # Check to see if the program is GNU ld.  I'd rather use --version,
++      # but apparently some variants of GNU ld only accept -v.
++      # Break only if it was the GNU/non-GNU ld that we prefer.
++      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
++      *GNU* | *'with BFD'*)
++        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
++        ;
++      *)
++        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
++        ;
++      esac
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++else
++  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
++fi])
++LD=&quot;$lt_cv_path_LD&quot;
++if test -n &quot;$LD&quot;; then
++  AC_MSG_RESULT($LD)
++else
++  AC_MSG_RESULT(no)
++fi
++test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
++AC_PROG_LD_GNU
++])# AC_PROG_LD
++
++
++# AC_PROG_LD_GNU
++# --------------
++AC_DEFUN([AC_PROG_LD_GNU],
++[AC_REQUIRE([AC_PROG_EGREP])dnl
++AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
++[# I'd rather use --version here, but apparently some GNU lds only accept -v.
++case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
++*GNU* | *'with BFD'*)
++  lt_cv_prog_gnu_ld=yes
++  ;;
++*)
++  lt_cv_prog_gnu_ld=no
++  ;;
++esac])
++with_gnu_ld=$lt_cv_prog_gnu_ld
++])# AC_PROG_LD_GNU
++
++
++# AC_PROG_LD_RELOAD_FLAG
++# ----------------------
++# find reload flag for linker
++#   -- PORTME Some linkers may need a different reload flag.
++AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
++[AC_CACHE_CHECK([for $LD option to reload object files],
++  lt_cv_ld_reload_flag,
++  [lt_cv_ld_reload_flag='-r'])
++reload_flag=$lt_cv_ld_reload_flag
++case $reload_flag in
++&quot;&quot; | &quot; &quot;*) ;;
++*) reload_flag=&quot; $reload_flag&quot; ;;
++esac
++reload_cmds='$LD$reload_flag -o $output$reload_objs'
++case $host_os in
++  darwin*)
++    if test &quot;$GCC&quot; = yes; then
++      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
++    else
++      reload_cmds='$LD$reload_flag -o $output$reload_objs'
++    fi
++    ;;
++esac
++])# AC_PROG_LD_RELOAD_FLAG
++
++
++# AC_DEPLIBS_CHECK_METHOD
++# -----------------------
++# how to check for library dependencies
++#  -- PORTME fill in with the dynamic library characteristics
++AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
++[AC_CACHE_CHECK([how to recognise dependent libraries],
++lt_cv_deplibs_check_method,
++[lt_cv_file_magic_cmd='$MAGIC_CMD'
++lt_cv_file_magic_test_file=
++lt_cv_deplibs_check_method='unknown'
++# Need to set the preceding variable on all platforms that support
++# interlibrary dependencies.
++# 'none' -- dependencies not supported.
++# `unknown' -- same as none, but documents that we really don't know.
++# 'pass_all' -- all dependencies passed with no checks.
++# 'test_compile' -- check by making test program.
++# 'file_magic [[regex]]' -- check by looking for files in library path
++# which responds to the $file_magic_cmd with a given extended regex.
++# If you have `file' or equivalent on your system and you're not sure
++# whether `pass_all' will *always* work, you probably want this one.
++
++case $host_os in
++aix4* | aix5*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++beos*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++bsdi[[45]]*)
++  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
++  lt_cv_file_magic_cmd='/usr/bin/file -L'
++  lt_cv_file_magic_test_file=/shlib/libc.so
++  ;;
++
++cygwin*)
++  # func_win32_libid is a shell function defined in ltmain.sh
++  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
++  lt_cv_file_magic_cmd='func_win32_libid'
++  ;;
++
++mingw* | pw32*)
++  # Base MSYS/MinGW do not provide the 'file' command needed by
++  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
++  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
++  lt_cv_file_magic_cmd='$OBJDUMP -f'
++  ;;
++
++darwin* | rhapsody*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++freebsd* | kfreebsd*-gnu | dragonfly*)
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
++    case $host_cpu in
++    i*86 )
++      # Not sure whether the presence of OpenBSD here was a mistake.
++      # Let's accept both of them until this is cleared up.
++      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
++      lt_cv_file_magic_cmd=/usr/bin/file
++      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
++      ;;
++    esac
++  else
++    lt_cv_deplibs_check_method=pass_all
++  fi
++  ;;
++
++gnu*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++hpux10.20* | hpux11*)
++  lt_cv_file_magic_cmd=/usr/bin/file
++  case $host_cpu in
++  ia64*)
++    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
++    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
++    ;;
++  hppa*64*)
++    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
++    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
++    ;;
++  *)
++    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
++    lt_cv_file_magic_test_file=/usr/lib/libc.sl
++    ;;
++  esac
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $LD in
++  *-32|*&quot;-32 &quot;) libmagic=32-bit;;
++  *-n32|*&quot;-n32 &quot;) libmagic=N32;;
++  *-64|*&quot;-64 &quot;) libmagic=64-bit;;
++  *) libmagic=never-match;;
++  esac
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
++    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
++  else
++    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
++  fi
++  ;;
++
++newos6*)
++  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
++  lt_cv_file_magic_cmd=/usr/bin/file
++  lt_cv_file_magic_test_file=/usr/lib/libnls.so
++  ;;
++
++nto-qnx*)
++  lt_cv_deplibs_check_method=unknown
++  ;;
++
++openbsd*)
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
++  else
++    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
++  fi
++  ;;
++
++osf3* | osf4* | osf5*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++sco3.2v5*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++solaris*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  case $host_vendor in
++  motorola)
++    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
++    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
++    ;;
++  ncr)
++    lt_cv_deplibs_check_method=pass_all
++    ;;
++  sequent)
++    lt_cv_file_magic_cmd='/bin/file'
++    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
++    ;;
++  sni)
++    lt_cv_file_magic_cmd='/bin/file'
++    lt_cv_deplibs_check_method=&quot;file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib&quot;
++    lt_cv_file_magic_test_file=/lib/libc.so
++    ;;
++  siemens)
++    lt_cv_deplibs_check_method=pass_all
++    ;;
++  esac
++  ;;
++
++sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
++esac
++])
++file_magic_cmd=$lt_cv_file_magic_cmd
++deplibs_check_method=$lt_cv_deplibs_check_method
++test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown
++])# AC_DEPLIBS_CHECK_METHOD
++
++
++# AC_PROG_NM
++# ----------
++# find the pathname to a BSD-compatible name lister
++AC_DEFUN([AC_PROG_NM],
++[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
++[if test -n &quot;$NM&quot;; then
++  # Let the user override the test.
++  lt_cv_path_NM=&quot;$NM&quot;
++else
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    tmp_nm=&quot;$ac_dir/${ac_tool_prefix}nm&quot;
++    if test -f &quot;$tmp_nm&quot; || test -f &quot;$tmp_nm$ac_exeext&quot; ; then
++      # Check to see if the nm accepts a BSD-compat flag.
++      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
++      #   nm: unknown option &quot;B&quot; ignored
++      # Tru64's nm complains that /dev/null is an invalid object file
++      case `&quot;$tmp_nm&quot; -B /dev/null 2&gt;&amp;1 | sed '1q'` in
++      */dev/null* | *'Invalid file or object type'*)
++        lt_cv_path_NM=&quot;$tmp_nm -B&quot;
++        break
++        ;;
++      *)
++        case `&quot;$tmp_nm&quot; -p /dev/null 2&gt;&amp;1 | sed '1q'` in
++        */dev/null*)
++          lt_cv_path_NM=&quot;$tmp_nm -p&quot;
++          break
++          ;;
++        *)
++          lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
++          continue # so that we can try to find one that supports BSD flags
++          ;;
++        esac
++      esac
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++  test -z &quot;$lt_cv_path_NM&quot; &amp;&amp; lt_cv_path_NM=nm
++fi])
++NM=&quot;$lt_cv_path_NM&quot;
++])# AC_PROG_NM
++
++
++# AC_CHECK_LIBM
++# -------------
++# check for math library
++AC_DEFUN([AC_CHECK_LIBM],
++[AC_REQUIRE([AC_CANONICAL_HOST])dnl
++LIBM=
++case $host in
++*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
++  # These system don't have libm, or don't need it
++  ;;
++*-ncr-sysv4.3*)
++  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=&quot;-lmw&quot;)
++  AC_CHECK_LIB(m, cos, LIBM=&quot;$LIBM -lm&quot;)
++  ;;
++*)
++  AC_CHECK_LIB(m, cos, LIBM=&quot;-lm&quot;)
++  ;;
++esac
++])# AC_CHECK_LIBM
++
++
++# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
++# -----------------------------------
++# sets LIBLTDL to the link flags for the libltdl convenience library and
++# LTDLINCL to the include flags for the libltdl header and adds
++# --enable-ltdl-convenience to the configure arguments.  Note that
++# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
++# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
++# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
++# (note the single quotes!).  If your package is not flat and you're not
++# using automake, define top_builddir and top_srcdir appropriately in
++# the Makefiles.
++AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++  case $enable_ltdl_convenience in
++  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
++  &quot;&quot;) enable_ltdl_convenience=yes
++      ac_configure_args=&quot;$ac_configure_args --enable-ltdl-convenience&quot; ;;
++  esac
++  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
++  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
++  # For backwards non-gettext consistent compatibility...
++  INCLTDL=&quot;$LTDLINCL&quot;
++])# AC_LIBLTDL_CONVENIENCE
++
++
++# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
++# -----------------------------------
++# sets LIBLTDL to the link flags for the libltdl installable library and
++# LTDLINCL to the include flags for the libltdl header and adds
++# --enable-ltdl-install to the configure arguments.  Note that
++# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
++# and an installed libltdl is not found, it is assumed to be `libltdl'.
++# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
++# '${top_srcdir}/' (note the single quotes!).  If your package is not
++# flat and you're not using automake, define top_builddir and top_srcdir
++# appropriately in the Makefiles.
++# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
++AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
++[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
++  AC_CHECK_LIB(ltdl, lt_dlinit,
++  [test x&quot;$enable_ltdl_install&quot; != xyes &amp;&amp; enable_ltdl_install=no],
++  [if test x&quot;$enable_ltdl_install&quot; = xno; then
++     AC_MSG_WARN([libltdl not installed, but installation disabled])
++   else
++     enable_ltdl_install=yes
++   fi
++  ])
++  if test x&quot;$enable_ltdl_install&quot; = x&quot;yes&quot;; then
++    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install&quot;
++    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
++    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
++  else
++    ac_configure_args=&quot;$ac_configure_args --enable-ltdl-install=no&quot;
++    LIBLTDL=&quot;-lltdl&quot;
++    LTDLINCL=
++  fi
++  # For backwards non-gettext consistent compatibility...
++  INCLTDL=&quot;$LTDLINCL&quot;
++])# AC_LIBLTDL_INSTALLABLE
++
++
++# AC_LIBTOOL_CXX
++# --------------
++# enable support for C++ libraries
++AC_DEFUN([AC_LIBTOOL_CXX],
++[AC_REQUIRE([_LT_AC_LANG_CXX])
++])# AC_LIBTOOL_CXX
++
++
++# _LT_AC_LANG_CXX
++# ---------------
++AC_DEFUN([_LT_AC_LANG_CXX],
++[AC_REQUIRE([AC_PROG_CXX])
++AC_REQUIRE([_LT_AC_PROG_CXXCPP])
++_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
++])# _LT_AC_LANG_CXX
++
++# _LT_AC_PROG_CXXCPP
++# ---------------
++AC_DEFUN([_LT_AC_PROG_CXXCPP],
++[
++AC_REQUIRE([AC_PROG_CXX])
++if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
++    ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
++    (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
++  AC_PROG_CXXCPP
++fi
++])# _LT_AC_PROG_CXXCPP
++
++# AC_LIBTOOL_F77
++# --------------
++# enable support for Fortran 77 libraries
++AC_DEFUN([AC_LIBTOOL_F77],
++[AC_REQUIRE([_LT_AC_LANG_F77])
++])# AC_LIBTOOL_F77
++
++
++# _LT_AC_LANG_F77
++# ---------------
++AC_DEFUN([_LT_AC_LANG_F77],
++[AC_REQUIRE([AC_PROG_F77])
++_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
++])# _LT_AC_LANG_F77
++
++
++# AC_LIBTOOL_GCJ
++# --------------
++# enable support for GCJ libraries
++AC_DEFUN([AC_LIBTOOL_GCJ],
++[AC_REQUIRE([_LT_AC_LANG_GCJ])
++])# AC_LIBTOOL_GCJ
++
++
++# _LT_AC_LANG_GCJ
++# ---------------
++AC_DEFUN([_LT_AC_LANG_GCJ],
++[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
++  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
++    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
++      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
++         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
++           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
++_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
++])# _LT_AC_LANG_GCJ
++
++
++# AC_LIBTOOL_RC
++# --------------
++# enable support for Windows resource files
++AC_DEFUN([AC_LIBTOOL_RC],
++[AC_REQUIRE([LT_AC_PROG_RC])
++_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
++])# AC_LIBTOOL_RC
++
++
++# AC_LIBTOOL_LANG_C_CONFIG
++# ------------------------
++# Ensure that the configuration vars for the C compiler are
++# suitably defined.  Those variables are subsequently used by
++# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
++AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
++AC_DEFUN([_LT_AC_LANG_C_CONFIG],
++[lt_save_CC=&quot;$CC&quot;
++AC_LANG_PUSH(C)
++
++# Source file extension for C test sources.
++ac_ext=c
++
++# Object file extension for compiled C test sources.
++objext=o
++_LT_AC_TAGVAR(objext, $1)=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='int main(){return(0);}\n'
++
++_LT_AC_SYS_COMPILER
++
++# save warnings/boilerplate of simple test code
++_LT_COMPILER_BOILERPLATE
++_LT_LINKER_BOILERPLATE
++
++#
++# Check for any special shared library compilation flags.
++#
++_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
++if test &quot;$GCC&quot; = no; then
++  case $host_os in
++  sco3.2v5*)
++    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
++    ;;
++  esac
++fi
++if test -n &quot;$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)&quot;; then
++  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
++  if echo &quot;$old_CC $old_CFLAGS &quot; | grep &quot;[[         ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[         ]]&quot; &gt;/dev/null; then :
++  else
++    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
++    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
++  fi
++fi
++
++
++#
++# Check to make sure the static flag actually works.
++#
++AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
++  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
++  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
++  [],
++  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
++
++
++AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
++AC_LIBTOOL_PROG_COMPILER_PIC($1)
++AC_LIBTOOL_PROG_CC_C_O($1)
++AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
++AC_LIBTOOL_PROG_LD_SHLIBS($1)
++AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
++AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
++AC_LIBTOOL_SYS_LIB_STRIP
++AC_LIBTOOL_DLOPEN_SELF($1)
++
++# Report which librarie types wil actually be built
++AC_MSG_CHECKING([if libtool supports shared libraries])
++AC_MSG_RESULT([$can_build_shared])
++
++AC_MSG_CHECKING([whether to build shared libraries])
++test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
++
++# On AIX, shared libraries and static libraries use the same namespace, and
++# are all built from PIC.
++case $host_os in
++aix3*)
++  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  if test -n &quot;$RANLIB&quot;; then
++    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
++    postinstall_cmds='$RANLIB $lib'
++  fi
++  ;;
++
++aix4* | aix5*)
++  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
++    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  fi
++    ;;
++esac
++AC_MSG_RESULT([$enable_shared])
++
++AC_MSG_CHECKING([whether to build static libraries])
++# Make sure either enable_shared or enable_static is yes.
++test &quot;$enable_shared&quot; = yes || enable_static=yes
++AC_MSG_RESULT([$enable_static])
++
++AC_LIBTOOL_CONFIG($1)
++
++AC_LANG_POP
++CC=&quot;$lt_save_CC&quot;
++])# AC_LIBTOOL_LANG_C_CONFIG
++
++
++# AC_LIBTOOL_LANG_CXX_CONFIG
++# --------------------------
++# Ensure that the configuration vars for the C compiler are
++# suitably defined.  Those variables are subsequently used by
++# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
++AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
++AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
++[AC_LANG_PUSH(C++)
++AC_REQUIRE([AC_PROG_CXX])
++AC_REQUIRE([_LT_AC_PROG_CXXCPP])
++
++_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++_LT_AC_TAGVAR(allow_undefined_flag, $1)=
++_LT_AC_TAGVAR(always_export_symbols, $1)=no
++_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
++_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
++_LT_AC_TAGVAR(hardcode_direct, $1)=no
++_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
++_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
++_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
++_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
++_LT_AC_TAGVAR(hardcode_automatic, $1)=no
++_LT_AC_TAGVAR(module_cmds, $1)=
++_LT_AC_TAGVAR(module_expsym_cmds, $1)=
++_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
++_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
++_LT_AC_TAGVAR(no_undefined_flag, $1)=
++_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
++
++# Dependencies to place before and after the object being linked:
++_LT_AC_TAGVAR(predep_objects, $1)=
++_LT_AC_TAGVAR(postdep_objects, $1)=
++_LT_AC_TAGVAR(predeps, $1)=
++_LT_AC_TAGVAR(postdeps, $1)=
++_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
++
++# Source file extension for C++ test sources.
++ac_ext=cpp
++
++# Object file extension for compiled C++ test sources.
++objext=o
++_LT_AC_TAGVAR(objext, $1)=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++_LT_AC_SYS_COMPILER
++
++# save warnings/boilerplate of simple test code
++_LT_COMPILER_BOILERPLATE
++_LT_LINKER_BOILERPLATE
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=$CC
++lt_save_LD=$LD
++lt_save_GCC=$GCC
++GCC=$GXX
++lt_save_with_gnu_ld=$with_gnu_ld
++lt_save_path_LD=$lt_cv_path_LD
++if test -n &quot;${lt_cv_prog_gnu_ldcxx+set}&quot;; then
++  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
++else
++  unset lt_cv_prog_gnu_ld
++fi
++if test -n &quot;${lt_cv_path_LDCXX+set}&quot;; then
++  lt_cv_path_LD=$lt_cv_path_LDCXX
++else
++  unset lt_cv_path_LD
++fi
++test -z &quot;${LDCXX+set}&quot; || LD=$LDCXX
++CC=${CXX-&quot;c++&quot;}
++compiler=$CC
++_LT_AC_TAGVAR(compiler, $1)=$CC
++_LT_CC_BASENAME([$compiler])
++
++# We don't want -fno-exception wen compiling C++ code, so set the
++# no_builtin_flag separately
++if test &quot;$GXX&quot; = yes; then
++  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
++else
++  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
++fi
++
++if test &quot;$GXX&quot; = yes; then
++  # Set up default GNU C++ configuration
++
++  AC_PROG_LD
++
++  # Check if GNU C++ uses GNU ld as the underlying linker, since the
++  # archiving commands below assume that GNU ld is being used.
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
++    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
++
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
++    #     investigate it a little bit more. (MM)
++    wlarc='${wl}'
++
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if eval &quot;`$CC -print-prog-name=ld` --help 2&gt;&amp;1&quot; | \
++        grep 'no-whole-archive' &gt; /dev/null; then
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++    else
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++    fi
++  else
++    with_gnu_ld=no
++    wlarc=
++
++    # A generic and very simple default shared library creation
++    # command for GNU C++ for the case where it uses the native
++    # linker, instead of GNU ld.  If possible, this setting should
++    # overridden to take advantage of the native linker features on
++    # the platform it is being used on.
++    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
++  fi
++
++  # Commands to make compiler produce verbose output that lists
++  # what &quot;hidden&quot; libraries, object files and flags are used when
++  # linking a shared library.
++  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++else
++  GXX=no
++  with_gnu_ld=no
++  wlarc=
++fi
++
++# PORTME: fill in a description of your system's C++ link characteristics
++AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
++_LT_AC_TAGVAR(ld_shlibs, $1)=yes
++case $host_os in
++  aix3*)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  aix4* | aix5*)
++    if test &quot;$host_cpu&quot; = ia64; then
++      # On IA64, the linker does run time linking by default, so we don't
++      # have to do anything special.
++      aix_use_runtimelinking=no
++      exp_sym_flag='-Bexport'
++      no_entry_flag=&quot;&quot;
++    else
++      aix_use_runtimelinking=no
++
++      # Test if we are trying to use run time linking or normal
++      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++      # need to do runtime linking.
++      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
++        for ld_flag in $LDFLAGS; do
++          case $ld_flag in
++          *-brtl*)
++            aix_use_runtimelinking=yes
++            break
++            ;;
++          esac
++        done
++      esac
++
++      exp_sym_flag='-bexport'
++      no_entry_flag='-bnoentry'
++    fi
++
++    # When large executables or shared objects are built, AIX ld can
++    # have problems creating the table of contents.  If linking a library
++    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++    _LT_AC_TAGVAR(archive_cmds, $1)=''
++    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
++    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++
++    if test &quot;$GXX&quot; = yes; then
++      case $host_os in aix4.[[012]]|aix4.[[012]].*)
++      # We only want to do this on AIX 4.2 and lower, the check
++      # below for broken collect2 doesn't work under 4.3+
++        collect2name=`${CC} -print-prog-name=collect2`
++        if test -f &quot;$collect2name&quot; &amp;&amp; \
++           strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++        then
++          # We have reworked collect2
++          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++        else
++          # We have old collect2
++          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
++          # It fails to find uninstalled libraries when the uninstalled
++          # path is not listed in the libpath.  Setting hardcode_minus_L
++          # to unsupported forces relinking
++          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
++        fi
++      esac
++      shared_flag='-shared'
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++      fi
++    else
++      # not using gcc
++      if test &quot;$host_cpu&quot; = ia64; then
++        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++        # chokes on -Wl,-G. The following line is correct:
++        shared_flag='-G'
++      else
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag='${wl}-G'
++        else
++          shared_flag='${wl}-bM:SRE'
++        fi
++      fi
++    fi
++
++    # It seems that -bexpall does not export symbols beginning with
++    # underscore (_), so it is better to generate a list of symbols to export.
++    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # Warning - without using the other runtime loading flags (-brtl),
++      # -berok will link without error, but may produce a broken library.
++      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
++      # Determine the default libpath from the value encoded in an empty executable.
++      _LT_AC_SYS_LIBPATH_AIX
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++     else
++      if test &quot;$host_cpu&quot; = ia64; then
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=&quot;-z nodefs&quot;
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++      else
++        # Determine the default libpath from the value encoded in an empty executable.
++        _LT_AC_SYS_LIBPATH_AIX
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        # Warning - without using the other run time loading flags,
++        # -berok will link without error, but may produce a broken library.
++        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
++        # -bexpall does not export symbols beginning with underscore (_)
++        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
++        # Exported symbols can be pulled into shared objects from archives
++        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
++        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
++        # This is similar to how AIX traditionally builds its shared libraries.
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++      fi
++    fi
++    ;;
++  chorus*)
++    case $cc_basename in
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++
++
++  cygwin* | mingw* | pw32*)
++    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
++    # as there is no search path for DLLs.
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++    _LT_AC_TAGVAR(always_export_symbols, $1)=no
++    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
++
++    if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++      # If the export-symbols file already is a .def file (1st line
++      # is EXPORTS), use it as is; otherwise, prepend...
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++        cp $export_symbols $output_objdir/$soname.def;
++      else
++        echo EXPORTS &gt; $output_objdir/$soname.def;
++        cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++      fi~
++      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++    else
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    fi
++  ;;
++      darwin* | rhapsody*)
++        case $host_os in
++        rhapsody* | darwin1.[[012]])
++         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[[012]])
++               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++        esac
++      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++      _LT_AC_TAGVAR(hardcode_direct, $1)=no
++      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
++      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++
++    if test &quot;$GXX&quot; = yes ; then
++      lt_int_apple_cc_single_mod=no
++      output_verbose_link_cmd='echo'
++      if $CC -dumpspecs 2&gt;&amp;1 | $EGREP 'single_module' &gt;/dev/null ; then
++       lt_int_apple_cc_single_mod=yes
++      fi
++      if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
++       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      else
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++        fi
++        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++          if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
++            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          else
++            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          fi
++            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         _LT_AC_TAGVAR(ld_shlibs, $1)=no
++          ;;
++      esac
++      fi
++        ;;
++
++  dgux*)
++    case $cc_basename in
++      ec++*)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      ghcx*)
++        # Green Hills C++ Compiler
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++  freebsd[[12]]*)
++    # C++ shared libraries reported to be fairly broken before switch to ELF
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  freebsd-elf*)
++    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++    ;;
++  freebsd* | kfreebsd*-gnu | dragonfly*)
++    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
++    # conventions
++    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
++    ;;
++  gnu*)
++    ;;
++  hpux9*)
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
++                                # but as the default
++                                # location of the library.
++
++    case $cc_basename in
++    CC*)
++      # FIXME: insert proper C++ library support
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      ;;
++    aCC*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      # Commands to make compiler produce verbose output that lists
++      # what &quot;hidden&quot; libraries, object files and flags are used when
++      # linking a shared library.
++      #
++      # There doesn't appear to be a way to prevent this compiler from
++      # explicitly linking system object files so we need to strip them
++      # from the output so that they don't get included in the library
++      # dependencies.
++      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;[[-]]L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++      ;;
++    *)
++      if test &quot;$GXX&quot; = yes; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++    esac
++    ;;
++  hpux10*|hpux11*)
++    if test $with_gnu_ld = no; then
++      case $host_cpu in
++      hppa*64*)
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++        ;;
++      ia64*)
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++        ;;
++      *)
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++        ;;
++      esac
++    fi
++    case $host_cpu in
++    hppa*64*)
++      _LT_AC_TAGVAR(hardcode_direct, $1)=no
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++    ia64*)
++      _LT_AC_TAGVAR(hardcode_direct, $1)=no
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
++                                              # but as the default
++                                              # location of the library.
++      ;;
++    *)
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
++                                              # but as the default
++                                              # location of the library.
++      ;;
++    esac
++
++    case $cc_basename in
++      CC*)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      aCC*)
++        case $host_cpu in
++        hppa*64*|ia64*)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
++          ;;
++        *)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++          ;;
++        esac
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;\-L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes; then
++          if test $with_gnu_ld = no; then
++            case $host_cpu in
++            ia64*|hppa*64*)
++              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
++              ;;
++            *)
++              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++              ;;
++            esac
++          fi
++        else
++          # FIXME: insert proper C++ library support
++          _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        fi
++        ;
++    esac
++    ;;
++  irix5* | irix6*)
++    case $cc_basename in
++      CC*)
++        # SGI C++
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -ar&quot;, where &quot;CC&quot; is the IRIX C++ compiler.  This is
++        # necessary to make sure instantiated templates are included
++        # in the archive.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes; then
++          if test &quot;$with_gnu_ld&quot; = no; then
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++          else
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` -o $lib'
++          fi
++        fi
++        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++        ;
++    esac
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++    ;;
++  linux*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2&gt;&amp;1 | grep &quot;ld&quot;`; rm -f libconftest$shared_ext; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
++        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
++        ;
++      icpc*)
++        # Intel C++
++        with_gnu_ld=yes
++        # version 8.0 and above of icpc choke on multiply defined symbols
++        # if we add $predep_objects and $postdep_objects, however 7.1 and
++        # earlier do not add the objects themselves.
++        case `$CC -V 2&gt;&amp;1` in
++        *&quot;Version 7.&quot;*)
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++          ;;
++        *)  # Version 8.0 or newer
++          tmp_idyn=
++          case $host_cpu in
++            ia64*) tmp_idyn=' -i_dynamic';;
++          esac
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++          ;;
++        esac
++        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
++        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
++        ;
++      pgCC*)
++        # Portland Group C++ compiler
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
++        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
++        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++        ;;
++      cxx*)
++        # Compaq C++
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
++
++        runpath_var=LD_RUN_PATH
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld .*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++    esac
++    ;;
++  lynxos*)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  m88k*)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  mvs*)
++    case $cc_basename in
++      cxx*)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
++      wlarc=
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++    fi
++    # Workaround some broken pre-1.5 toolchains
++    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep conftest.$objext | $SED -e &quot;s:-lgcc -lc -lgcc::&quot;'
++    ;;
++  openbsd2*)
++    # C++ shared libraries are fairly broken
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  openbsd*)
++    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++    fi
++    output_verbose_link_cmd='echo'
++    ;;
++  osf3*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
++
++        ;
++      RCC*)
++        # Rational C++ 2.4.1
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      cxx*)
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++          # Commands to make compiler produce verbose output that lists
++          # what &quot;hidden&quot; libraries, object files and flags are used when
++          # linking a shared library.
++          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++        else
++          # FIXME: insert proper C++ library support
++          _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        fi
++        ;
++    esac
++    ;;
++  osf4* | osf5*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++        # Archives containing C++ object files must be created using
++        # the KAI C++ compiler.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
++        ;
++      RCC*)
++        # Rational C++ 2.4.1
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      cxx*)
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done~
++          echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version        $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
++          $rm $lib.exp'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
++        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
++         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++
++          # Commands to make compiler produce verbose output that lists
++          # what &quot;hidden&quot; libraries, object files and flags are used when
++          # linking a shared library.
++          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++        else
++          # FIXME: insert proper C++ library support
++          _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        fi
++        ;
++    esac
++    ;;
++  psos*)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  sco*)
++    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++    case $cc_basename in
++      CC*)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++  sunos4*)
++    case $cc_basename in
++      CC*)
++        # Sun C++ 4.x
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      lcc*)
++        # Lucid
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++  solaris*)
++    case $cc_basename in
++      CC*)
++        # Sun C++ 4.2, 5.x and Centerline C++
++        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
++        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++        case $host_os in
++          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
++          *)
++            # The C++ compiler is used as linker so we must use $wl
++            # flag to pass the commands to the underlying system
++            # linker. We must also pass each convience library through
++            # to the system linker between allextract/defaultextract.
++            # The C++ compiler will combine linker options so we
++            # cannot just pass the convience library names through
++            # without $wl.
++            # Supported since Solaris 2.6 (maybe 2.5.1?)
++            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract'
++            ;;
++        esac
++        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++
++        output_verbose_link_cmd='echo'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -xar&quot;, where &quot;CC&quot; is the Sun C++ compiler.  This is
++        # necessary to make sure instantiated templates are included
++        # in the archive.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
++        ;
++      gcx*)
++        # Green Hills C++ Compiler
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++
++        # The C++ compiler must be used to create the archive.
++        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
++        ;
++      *)
++        # GNU C++ compiler with Solaris linker
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
++          if $CC --version | grep -v '^2\.7' &gt; /dev/null; then
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++            # Commands to make compiler produce verbose output that lists
++            # what &quot;hidden&quot; libraries, object files and flags are used when
++            # linking a shared library.
++            output_verbose_link_cmd=&quot;$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
++          else
++            # g++ 2.7 appears to require `-G' NOT `-shared' on this
++            # platform.
++            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++            # Commands to make compiler produce verbose output that lists
++            # what &quot;hidden&quot; libraries, object files and flags are used when
++            # linking a shared library.
++            output_verbose_link_cmd=&quot;$CC -G $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
++          fi
++
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
++        fi
++        ;
++    esac
++    ;;
++  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
++    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++    ;;
++  tandem*)
++    case $cc_basename in
++      NCC*)
++        # NonStop-UX NCC 3.20
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        ;
++    esac
++    ;;
++  vxworks*)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++  *)
++    # FIXME: insert proper C++ library support
++    _LT_AC_TAGVAR(ld_shlibs, $1)=no
++    ;;
++esac
++AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
++test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
++
++_LT_AC_TAGVAR(GCC, $1)=&quot;$GXX&quot;
++_LT_AC_TAGVAR(LD, $1)=&quot;$LD&quot;
++
++AC_LIBTOOL_POSTDEP_PREDEP($1)
++AC_LIBTOOL_PROG_COMPILER_PIC($1)
++AC_LIBTOOL_PROG_CC_C_O($1)
++AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
++AC_LIBTOOL_PROG_LD_SHLIBS($1)
++AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
++AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
++AC_LIBTOOL_SYS_LIB_STRIP
++AC_LIBTOOL_DLOPEN_SELF($1)
++
++AC_LIBTOOL_CONFIG($1)
++
++AC_LANG_POP
++CC=$lt_save_CC
++LDCXX=$LD
++LD=$lt_save_LD
++GCC=$lt_save_GCC
++with_gnu_ldcxx=$with_gnu_ld
++with_gnu_ld=$lt_save_with_gnu_ld
++lt_cv_path_LDCXX=$lt_cv_path_LD
++lt_cv_path_LD=$lt_save_path_LD
++lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
++lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
++])# AC_LIBTOOL_LANG_CXX_CONFIG
++
++# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
++# ------------------------
++# Figure out &quot;hidden&quot; library dependencies from verbose
++# compiler output when linking a shared library.
++# Parse the compiler output and extract the necessary
++# objects, libraries and library flags.
++AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
++dnl we can't use the lt_simple_compile_test_code here,
++dnl because it contains code intended for an executable,
++dnl not a library.  It's possible we should let each
++dnl tag define a new lt_????_link_test_code variable,
++dnl but it's only used here...
++ifelse([$1],[],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
++int a;
++void foo (void) { a = 0; }
++EOF
++],[$1],[CXX],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
++class Foo
++{
++public:
++  Foo (void) { a = 0; }
++private:
++  int a;
++};
++EOF
++],[$1],[F77],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
++      subroutine foo
++      implicit none
++      integer*4 a
++      a=0
++      return
++      end
++EOF
++],[$1],[GCJ],[cat &gt; conftest.$ac_ext &lt;&lt;EOF
++public class foo {
++  private int a;
++  public void bar (void) {
++    a = 0;
++  }
++};
++EOF
++])
++dnl Parse the compiler output and extract the necessary
++dnl objects, libraries and library flags.
++if AC_TRY_EVAL(ac_compile); then
++  # Parse the compiler output and extract the necessary
++  # objects, libraries and library flags.
++
++  # Sentinel used to keep track of whether or not we are before
++  # the conftest object file.
++  pre_test_object_deps_done=no
++
++  # The `*' in the case matches for architectures that use `case' in
++  # $output_verbose_cmd can trigger glob expansion during the loop
++  # eval without this substitution.
++  output_verbose_link_cmd=`$echo &quot;X$output_verbose_link_cmd&quot; | $Xsed -e &quot;$no_glob_subst&quot;`
++
++  for p in `eval $output_verbose_link_cmd`; do
++    case $p in
++
++    -L* | -R* | -l*)
++       # Some compilers place space between &quot;-{L,R}&quot; and the path.
++       # Remove the space.
++       if test $p = &quot;-L&quot; \
++          || test $p = &quot;-R&quot;; then
++         prev=$p
++         continue
++       else
++         prev=
++       fi
++
++       if test &quot;$pre_test_object_deps_done&quot; = no; then
++         case $p in
++         -L* | -R*)
++           # Internal compiler library paths should come after those
++           # provided the user.  The postdeps already come after the
++           # user supplied libs so there is no need to process them.
++           if test -z &quot;$_LT_AC_TAGVAR(compiler_lib_search_path, $1)&quot;; then
++             _LT_AC_TAGVAR(compiler_lib_search_path, $1)=&quot;${prev}${p}&quot;
++           else
++             _LT_AC_TAGVAR(compiler_lib_search_path, $1)=&quot;${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}&quot;
++           fi
++           ;;
++         # The &quot;-l&quot; case would never come before the object being
++         # linked, so don't bother handling this case.
++         esac
++       else
++         if test -z &quot;$_LT_AC_TAGVAR(postdeps, $1)&quot;; then
++           _LT_AC_TAGVAR(postdeps, $1)=&quot;${prev}${p}&quot;
++         else
++           _LT_AC_TAGVAR(postdeps, $1)=&quot;${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}&quot;
++         fi
++       fi
++       ;;
++
++    *.$objext)
++       # This assumes that the test object file only shows up
++       # once in the compiler output.
++       if test &quot;$p&quot; = &quot;conftest.$objext&quot;; then
++         pre_test_object_deps_done=yes
++         continue
++       fi
++
++       if test &quot;$pre_test_object_deps_done&quot; = no; then
++         if test -z &quot;$_LT_AC_TAGVAR(predep_objects, $1)&quot;; then
++           _LT_AC_TAGVAR(predep_objects, $1)=&quot;$p&quot;
++         else
++           _LT_AC_TAGVAR(predep_objects, $1)=&quot;$_LT_AC_TAGVAR(predep_objects, $1) $p&quot;
++         fi
++       else
++         if test -z &quot;$_LT_AC_TAGVAR(postdep_objects, $1)&quot;; then
++           _LT_AC_TAGVAR(postdep_objects, $1)=&quot;$p&quot;
++         else
++           _LT_AC_TAGVAR(postdep_objects, $1)=&quot;$_LT_AC_TAGVAR(postdep_objects, $1) $p&quot;
++         fi
++       fi
++       ;;
++
++    *) ;; # Ignore the rest.
++
++    esac
++  done
++
++  # Clean up.
++  rm -f a.out a.exe
++else
++  echo &quot;libtool.m4: error: problem compiling $1 test program&quot;
++fi
++
++$rm -f confest.$objext
++
++# PORTME: override above test on systems where it is broken
++ifelse([$1],[CXX],
++[case $host_os in
++solaris*)
++  case $cc_basename in
++  CC*)
++    # Adding this requires a known-good setup of shared libraries for
++    # Sun compiler versions before 5.6, else PIC objects from an old
++    # archive will be linked into the output, leading to subtle bugs.
++    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
++    ;;
++  esac
++esac
++])
++
++case &quot; $_LT_AC_TAGVAR(postdeps, $1) &quot; in
++*&quot; -lc &quot;*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
++esac
++])# AC_LIBTOOL_POSTDEP_PREDEP
++
++# AC_LIBTOOL_LANG_F77_CONFIG
++# ------------------------
++# Ensure that the configuration vars for the C compiler are
++# suitably defined.  Those variables are subsequently used by
++# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
++AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
++AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
++[AC_REQUIRE([AC_PROG_F77])
++AC_LANG_PUSH(Fortran 77)
++
++_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++_LT_AC_TAGVAR(allow_undefined_flag, $1)=
++_LT_AC_TAGVAR(always_export_symbols, $1)=no
++_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
++_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
++_LT_AC_TAGVAR(hardcode_direct, $1)=no
++_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
++_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
++_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
++_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
++_LT_AC_TAGVAR(hardcode_automatic, $1)=no
++_LT_AC_TAGVAR(module_cmds, $1)=
++_LT_AC_TAGVAR(module_expsym_cmds, $1)=
++_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
++_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
++_LT_AC_TAGVAR(no_undefined_flag, $1)=
++_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
++
++# Source file extension for f77 test sources.
++ac_ext=f
++
++# Object file extension for compiled f77 test sources.
++objext=o
++_LT_AC_TAGVAR(objext, $1)=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;      subroutine t\n      return\n      end\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code=&quot;      program t\n      end\n&quot;
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++_LT_AC_SYS_COMPILER
++
++# save warnings/boilerplate of simple test code
++_LT_COMPILER_BOILERPLATE
++_LT_LINKER_BOILERPLATE
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${F77-&quot;f77&quot;}
++compiler=$CC
++_LT_AC_TAGVAR(compiler, $1)=$CC
++_LT_CC_BASENAME([$compiler])
++
++AC_MSG_CHECKING([if libtool supports shared libraries])
++AC_MSG_RESULT([$can_build_shared])
++
++AC_MSG_CHECKING([whether to build shared libraries])
++test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
++
++# On AIX, shared libraries and static libraries use the same namespace, and
++# are all built from PIC.
++case $host_os in
++aix3*)
++  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  if test -n &quot;$RANLIB&quot;; then
++    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
++    postinstall_cmds='$RANLIB $lib'
++  fi
++  ;;
++aix4* | aix5*)
++  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
++    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  fi
++  ;;
++esac
++AC_MSG_RESULT([$enable_shared])
++
++AC_MSG_CHECKING([whether to build static libraries])
++# Make sure either enable_shared or enable_static is yes.
++test &quot;$enable_shared&quot; = yes || enable_static=yes
++AC_MSG_RESULT([$enable_static])
++
++test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
++
++_LT_AC_TAGVAR(GCC, $1)=&quot;$G77&quot;
++_LT_AC_TAGVAR(LD, $1)=&quot;$LD&quot;
++
++AC_LIBTOOL_PROG_COMPILER_PIC($1)
++AC_LIBTOOL_PROG_CC_C_O($1)
++AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
++AC_LIBTOOL_PROG_LD_SHLIBS($1)
++AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
++AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
++AC_LIBTOOL_SYS_LIB_STRIP
++
++
++AC_LIBTOOL_CONFIG($1)
++
++AC_LANG_POP
++CC=&quot;$lt_save_CC&quot;
++])# AC_LIBTOOL_LANG_F77_CONFIG
++
++
++# AC_LIBTOOL_LANG_GCJ_CONFIG
++# --------------------------
++# Ensure that the configuration vars for the C compiler are
++# suitably defined.  Those variables are subsequently used by
++# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
++AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
++AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
++[AC_LANG_SAVE
++
++# Source file extension for Java test sources.
++ac_ext=java
++
++# Object file extension for compiled Java test sources.
++objext=o
++_LT_AC_TAGVAR(objext, $1)=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;class foo {}\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++_LT_AC_SYS_COMPILER
++
++# save warnings/boilerplate of simple test code
++_LT_COMPILER_BOILERPLATE
++_LT_LINKER_BOILERPLATE
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${GCJ-&quot;gcj&quot;}
++compiler=$CC
++_LT_AC_TAGVAR(compiler, $1)=$CC
++_LT_CC_BASENAME([$compiler])
++
++# GCJ did not exist at the time GCC didn't implicitly link libc in.
++_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++
++_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
++
++AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
++AC_LIBTOOL_PROG_COMPILER_PIC($1)
++AC_LIBTOOL_PROG_CC_C_O($1)
++AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
++AC_LIBTOOL_PROG_LD_SHLIBS($1)
++AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
++AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
++AC_LIBTOOL_SYS_LIB_STRIP
++AC_LIBTOOL_DLOPEN_SELF($1)
++
++AC_LIBTOOL_CONFIG($1)
++
++AC_LANG_RESTORE
++CC=&quot;$lt_save_CC&quot;
++])# AC_LIBTOOL_LANG_GCJ_CONFIG
++
++
++# AC_LIBTOOL_LANG_RC_CONFIG
++# --------------------------
++# Ensure that the configuration vars for the Windows resource compiler are
++# suitably defined.  Those variables are subsequently used by
++# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
++AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
++AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
++[AC_LANG_SAVE
++
++# Source file extension for RC test sources.
++ac_ext=rc
++
++# Object file extension for compiled RC test sources.
++objext=o
++_LT_AC_TAGVAR(objext, $1)=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code='sample MENU { MENUITEM &quot;&amp;Soup&quot;, 100, CHECKED }\n'
++
++# Code to be used in simple link tests
++lt_simple_link_test_code=&quot;$lt_simple_compile_test_code&quot;
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++_LT_AC_SYS_COMPILER
++
++# save warnings/boilerplate of simple test code
++_LT_COMPILER_BOILERPLATE
++_LT_LINKER_BOILERPLATE
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${RC-&quot;windres&quot;}
++compiler=$CC
++_LT_AC_TAGVAR(compiler, $1)=$CC
++_LT_CC_BASENAME([$compiler])
++_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
++
++AC_LIBTOOL_CONFIG($1)
++
++AC_LANG_RESTORE
++CC=&quot;$lt_save_CC&quot;
++])# AC_LIBTOOL_LANG_RC_CONFIG
++
++
++# AC_LIBTOOL_CONFIG([TAGNAME])
++# ----------------------------
++# If TAGNAME is not passed, then create an initial libtool script
++# with a default configuration from the untagged config vars.  Otherwise
++# add code to config.status for appending the configuration named by
++# TAGNAME from the matching tagged config vars.
++AC_DEFUN([AC_LIBTOOL_CONFIG],
++[# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    _LT_AC_TAGVAR(compiler, $1) \
++    _LT_AC_TAGVAR(CC, $1) \
++    _LT_AC_TAGVAR(LD, $1) \
++    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
++    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
++    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
++    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
++    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
++    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
++    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
++    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
++    _LT_AC_TAGVAR(old_archive_cmds, $1) \
++    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
++    _LT_AC_TAGVAR(predep_objects, $1) \
++    _LT_AC_TAGVAR(postdep_objects, $1) \
++    _LT_AC_TAGVAR(predeps, $1) \
++    _LT_AC_TAGVAR(postdeps, $1) \
++    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
++    _LT_AC_TAGVAR(archive_cmds, $1) \
++    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
++    _LT_AC_TAGVAR(postinstall_cmds, $1) \
++    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
++    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
++    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
++    _LT_AC_TAGVAR(no_undefined_flag, $1) \
++    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
++    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
++    _LT_AC_TAGVAR(hardcode_automatic, $1) \
++    _LT_AC_TAGVAR(module_cmds, $1) \
++    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
++    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
++    _LT_AC_TAGVAR(exclude_expsyms, $1) \
++    _LT_AC_TAGVAR(include_expsyms, $1); do
++
++    case $var in
++    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
++    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
++    _LT_AC_TAGVAR(archive_cmds, $1) | \
++    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
++    _LT_AC_TAGVAR(module_cmds, $1) | \
++    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
++    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
++    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\[$]0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo&quot;[$]/[$]0 --fallback-echo&quot;/'`
++    ;;
++  esac
++
++ifelse([$1], [],
++  [cfgfile=&quot;${ofile}T&quot;
++  trap &quot;$rm \&quot;$cfgfile\&quot;; exit 1&quot; 1 2 15
++  $rm -f &quot;$cfgfile&quot;
++  AC_MSG_NOTICE([creating $ofile])],
++  [cfgfile=&quot;$ofile&quot;])
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++ifelse([$1], [],
++[#! $SHELL
++
++# `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
++# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
++# NOTE: Changes made to this file will be lost: look at ltmain.sh.
++#
++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
++# Free Software Foundation, Inc.
++#
++# This file is part of GNU Libtool:
++# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
++#
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful, but
++# WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++# General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#
++# As a special exception to the GNU General Public License, if you
++# distribute this file as part of a program that contains a
++# configuration script generated by Autoconf, you may include it under
++# the same distribution terms that you use for the rest of that program.
++
++# A sed program that does not truncate output.
++SED=$lt_SED
++
++# Sed that helps us avoid accidentally triggering echo(1) options like -n.
++Xsed=&quot;$SED -e 1s/^X//&quot;
++
++# The HP-UX ksh and POSIX shell print the target directory to stdout
++# if CDPATH is set.
++(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
++
++# The names of the tagged configurations supported by this script.
++available_tags=
++
++# ### BEGIN LIBTOOL CONFIG],
++[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
++
++# Is the compiler the GNU C compiler?
++with_gcc=$_LT_AC_TAGVAR(GCC, $1)
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
++archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
++module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
++
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var
++
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var
++
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
++# How to hardcode a shared library path into an executable.
++hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
++
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs
++
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
++
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
++
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
++
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$_LT_AC_TAGVAR(fix_srcfile_path, $1)&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
++
++# Symbols that must always be exported.
++include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
++
++ifelse([$1],[],
++[# ### END LIBTOOL CONFIG],
++[# ### END LIBTOOL TAG CONFIG: $tagname])
++
++__EOF__
++
++ifelse([$1],[], [
++  case $host_os in
++  aix3*)
++    cat &lt;&lt;\EOF &gt;&gt; &quot;$cfgfile&quot;
++
++# AIX sometimes has problems with the GCC collect2 program.  For some
++# reason, if we set the COLLECT_NAMES environment variable, the problems
++# vanish in a puff of smoke.
++if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
++  COLLECT_NAMES=
++  export COLLECT_NAMES
++fi
++EOF
++    ;;
++  esac
++
++  # We use sed instead of cat because bash on DJGPP gets confused if
++  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
++  # text mode, it properly converts lines to CR/LF.  This bash problem
++  # is reportedly fixed, but why not run on old versions too?
++  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$cfgfile&quot; || (rm -f &quot;$cfgfile&quot;; exit 1)
++
++  mv -f &quot;$cfgfile&quot; &quot;$ofile&quot; || \
++    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;$cfgfile&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;$cfgfile&quot;)
++  chmod +x &quot;$ofile&quot;
++])
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  fi
++fi
++])# AC_LIBTOOL_CONFIG
++
++
++# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
++# -------------------------------------------
++AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
++[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
++
++_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
++
++if test &quot;$GCC&quot; = yes; then
++  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
++
++  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
++    lt_cv_prog_compiler_rtti_exceptions,
++    [-fno-rtti -fno-exceptions], [],
++    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=&quot;$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions&quot;])
++fi
++])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
++
++
++# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
++# ---------------------------------
++AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
++[AC_REQUIRE([AC_CANONICAL_HOST])
++AC_REQUIRE([AC_PROG_NM])
++AC_REQUIRE([AC_OBJEXT])
++# Check for command to grab the raw symbol name followed by C symbol from nm.
++AC_MSG_CHECKING([command to parse $NM output from $compiler object])
++AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
++[
++# These are sane defaults that work on at least a few old systems.
++# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
++
++# Character class describing NM global symbol codes.
++symcode='[[BCDEGRST]]'
++
++# Regexp to match symbols that can be accessed directly from C.
++sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
++
++# Transform an extracted symbol line into a proper C declaration
++lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'&quot;
++
++# Transform an extracted symbol line into symbol name and symbol address
++lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
++
++# Define system-specific variables.
++case $host_os in
++aix*)
++  symcode='[[BCDT]]'
++  ;;
++cygwin* | mingw* | pw32*)
++  symcode='[[ABCDGISTW]]'
++  ;;
++hpux*) # Its linker distinguishes data from code symbols
++  if test &quot;$host_cpu&quot; = ia64; then
++    symcode='[[ABCDEGRST]]'
++  fi
++  lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
++  lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
++  ;;
++linux*)
++  if test &quot;$host_cpu&quot; = ia64; then
++    symcode='[[ABCDGIRSTW]]'
++    lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
++    lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([[^ ]]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
++  fi
++  ;;
++irix* | nonstopux*)
++  symcode='[[BCDEGRST]]'
++  ;;
++osf*)
++  symcode='[[BCDEGQRST]]'
++  ;;
++solaris* | sysv5*)
++  symcode='[[BDRT]]'
++  ;;
++sysv4)
++  symcode='[[DFNSTU]]'
++  ;;
++esac
++
++# Handle CRLF in mingw tool chain
++opt_cr=
++case $build_os in
++mingw*)
++  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
++  ;;
++esac
++
++# If we're using GNU nm, then use its standard symbol codes.
++case `$NM -V 2&gt;&amp;1` in
++*GNU* | *'with BFD'*)
++  symcode='[[ABCDGIRSTW]]' ;;
++esac
++
++# Try without a prefix undercore, then with it.
++for ac_symprfx in &quot;&quot; &quot;_&quot;; do
++
++  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
++  symxfrm=&quot;\\1 $ac_symprfx\\2 \\2&quot;
++
++  # Write the raw and C identifiers.
++  lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[[         ]]\($symcode$symcode*\)[[         ]][[         ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'&quot;
++
++  # Check to see that the pipe works correctly.
++  pipe_works=no
++
++  rm -f conftest*
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#ifdef __cplusplus
++extern &quot;C&quot; {
++#endif
++char nm_test_var;
++void nm_test_func(){}
++#ifdef __cplusplus
++}
++#endif
++int main(){nm_test_var='a';nm_test_func();return(0);}
++EOF
++
++  if AC_TRY_EVAL(ac_compile); then
++    # Now try to grab the symbols.
++    nlist=conftest.nm
++    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) &amp;&amp; test -s &quot;$nlist&quot;; then
++      # Try sorting and uniquifying the output.
++      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
++        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
++      else
++        rm -f &quot;$nlist&quot;T
++      fi
++
++      # Make sure that we snagged all the symbols we need.
++      if grep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
++        if grep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
++          cat &lt;&lt;EOF &gt; conftest.$ac_ext
++#ifdef __cplusplus
++extern &quot;C&quot; {
++#endif
++
++EOF
++          # Now generate the symbol file.
++          eval &quot;$lt_cv_sys_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext'
++
++          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
++#if defined (__STDC__) &amp;&amp; __STDC__
++# define lt_ptr_t void *
++#else
++# define lt_ptr_t char *
++# define const
++#endif
++
++/* The mapping between symbol names and symbols. */
++const struct {
++  const char *name;
++  lt_ptr_t address;
++}
++lt_preloaded_symbols[[]] =
++{
++EOF
++          $SED &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr_t) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext
++          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
++  {0, (lt_ptr_t) 0}
++};
++
++#ifdef __cplusplus
++}
++#endif
++EOF
++          # Now try linking the two files.
++          mv conftest.$ac_objext conftstm.$ac_objext
++          lt_save_LIBS=&quot;$LIBS&quot;
++          lt_save_CFLAGS=&quot;$CFLAGS&quot;
++          LIBS=&quot;conftstm.$ac_objext&quot;
++          CFLAGS=&quot;$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)&quot;
++          if AC_TRY_EVAL(ac_link) &amp;&amp; test -s conftest${ac_exeext}; then
++            pipe_works=yes
++          fi
++          LIBS=&quot;$lt_save_LIBS&quot;
++          CFLAGS=&quot;$lt_save_CFLAGS&quot;
++        else
++          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++        fi
++      else
++        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++      fi
++    else
++      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++    fi
++  else
++    echo &quot;$progname: failed program was:&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++    cat conftest.$ac_ext &gt;&amp;5
++  fi
++  rm -f conftest* conftst*
++
++  # Do not use the global_symbol_pipe unless it works.
++  if test &quot;$pipe_works&quot; = yes; then
++    break
++  else
++    lt_cv_sys_global_symbol_pipe=
++  fi
++done
++])
++if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
++  lt_cv_sys_global_symbol_to_cdecl=
++fi
++if test -z &quot;$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl&quot;; then
++  AC_MSG_RESULT(failed)
++else
++  AC_MSG_RESULT(ok)
++fi
++]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
++
++
++# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
++# ---------------------------------------
++AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
++[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
++_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
++
++AC_MSG_CHECKING([for $compiler option to produce PIC])
++ ifelse([$1],[CXX],[
++  # C++ specific cases for pic, static, wl, etc.
++  if test &quot;$GXX&quot; = yes; then
++    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
++
++    case $host_os in
++    aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      fi
++      ;;
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
++      ;;
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++    mingw* | os2* | pw32*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
++      ;;
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
++      ;;
++    *djgpp*)
++      # DJGPP does not support shared libraries at all
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++      ;;
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
++      fi
++      ;;
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        ;
++      *)
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++        ;
++      esac
++      ;;
++    *)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++      ;;
++    esac
++  else
++    case $host_os in
++      aix4* | aix5*)
++        # All AIX code is PIC.
++        if test &quot;$host_cpu&quot; = ia64; then
++          # AIX 5 now supports IA64 processor
++          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++        else
++          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
++        fi
++        ;
++      chorus*)
++        case $cc_basename in
++        cxch68*)
++          # Green Hills C++ Compiler
++          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a&quot;
++          ;;
++        esac
++        ;
++       darwin*)
++         # PIC is the default on this platform
++         # Common symbols not allowed in MH_DYLIB files
++         case $cc_basename in
++           xlc*)
++           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
++           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++           ;;
++         esac
++       ;;
++      dgux*)
++        case $cc_basename in
++          ec++*)
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++            ;;
++          ghcx*)
++            # Green Hills C++ Compiler
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      freebsd* | kfreebsd*-gnu | dragonfly*)
++        # FreeBSD uses GNU C++
++        ;
++      hpux9* | hpux10* | hpux11*)
++        case $cc_basename in
++          CC*)
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
++            if test &quot;$host_cpu&quot; != ia64; then
++              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
++            fi
++            ;;
++          aCC*)
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
++            case $host_cpu in
++            hppa*64*|ia64*)
++              # +Z the default
++              ;;
++            *)
++              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
++              ;;
++            esac
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      irix5* | irix6* | nonstopux*)
++        case $cc_basename in
++          CC*)
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++            # CC pic flag -KPIC is the default.
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      linux*)
++        case $cc_basename in
++          KCC*)
++            # KAI C++ Compiler
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++            ;;
++          icpc* | ecpc*)
++            # Intel C++
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
++            ;;
++          pgCC*)
++            # Portland Group C++ compiler.
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++            ;;
++          cxx*)
++            # Compaq C++
++            # Make sure the PIC flag is empty.  It appears that all Alpha
++            # Linux and Compaq Tru64 Unix objects are PIC.
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      lynxos*)
++        ;
++      m88k*)
++        ;
++      mvs*)
++        case $cc_basename in
++          cxx*)
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++        ;
++      osf3* | osf4* | osf5*)
++        case $cc_basename in
++          KCC*)
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
++            ;;
++          RCC*)
++            # Rational C++ 2.4.1
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
++            ;;
++          cxx*)
++            # Digital/Compaq C++
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++            # Make sure the PIC flag is empty.  It appears that all Alpha
++            # Linux and Compaq Tru64 Unix objects are PIC.
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      psos*)
++        ;
++      sco*)
++        case $cc_basename in
++          CC*)
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      solaris*)
++        case $cc_basename in
++          CC*)
++            # Sun C++ 4.2, 5.x and Centerline C++
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
++            ;;
++          gcx*)
++            # Green Hills C++ Compiler
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      sunos4*)
++        case $cc_basename in
++          CC*)
++            # Sun C++ 4.x
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
++            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++            ;;
++          lcc*)
++            # Lucid
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      tandem*)
++        case $cc_basename in
++          NCC*)
++            # NonStop-UX NCC 3.20
++            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      unixware*)
++        ;
++      vxworks*)
++        ;
++      *)
++        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
++        ;
++    esac
++  fi
++],
++[
++  if test &quot;$GCC&quot; = yes; then
++    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
++
++    case $host_os in
++      aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      fi
++      ;;
++
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
++      ;;
++
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
++      ;;
++
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
++      ;;
++
++    msdosdjgpp*)
++      # Just because we use GCC doesn't mean we suddenly get shared libraries
++      # on systems that don't support them.
++      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
++      enable_shared=no
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
++      fi
++      ;;
++
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++        ;
++      esac
++      ;;
++
++    *)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
++      ;;
++    esac
++  else
++    # PORTME Check for flag to pass linker flags through the system compiler.
++    case $host_os in
++    aix*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      else
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
++      fi
++      ;;
++      darwin*)
++        # PIC is the default on this platform
++        # Common symbols not allowed in MH_DYLIB files
++       case $cc_basename in
++         xlc*)
++         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
++         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++         ;;
++       esac
++       ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
++      ;;
++
++    hpux9* | hpux10* | hpux11*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
++        ;
++      esac
++      # Is there a better lt_prog_compiler_static that works with the bundled CC?
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      # PIC (with -KPIC) is the default.
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++      ;;
++
++    newsos6)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      ;;
++
++    linux*)
++      case $cc_basename in
++      icc* | ecc*)
++        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
++        ;;
++      pgcc* | pgf77* | pgf90* | pgf95*)
++        # Portland Group compilers (*not* the Pentium gcc compiler,
++        # which looks to be a dead project)
++        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++        ;;
++      ccc*)
++        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++        # All Alpha code is PIC.
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++        ;;
++      esac
++      ;;
++
++    osf3* | osf4* | osf5*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      # All OSF/1 code is PIC.
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
++      ;;
++
++    sco3.2v5*)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
++      ;;
++
++    solaris*)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      case $cc_basename in
++      f77* | f90* | f95*)
++        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
++      *)
++        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
++      esac
++      ;;
++
++    sunos4*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      ;;
++
++    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec ;then
++        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
++        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      fi
++      ;;
++
++    unicos*)
++      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
++      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
++      ;;
++
++    uts4*)
++      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
++      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
++      ;;
++
++    *)
++      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
++      ;;
++    esac
++  fi
++])
++AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
++
++#
++# Check to make sure the PIC flag actually works.
++#
++if test -n &quot;$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)&quot;; then
++  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
++    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
++    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
++    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
++     &quot;&quot; | &quot; &quot;*) ;;
++     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=&quot; $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)&quot; ;;
++     esac],
++    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
++fi
++case $host_os in
++  # For platforms which do not support PIC, -DPIC is meaningless:
++  *djgpp*)
++    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
++    ;;
++  *)
++    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=&quot;$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])&quot;
++    ;;
++esac
++])
++
++
++# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
++# ------------------------------------
++# See if the linker supports building shared libraries.
++AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
++[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
++ifelse([$1],[CXX],[
++  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  case $host_os in
++  aix4* | aix5*)
++    # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++    # -C means demangle to AIX nm, but means don't demangle with GNU nm
++    if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
++    else
++      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
++    fi
++    ;;
++  pw32*)
++    _LT_AC_TAGVAR(export_symbols_cmds, $1)=&quot;$ltdll_cmds&quot;
++  ;;
++  cygwin* | mingw*)
++    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  ;;
++  linux*)
++    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
++  ;;
++  *)
++    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  ;;
++  esac
++],[
++  runpath_var=
++  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
++  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
++  _LT_AC_TAGVAR(archive_cmds, $1)=
++  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
++  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
++  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
++  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
++  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
++  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
++  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
++  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
++  _LT_AC_TAGVAR(hardcode_direct, $1)=no
++  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
++  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
++  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
++  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
++  _LT_AC_TAGVAR(module_cmds, $1)=
++  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
++  _LT_AC_TAGVAR(always_export_symbols, $1)=no
++  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  # include_expsyms should be a list of space-separated symbols to be *always*
++  # included in the symbol list
++  _LT_AC_TAGVAR(include_expsyms, $1)=
++  # exclude_expsyms can be an extended regexp of symbols to exclude
++  # it will be wrapped by ` (' and `)$', so one must not match beginning or
++  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
++  # as well as any symbol that contains `d'.
++  _LT_AC_TAGVAR(exclude_expsyms, $1)=&quot;_GLOBAL_OFFSET_TABLE_&quot;
++  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
++  # platforms (ab)use it in PIC code, but their linkers get confused if
++  # the symbol is explicitly referenced.  Since portable code cannot
++  # rely on this symbol name, it's probably fine to never include it in
++  # preloaded symbol tables.
++  extract_expsyms_cmds=
++  # Just being paranoid about ensuring that cc_basename is set.
++  _LT_CC_BASENAME([$compiler])
++  case $host_os in
++  cygwin* | mingw* | pw32*)
++    # FIXME: the MSVC++ port hasn't been tested in a loooong time
++    # When not using gcc, we currently assume that we are using
++    # Microsoft Visual C++.
++    if test &quot;$GCC&quot; != yes; then
++      with_gnu_ld=no
++    fi
++    ;;
++  openbsd*)
++    with_gnu_ld=no
++    ;;
++  esac
++
++  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    wlarc='${wl}'
++
++    # Set some defaults for GNU ld with shared library support. These
++    # are reset later if shared libraries are not supported. Putting them
++    # here allows them to be overridden if necessary.
++    runpath_var=LD_RUN_PATH
++    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
++    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
++        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++      else
++          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++    fi
++    supports_anon_versioning=no
++    case `$LD -v 2&gt;/dev/null` in
++      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
++      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
++      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
++      *\ 2.11.*) ;; # other 2.11 versions
++      *) supports_anon_versioning=yes ;;
++    esac
++
++    # See if GNU ld supports shared libraries.
++    case $host_os in
++    aix3* | aix4* | aix5*)
++      # On AIX/PPC, the GNU linker is very broken
++      if test &quot;$host_cpu&quot; != ia64; then
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the GNU linker, at least up to release 2.9.1, is reported
++*** to be unable to reliably create shared libraries on AIX.
++*** Therefore, libtool is disabling shared libraries support.  If you
++*** really care for shared libraries, you may want to modify your PATH
++*** so that a non-GNU linker is found, and then restart.
++
++EOF
++      fi
++      ;;
++
++    amigaos*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++
++      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
++      # that the semantics of dynamic libraries on AmigaOS, at least up
++      # to version 4, is to share data among multiple programs linked
++      # with the same dynamic library.  Since this doesn't match the
++      # behavior of shared libraries on other platforms, we can't use
++      # them.
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      ;;
++
++    beos*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
++        # support --undefined.  This deserves some investigation.  FIXME
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++      else
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
++      # as there is no search path for DLLs.
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++      _LT_AC_TAGVAR(always_export_symbols, $1)=no
++      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
++      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++
++      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++        # If the export-symbols file already is a .def file (1st line
++        # is EXPORTS), use it as is; otherwise, prepend...
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++          cp $export_symbols $output_objdir/$soname.def;
++        else
++          echo EXPORTS &gt; $output_objdir/$soname.def;
++          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++        fi~
++        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
++      else
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++
++    linux*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        tmp_addflag=
++        case $cc_basename,$host_cpu in
++        pgcc*)                                # Portland Group C compiler
++          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag'
++          ;;
++        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
++          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag -Mnomain' ;;
++        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
++          tmp_addflag=' -i_dynamic' ;;
++        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
++          tmp_addflag=' -i_dynamic -nofor_main' ;;
++        ifc* | ifort*)                        # Intel Fortran compiler
++          tmp_addflag=' -nofor_main' ;;
++        esac
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++        if test $supports_anon_versioning = yes; then
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
++  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
++  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
++          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
++        fi
++        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
++      else
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
++        wlarc=
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      fi
++      ;;
++
++    solaris* | sysv5*)
++      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: The releases 2.8.* of the GNU linker cannot reliably
++*** create shared libraries on Solaris systems.  Therefore, libtool
++*** is disabling shared libraries support.  We urge you to upgrade GNU
++*** binutils to release 2.9.1 or newer.  Another option is to modify
++*** your PATH or compiler configuration so that the native linker is
++*** used, and then restart.
++
++EOF
++      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++
++    sunos4*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      wlarc=
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    *)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      fi
++      ;;
++    esac
++
++    if test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no; then
++      runpath_var=
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
++    fi
++  else
++    # PORTME fill in a description of your system's linker (not GNU ld)
++    case $host_os in
++    aix3*)
++      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
++      # Note: this linker hardcodes the directories in LIBPATH if there
++      # are no directories specified by -L.
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
++        # Neither direct hardcoding nor static linking is supported with a
++        # broken collect2.
++        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
++      fi
++      ;;
++
++    aix4* | aix5*)
++      if test &quot;$host_cpu&quot; = ia64; then
++        # On IA64, the linker does run time linking by default, so we don't
++        # have to do anything special.
++        aix_use_runtimelinking=no
++        exp_sym_flag='-Bexport'
++        no_entry_flag=&quot;&quot;
++      else
++        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++        # -C means demangle to AIX nm, but means don't demangle with GNU nm
++        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
++        else
++          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == &quot;T&quot;) || (\[$]2 == &quot;D&quot;) || (\[$]2 == &quot;B&quot;)) &amp;&amp; ([substr](\[$]3,1,1) != &quot;.&quot;)) { print \[$]3 } }'\'' | sort -u &gt; $export_symbols'
++        fi
++        aix_use_runtimelinking=no
++
++        # Test if we are trying to use run time linking or normal
++        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++        # need to do runtime linking.
++        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
++          for ld_flag in $LDFLAGS; do
++            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
++              aix_use_runtimelinking=yes
++              break
++            fi
++          done
++        esac
++
++        exp_sym_flag='-bexport'
++        no_entry_flag='-bnoentry'
++      fi
++
++      # When large executables or shared objects are built, AIX ld can
++      # have problems creating the table of contents.  If linking a library
++      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++      _LT_AC_TAGVAR(archive_cmds, $1)=''
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
++      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++
++      if test &quot;$GCC&quot; = yes; then
++        case $host_os in aix4.[[012]]|aix4.[[012]].*)
++        # We only want to do this on AIX 4.2 and lower, the check
++        # below for broken collect2 doesn't work under 4.3+
++          collect2name=`${CC} -print-prog-name=collect2`
++          if test -f &quot;$collect2name&quot; &amp;&amp; \
++             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++          then
++            # We have reworked collect2
++            _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++          else
++            # We have old collect2
++            _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
++            # It fails to find uninstalled libraries when the uninstalled
++            # path is not listed in the libpath.  Setting hardcode_minus_L
++            # to unsupported forces relinking
++            _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++            _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
++          fi
++        esac
++        shared_flag='-shared'
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++        fi
++      else
++        # not using gcc
++        if test &quot;$host_cpu&quot; = ia64; then
++          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++          # chokes on -Wl,-G. The following line is correct:
++          shared_flag='-G'
++        else
++          if test &quot;$aix_use_runtimelinking&quot; = yes; then
++            shared_flag='${wl}-G'
++          else
++            shared_flag='${wl}-bM:SRE'
++          fi
++        fi
++      fi
++
++      # It seems that -bexpall does not export symbols beginning with
++      # underscore (_), so it is better to generate a list of symbols to export.
++      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        # Warning - without using the other runtime loading flags (-brtl),
++        # -berok will link without error, but may produce a broken library.
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
++       # Determine the default libpath from the value encoded in an empty executable.
++       _LT_AC_SYS_LIBPATH_AIX
++       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++       else
++        if test &quot;$host_cpu&quot; = ia64; then
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
++          _LT_AC_TAGVAR(allow_undefined_flag, $1)=&quot;-z nodefs&quot;
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++        else
++         # Determine the default libpath from the value encoded in an empty executable.
++         _LT_AC_SYS_LIBPATH_AIX
++         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++          # Warning - without using the other run time loading flags,
++          # -berok will link without error, but may produce a broken library.
++          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
++          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
++          # -bexpall does not export symbols beginning with underscore (_)
++          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
++          # Exported symbols can be pulled into shared objects from archives
++          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
++          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
++          # This is similar to how AIX traditionally builds its shared libraries.
++          _LT_AC_TAGVAR(archive_expsym_cmds, $1)=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++        fi
++      fi
++      ;;
++
++    amigaos*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      # see comment about different semantics on the GNU ld section
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      ;;
++
++    bsdi[[45]]*)
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # When not using gcc, we currently assume that we are using
++      # Microsoft Visual C++.
++      # hardcode_libdir_flag_spec is actually meaningless, as there is
++      # no search path for DLLs.
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
++      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++      # Tell ltmain to make .lib files, not .a files.
++      libext=lib
++      # Tell ltmain to make .dll files, not .so files.
++      shrext_cmds=&quot;.dll&quot;
++      # FIXME: Setting linknames here is a bad hack.
++      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
++      # The linker will automatically build a .lib file if we build a DLL.
++      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
++      # FIXME: Should let the user specify the lib program.
++      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
++      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w &quot;$srcfile&quot;`'
++      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
++      ;;
++
++    darwin* | rhapsody*)
++      case $host_os in
++        rhapsody* | darwin1.[[012]])
++         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[[012]])
++               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++      esac
++      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++      _LT_AC_TAGVAR(hardcode_direct, $1)=no
++      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
++      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
++      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++    if test &quot;$GCC&quot; = yes ; then
++            output_verbose_link_cmd='echo'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++    else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         _LT_AC_TAGVAR(ld_shlibs, $1)=no
++          ;;
++      esac
++    fi
++      ;;
++
++    dgux*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    freebsd1*)
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      ;;
++
++    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
++    # support.  Future versions do this automatically, but an explicit c++rt0.o
++    # does not break anything, and helps significantly (at the cost of a little
++    # extra space).
++    freebsd2.2*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
++    freebsd2*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
++    freebsd* | kfreebsd*-gnu | dragonfly*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    hpux9*)
++      if test &quot;$GCC&quot; = yes; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++
++      # hardcode_minus_L: Not really in the search PATH,
++      # but as the default location of the library.
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++      ;;
++
++    hpux10* | hpux11*)
++      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*|ia64*)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        *)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        esac
++      else
++        case $host_cpu in
++        hppa*64*|ia64*)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        *)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        esac
++      fi
++      if test &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*)
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++          _LT_AC_TAGVAR(hardcode_direct, $1)=no
++          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++          ;;
++        ia64*)
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++          _LT_AC_TAGVAR(hardcode_direct, $1)=no
++          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++          ;;
++        *)
++          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
++          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++          ;;
++        esac
++      fi
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      if test &quot;$GCC&quot; = yes; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    newsos6)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    openbsd*)
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
++      else
++       case $host_os in
++         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
++           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++           ;;
++         *)
++           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++           ;;
++       esac
++      fi
++      ;;
++
++    os2*)
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
++      _LT_AC_TAGVAR(archive_cmds, $1)='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
++      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
++      ;;
++
++    osf3*)
++      if test &quot;$GCC&quot; = yes; then
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++      ;;
++
++    osf4* | osf5*)        # as osf3* with the addition of -msym flag
++      if test &quot;$GCC&quot; = yes; then
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
++      else
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
++
++        # Both c and cxx compiler support -rpath directly
++        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
++      ;;
++
++    sco3.2v5*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
++      runpath_var=LD_RUN_PATH
++      hardcode_runpath_var=yes
++      ;;
++
++    solaris*)
++      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
++      if test &quot;$GCC&quot; = yes; then
++        wlarc='${wl}'
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
++      else
++        wlarc=''
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      case $host_os in
++      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
++      *)
++         # The compiler driver will combine linker options so we
++         # cannot just pass the convience library names through
++         # without $wl, iff we do not link with $LD.
++         # Luckily, gcc supports the same syntax we need for Sun Studio.
++         # Supported since Solaris 2.6 (maybe 2.5.1?)
++         case $wlarc in
++         '')
++           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
++         *)
++           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
++         esac ;;
++      esac
++      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
++      ;;
++
++    sunos4*)
++      if test &quot;x$host_vendor&quot; = xsequent; then
++        # Use $CC to link under sequent, because it throws in some extra .o
++        # files that make .init and .fini sections work.
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
++      fi
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    sysv4)
++      case $host_vendor in
++        sni)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
++        ;
++        siemens)
++          ## LD is ld it makes a PLAMLIB
++          ## CC just makes a GrossModule.
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
++          _LT_AC_TAGVAR(hardcode_direct, $1)=no
++        ;;
++        motorola)
++          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
++        ;
++      esac
++      runpath_var='LD_RUN_PATH'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    sysv4.3*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++        runpath_var=LD_RUN_PATH
++        hardcode_runpath_var=yes
++        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
++      fi
++      ;;
++
++    sysv4.2uw2*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
++      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      hardcode_runpath_var=yes
++      runpath_var=LD_RUN_PATH
++      ;;
++
++   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
++      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
++      if test &quot;$GCC&quot; = yes; then
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      fi
++      runpath_var='LD_RUN_PATH'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    sysv5*)
++      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
++      # $CC -shared without GNU ld will not create a library from C++
++      # object files and a static libstdc++, better avoid it by now
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      runpath_var='LD_RUN_PATH'
++      ;;
++
++    uts4*)
++      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
++      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
++      ;;
++
++    *)
++      _LT_AC_TAGVAR(ld_shlibs, $1)=no
++      ;;
++    esac
++  fi
++])
++AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
++test &quot;$_LT_AC_TAGVAR(ld_shlibs, $1)&quot; = no &amp;&amp; can_build_shared=no
++
++variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
++if test &quot;$GCC&quot; = yes; then
++  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
++fi
++
++#
++# Do we need to explicitly link libc?
++#
++case &quot;x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)&quot; in
++x|xyes)
++  # Assume -lc should be added
++  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
++
++  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
++    case $_LT_AC_TAGVAR(archive_cmds, $1) in
++    *'~'*)
++      # FIXME: we may have to deal with multi-command sequences.
++      ;;
++    '$CC '*)
++      # Test whether the compiler implicitly links with -lc since on some
++      # systems, -lgcc has to come before -lc. If gcc already passes -lc
++      # to ld, don't add -lc before -lgcc.
++      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
++      $rm conftest*
++      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++      if AC_TRY_EVAL(ac_compile) 2&gt;conftest.err; then
++        soname=conftest
++        lib=conftest
++        libobjs=conftest.$ac_objext
++        deplibs=
++        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
++        compiler_flags=-v
++        linker_flags=-v
++        verstring=
++        output_objdir=.
++        libname=conftest
++        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
++        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1)
++        then
++          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
++        else
++          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
++        fi
++        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
++      else
++        cat conftest.err 1&gt;&amp;5
++      fi
++      $rm conftest*
++      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
++      ;;
++    esac
++  fi
++  ;;
++esac
++])# AC_LIBTOOL_PROG_LD_SHLIBS
++
++
++# _LT_AC_FILE_LTDLL_C
++# -------------------
++# Be careful that the start marker always follows a newline.
++AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
++# /* ltdll.c starts here */
++# #define WIN32_LEAN_AND_MEAN
++# #include &lt;windows.h&gt;
++# #undef WIN32_LEAN_AND_MEAN
++# #include &lt;stdio.h&gt;
++#
++# #ifndef __CYGWIN__
++# #  ifdef __CYGWIN32__
++# #    define __CYGWIN__ __CYGWIN32__
++# #  endif
++# #endif
++#
++# #ifdef __cplusplus
++# extern &quot;C&quot; {
++# #endif
++# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
++# #ifdef __cplusplus
++# }
++# #endif
++#
++# #ifdef __CYGWIN__
++# #include &lt;cygwin/cygwin_dll.h&gt;
++# DECLARE_CYGWIN_DLL( DllMain );
++# #endif
++# HINSTANCE __hDllInstance_base;
++#
++# BOOL APIENTRY
++# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
++# {
++#   __hDllInstance_base = hInst;
++#   return TRUE;
++# }
++# /* ltdll.c ends here */
++])# _LT_AC_FILE_LTDLL_C
++
++
++# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
++# ---------------------------------
++AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
++
++
++# old names
++AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
++AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
++AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
++AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
++AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
++AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
++AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
++
++# This is just to silence aclocal about the macro not being used
++ifelse([AC_DISABLE_FAST_INSTALL])
++
++AC_DEFUN([LT_AC_PROG_GCJ],
++[AC_CHECK_TOOL(GCJ, gcj, no)
++  test &quot;x${GCJFLAGS+set}&quot; = xset || GCJFLAGS=&quot;-g -O2&quot;
++  AC_SUBST(GCJFLAGS)
++])
++
++AC_DEFUN([LT_AC_PROG_RC],
++[AC_CHECK_TOOL(RC, windres, no)
++])
++
++# NOTE: This macro has been submitted for inclusion into   #
++#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
++#  a released version of Autoconf we should remove this    #
++#  macro and use it instead.                               #
++# LT_AC_PROG_SED
++# --------------
++# Check for a fully-functional sed program, that truncates
++# as few characters as possible.  Prefer GNU sed if found.
++AC_DEFUN([LT_AC_PROG_SED],
++[AC_MSG_CHECKING([for a sed that does not truncate output])
++AC_CACHE_VAL(lt_cv_path_SED,
++[# Loop through the user's path and test for sed and gsed.
++# Then use that list of sed's as ones to test for truncation.
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for lt_ac_prog in sed gsed; do
++    for ac_exec_ext in '' $ac_executable_extensions; do
++      if $as_executable_p &quot;$as_dir/$lt_ac_prog$ac_exec_ext&quot;; then
++        lt_ac_sed_list=&quot;$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext&quot;
++      fi
++    done
++  done
++done
++lt_ac_max=0
++lt_ac_count=0
++# Add /usr/xpg4/bin/sed as it is typically found on Solaris
++# along with /bin/sed that truncates output.
++for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
++  test ! -f $lt_ac_sed &amp;&amp; continue
++  cat /dev/null &gt; conftest.in
++  lt_ac_count=0
++  echo $ECHO_N &quot;0123456789$ECHO_C&quot; &gt;conftest.in
++  # Check for GNU sed and select it if it is found.
++  if &quot;$lt_ac_sed&quot; --version 2&gt;&amp;1 &lt; /dev/null | grep 'GNU' &gt; /dev/null; then
++    lt_cv_path_SED=$lt_ac_sed
++    break
++  fi
++  while true; do
++    cat conftest.in conftest.in &gt;conftest.tmp
++    mv conftest.tmp conftest.in
++    cp conftest.in conftest.nl
++    echo &gt;&gt;conftest.nl
++    $lt_ac_sed -e 's/a$//' &lt; conftest.nl &gt;conftest.out || break
++    cmp -s conftest.out conftest.nl || break
++    # 10000 chars as input seems more than enough
++    test $lt_ac_count -gt 10 &amp;&amp; break
++    lt_ac_count=`expr $lt_ac_count + 1`
++    if test $lt_ac_count -gt $lt_ac_max; then
++      lt_ac_max=$lt_ac_count
++      lt_cv_path_SED=$lt_ac_sed
++    fi
++  done
++done
++])
++SED=$lt_cv_path_SED
++AC_MSG_RESULT([$SED])
++])
++
++# longdouble.m4 serial 1 (gettext-0.12)
++dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++dnl Test whether the compiler supports the 'long double' type.
++dnl Prerequisite: AC_PROG_CC
++
++AC_DEFUN([gt_TYPE_LONGDOUBLE],
++[
++  AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
++    [if test &quot;$GCC&quot; = yes; then
++       gt_cv_c_long_double=yes
++     else
++       AC_TRY_COMPILE([
++         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
++         long double foo = 0.0;
++         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
++         int array [2*(sizeof(long double) &gt;= sizeof(double)) - 1];
++         ], ,
++         gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
++     fi])
++  if test $gt_cv_c_long_double = yes; then
++    AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
++  fi
++])
++
++# longlong.m4 serial 5
++dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Paul Eggert.
++
++# Define HAVE_LONG_LONG if 'long long' works.
++
++AC_DEFUN([gl_AC_TYPE_LONG_LONG],
++[
++  AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
++  [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
++    [long long llmax = (long long) -1;
++     return ll &lt;&lt; i | ll &gt;&gt; i | llmax / ll | llmax % ll;],
++    ac_cv_type_long_long=yes,
++    ac_cv_type_long_long=no)])
++  if test $ac_cv_type_long_long = yes; then
++    AC_DEFINE(HAVE_LONG_LONG, 1,
++      [Define if you have the 'long long' type.])
++  fi
++])
++
++# nls.m4 serial 2 (gettext-0.14.3)
++dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are *not* in the public domain.
++
++dnl Authors:
++dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
++dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.
++
++AC_PREREQ(2.50)
++
++AC_DEFUN([AM_NLS],
++[
++  AC_MSG_CHECKING([whether NLS is requested])
++  dnl Default is enabled NLS
++  AC_ARG_ENABLE(nls,
++    [  --disable-nls           do not use Native Language Support],
++    USE_NLS=$enableval, USE_NLS=yes)
++  AC_MSG_RESULT($USE_NLS)
++  AC_SUBST(USE_NLS)
++])
++
++AC_DEFUN([AM_MKINSTALLDIRS],
++[
++  dnl Tell automake &gt;= 1.10 to complain if mkinstalldirs is missing.
++  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
++  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
++  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
++  dnl Try to locate it.
++  MKINSTALLDIRS=
++  if test -n &quot;$ac_aux_dir&quot;; then
++    case &quot;$ac_aux_dir&quot; in
++      /*) MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot; ;;
++      *) MKINSTALLDIRS=&quot;\$(top_builddir)/$ac_aux_dir/mkinstalldirs&quot; ;;
++    esac
++  fi
++  if test -z &quot;$MKINSTALLDIRS&quot;; then
++    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
++  fi
++  AC_SUBST(MKINSTALLDIRS)
++])
++
++# po.m4 serial 7 (gettext-0.14.3)
++dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are *not* in the public domain.
++
++dnl Authors:
++dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995-2000.
++dnl   Bruno Haible &lt;haible@clisp.cons.org&gt;, 2000-2003.
++
++AC_PREREQ(2.50)
++
++dnl Checks for all prerequisites of the po subdirectory.
++AC_DEFUN([AM_PO_SUBDIRS],
++[
++  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
++  AC_REQUIRE([AC_PROG_INSTALL])dnl
++  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
++  AC_REQUIRE([AM_NLS])dnl
++
++  dnl Perform the following tests also if --disable-nls has been given,
++  dnl because they are needed for &quot;make dist&quot; to work.
++
++  dnl Search for GNU msgfmt in the PATH.
++  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
++  dnl The second test excludes FreeBSD msgfmt.
++  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
++    [$ac_dir/$ac_word --statistics /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1 &amp;&amp;
++     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
++    :)
++  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
++
++  dnl Search for GNU xgettext 0.12 or newer in the PATH.
++  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
++  dnl The second test excludes FreeBSD xgettext.
++  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
++    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1 &amp;&amp;
++     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi)],
++    :)
++  dnl Remove leftover from FreeBSD xgettext call.
++  rm -f messages.po
++
++  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
++  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
++    [$ac_dir/$ac_word --update -q /dev/null /dev/null &gt;&amp;]AS_MESSAGE_LOG_FD[ 2&gt;&amp;1], :)
++
++  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
++  dnl Test whether we really found GNU msgfmt.
++  if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
++    dnl If it is no GNU msgfmt we define it as : so that the
++    dnl Makefiles still can work.
++    if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++      : ;
++    else
++      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
++      AC_MSG_RESULT(
++        [found $GMSGFMT program is not GNU msgfmt; ignore it])
++      GMSGFMT=&quot;:&quot;
++    fi
++  fi
++
++  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
++  dnl Test whether we really found GNU xgettext.
++  if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
++    dnl If it is no GNU xgettext we define it as : so that the
++    dnl Makefiles still can work.
++    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++      : ;
++    else
++      AC_MSG_RESULT(
++        [found xgettext program is not GNU xgettext; ignore it])
++      XGETTEXT=&quot;:&quot;
++    fi
++    dnl Remove leftover from FreeBSD xgettext call.
++    rm -f messages.po
++  fi
++
++  AC_OUTPUT_COMMANDS([
++    for ac_file in $CONFIG_FILES; do
++      # Support &quot;outfile[:infile[:infile...]]&quot;
++      case &quot;$ac_file&quot; in
++        *:*) ac_file=`echo &quot;$ac_file&quot;|sed 's%:.*%%'` ;;
++      esac
++      # PO directories have a Makefile.in generated from Makefile.in.in.
++      case &quot;$ac_file&quot; in */Makefile.in)
++        # Adjust a relative srcdir.
++        ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
++        ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
++        ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
++        # In autoconf-2.13 it is called $ac_given_srcdir.
++        # In autoconf-2.50 it is called $srcdir.
++        test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
++        case &quot;$ac_given_srcdir&quot; in
++          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
++          /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
++          *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
++        esac
++        # Treat a directory as a PO directory if and only if it has a
++        # POTFILES.in file. This allows packages to have multiple PO
++        # directories under different names or in different locations.
++        if test -f &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot;; then
++          rm -f &quot;$ac_dir/POTFILES&quot;
++          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/POTFILES&quot; || echo &quot;creating $ac_dir/POTFILES&quot;
++          cat &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot; | sed -e &quot;/^#/d&quot; -e &quot;/^[         ]*\$/d&quot; -e &quot;s,.*,     $top_srcdir/&amp; \\\\,&quot; | sed -e &quot;\$s/\(.*\) \\\\/\1/&quot; &gt; &quot;$ac_dir/POTFILES&quot;
++          POMAKEFILEDEPS=&quot;POTFILES.in&quot;
++          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
++          # on $ac_dir but don't depend on user-specified configuration
++          # parameters.
++          if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
++            # The LINGUAS file contains the set of available languages.
++            if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
++              test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
++            fi
++            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
++            # Hide the ALL_LINGUAS assigment from automake.
++            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
++            POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
++          else
++            # The set of available languages was given in configure.in.
++            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
++          fi
++          # Compute POFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
++          # Compute UPDATEPOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
++          # Compute DUMMYPOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
++          # Compute GMOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
++          case &quot;$ac_given_srcdir&quot; in
++            .) srcdirpre= ;;
++            *) srcdirpre='$(srcdir)/' ;;
++          esac
++          POFILES=
++          UPDATEPOFILES=
++          DUMMYPOFILES=
++          GMOFILES=
++          for lang in $ALL_LINGUAS; do
++            POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
++            UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
++            DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
++            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
++          done
++          # CATALOGS depends on both $ac_dir and the user's LINGUAS
++          # environment variable.
++          INST_LINGUAS=
++          if test -n &quot;$ALL_LINGUAS&quot;; then
++            for presentlang in $ALL_LINGUAS; do
++              useit=no
++              if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
++                desiredlanguages=&quot;$LINGUAS&quot;
++              else
++                desiredlanguages=&quot;$ALL_LINGUAS&quot;
++              fi
++              for desiredlang in $desiredlanguages; do
++                # Use the presentlang catalog if desiredlang is
++                #   a. equal to presentlang, or
++                #   b. a variant of presentlang (because in this case,
++                #      presentlang can be used as a fallback for messages
++                #      which are not translated in the desiredlang catalog).
++                case &quot;$desiredlang&quot; in
++                  &quot;$presentlang&quot;*) useit=yes;;
++                esac
++              done
++              if test $useit = yes; then
++                INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
++              fi
++            done
++          fi
++          CATALOGS=
++          if test -n &quot;$INST_LINGUAS&quot;; then
++            for lang in $INST_LINGUAS; do
++              CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
++            done
+           fi
++          test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/Makefile&quot; || echo &quot;creating $ac_dir/Makefile&quot;
++          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
++          for f in &quot;$ac_given_srcdir/$ac_dir&quot;/Rules-*; do
++            if test -f &quot;$f&quot;; then
++              case &quot;$f&quot; in
++                *.orig | *.bak | *~) ;;
++                *) cat &quot;$f&quot; &gt;&gt; &quot;$ac_dir/Makefile&quot; ;;
++              esac
++            fi
++          done
+         fi
+-      fi
+-    done
++        ;;
++      esac
++    done],
++   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
++    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
++    # from automake.
++    eval 'OBSOLETE_ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
++    # Capture the value of LINGUAS because we need it to compute CATALOGS.
++    LINGUAS=&quot;${LINGUAS-%UNSET%}&quot;
++   ])
++])
++
++dnl Postprocesses a Makefile in a directory containing PO files.
++AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
++[
++  # When this code is run, in config.status, two variables have already been
++  # set:
++  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
++  # - LINGUAS is the value of the environment variable LINGUAS at configure
++  #   time.
++
++changequote(,)dnl
++  # Adjust a relative srcdir.
++  ac_dir=`echo &quot;$ac_file&quot;|sed 's%/[^/][^/]*$%%'`
++  ac_dir_suffix=&quot;/`echo &quot;$ac_dir&quot;|sed 's%^\./%%'`&quot;
++  ac_dots=`echo &quot;$ac_dir_suffix&quot;|sed 's%/[^/]*%../%g'`
++  # In autoconf-2.13 it is called $ac_given_srcdir.
++  # In autoconf-2.50 it is called $srcdir.
++  test -n &quot;$ac_given_srcdir&quot; || ac_given_srcdir=&quot;$srcdir&quot;
++  case &quot;$ac_given_srcdir&quot; in
++    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
++    /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
++    *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
++  esac
++
++  # Find a way to echo strings without interpreting backslash.
++  if test &quot;X`(echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
++    gt_echo='echo'
++  else
++    if test &quot;X`(printf '%s\n' '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
++      gt_echo='printf %s\n'
++    else
++      echo_func () {
++        cat &lt;&lt;EOT
++$*
++EOT
++      }
++      gt_echo='echo_func'
++    fi
++  fi
++
++  # A sed script that extracts the value of VARIABLE from a Makefile.
++  sed_x_variable='
++# Test if the hold space is empty.
++x
++s/P/P/
++x
++ta
++# Yes it was empty. Look if we have the expected variable definition.
++/^[         ]*VARIABLE[         ]*=/{
++  # Seen the first line of the variable definition.
++  s/^[         ]*VARIABLE[         ]*=//
++  ba
++}
++bd
++:a
++# Here we are processing a line from the variable definition.
++# Remove comment, more precisely replace it with a space.
++s/#.*$/ /
++# See if the line ends in a backslash.
++tb
++:b
++s/\\$//
++# Print the line, without the trailing backslash.
++p
++tc
++# There was no trailing backslash. The end of the variable definition is
++# reached. Clear the hold space.
++s/^.*$//
++x
++bd
++:c
++# A trailing backslash means that the variable definition continues in the
++# next line. Put a nonempty string into the hold space to indicate this.
++s/^.*$/P/
++x
++:d
++'
++changequote([,])dnl
++
++  # Set POTFILES to the value of the Makefile variable POTFILES.
++  sed_x_POTFILES=&quot;`$gt_echo \&quot;$sed_x_variable\&quot; | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`&quot;
++  POTFILES=`sed -n -e &quot;$sed_x_POTFILES&quot; &lt; &quot;$ac_file&quot;`
++  # Compute POTFILES_DEPS as
++  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
++  POTFILES_DEPS=
++  for file in $POTFILES; do
++    POTFILES_DEPS=&quot;$POTFILES_DEPS &quot;'$(top_srcdir)/'&quot;$file&quot;
+   done
+-  if test &quot;X$rpathdirs&quot; != &quot;X&quot;; then
+-    if test -n &quot;$hardcode_libdir_separator&quot;; then
+-      dnl Weird platform: only the last -rpath option counts, the user must
+-      dnl pass all path elements in one option. We can arrange that for a
+-      dnl single library, but not when more than one $LIBNAMEs are used.
+-      alldirs=
+-      for found_dir in $rpathdirs; do
+-        alldirs=&quot;${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir&quot;
++  POMAKEFILEDEPS=&quot;&quot;
++
++  if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
++    test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
++  fi
++  if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
++    # The LINGUAS file contains the set of available languages.
++    ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
++    POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
++  else
++    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
++    sed_x_LINGUAS=&quot;`$gt_echo \&quot;$sed_x_variable\&quot; | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`&quot;
++    ALL_LINGUAS_=`sed -n -e &quot;$sed_x_LINGUAS&quot; &lt; &quot;$ac_file&quot;`
++  fi
++  # Hide the ALL_LINGUAS assigment from automake.
++  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
++  # Compute POFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
++  # Compute UPDATEPOFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
++  # Compute DUMMYPOFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
++  # Compute GMOFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
++  # Compute PROPERTIESFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
++  # Compute CLASSFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
++  # Compute QMFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
++  # Compute MSGFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
++  # Compute RESOURCESDLLFILES
++  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
++  case &quot;$ac_given_srcdir&quot; in
++    .) srcdirpre= ;;
++    *) srcdirpre='$(srcdir)/' ;;
++  esac
++  POFILES=
++  UPDATEPOFILES=
++  DUMMYPOFILES=
++  GMOFILES=
++  PROPERTIESFILES=
++  CLASSFILES=
++  QMFILES=
++  MSGFILES=
++  RESOURCESDLLFILES=
++  for lang in $ALL_LINGUAS; do
++    POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
++    UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
++    DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
++    GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
++    PROPERTIESFILES=&quot;$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties&quot;
++    CLASSFILES=&quot;$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class&quot;
++    QMFILES=&quot;$QMFILES $srcdirpre$lang.qm&quot;
++    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
++    MSGFILES=&quot;$MSGFILES $srcdirpre$frobbedlang.msg&quot;
++    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
++    RESOURCESDLLFILES=&quot;$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll&quot;
++  done
++  # CATALOGS depends on both $ac_dir and the user's LINGUAS
++  # environment variable.
++  INST_LINGUAS=
++  if test -n &quot;$ALL_LINGUAS&quot;; then
++    for presentlang in $ALL_LINGUAS; do
++      useit=no
++      if test &quot;%UNSET%&quot; != &quot;$LINGUAS&quot;; then
++        desiredlanguages=&quot;$LINGUAS&quot;
++      else
++        desiredlanguages=&quot;$ALL_LINGUAS&quot;
++      fi
++      for desiredlang in $desiredlanguages; do
++        # Use the presentlang catalog if desiredlang is
++        #   a. equal to presentlang, or
++        #   b. a variant of presentlang (because in this case,
++        #      presentlang can be used as a fallback for messages
++        #      which are not translated in the desiredlang catalog).
++        case &quot;$desiredlang&quot; in
++          &quot;$presentlang&quot;*) useit=yes;;
++        esac
+       done
+-      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
+-      acl_save_libdir=&quot;$libdir&quot;
+-      libdir=&quot;$alldirs&quot;
+-      eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+-      libdir=&quot;$acl_save_libdir&quot;
+-      LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
+-    else
+-      dnl The -rpath options are cumulative.
+-      for found_dir in $rpathdirs; do
+-        acl_save_libdir=&quot;$libdir&quot;
+-        libdir=&quot;$found_dir&quot;
+-        eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;
+-        libdir=&quot;$acl_save_libdir&quot;
+-        LIB[]NAME=&quot;${LIB[]NAME}${LIB[]NAME:+ }$flag&quot;
++      if test $useit = yes; then
++        INST_LINGUAS=&quot;$INST_LINGUAS $presentlang&quot;
++      fi
++    done
++  fi
++  CATALOGS=
++  JAVACATALOGS=
++  QTCATALOGS=
++  TCLCATALOGS=
++  CSHARPCATALOGS=
++  if test -n &quot;$INST_LINGUAS&quot;; then
++    for lang in $INST_LINGUAS; do
++      CATALOGS=&quot;$CATALOGS $lang.gmo&quot;
++      JAVACATALOGS=&quot;$JAVACATALOGS \$(DOMAIN)_$lang.properties&quot;
++      QTCATALOGS=&quot;$QTCATALOGS $lang.qm&quot;
++      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
++      TCLCATALOGS=&quot;$TCLCATALOGS $frobbedlang.msg&quot;
++      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
++      CSHARPCATALOGS=&quot;$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll&quot;
++    done
++  fi
++
++  sed -e &quot;s|@POTFILES_DEPS@|$POTFILES_DEPS|g&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@PROPERTIESFILES@|$PROPERTIESFILES|g&quot; -e &quot;s|@CLASSFILES@|$CLASSFILES|g&quot; -e &quot;s|@QMFILES@|$QMFILES|g&quot; -e &quot;s|@MSGFILES@|$MSGFILES|g&quot; -e &quot;s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@JAVACATALOGS@|$JAVACATALOGS|g&quot; -e &quot;s|@QTCATALOGS@|$QTCATALOGS|g&quot; -e &quot;s|@TCLCATALOGS@|$TCLCATALOGS|g&quot; -e &quot;s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g&quot; -e 's,^#distdir:,distdir:,' &lt; &quot;$ac_file&quot; &gt; &quot;$ac_file.tmp&quot;
++  if grep -l '@TCLCATALOGS@' &quot;$ac_file&quot; &gt; /dev/null; then
++    # Add dependencies that cannot be formulated as a simple suffix rule.
++    for lang in $ALL_LINGUAS; do
++      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
++      cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
++$frobbedlang.msg: $lang.po
++        @echo &quot;\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po&quot;; \
++        \$(MSGFMT) -c --tcl -d &quot;\$(srcdir)&quot; -l $lang $srcdirpre$lang.po || { rm -f &quot;\$(srcdir)/$frobbedlang.msg&quot;; exit 1; }
++EOF
++    done
++  fi
++  if grep -l '@CSHARPCATALOGS@' &quot;$ac_file&quot; &gt; /dev/null; then
++    # Add dependencies that cannot be formulated as a simple suffix rule.
++    for lang in $ALL_LINGUAS; do
++      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
++      cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
++$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
++        @echo &quot;\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)&quot;; \
++        \$(MSGFMT) -c --csharp -d &quot;\$(srcdir)&quot; -l $lang $srcdirpre$lang.po -r &quot;\$(DOMAIN)&quot; || { rm -f &quot;\$(srcdir)/$frobbedlang.msg&quot;; exit 1; }
++EOF
++    done
++  fi
++  if test -n &quot;$POMAKEFILEDEPS&quot;; then
++    cat &gt;&gt; &quot;$ac_file.tmp&quot; &lt;&lt;EOF
++Makefile: $POMAKEFILEDEPS
++EOF
++  fi
++  mv &quot;$ac_file.tmp&quot; &quot;$ac_file&quot;
++])
++
++# printf-posix.m4 serial 2 (gettext-0.13.1)
++dnl Copyright (C) 2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++dnl Test whether the printf() function supports POSIX/XSI format strings with
++dnl positions.
++
++AC_DEFUN([gt_PRINTF_POSIX],
++[
++  AC_REQUIRE([AC_PROG_CC])
++  AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
++    gt_cv_func_printf_posix,
++    [
++      AC_TRY_RUN([
++#include &lt;stdio.h&gt;
++#include &lt;string.h&gt;
++/* The string &quot;%2$d %1$d&quot;, with dollar characters protected from the shell's
++   dollar expansion (possibly an autoconf bug).  */
++static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
++static char buf[100];
++int main ()
++{
++  sprintf (buf, format, 33, 55);
++  return (strcmp (buf, &quot;55 33&quot;) != 0);
++}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
++      [
++        AC_EGREP_CPP(notposix, [
++#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
++  notposix
++#endif
++        ], gt_cv_func_printf_posix=&quot;guessing no&quot;,
++           gt_cv_func_printf_posix=&quot;guessing yes&quot;)
++      ])
++    ])
++  case $gt_cv_func_printf_posix in
++    *yes)
++      AC_DEFINE(HAVE_POSIX_PRINTF, 1,
++        [Define if your printf() function supports format strings with positions.])
++      ;;
++  esac
++])
++
++# progtest.m4 serial 4 (gettext-0.14.2)
++dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++dnl
++dnl This file can can be used in projects which are not available under
++dnl the GNU General Public License or the GNU Library General Public
++dnl License but which still want to provide support for the GNU gettext
++dnl functionality.
++dnl Please note that the actual code of the GNU gettext library is covered
++dnl by the GNU Library General Public License, and the rest of the GNU
++dnl gettext package package is covered by the GNU General Public License.
++dnl They are *not* in the public domain.
++
++dnl Authors:
++dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1996.
++
++AC_PREREQ(2.50)
++
++# Search path for a program which passes the given test.
++
++dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
++dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
++AC_DEFUN([AM_PATH_PROG_WITH_TEST],
++[
++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
++fi
++
++# Find out how to test for executable files. Don't use a zero-byte file,
++# as systems may use methods other than mode bits to determine executability.
++cat &gt;conf$$.file &lt;&lt;_ASEOF
++#! /bin/sh
++exit 0
++_ASEOF
++chmod +x conf$$.file
++if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
++  ac_executable_p=&quot;test -x&quot;
++else
++  ac_executable_p=&quot;test -f&quot;
++fi
++rm -f conf$$.file
++
++# Extract the first word of &quot;$2&quot;, so it can be a program name with args.
++set dummy $2; ac_word=[$]2
++AC_MSG_CHECKING([for $ac_word])
++AC_CACHE_VAL(ac_cv_path_$1,
++[case &quot;[$]$1&quot; in
++  [[\\/]]* | ?:[[\\/]]*)
++    ac_cv_path_$1=&quot;[$]$1&quot; # Let the user override the test with a path.
++    ;;
++  *)
++    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++    for ac_dir in ifelse([$5], , $PATH, [$5]); do
++      IFS=&quot;$ac_save_IFS&quot;
++      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++      for ac_exec_ext in '' $ac_executable_extensions; do
++        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
++          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;AS_MESSAGE_LOG_FD
++          if [$3]; then
++            ac_cv_path_$1=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
++            break 2
++          fi
++        fi
+       done
+-    fi
+-  fi
+-  if test &quot;X$ltrpathdirs&quot; != &quot;X&quot;; then
+-    dnl When using libtool, the option that works for both libraries and
+-    dnl executables is -R. The -R options are cumulative.
+-    for found_dir in $ltrpathdirs; do
+-      LTLIB[]NAME=&quot;${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir&quot;
+     done
++    IFS=&quot;$ac_save_IFS&quot;
++dnl If no 4th arg is given, leave the cache variable unset,
++dnl so AC_PATH_PROGS will keep looking.
++ifelse([$4], , , [  test -z &quot;[$]ac_cv_path_$1&quot; &amp;&amp; ac_cv_path_$1=&quot;$4&quot;
++])dnl
++    ;;
++esac])dnl
++$1=&quot;$ac_cv_path_$1&quot;
++if test ifelse([$4], , [-n &quot;[$]$1&quot;], [&quot;[$]$1&quot; != &quot;$4&quot;]); then
++  AC_MSG_RESULT([$]$1)
++else
++  AC_MSG_RESULT(no)
++fi
++AC_SUBST($1)dnl
++])
++
++# signed.m4 serial 1 (gettext-0.10.40)
++dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++
++AC_DEFUN([bh_C_SIGNED],
++[
++  AC_CACHE_CHECK([for signed], bh_cv_c_signed,
++   [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
++  if test $bh_cv_c_signed = no; then
++    AC_DEFINE(signed, ,
++              [Define to empty if the C compiler doesn't support this keyword.])
+   fi
+ ])

+-dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
+-dnl unless already present in VAR.
+-dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
+-dnl contains two or three consecutive elements that belong together.
+-AC_DEFUN([AC_LIB_APPENDTOVAR],
++# size_max.m4 serial 2
++dnl Copyright (C) 2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++
++AC_DEFUN([gl_SIZE_MAX],
+ [
+-  for element in [$2]; do
+-    haveit=
+-    for x in $[$1]; do
+-      AC_LIB_WITH_FINAL_PREFIX([eval x=\&quot;$x\&quot;])
+-      if test &quot;X$x&quot; = &quot;X$element&quot;; then
+-        haveit=yes
+-        break
++  AC_CHECK_HEADERS(stdint.h)
++  dnl First test whether the system already has SIZE_MAX.
++  AC_MSG_CHECKING([for SIZE_MAX])
++  result=
++  AC_EGREP_CPP([Found it], [
++#include &lt;limits.h&gt;
++#if HAVE_STDINT_H
++#include &lt;stdint.h&gt;
++#endif
++#ifdef SIZE_MAX
++Found it
++#endif
++], result=yes)
++  if test -z &quot;$result&quot;; then
++    dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
++    dnl than the type 'unsigned long'.
++    dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
++    dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
++    _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
++      [#include &lt;stddef.h&gt;], result=?)
++    _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
++      [#include &lt;stddef.h&gt;], result=?)
++    _AC_COMPUTE_INT([sizeof (size_t) &lt;= sizeof (unsigned int)], fits_in_uint,
++      [#include &lt;stddef.h&gt;], result=?)
++    if test &quot;$fits_in_uint&quot; = 1; then
++      dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
++      dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
++      AC_TRY_COMPILE([#include &lt;stddef.h&gt;
++        extern size_t foo;
++        extern unsigned long foo;
++        ], [], fits_in_uint=0)
++    fi
++    if test -z &quot;$result&quot;; then
++      if test &quot;$fits_in_uint&quot; = 1; then
++        result=&quot;$res_hi$res_lo&quot;U
++      else
++        result=&quot;$res_hi$res_lo&quot;UL
+       fi
+-    done
+-    if test -z &quot;$haveit&quot;; then
+-      [$1]=&quot;${[$1]}${[$1]:+ }$element&quot;
++    else
++      dnl Shouldn't happen, but who knows...
++      result='~(size_t)0'
+     fi
+-  done
++  fi
++  AC_MSG_RESULT([$result])
++  if test &quot;$result&quot; != yes; then
++    AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
++      [Define as the maximum value of type 'size_t', if the system doesn't define it.])
++  fi
+ ])

+-# lib-ld.m4 serial 1 (gettext-0.11)
+-dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# stdint_h.m4 serial 5
++dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.

+-dnl Subroutines of libtool.m4,
+-dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
+-dnl with libtool.m4.
++dnl From Paul Eggert.

+-dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
+-AC_DEFUN([AC_LIB_PROG_LD_GNU],
+-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
+-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+-if $LD -v 2&gt;&amp;1 &lt;/dev/null | egrep '(GNU|with BFD)' 1&gt;&amp;5; then
+-  acl_cv_prog_gnu_ld=yes
+-else
+-  acl_cv_prog_gnu_ld=no
+-fi])
+-with_gnu_ld=$acl_cv_prog_gnu_ld
++# Define HAVE_STDINT_H_WITH_UINTMAX if &lt;stdint.h&gt; exists,
++# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.
++
++AC_DEFUN([gl_AC_HEADER_STDINT_H],
++[
++  AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
++  [AC_TRY_COMPILE(
++    [#include &lt;sys/types.h&gt;
++#include &lt;stdint.h&gt;],
++    [uintmax_t i = (uintmax_t) -1;],
++    gl_cv_header_stdint_h=yes,
++    gl_cv_header_stdint_h=no)])
++  if test $gl_cv_header_stdint_h = yes; then
++    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
++      [Define if &lt;stdint.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
++       and declares uintmax_t. ])
++  fi
++])
++
++# uintmax_t.m4 serial 9
++dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Paul Eggert.
++
++AC_PREREQ(2.13)
++
++# Define uintmax_t to 'unsigned long' or 'unsigned long long'
++# if it is not already defined in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.
++
++AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
++[
++  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
++  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
++  if test $gl_cv_header_inttypes_h = no &amp;&amp; test $gl_cv_header_stdint_h = no; then
++    AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
++    test $ac_cv_type_unsigned_long_long = yes \
++      &amp;&amp; ac_type='unsigned long long' \
++      || ac_type='unsigned long'
++    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
++      [Define to unsigned long or unsigned long long
++       if &lt;stdint.h&gt; and &lt;inttypes.h&gt; don't define.])
++  else
++    AC_DEFINE(HAVE_UINTMAX_T, 1,
++      [Define if you have the 'uintmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;.])
++  fi
++])
++
++# ulonglong.m4 serial 4
++dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Paul Eggert.
++
++# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
++
++AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
++[
++  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
++  [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
++    [unsigned long long ullmax = (unsigned long long) -1;
++     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;],
++    ac_cv_type_unsigned_long_long=yes,
++    ac_cv_type_unsigned_long_long=no)])
++  if test $ac_cv_type_unsigned_long_long = yes; then
++    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
++      [Define if you have the 'unsigned long long' type.])
++  fi
++])
++
++# wchar_t.m4 serial 1 (gettext-0.12)
++dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++dnl Test whether &lt;stddef.h&gt; has the 'wchar_t' type.
++dnl Prerequisite: AC_PROG_CC
++
++AC_DEFUN([gt_TYPE_WCHAR_T],
++[
++  AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
++    [AC_TRY_COMPILE([#include &lt;stddef.h&gt;
++       wchar_t foo = (wchar_t)'\0';], ,
++       gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
++  if test $gt_cv_c_wchar_t = yes; then
++    AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
++  fi
++])
++
++# wint_t.m4 serial 1 (gettext-0.12)
++dnl Copyright (C) 2003 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++dnl From Bruno Haible.
++dnl Test whether &lt;wchar.h&gt; has the 'wint_t' type.
++dnl Prerequisite: AC_PROG_CC
++
++AC_DEFUN([gt_TYPE_WINT_T],
++[
++  AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
++    [AC_TRY_COMPILE([#include &lt;wchar.h&gt;
++       wint_t foo = (wchar_t)'\0';], ,
++       gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
++  if test $gt_cv_c_wint_t = yes; then
++    AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
++  fi
++])
++
++# xsize.m4 serial 3
++dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
++dnl This file is free software; the Free Software Foundation
++dnl gives unlimited permission to copy and/or distribute it,
++dnl with or without modifications, as long as this notice is preserved.
++
++AC_DEFUN([gl_XSIZE],
++[
++  dnl Prerequisites of lib/xsize.h.
++  AC_REQUIRE([gl_SIZE_MAX])
++  AC_REQUIRE([AC_C_INLINE])
++  AC_CHECK_HEADERS(stdint.h)
++])
++
++# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# AM_AUTOMAKE_VERSION(VERSION)
++# ----------------------------
++# Automake X.Y traces this macro to ensure aclocal.m4 has been
++# generated from the m4 files accompanying Automake X.Y.
++AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version=&quot;1.9&quot;])
++
++# AM_SET_CURRENT_AUTOMAKE_VERSION
++# -------------------------------
++# Call AM_AUTOMAKE_VERSION so it can be traced.
++# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
++AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
++         [AM_AUTOMAKE_VERSION([1.9.6])])
++
++# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
++
++# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
++# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
++# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
++#
++# Of course, Automake must honor this variable whenever it calls a
++# tool from the auxiliary directory.  The problem is that $srcdir (and
++# therefore $ac_aux_dir as well) can be either absolute or relative,
++# depending on how configure is run.  This is pretty annoying, since
++# it makes $ac_aux_dir quite unusable in subdirectories: in the top
++# source directory, any form will work fine, but in subdirectories a
++# relative path needs to be adjusted first.
++#
++# $ac_aux_dir/missing
++#    fails when called from a subdirectory if $ac_aux_dir is relative
++# $top_srcdir/$ac_aux_dir/missing
++#    fails if $ac_aux_dir is absolute,
++#    fails when called from a subdirectory in a VPATH build with
++#          a relative $ac_aux_dir
++#
++# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
++# are both prefixed by $srcdir.  In an in-source build this is usually
++# harmless because $srcdir is `.', but things will broke when you
++# start a VPATH build or use an absolute $srcdir.
++#
++# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
++# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
++#   am_aux_dir='\$(top_srcdir)/'`expr &quot;$ac_aux_dir&quot; : &quot;$srcdir//*\(.*\)&quot;`
++# and then we would define $MISSING as
++#   MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
++# This will work as long as MISSING is not called from configure, because
++# unfortunately $(top_srcdir) has no meaning in configure.
++# However there are other variables, like CC, which are often used in
++# configure, and could therefore not use this &quot;fixed&quot; $ac_aux_dir.
++#
++# Another solution, used here, is to always expand $ac_aux_dir to an
++# absolute PATH.  The drawback is that using absolute paths prevent a
++# configured tree to be moved without reconfiguration.
++
++AC_DEFUN([AM_AUX_DIR_EXPAND],
++[dnl Rely on autoconf to set up CDPATH properly.
++AC_PREREQ([2.50])dnl
++# expand $ac_aux_dir to an absolute path
++am_aux_dir=`cd $ac_aux_dir &amp;&amp; pwd`
+ ])

+-dnl From libtool-1.4. Sets the variable LD.
+-AC_DEFUN([AC_LIB_PROG_LD],
+-[AC_ARG_WITH(gnu-ld,
+-[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
+-test &quot;$withval&quot; = no || with_gnu_ld=yes, with_gnu_ld=no)
+-AC_REQUIRE([AC_PROG_CC])dnl
+-AC_REQUIRE([AC_CANONICAL_HOST])dnl
+-ac_prog=ld
+-if test &quot;$GCC&quot; = yes; then
+-  # Check if gcc -print-prog-name=ld gives a path.
+-  AC_MSG_CHECKING([for ld used by GCC])
+-  case $host in
+-  *-*-mingw*)
+-    # gcc leaves a trailing carriage return which upsets mingw
+-    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
+-  *)
+-    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
+-  esac
+-  case $ac_prog in
+-    # Accept absolute paths.
+-    [[\\/]* | [A-Za-z]:[\\/]*)]
+-      [re_direlt='/[^/][^/]*/\.\./']
+-      # Canonicalize the path of ld
+-      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+-      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+-        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+-      done
+-      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+-      ;;
+-  &quot;&quot;)
+-    # If it fails, then pretend we aren't using GCC.
+-    ac_prog=ld
+-    ;;
+-  *)
+-    # If it is relative, then search for the first ld in PATH.
+-    with_gnu_ld=unknown
+-    ;;
+-  esac
+-elif test &quot;$with_gnu_ld&quot; = yes; then
+-  AC_MSG_CHECKING([for GNU ld])
+-else
+-  AC_MSG_CHECKING([for non-GNU ld])
+-fi
+-AC_CACHE_VAL(acl_cv_path_LD,
+-[if test -z &quot;$LD&quot;; then
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR-:}&quot;
+-  for ac_dir in $PATH; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+-      acl_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+-      # Check to see if the program is GNU ld.  I'd rather use --version,
+-      # but apparently some GNU ld's only accept -v.
+-      # Break only if it was the GNU/non-GNU ld that we prefer.
+-      if &quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
++# AM_CONDITIONAL                                            -*- Autoconf -*-
++
++# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# serial 7
++
++# AM_CONDITIONAL(NAME, SHELL-CONDITION)
++# -------------------------------------
++# Define a conditional.
++AC_DEFUN([AM_CONDITIONAL],
++[AC_PREREQ(2.52)dnl
++ ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
++        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
++AC_SUBST([$1_TRUE])
++AC_SUBST([$1_FALSE])
++if $2; then
++  $1_TRUE=
++  $1_FALSE='#'
++else
++  $1_TRUE='#'
++  $1_FALSE=
++fi
++AC_CONFIG_COMMANDS_PRE(
++[if test -z &quot;${$1_TRUE}&quot; &amp;&amp; test -z &quot;${$1_FALSE}&quot;; then
++  AC_MSG_ERROR([[conditional &quot;$1&quot; was never defined.
++Usually this means the macro was only invoked conditionally.]])
++fi])])
++
++
++# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# serial 8
++
++# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
++# written in clear, in which case automake, when reading aclocal.m4,
++# will think it sees a *use*, and therefore will trigger all it's
++# C support machinery.  Also note that it means that autoscan, seeing
++# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
++
++
++# _AM_DEPENDENCIES(NAME)
++# ----------------------
++# See how the compiler implements dependency checking.
++# NAME is &quot;CC&quot;, &quot;CXX&quot;, &quot;GCJ&quot;, or &quot;OBJC&quot;.
++# We try a few techniques and use that to set a single cache variable.
++#
++# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
++# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
++# dependency, and given that the user is not expected to run this macro,
++# just rely on AC_PROG_CC.
++AC_DEFUN([_AM_DEPENDENCIES],
++[AC_REQUIRE([AM_SET_DEPDIR])dnl
++AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
++AC_REQUIRE([AM_MAKE_INCLUDE])dnl
++AC_REQUIRE([AM_DEP_TRACK])dnl
++
++ifelse([$1], CC,   [depcc=&quot;$CC&quot;   am_compiler_list=],
++       [$1], CXX,  [depcc=&quot;$CXX&quot;  am_compiler_list=],
++       [$1], OBJC, [depcc=&quot;$OBJC&quot; am_compiler_list='gcc3 gcc'],
++       [$1], GCJ,  [depcc=&quot;$GCJ&quot;  am_compiler_list='gcc3 gcc'],
++                   [depcc=&quot;$$1&quot;   am_compiler_list=])
++
++AC_CACHE_CHECK([dependency style of $depcc],
++               [am_cv_$1_dependencies_compiler_type],
++[if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
++  # We make a subdir and do the tests there.  Otherwise we can end up
++  # making bogus files that we don't know about and never remove.  For
++  # instance it was reported that on HP-UX the gcc test will end up
++  # making a dummy file named `D' -- because `-MD' means `put the output
++  # in D'.
++  mkdir conftest.dir
++  # Copy depcomp to subdir because otherwise we won't find it if we're
++  # using a relative directory.
++  cp &quot;$am_depcomp&quot; conftest.dir
++  cd conftest.dir
++  # We will build objects and dependencies in a subdirectory because
++  # it helps to detect inapplicable dependency modes.  For instance
++  # both Tru64's cc and ICC support -MD to output dependencies as a
++  # side effect of compilation, but ICC will put the dependencies in
++  # the current directory while Tru64 will put them in the object
++  # directory.
++  mkdir sub
++
++  am_cv_$1_dependencies_compiler_type=none
++  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
++     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] &lt; ./depcomp`
++  fi
++  for depmode in $am_compiler_list; do
++    # Setup a source with many dependencies, because some compilers
++    # like to wrap large dependency lists on column 80 (with \), and
++    # we should not choose a depcomp mode which is confused by this.
++    #
++    # We need to recreate these files for each test, as the compiler may
++    # overwrite some of them when testing with obscure command lines.
++    # This happens at least with the AIX C compiler.
++    : &gt; sub/conftest.c
++    for i in 1 2 3 4 5 6; do
++      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
++      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
++      # Solaris 8's {/usr,}/bin/sh.
++      touch sub/conftst$i.h
++    done
++    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
++
++    case $depmode in
++    nosideeffect)
++      # after this tag, mechanisms are not by side-effect, so they'll
++      # only be used when explicitly requested
++      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
++        continue
+       else
+-        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
++        break
++      fi
++      ;;
++    none) break ;;
++    esac
++    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
++    # mode.  It turns out that the SunPro C++ compiler does not properly
++    # handle `-M -o', and we need to detect this.
++    if depmode=$depmode \
++       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
++       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
++       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
++         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
++       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
++      # icc doesn't choke on unknown options, it will just issue warnings
++      # or remarks (even with -Werror).  So we grep stderr for any message
++      # that says an option was ignored or not supported.
++      # When given -MP, icc 7.0 and 7.1 complain thusly:
++      #   icc: Command line warning: ignoring option '-M'; no argument required
++      # The diagnosis changed in icc 8.0:
++      #   icc: Command line remark: option '-MP' not supported
++      if (grep 'ignoring option' conftest.err ||
++          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
++        am_cv_$1_dependencies_compiler_type=$depmode
++        break
+       fi
+     fi
+   done
+-  IFS=&quot;$ac_save_ifs&quot;
+-else
+-  acl_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+-fi])
+-LD=&quot;$acl_cv_path_LD&quot;
+-if test -n &quot;$LD&quot;; then
+-  AC_MSG_RESULT($LD)
++
++  cd ..
++  rm -rf conftest.dir
+ else
+-  AC_MSG_RESULT(no)
++  am_cv_$1_dependencies_compiler_type=none
+ fi
+-test -z &quot;$LD&quot; &amp;&amp; AC_MSG_ERROR([no acceptable ld found in \$PATH])
+-AC_LIB_PROG_LD_GNU
++])
++AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
++AM_CONDITIONAL([am__fastdep$1], [
++  test &quot;x$enable_dependency_tracking&quot; != xno \
++  &amp;&amp; test &quot;$am_cv_$1_dependencies_compiler_type&quot; = gcc3])
+ ])

+-# iconv.m4 serial AM4 (gettext-0.11.3)
+-dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.

+-dnl From Bruno Haible.
++# AM_SET_DEPDIR
++# -------------
++# Choose a directory name for dependency files.
++# This macro is AC_REQUIREd in _AM_DEPENDENCIES
++AC_DEFUN([AM_SET_DEPDIR],
++[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
++AC_SUBST([DEPDIR], [&quot;${am__leading_dot}deps&quot;])dnl
++])

+-AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
+-[
+-  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+-  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+-  AC_REQUIRE([AC_LIB_RPATH])

+-  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+-  dnl accordingly.
+-  AC_LIB_LINKFLAGS_BODY([iconv])
++# AM_DEP_TRACK
++# ------------
++AC_DEFUN([AM_DEP_TRACK],
++[AC_ARG_ENABLE(dependency-tracking,
++[  --disable-dependency-tracking  speeds up one-time build
++  --enable-dependency-tracking   do not reject slow dependency extractors])
++if test &quot;x$enable_dependency_tracking&quot; != xno; then
++  am_depcomp=&quot;$ac_aux_dir/depcomp&quot;
++  AMDEPBACKSLASH='\'
++fi
++AM_CONDITIONAL([AMDEP], [test &quot;x$enable_dependency_tracking&quot; != xno])
++AC_SUBST([AMDEPBACKSLASH])
+ ])

+-AC_DEFUN([AM_ICONV_LINK],
+-[
+-  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
+-  dnl those with the standalone portable GNU libiconv installed).
++# Generate code to set up dependency tracking.              -*- Autoconf -*-

+-  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+-  dnl accordingly.
+-  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
++# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
+-  dnl because if the user has installed libiconv and not disabled its use
+-  dnl via --without-libiconv-prefix, he wants to use it. The first
+-  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
+-  am_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+-  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
++#serial 3

+-  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
+-    am_cv_func_iconv=&quot;no, consider installing GNU libiconv&quot;
+-    am_cv_lib_iconv=no
+-    AC_TRY_LINK([#include &lt;stdlib.h&gt;
+-#include &lt;iconv.h&gt;],
+-      [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+-       iconv(cd,NULL,NULL,NULL,NULL);
+-       iconv_close(cd);],
+-      am_cv_func_iconv=yes)
+-    if test &quot;$am_cv_func_iconv&quot; != yes; then
+-      am_save_LIBS=&quot;$LIBS&quot;
+-      LIBS=&quot;$LIBS $LIBICONV&quot;
+-      AC_TRY_LINK([#include &lt;stdlib.h&gt;
+-#include &lt;iconv.h&gt;],
+-        [iconv_t cd = iconv_open(&quot;&quot;,&quot;&quot;);
+-         iconv(cd,NULL,NULL,NULL,NULL);
+-         iconv_close(cd);],
+-        am_cv_lib_iconv=yes
+-        am_cv_func_iconv=yes)
+-      LIBS=&quot;$am_save_LIBS&quot;
+-    fi
+-  ])
+-  if test &quot;$am_cv_func_iconv&quot; = yes; then
+-    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
+-  fi
+-  if test &quot;$am_cv_lib_iconv&quot; = yes; then
+-    AC_MSG_CHECKING([how to link with libiconv])
+-    AC_MSG_RESULT([$LIBICONV])
++# _AM_OUTPUT_DEPENDENCY_COMMANDS
++# ------------------------------
++AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
++[for mf in $CONFIG_FILES; do
++  # Strip MF so we end up with the name of the file.
++  mf=`echo &quot;$mf&quot; | sed -e 's/:.*$//'`
++  # Check whether this is an Automake generated Makefile or not.
++  # We used to match only the files named `Makefile.in', but
++  # some people rename them; so instead we look at the file content.
++  # Grep'ing the first line is not enough: some people post-process
++  # each Makefile.in and add a new line on top of each file to say so.
++  # So let's grep whole file.
++  if grep '^#.*generated by automake' $mf &gt; /dev/null 2&gt;&amp;1; then
++    dirpart=`AS_DIRNAME(&quot;$mf&quot;)`
+   else
+-    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
+-    dnl either.
+-    CPPFLAGS=&quot;$am_save_CPPFLAGS&quot;
+-    LIBICONV=
+-    LTLIBICONV=
++    continue
+   fi
+-  AC_SUBST(LIBICONV)
+-  AC_SUBST(LTLIBICONV)
+-])
++  # Extract the definition of DEPDIR, am__include, and am__quote
++  # from the Makefile without running `make'.
++  DEPDIR=`sed -n 's/^DEPDIR = //p' &lt; &quot;$mf&quot;`
++  test -z &quot;$DEPDIR&quot; &amp;&amp; continue
++  am__include=`sed -n 's/^am__include = //p' &lt; &quot;$mf&quot;`
++  test -z &quot;am__include&quot; &amp;&amp; continue
++  am__quote=`sed -n 's/^am__quote = //p' &lt; &quot;$mf&quot;`
++  # When using ansi2knr, U may be empty or an underscore; expand it
++  U=`sed -n 's/^U = //p' &lt; &quot;$mf&quot;`
++  # Find all dependency output files, they are included files with
++  # $(DEPDIR) in their names.  We invoke sed twice because it is the
++  # simplest approach to changing $(DEPDIR) to its actual value in the
++  # expansion.
++  for file in `sed -n &quot;
++    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote&quot;'$/\1/p' &lt;&quot;$mf&quot; | \
++       sed -e 's/\$(DEPDIR)/'&quot;$DEPDIR&quot;'/g' -e 's/\$U/'&quot;$U&quot;'/g'`; do
++    # Make sure the directory exists.
++    test -f &quot;$dirpart/$file&quot; &amp;&amp; continue
++    fdir=`AS_DIRNAME([&quot;$file&quot;])`
++    AS_MKDIR_P([$dirpart/$fdir])
++    # echo &quot;creating $dirpart/$file&quot;
++    echo '# dummy' &gt; &quot;$dirpart/$file&quot;
++  done
++done
++])# _AM_OUTPUT_DEPENDENCY_COMMANDS

+-AC_DEFUN([AM_ICONV],
+-[
+-  AM_ICONV_LINK
+-  if test &quot;$am_cv_func_iconv&quot; = yes; then
+-    AC_MSG_CHECKING([for iconv declaration])
+-    AC_CACHE_VAL(am_cv_proto_iconv, [
+-      AC_TRY_COMPILE([
+-#include &lt;stdlib.h&gt;
+-#include &lt;iconv.h&gt;
+-extern
+-#ifdef __cplusplus
+-&quot;C&quot;
+-#endif
+-#if defined(__STDC__) || defined(__cplusplus)
+-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+-#else
+-size_t iconv();
+-#endif
+-], [], am_cv_proto_iconv_arg1=&quot;&quot;, am_cv_proto_iconv_arg1=&quot;const&quot;)
+-      am_cv_proto_iconv=&quot;extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);&quot;])
+-    am_cv_proto_iconv=`echo &quot;[$]am_cv_proto_iconv&quot; | tr -s ' ' | sed -e 's/( /(/'`
+-    AC_MSG_RESULT([$]{ac_t:-
+-         }[$]am_cv_proto_iconv)
+-    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
+-      [Define as const if the declaration of iconv() needs const.])
+-  fi
++
++# AM_OUTPUT_DEPENDENCY_COMMANDS
++# -----------------------------
++# This macro should only be invoked once -- use via AC_REQUIRE.
++#
++# This code is only required when automatic dependency tracking
++# is enabled.  FIXME.  This creates each `.P' file that we will
++# need in order to bootstrap the dependency handling code.
++AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
++[AC_CONFIG_COMMANDS([depfiles],
++     [test x&quot;$AMDEP_TRUE&quot; != x&quot;&quot; || _AM_OUTPUT_DEPENDENCY_COMMANDS],
++     [AMDEP_TRUE=&quot;$AMDEP_TRUE&quot; ac_aux_dir=&quot;$ac_aux_dir&quot;])
+ ])

+-# progtest.m4 serial 2 (gettext-0.10.40)
+-dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-dnl
+-dnl This file can can be used in projects which are not available under
+-dnl the GNU General Public License or the GNU Library General Public
+-dnl License but which still want to provide support for the GNU gettext
+-dnl functionality.
+-dnl Please note that the actual code of the GNU gettext library is covered
+-dnl by the GNU Library General Public License, and the rest of the GNU
+-dnl gettext package package is covered by the GNU General Public License.
+-dnl They are *not* in the public domain.
++# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# serial 8

+-dnl Authors:
+-dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1996.
++# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
++AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])

+-# Search path for a program which passes the given test.
++# Do all the work for Automake.                             -*- Autoconf -*-

+-dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
+-dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
+-AC_DEFUN([AM_PATH_PROG_WITH_TEST],
+-[# Extract the first word of &quot;$2&quot;, so it can be a program name with args.
+-set dummy $2; ac_word=[$]2
+-AC_MSG_CHECKING([for $ac_word])
+-AC_CACHE_VAL(ac_cv_path_$1,
+-[case &quot;[$]$1&quot; in
+-  /*)
+-  ac_cv_path_$1=&quot;[$]$1&quot; # Let the user override the test with a path.
+-  ;;
+-  *)
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
+-  for ac_dir in ifelse([$5], , $PATH, [$5]); do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      if [$3]; then
+-        ac_cv_path_$1=&quot;$ac_dir/$ac_word&quot;
+-        break
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-dnl If no 4th arg is given, leave the cache variable unset,
+-dnl so AC_PATH_PROGS will keep looking.
+-ifelse([$4], , , [  test -z &quot;[$]ac_cv_path_$1&quot; &amp;&amp; ac_cv_path_$1=&quot;$4&quot;
+-])dnl
+-  ;;
+-esac])dnl
+-$1=&quot;$ac_cv_path_$1&quot;
+-if test ifelse([$4], , [-n &quot;[$]$1&quot;], [&quot;[$]$1&quot; != &quot;$4&quot;]); then
+-  AC_MSG_RESULT([$]$1)
+-else
+-  AC_MSG_RESULT(no)
+-fi
+-AC_SUBST($1)dnl
+-])
++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-# isc-posix.m4 serial 2 (gettext-0.11.2)
+-dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-
+-# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
+-
+-# This test replaces the one in autoconf.
+-# Currently this macro should have the same name as the autoconf macro
+-# because gettext's gettext.m4 (distributed in the automake package)
+-# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
+-# give these diagnostics:
+-#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
+-#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
++# serial 12

+-undefine([AC_ISC_POSIX])
++# This macro actually does too much.  Some checks are only needed if
++# your package does certain things.  But this isn't really a big deal.

+-AC_DEFUN([AC_ISC_POSIX],
+-  [
+-    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
+-    AC_CHECK_LIB(cposix, strerror, [LIBS=&quot;$LIBS -lcposix&quot;])
+-  ]
+-)
++# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
++# AM_INIT_AUTOMAKE([OPTIONS])
++# -----------------------------------------------
++# The call with PACKAGE and VERSION arguments is the old style
++# call (pre autoconf-2.50), which is being phased out.  PACKAGE
++# and VERSION should now be passed to AC_INIT and removed from
++# the call to AM_INIT_AUTOMAKE.
++# We support both call styles for the transition.  After
++# the next Automake release, Autoconf can make the AC_INIT
++# arguments mandatory, and then we can depend on a new Autoconf
++# release and drop the old call support.
++AC_DEFUN([AM_INIT_AUTOMAKE],
++[AC_PREREQ([2.58])dnl
++dnl Autoconf wants to disallow AM_ names.  We explicitly allow
++dnl the ones we care about.
++m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
++AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
++AC_REQUIRE([AC_PROG_INSTALL])dnl
++# test to see if srcdir already configured
++if test &quot;`cd $srcdir &amp;&amp; pwd`&quot; != &quot;`pwd`&quot; &amp;&amp;
++   test -f $srcdir/config.status; then
++  AC_MSG_ERROR([source directory already configured; run &quot;make distclean&quot; there first])
++fi

+-# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
+-dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# test whether we have cygpath
++if test -z &quot;$CYGPATH_W&quot;; then
++  if (cygpath --version) &gt;/dev/null 2&gt;/dev/null; then
++    CYGPATH_W='cygpath -w'
++  else
++    CYGPATH_W=echo
++  fi
++fi
++AC_SUBST([CYGPATH_W])

+-# Test for the GNU C Library, version 2.1 or newer.
+-# From Bruno Haible.
++# Define the identity of the package.
++dnl Distinguish between old-style and new-style calls.
++m4_ifval([$2],
++[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
++ AC_SUBST([PACKAGE], [$1])dnl
++ AC_SUBST([VERSION], [$2])],
++[_AM_SET_OPTIONS([$1])dnl
++ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
++ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl

+-AC_DEFUN([jm_GLIBC21],
+-  [
+-    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
+-      ac_cv_gnu_library_2_1,
+-      [AC_EGREP_CPP([Lucky GNU user],
+-        [
+-#include &lt;features.h&gt;
+-#ifdef __GNU_LIBRARY__
+- #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
+-  Lucky GNU user
+- #endif
+-#endif
+-        ],
+-        ac_cv_gnu_library_2_1=yes,
+-        ac_cv_gnu_library_2_1=no)
+-      ]
+-    )
+-    AC_SUBST(GLIBC21)
+-    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
+-  ]
+-)
++_AM_IF_OPTION([no-define],,
++[AC_DEFINE_UNQUOTED(PACKAGE, &quot;$PACKAGE&quot;, [Name of package])
++ AC_DEFINE_UNQUOTED(VERSION, &quot;$VERSION&quot;, [Version number of package])])dnl

+-# intdiv0.m4 serial 1 (gettext-0.11.3)
+-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# Some tools Automake needs.
++AC_REQUIRE([AM_SANITY_CHECK])dnl
++AC_REQUIRE([AC_ARG_PROGRAM])dnl
++AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
++AM_MISSING_PROG(AUTOCONF, autoconf)
++AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
++AM_MISSING_PROG(AUTOHEADER, autoheader)
++AM_MISSING_PROG(MAKEINFO, makeinfo)
++AM_PROG_INSTALL_SH
++AM_PROG_INSTALL_STRIP
++AC_REQUIRE([AM_PROG_MKDIR_P])dnl
++# We need awk for the &quot;check&quot; target.  The system &quot;awk&quot; is bad on
++# some platforms.
++AC_REQUIRE([AC_PROG_AWK])dnl
++AC_REQUIRE([AC_PROG_MAKE_SET])dnl
++AC_REQUIRE([AM_SET_LEADING_DOT])dnl
++_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
++              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
++                                   [_AM_PROG_TAR([v7])])])
++_AM_IF_OPTION([no-dependencies],,
++[AC_PROVIDE_IFELSE([AC_PROG_CC],
++                  [_AM_DEPENDENCIES(CC)],
++                  [define([AC_PROG_CC],
++                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
++AC_PROVIDE_IFELSE([AC_PROG_CXX],
++                  [_AM_DEPENDENCIES(CXX)],
++                  [define([AC_PROG_CXX],
++                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
++])
++])

+-dnl From Bruno Haible.

+-AC_DEFUN([gt_INTDIV0],
+-[
+-  AC_REQUIRE([AC_PROG_CC])dnl
+-  AC_REQUIRE([AC_CANONICAL_HOST])dnl
++# When config.status generates a header, we must update the stamp-h file.
++# This file resides in the same directory as the config header
++# that is generated.  The stamp files are numbered to have different names.

+-  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
+-    gt_cv_int_divbyzero_sigfpe,
+-    [
+-      AC_TRY_RUN([
+-#include &lt;stdlib.h&gt;
+-#include &lt;signal.h&gt;
++# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
++# loop where config.status creates the headers, so we can generate
++# our stamp files there.
++AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
++[# Compute $1's index in $config_headers.
++_am_stamp_count=1
++for _am_header in $config_headers :; do
++  case $_am_header in
++    $1 | $1:* )
++      break ;;
++    * )
++      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
++  esac
++done
++echo &quot;timestamp for $1&quot; &gt;`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])

+-static void
+-#ifdef __cplusplus
+-sigfpe_handler (int sig)
+-#else
+-sigfpe_handler (sig) int sig;
+-#endif
+-{
+-  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
+-  exit (sig != SIGFPE);
+-}
++# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-int x = 1;
+-int y = 0;
+-int z;
+-int nan;
++# AM_PROG_INSTALL_SH
++# ------------------
++# Define $install_sh.
++AC_DEFUN([AM_PROG_INSTALL_SH],
++[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
++install_sh=${install_sh-&quot;$am_aux_dir/install-sh&quot;}
++AC_SUBST(install_sh)])

+-int main ()
+-{
+-  signal (SIGFPE, sigfpe_handler);
+-/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
+-#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
+-  signal (SIGTRAP, sigfpe_handler);
+-#endif
+-/* Linux/SPARC yields signal SIGILL.  */
+-#if defined (__sparc__) &amp;&amp; defined (__linux__)
+-  signal (SIGILL, sigfpe_handler);
+-#endif
++# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-  z = x / y;
+-  nan = y / y;
+-  exit (1);
+-}
+-], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
+-        [
+-          # Guess based on the CPU.
+-          case &quot;$host_cpu&quot; in
+-            alpha* | i[34567]86 | m68k | s390*)
+-              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
+-            *)
+-              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
+-          esac
+-        ])
+-    ])
+-  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
+-    *yes) value=1;;
+-    *) value=0;;
+-  esac
+-  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
+-    [Define if integer division by zero raises signal SIGFPE.])
+-])
++# serial 2

+-# uintmax_t.m4 serial 6 (gettext-0.11)
+-dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# Check whether the underlying file-system supports filenames
++# with a leading dot.  For instance MS-DOS doesn't.
++AC_DEFUN([AM_SET_LEADING_DOT],
++[rm -rf .tst 2&gt;/dev/null
++mkdir .tst 2&gt;/dev/null
++if test -d .tst; then
++  am__leading_dot=.
++else
++  am__leading_dot=_
++fi
++rmdir .tst 2&gt;/dev/null
++AC_SUBST([am__leading_dot])])

+-dnl From Paul Eggert.
++# Check to see how 'make' treats includes.                    -*- Autoconf -*-

+-AC_PREREQ(2.13)
++# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-# Define uintmax_t to `unsigned long' or `unsigned long long'
+-# if &lt;inttypes.h&gt; does not exist.
++# serial 3

+-AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
+-[
+-  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
+-  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
+-  if test $jm_ac_cv_header_inttypes_h = no &amp;&amp; test $jm_ac_cv_header_stdint_h = no; then
+-    AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
+-    test $ac_cv_type_unsigned_long_long = yes \
+-      &amp;&amp; ac_type='unsigned long long' \
+-      || ac_type='unsigned long'
+-    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
+-  [Define to unsigned long or unsigned long long
+-   if &lt;inttypes.h&gt; and &lt;stdint.h&gt; don't define.])
+-  fi
++# AM_MAKE_INCLUDE()
++# -----------------
++# Check to see how make treats includes.
++AC_DEFUN([AM_MAKE_INCLUDE],
++[am_make=${MAKE-make}
++cat &gt; confinc &lt;&lt; 'END'
++am__doit:
++        @echo done
++.PHONY: am__doit
++END
++# If we don't find an include directive, just comment out the code.
++AC_MSG_CHECKING([for style of include used by $am_make])
++am__include=&quot;#&quot;
++am__quote=
++_am_result=none
++# First try GNU make style include.
++echo &quot;include confinc&quot; &gt; confmf
++# We grep out `Entering directory' and `Leaving directory'
++# messages which can occur if `w' ends up in MAKEFLAGS.
++# In particular we don't look at `^make:' because GNU make might
++# be invoked under some other name (usually &quot;gmake&quot;), in which
++# case it prints its new name instead of `make'.
++if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | grep -v 'ing directory'`&quot; = &quot;done&quot;; then
++   am__include=include
++   am__quote=
++   _am_result=GNU
++fi
++# Now try BSD make style include.
++if test &quot;$am__include&quot; = &quot;#&quot;; then
++   echo '.include &quot;confinc&quot;' &gt; confmf
++   if test &quot;`$am_make -s -f confmf 2&gt; /dev/null`&quot; = &quot;done&quot;; then
++      am__include=.include
++      am__quote=&quot;\&quot;&quot;
++      _am_result=BSD
++   fi
++fi
++AC_SUBST([am__include])
++AC_SUBST([am__quote])
++AC_MSG_RESULT([$_am_result])
++rm -f confinc confmf
+ ])

+-# inttypes_h.m4 serial 4 (gettext-0.11.4)
+-dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
++
++# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# serial 4

+-dnl From Paul Eggert.
++# AM_MISSING_PROG(NAME, PROGRAM)
++# ------------------------------
++AC_DEFUN([AM_MISSING_PROG],
++[AC_REQUIRE([AM_MISSING_HAS_RUN])
++$1=${$1-&quot;${am_missing_run}$2&quot;}
++AC_SUBST($1)])

+-# Define HAVE_INTTYPES_H_WITH_UINTMAX if &lt;inttypes.h&gt; exists,
+-# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.

+-AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
+-[
+-  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
+-  [AC_TRY_COMPILE(
+-    [#include &lt;sys/types.h&gt;
+-#include &lt;inttypes.h&gt;],
+-    [uintmax_t i = (uintmax_t) -1;],
+-    jm_ac_cv_header_inttypes_h=yes,
+-    jm_ac_cv_header_inttypes_h=no)])
+-  if test $jm_ac_cv_header_inttypes_h = yes; then
+-    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
+-[Define if &lt;inttypes.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
+-   and declares uintmax_t. ])
+-  fi
++# AM_MISSING_HAS_RUN
++# ------------------
++# Define MISSING if not defined so far and test if it supports --run.
++# If it does, set am_missing_run to use it, otherwise, to nothing.
++AC_DEFUN([AM_MISSING_HAS_RUN],
++[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
++test x&quot;${MISSING+set}&quot; = xset || MISSING=&quot;\${SHELL} $am_aux_dir/missing&quot;
++# Use eval to expand $SHELL
++if eval &quot;$MISSING --run true&quot;; then
++  am_missing_run=&quot;$MISSING --run &quot;
++else
++  am_missing_run=
++  AC_MSG_WARN([`missing' script is too old or missing])
++fi
+ ])

+-# stdint_h.m4 serial 2 (gettext-0.11.4)
+-dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-dnl From Paul Eggert.
++# AM_PROG_MKDIR_P
++# ---------------
++# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
++#
++# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
++# created by `make install' are always world readable, even if the
++# installer happens to have an overly restrictive umask (e.g. 077).
++# This was a mistake.  There are at least two reasons why we must not
++# use `-m 0755':
++#   - it causes special bits like SGID to be ignored,
++#   - it may be too restrictive (some setups expect 775 directories).
++#
++# Do not use -m 0755 and let people choose whatever they expect by
++# setting umask.
++#
++# We cannot accept any implementation of `mkdir' that recognizes `-p'.
++# Some implementations (such as Solaris 8's) are not thread-safe: if a
++# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
++# concurrently, both version can detect that a/ is missing, but only
++# one can create it and the other will error out.  Consequently we
++# restrict ourselves to GNU make (using the --version option ensures
++# this.)
++AC_DEFUN([AM_PROG_MKDIR_P],
++[if mkdir -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test ! -d ./--version; then
++  # We used to keeping the `.' as first argument, in order to
++  # allow $(mkdir_p) to be used without argument.  As in
++  #   $(mkdir_p) $(somedir)
++  # where $(somedir) is conditionally defined.  However this is wrong
++  # for two reasons:
++  #  1. if the package is installed by a user who cannot write `.'
++  #     make install will fail,
++  #  2. the above comment should most certainly read
++  #     $(mkdir_p) $(DESTDIR)$(somedir)
++  #     so it does not work when $(somedir) is undefined and
++  #     $(DESTDIR) is not.
++  #  To support the latter case, we have to write
++  #     test -z &quot;$(somedir)&quot; || $(mkdir_p) $(DESTDIR)$(somedir),
++  #  so the `.' trick is pointless.
++  mkdir_p='mkdir -p --'
++else
++  # On NextStep and OpenStep, the `mkdir' command does not
++  # recognize any option.  It will interpret all options as
++  # directories to create, and then abort because `.' already
++  # exists.
++  for d in ./-p ./--version;
++  do
++    test -d $d &amp;&amp; rmdir $d
++  done
++  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
++  if test -f &quot;$ac_aux_dir/mkinstalldirs&quot;; then
++    mkdir_p='$(mkinstalldirs)'
++  else
++    mkdir_p='$(install_sh) -d'
++  fi
++fi
++AC_SUBST([mkdir_p])])

+-# Define HAVE_STDINT_H_WITH_UINTMAX if &lt;stdint.h&gt; exists,
+-# doesn't clash with &lt;sys/types.h&gt;, and declares uintmax_t.
++# Helper functions for option handling.                     -*- Autoconf -*-

+-AC_DEFUN([jm_AC_HEADER_STDINT_H],
+-[
+-  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
+-  [AC_TRY_COMPILE(
+-    [#include &lt;sys/types.h&gt;
+-#include &lt;stdint.h&gt;],
+-    [uintmax_t i = (uintmax_t) -1;],
+-    jm_ac_cv_header_stdint_h=yes,
+-    jm_ac_cv_header_stdint_h=no)])
+-  if test $jm_ac_cv_header_stdint_h = yes; then
+-    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
+-[Define if &lt;stdint.h&gt; exists, doesn't clash with &lt;sys/types.h&gt;,
+-   and declares uintmax_t. ])
+-  fi
+-])
++# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
+-dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# serial 3

+-dnl From Paul Eggert.
++# _AM_MANGLE_OPTION(NAME)
++# -----------------------
++AC_DEFUN([_AM_MANGLE_OPTION],
++[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])

+-AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
+-[
+-  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
+-  [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
+-    [unsigned long long ullmax = (unsigned long long) -1;
+-     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;],
+-    ac_cv_type_unsigned_long_long=yes,
+-    ac_cv_type_unsigned_long_long=no)])
+-  if test $ac_cv_type_unsigned_long_long = yes; then
+-    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
+-      [Define if you have the unsigned long long type.])
+-  fi
+-])
++# _AM_SET_OPTION(NAME)
++# ------------------------------
++# Set option NAME.  Presently that only means defining a flag for this option.
++AC_DEFUN([_AM_SET_OPTION],
++[m4_define(_AM_MANGLE_OPTION([$1]), 1)])

+-# inttypes.m4 serial 1 (gettext-0.11.4)
+-dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# _AM_SET_OPTIONS(OPTIONS)
++# ----------------------------------
++# OPTIONS is a space-separated list of Automake options.
++AC_DEFUN([_AM_SET_OPTIONS],
++[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])

+-dnl From Paul Eggert.
++# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
++# -------------------------------------------
++# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
++AC_DEFUN([_AM_IF_OPTION],
++[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])

+-# Define HAVE_INTTYPES_H if &lt;inttypes.h&gt; exists and doesn't clash with
+-# &lt;sys/types.h&gt;.
++# Check to make sure that the build environment is sane.    -*- Autoconf -*-

+-AC_DEFUN([gt_HEADER_INTTYPES_H],
+-[
+-  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
+-  [
+-    AC_TRY_COMPILE(
+-      [#include &lt;sys/types.h&gt;
+-#include &lt;inttypes.h&gt;],
+-      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
+-  ])
+-  if test $gt_cv_header_inttypes_h = yes; then
+-    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
+-      [Define if &lt;inttypes.h&gt; exists and doesn't clash with &lt;sys/types.h&gt;.])
+-  fi
+-])
++# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
++# Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-# inttypes-pri.m4 serial 1 (gettext-0.11.4)
+-dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# serial 4

+-dnl From Bruno Haible.
++# AM_SANITY_CHECK
++# ---------------
++AC_DEFUN([AM_SANITY_CHECK],
++[AC_MSG_CHECKING([whether build environment is sane])
++# Just in case
++sleep 1
++echo timestamp &gt; conftest.file
++# Do `set' in a subshell so we don't clobber the current shell's
++# arguments.  Must try -L first in case configure is actually a
++# symlink; some systems play weird games with the mod time of symlinks
++# (eg FreeBSD returns the mod time of the symlink's containing
++# directory).
++if (
++   set X `ls -Lt $srcdir/configure conftest.file 2&gt; /dev/null`
++   if test &quot;$[*]&quot; = &quot;X&quot;; then
++      # -L didn't work.
++      set X `ls -t $srcdir/configure conftest.file`
++   fi
++   rm -f conftest.file
++   if test &quot;$[*]&quot; != &quot;X $srcdir/configure conftest.file&quot; \
++      &amp;&amp; test &quot;$[*]&quot; != &quot;X conftest.file $srcdir/configure&quot;; then

+-# Define PRI_MACROS_BROKEN if &lt;inttypes.h&gt; exists and defines the PRI*
+-# macros to non-string values.  This is the case on AIX 4.3.3.
++      # If neither matched, then we have a broken ls.  This can happen
++      # if, for instance, CONFIG_SHELL is bash and it inherits a
++      # broken ls alias from the environment.  This has actually
++      # happened.  Such a system could not be considered &quot;sane&quot;.
++      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
++alias in your environment])
++   fi

+-AC_DEFUN([gt_INTTYPES_PRI],
+-[
+-  AC_REQUIRE([gt_HEADER_INTTYPES_H])
+-  if test $gt_cv_header_inttypes_h = yes; then
+-    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
+-      gt_cv_inttypes_pri_broken,
+-      [
+-        AC_TRY_COMPILE([#include &lt;inttypes.h&gt;
+-#ifdef PRId32
+-char *p = PRId32;
+-#endif
+-], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
+-      ])
+-  fi
+-  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
+-    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
+-      [Define if &lt;inttypes.h&gt; exists and defines unusable PRI* macros.])
+-  fi
+-])
++   test &quot;$[2]&quot; = conftest.file
++   )
++then
++   # Ok.
++   :
++else
++   AC_MSG_ERROR([newly created file is older than distributed files!
++Check your system clock])
++fi
++AC_MSG_RESULT(yes)])

+-# codeset.m4 serial AM1 (gettext-0.10.40)
+-dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
++# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-dnl From Bruno Haible.
++# AM_PROG_INSTALL_STRIP
++# ---------------------
++# One issue with vendor `install' (even GNU) is that you can't
++# specify the program used to strip binaries.  This is especially
++# annoying in cross-compiling environments, where the build's strip
++# is unlikely to handle the host's binaries.
++# Fortunately install-sh will honor a STRIPPROG variable, so we
++# always use install-sh in `make install-strip', and initialize
++# STRIPPROG with the value of the STRIP variable (set by the user).
++AC_DEFUN([AM_PROG_INSTALL_STRIP],
++[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
++# Installed binaries are usually stripped using `strip' when the user
++# run `make install-strip'.  However `strip' might not be the right
++# tool to use in cross-compilation environments, therefore Automake
++# will honor the `STRIP' environment variable to overrule this program.
++dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
++if test &quot;$cross_compiling&quot; != no; then
++  AC_CHECK_TOOL([STRIP], [strip], :)
++fi
++INSTALL_STRIP_PROGRAM=&quot;\${SHELL} \$(install_sh) -c -s&quot;
++AC_SUBST([INSTALL_STRIP_PROGRAM])])

+-AC_DEFUN([AM_LANGINFO_CODESET],
+-[
+-  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
+-    [AC_TRY_LINK([#include &lt;langinfo.h&gt;],
+-      [char* cs = nl_langinfo(CODESET);],
+-      am_cv_langinfo_codeset=yes,
+-      am_cv_langinfo_codeset=no)
+-    ])
+-  if test $am_cv_langinfo_codeset = yes; then
+-    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
+-      [Define if you have &lt;langinfo.h&gt; and nl_langinfo(CODESET).])
+-  fi
+-])
++# Check how to create a tarball.                            -*- Autoconf -*-

+-# lcmessage.m4 serial 3 (gettext-0.11.3)
+-dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
+-dnl This file is free software, distributed under the terms of the GNU
+-dnl General Public License.  As a special exception to the GNU General
+-dnl Public License, this file may be distributed as part of a program
+-dnl that contains a configuration script generated by Autoconf, under
+-dnl the same distribution terms as the rest of that program.
+-dnl
+-dnl This file can can be used in projects which are not available under
+-dnl the GNU General Public License or the GNU Library General Public
+-dnl License but which still want to provide support for the GNU gettext
+-dnl functionality.
+-dnl Please note that the actual code of the GNU gettext library is covered
+-dnl by the GNU Library General Public License, and the rest of the GNU
+-dnl gettext package package is covered by the GNU General Public License.
+-dnl They are *not* in the public domain.
++# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.

+-dnl Authors:
+-dnl   Ulrich Drepper &lt;drepper@cygnus.com&gt;, 1995.
++# serial 2

+-# Check whether LC_MESSAGES is available in &lt;locale.h&gt;.
++# _AM_PROG_TAR(FORMAT)
++# --------------------
++# Check how to create a tarball in format FORMAT.
++# FORMAT should be one of `v7', `ustar', or `pax'.
++#
++# Substitute a variable $(am__tar) that is a command
++# writing to stdout a FORMAT-tarball containing the directory
++# $tardir.
++#     tardir=directory &amp;&amp; $(am__tar) &gt; result.tar
++#
++# Substitute a variable $(am__untar) that extract such
++# a tarball read from stdin.
++#     $(am__untar) &lt; result.tar
++AC_DEFUN([_AM_PROG_TAR],
++[# Always define AMTAR for backward compatibility.
++AM_MISSING_PROG([AMTAR], [tar])
++m4_if([$1], [v7],
++     [am__tar='${AMTAR} chof - &quot;$$tardir&quot;'; am__untar='${AMTAR} xf -'],
++     [m4_case([$1], [ustar],, [pax],,
++              [m4_fatal([Unknown tar format])])
++AC_MSG_CHECKING([how to create a $1 tar archive])
++# Loop over all known methods to create a tar archive until one works.
++_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
++_am_tools=${am_cv_prog_tar_$1-$_am_tools}
++# Do not fold the above two line into one, because Tru64 sh and
++# Solaris sh will not grok spaces in the rhs of `-'.
++for _am_tool in $_am_tools
++do
++  case $_am_tool in
++  gnutar)
++    for _am_tar in tar gnutar gtar;
++    do
++      AM_RUN_LOG([$_am_tar --version]) &amp;&amp; break
++    done
++    am__tar=&quot;$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - &quot;'&quot;$$tardir&quot;'
++    am__tar_=&quot;$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - &quot;'&quot;$tardir&quot;'
++    am__untar=&quot;$_am_tar -xf -&quot;
++    ;;
++  plaintar)
++    # Must skip GNU tar: if it does not support --format= it doesn't create
++    # ustar tarball either.
++    (tar --version) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; continue
++    am__tar='tar chf - &quot;$$tardir&quot;'
++    am__tar_='tar chf - &quot;$tardir&quot;'
++    am__untar='tar xf -'
++    ;;
++  pax)
++    am__tar='pax -L -x $1 -w &quot;$$tardir&quot;'
++    am__tar_='pax -L -x $1 -w &quot;$tardir&quot;'
++    am__untar='pax -r'
++    ;;
++  cpio)
++    am__tar='find &quot;$$tardir&quot; -print | cpio -o -H $1 -L'
++    am__tar_='find &quot;$tardir&quot; -print | cpio -o -H $1 -L'
++    am__untar='cpio -i -H $1 -d'
++    ;;
++  none)
++    am__tar=false
++    am__tar_=false
++    am__untar=false
++    ;;
++  esac

+-AC_DEFUN([AM_LC_MESSAGES],
+-[
+-  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
+-    [AC_TRY_LINK([#include &lt;locale.h&gt;], [return LC_MESSAGES],
+-       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
+-  if test $am_cv_val_LC_MESSAGES = yes; then
+-    AC_DEFINE(HAVE_LC_MESSAGES, 1,
+-      [Define if your &lt;locale.h&gt; file defines LC_MESSAGES.])
++  # If the value was cached, stop now.  We just wanted to have am__tar
++  # and am__untar set.
++  test -n &quot;${am_cv_prog_tar_$1}&quot; &amp;&amp; break
++
++  # tar/untar a dummy directory, and stop if the command works
++  rm -rf conftest.dir
++  mkdir conftest.dir
++  echo GrepMe &gt; conftest.dir/file
++  AM_RUN_LOG([tardir=conftest.dir &amp;&amp; eval $am__tar_ &gt;conftest.tar])
++  rm -rf conftest.dir
++  if test -s conftest.tar; then
++    AM_RUN_LOG([$am__untar &lt;conftest.tar])
++    grep GrepMe conftest.dir/file &gt;/dev/null 2&gt;&amp;1 &amp;&amp; break
+   fi
+-])
++done
++rm -rf conftest.dir
++
++AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
++AC_MSG_RESULT([$am_cv_prog_tar_$1])])
++AC_SUBST([am__tar])
++AC_SUBST([am__untar])
++]) # _AM_PROG_TAR

++m4_include([acinclude.m4])
+--- gsmlib-1.10.orig/configure
++++ gsmlib-1.10/configure
+@@ -1,178 +1,10 @@
+ #! /bin/sh
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated by GNU Autoconf 2.53.
++# Generated by GNU Autoconf 2.59.
+ #
+-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+-# Free Software Foundation, Inc.
++# Copyright (C) 2003 Free Software Foundation, Inc.
+ # This configure script is free software; the Free Software Foundation
+ # gives unlimited permission to copy, distribute and modify it.
+-
+-# Find the correct PATH separator.  Usually this is `:', but
+-# DJGPP uses `;' like DOS.
+-if test &quot;X${PATH_SEPARATOR+set}&quot; != Xset; then
+-  UNAME=${UNAME-`uname 2&gt;/dev/null`}
+-  case X$UNAME in
+-    *-DOS) lt_cv_sys_path_separator=';' ;;
+-    *)     lt_cv_sys_path_separator=':' ;;
+-  esac
+-  PATH_SEPARATOR=$lt_cv_sys_path_separator
+-fi
+-
+-
+-# Check that we are running under the correct shell.
+-SHELL=${CONFIG_SHELL-/bin/sh}
+-
+-case X$ECHO in
+-X*--fallback-echo)
+-  # Remove one level of quotation (which was required for Make).
+-  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\$\\$0,'$0','`
+-  ;;
+-esac
+-
+-echo=${ECHO-echo}
+-if test &quot;X$1&quot; = X--no-reexec; then
+-  # Discard the --no-reexec flag, and continue.
+-  shift
+-elif test &quot;X$1&quot; = X--fallback-echo; then
+-  # Avoid inline document here, it may be left over
+-  :
+-elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+-  # Yippee, $echo works!
+-  :
+-else
+-  # Restart under the correct shell.
+-  exec $SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+-fi
+-
+-if test &quot;X$1&quot; = X--fallback-echo; then
+-  # used as fallback echo
+-  shift
+-  cat &lt;&lt;EOF
+-
+-EOF
+-  exit 0
+-fi
+-
+-# The HP-UX ksh and POSIX shell print the target directory to stdout
+-# if CDPATH is set.
+-if test &quot;X${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi
+-
+-if test -z &quot;$ECHO&quot;; then
+-if test &quot;X${echo_test_string+set}&quot; != Xset; then
+-# find a string as large as possible, as long as the shell can cope with it
+-  for cmd in 'sed 50q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 2q &quot;$0&quot;' 'echo test'; do
+-    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+-    if (echo_test_string=&quot;`eval $cmd`&quot;) 2&gt;/dev/null &amp;&amp;
+-       echo_test_string=&quot;`eval $cmd`&quot; &amp;&amp;
+-       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
+-    then
+-      break
+-    fi
+-  done
+-fi
+-
+-if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-  :
+-else
+-  # The Solaris, AIX, and Digital Unix default echo programs unquote
+-  # backslashes.  This makes it impossible to quote backslashes using
+-  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
+-  #
+-  # So, first we look for a working echo in the user's PATH.
+-
+-  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+-  for dir in $PATH /usr/ucb; do
+-    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+-       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-      echo=&quot;$dir/echo&quot;
+-      break
+-    fi
+-  done
+-  IFS=&quot;$save_ifs&quot;
+-
+-  if test &quot;X$echo&quot; = Xecho; then
+-    # We didn't find a better echo, so look for alternatives.
+-    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-      # This shell has a builtin print -r that does the trick.
+-      echo='print -r'
+-    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
+-         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+-      # If we have ksh, try running configure again with it.
+-      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+-      export ORIGINAL_CONFIG_SHELL
+-      CONFIG_SHELL=/bin/ksh
+-      export CONFIG_SHELL
+-      exec $CONFIG_SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+-    else
+-      # Try using printf.
+-      echo='printf %s\n'
+-      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        # Cool, printf works
+-        :
+-      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+-           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+-        export CONFIG_SHELL
+-        SHELL=&quot;$CONFIG_SHELL&quot;
+-        export SHELL
+-        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+-      elif echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
+-           echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
+-           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
+-        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+-      else
+-        # maybe with a smaller string...
+-        prev=:
+-
+-        for cmd in 'echo test' 'sed 2q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 50q &quot;$0&quot;'; do
+-          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
+-          then
+-            break
+-          fi
+-          prev=&quot;$cmd&quot;
+-        done
+-
+-        if test &quot;$prev&quot; != 'sed 50q &quot;$0&quot;'; then
+-          echo_test_string=`eval $prev`
+-          export echo_test_string
+-          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;$0&quot; ${1+&quot;$@&quot;}
+-        else
+-          # Oops.  We lost completely, so just stick with echo.
+-          echo=echo
+-        fi
+-      fi
+-    fi
+-  fi
+-fi
+-fi
+-
+-# Copy echo and quote the copy suitably for passing to libtool from
+-# the Makefile, instead of quoting the original, which is used later.
+-ECHO=$echo
+-if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL $0 --fallback-echo&quot;; then
+-   ECHO=&quot;$CONFIG_SHELL \\\$\$0 --fallback-echo&quot;
+-fi
+-
+-
+-
+-if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
+-  as_expr=expr
+-else
+-  as_expr=false
+-fi
+-
+-
+ ## --------------------- ##
+ ## M4sh Initialization.  ##
+ ## --------------------- ##
+@@ -181,46 +13,57 @@
+ if test -n &quot;${ZSH_VERSION+set}&quot; &amp;&amp; (emulate sh) &gt;/dev/null 2&gt;&amp;1; then
+   emulate sh
+   NULLCMD=:
++  # Zsh 3.x and 4.x performs word splitting on ${1+&quot;$@&quot;}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+&quot;$@&quot;}'='&quot;$@&quot;'
+ elif test -n &quot;${BASH_VERSION+set}&quot; &amp;&amp; (set -o posix) &gt;/dev/null 2&gt;&amp;1; then
+   set -o posix
+ fi
++DUALCASE=1; export DUALCASE # for MKS sh

+-# NLS nuisances.
+ # Support unset when possible.
+-if (FOO=FOO; unset FOO) &gt;/dev/null 2&gt;&amp;1; then
++if ( (MAIL=60; unset MAIL) || exit) &gt;/dev/null 2&gt;&amp;1; then
+   as_unset=unset
+ else
+   as_unset=false
+ fi

+-(set +x; test -n &quot;`(LANG=C; export LANG) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LANG || test &quot;${LANG+set}&quot; != set; } ||
+-      { LANG=C; export LANG; }
+-(set +x; test -n &quot;`(LC_ALL=C; export LC_ALL) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_ALL || test &quot;${LC_ALL+set}&quot; != set; } ||
+-      { LC_ALL=C; export LC_ALL; }
+-(set +x; test -n &quot;`(LC_TIME=C; export LC_TIME) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_TIME || test &quot;${LC_TIME+set}&quot; != set; } ||
+-      { LC_TIME=C; export LC_TIME; }
+-(set +x; test -n &quot;`(LC_CTYPE=C; export LC_CTYPE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_CTYPE || test &quot;${LC_CTYPE+set}&quot; != set; } ||
+-      { LC_CTYPE=C; export LC_CTYPE; }
+-(set +x; test -n &quot;`(LANGUAGE=C; export LANGUAGE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LANGUAGE || test &quot;${LANGUAGE+set}&quot; != set; } ||
+-      { LANGUAGE=C; export LANGUAGE; }
+-(set +x; test -n &quot;`(LC_COLLATE=C; export LC_COLLATE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_COLLATE || test &quot;${LC_COLLATE+set}&quot; != set; } ||
+-      { LC_COLLATE=C; export LC_COLLATE; }
+-(set +x; test -n &quot;`(LC_NUMERIC=C; export LC_NUMERIC) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_NUMERIC || test &quot;${LC_NUMERIC+set}&quot; != set; } ||
+-      { LC_NUMERIC=C; export LC_NUMERIC; }
+-(set +x; test -n &quot;`(LC_MESSAGES=C; export LC_MESSAGES) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_MESSAGES || test &quot;${LC_MESSAGES+set}&quot; != set; } ||
+-      { LC_MESSAGES=C; export LC_MESSAGES; }
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='&gt; '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++  LC_TELEPHONE LC_TIME
++do
++  if (set +x; test -z &quot;`(eval $as_var=C; export $as_var) 2&gt;&amp;1`&quot;); then
++    eval $as_var=C; export $as_var
++  else
++    $as_unset $as_var
++  fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++if (basename /) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test &quot;X`basename / 2&gt;&amp;1`&quot; = &quot;X/&quot;; then
++  as_basename=basename
++else
++  as_basename=false
++fi


+ # Name of the executable.
+-as_me=`(basename &quot;$0&quot;) 2&gt;/dev/null ||
++as_me=`$as_basename &quot;$0&quot; ||
+ $as_expr X/&quot;$0&quot; : '.*/\([^/][^/]*\)/*$' \| \
+          X&quot;$0&quot; : 'X\(//\)$' \| \
+          X&quot;$0&quot; : 'X\(/\)$' \| \
+@@ -231,6 +74,7 @@
+             /^X\/\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`

++
+ # PATH needs CR, and LINENO needs CR and PATH.
+ # Avoid depending upon Character Ranges.
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+@@ -241,15 +85,15 @@

+ # The user is always right.
+ if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+-  echo &quot;#! /bin/sh&quot; &gt;conftest.sh
+-  echo  &quot;exit 0&quot;   &gt;&gt;conftest.sh
+-  chmod +x conftest.sh
+-  if (PATH=&quot;.;.&quot;; conftest.sh) &gt;/dev/null 2&gt;&amp;1; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+     PATH_SEPARATOR=';'
+   else
+     PATH_SEPARATOR=:
+   fi
+-  rm -f conftest.sh
++  rm -f conf$$.sh
+ fi


+@@ -297,6 +141,8 @@
+   as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+   test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+   test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot; ') 2&gt;/dev/null; then
++             $as_unset BASH_ENV || test &quot;${BASH_ENV+set}&quot; != set || { BASH_ENV=; export BASH_ENV; }
++             $as_unset ENV || test &quot;${ENV+set}&quot; != set || { ENV=; export ENV; }
+              CONFIG_SHELL=$as_dir/$as_base
+              export CONFIG_SHELL
+              exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; ${1+&quot;$@&quot;}
+@@ -369,13 +215,20 @@
+ fi
+ rm -f conf$$ conf$$.exe conf$$.file

++if mkdir -p . 2&gt;/dev/null; then
++  as_mkdir_p=:
++else
++  test -d ./-p &amp;&amp; rmdir ./-p
++  as_mkdir_p=false
++fi
++
+ as_executable_p=&quot;test -f&quot;

+ # Sed expression to map a string onto a valid CPP name.
+-as_tr_cpp=&quot;sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g&quot;
++as_tr_cpp=&quot;eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'&quot;

+ # Sed expression to map a string onto a valid variable name.
+-as_tr_sh=&quot;sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g&quot;
++as_tr_sh=&quot;eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'&quot;


+ # IFS
+@@ -385,76 +238,233 @@
+ IFS=&quot;         $as_nl&quot;

+ # CDPATH.
+-$as_unset CDPATH || test &quot;${CDPATH+set}&quot; != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
+-
++$as_unset CDPATH

+-# Name of the host.
+-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+-# so uname gets run too.
+-ac_hostname=`(hostname || uname -n) 2&gt;/dev/null | sed 1q`

+-exec 6&gt;&amp;1

+-#
+-# Initializations.
+-#
+-ac_default_prefix=/usr/local
+-cross_compiling=no
+-subdirs=
+-MFLAGS=
+-MAKEFLAGS=
++# Check that we are running under the correct shell.
+ SHELL=${CONFIG_SHELL-/bin/sh}

+-# Maximum number of lines to put in a shell here document.
+-# This variable seems obsolete.  It should probably be removed, and
+-# only ac_max_sed_lines should be used.
+-: ${ac_max_here_lines=38}
++case X$ECHO in
++X*--fallback-echo)
++  # Remove one level of quotation (which was required for Make).
++  ECHO=`echo &quot;$ECHO&quot; | sed 's,\\\\\$\\$0,'$0','`
++  ;;
++esac

+-# Identity of this package.
+-PACKAGE_NAME=
+-PACKAGE_TARNAME=
+-PACKAGE_VERSION=
+-PACKAGE_STRING=
+-PACKAGE_BUGREPORT=
++echo=${ECHO-echo}
++if test &quot;X$1&quot; = X--no-reexec; then
++  # Discard the --no-reexec flag, and continue.
++  shift
++elif test &quot;X$1&quot; = X--fallback-echo; then
++  # Avoid inline document here, it may be left over
++  :
++elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' ; then
++  # Yippee, $echo works!
++  :
++else
++  # Restart under the correct shell.
++  exec $SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
++fi

+-ac_unique_file=&quot;gsmlib/gsm_error.h&quot;
+-# Factoring default headers for most tests.
+-ac_includes_default=&quot;\
+-#include &lt;stdio.h&gt;
+-#if HAVE_SYS_TYPES_H
+-# include &lt;sys/types.h&gt;
+-#endif
+-#if HAVE_SYS_STAT_H
+-# include &lt;sys/stat.h&gt;
+-#endif
+-#if STDC_HEADERS
+-# include &lt;stdlib.h&gt;
+-# include &lt;stddef.h&gt;
+-#else
+-# if HAVE_STDLIB_H
+-#  include &lt;stdlib.h&gt;
+-# endif
+-#endif
+-#if HAVE_STRING_H
+-# if !STDC_HEADERS &amp;&amp; HAVE_MEMORY_H
+-#  include &lt;memory.h&gt;
+-# endif
+-# include &lt;string.h&gt;
+-#endif
+-#if HAVE_STRINGS_H
+-# include &lt;strings.h&gt;
+-#endif
+-#if HAVE_INTTYPES_H
+-# include &lt;inttypes.h&gt;
+-#else
+-# if HAVE_STDINT_H
+-#  include &lt;stdint.h&gt;
+-# endif
+-#endif
+-#if HAVE_UNISTD_H
+-# include &lt;unistd.h&gt;
+-#endif&quot;
++if test &quot;X$1&quot; = X--fallback-echo; then
++  # used as fallback echo
++  shift
++  cat &lt;&lt;EOF
++$*
++EOF
++  exit 0
++fi
++
++# The HP-UX ksh and POSIX shell print the target directory to stdout
++# if CDPATH is set.
++(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
++
++if test -z &quot;$ECHO&quot;; then
++if test &quot;X${echo_test_string+set}&quot; != Xset; then
++# find a string as large as possible, as long as the shell can cope with it
++  for cmd in 'sed 50q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 2q &quot;$0&quot;' 'echo test'; do
++    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
++    if (echo_test_string=`eval $cmd`) 2&gt;/dev/null &amp;&amp;
++       echo_test_string=`eval $cmd` &amp;&amp;
++       (test &quot;X$echo_test_string&quot; = &quot;X$echo_test_string&quot;) 2&gt;/dev/null
++    then
++      break
++    fi
++  done
++fi
++
++if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++   echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++   test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++  :
++else
++  # The Solaris, AIX, and Digital Unix default echo programs unquote
++  # backslashes.  This makes it impossible to quote backslashes using
++  #   echo &quot;$something&quot; | sed 's/\\/\\\\/g'
++  #
++  # So, first we look for a working echo in the user's PATH.
++
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  for dir in $PATH /usr/ucb; do
++    IFS=&quot;$lt_save_ifs&quot;
++    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
++       test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++       echo_testing_string=`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++      echo=&quot;$dir/echo&quot;
++      break
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++
++  if test &quot;X$echo&quot; = Xecho; then
++    # We didn't find a better echo, so look for alternatives.
++    if test &quot;X`(print -r '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++       echo_testing_string=`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++       test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++      # This shell has a builtin print -r that does the trick.
++      echo='print -r'
++    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
++         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
++      # If we have ksh, try running configure again with it.
++      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
++      export ORIGINAL_CONFIG_SHELL
++      CONFIG_SHELL=/bin/ksh
++      export CONFIG_SHELL
++      exec $CONFIG_SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
++    else
++      # Try using printf.
++      echo='printf %s\n'
++      if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
++         echo_testing_string=`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++         test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        # Cool, printf works
++        :
++      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
++           echo_testing_string=`($ORIGINAL_CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
++        export CONFIG_SHELL
++        SHELL=&quot;$CONFIG_SHELL&quot;
++        export SHELL
++        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
++      elif echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = 'X\t' &amp;&amp;
++           echo_testing_string=`($CONFIG_SHELL &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null` &amp;&amp;
++           test &quot;X$echo_testing_string&quot; = &quot;X$echo_test_string&quot;; then
++        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
++      else
++        # maybe with a smaller string...
++        prev=:
++
++        for cmd in 'echo test' 'sed 2q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 50q &quot;$0&quot;'; do
++          if (test &quot;X$echo_test_string&quot; = &quot;X`eval $cmd`&quot;) 2&gt;/dev/null
++          then
++            break
++          fi
++          prev=&quot;$cmd&quot;
++        done
++
++        if test &quot;$prev&quot; != 'sed 50q &quot;$0&quot;'; then
++          echo_test_string=`eval $prev`
++          export echo_test_string
++          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} &quot;$0&quot; ${1+&quot;$@&quot;}
++        else
++          # Oops.  We lost completely, so just stick with echo.
++          echo=echo
++        fi
++      fi
++    fi
++  fi
++fi
++fi
++
++# Copy echo and quote the copy suitably for passing to libtool from
++# the Makefile, instead of quoting the original, which is used later.
++ECHO=$echo
++if test &quot;X$ECHO&quot; = &quot;X$CONFIG_SHELL $0 --fallback-echo&quot;; then
++   ECHO=&quot;$CONFIG_SHELL \\\$\$0 --fallback-echo&quot;
++fi
++
++
++
++
++tagnames=${tagnames+${tagnames},}CXX
++
++tagnames=${tagnames+${tagnames},}F77
++
++# Name of the host.
++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
++# so uname gets run too.
++ac_hostname=`(hostname || uname -n) 2&gt;/dev/null | sed 1q`
++
++exec 6&gt;&amp;1
++
++#
++# Initializations.
++#
++ac_default_prefix=/usr/local
++ac_config_libobj_dir=.
++cross_compiling=no
++subdirs=
++MFLAGS=
++MAKEFLAGS=
++SHELL=${CONFIG_SHELL-/bin/sh}
++
++# Maximum number of lines to put in a shell here document.
++# This variable seems obsolete.  It should probably be removed, and
++# only ac_max_sed_lines should be used.
++: ${ac_max_here_lines=38}
++
++# Identity of this package.
++PACKAGE_NAME=
++PACKAGE_TARNAME=
++PACKAGE_VERSION=
++PACKAGE_STRING=
++PACKAGE_BUGREPORT=
++
++ac_unique_file=&quot;gsmlib/gsm_error.h&quot;
++# Factoring default headers for most tests.
++ac_includes_default=&quot;\
++#include &lt;stdio.h&gt;
++#if HAVE_SYS_TYPES_H
++# include &lt;sys/types.h&gt;
++#endif
++#if HAVE_SYS_STAT_H
++# include &lt;sys/stat.h&gt;
++#endif
++#if STDC_HEADERS
++# include &lt;stdlib.h&gt;
++# include &lt;stddef.h&gt;
++#else
++# if HAVE_STDLIB_H
++#  include &lt;stdlib.h&gt;
++# endif
++#endif
++#if HAVE_STRING_H
++# if !STDC_HEADERS &amp;&amp; HAVE_MEMORY_H
++#  include &lt;memory.h&gt;
++# endif
++# include &lt;string.h&gt;
++#endif
++#if HAVE_STRINGS_H
++# include &lt;strings.h&gt;
++#endif
++#if HAVE_INTTYPES_H
++# include &lt;inttypes.h&gt;
++#else
++# if HAVE_STDINT_H
++#  include &lt;stdint.h&gt;
++# endif
++#endif
++#if HAVE_UNISTD_H
++# include &lt;unistd.h&gt;
++#endif&quot;

++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA GSM_VERSION MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB COMPILE_INTL_TRUE COMPILE_INTL_FALSE LIBOBJS LTLIBOBJS'
++ac_subst_files=''

+ # Initialize some variables set by options.
+ ac_init_help=
+@@ -812,7 +822,7 @@

+ # Be sure to have absolute paths.
+ for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+-              localstatedir libdir includedir oldincludedir infodir mandir
++              localstatedir libdir includedir oldincludedir infodir mandir
+ do
+   eval ac_val=$`echo $ac_var`
+   case $ac_val in
+@@ -852,10 +862,10 @@
+   # Try the directory containing this script, then its parent.
+   ac_confdir=`(dirname &quot;$0&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$0&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$0&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$0&quot; : 'X\(//\)$' \| \
+-         X&quot;$0&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$0&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$0&quot; : 'X\(//\)$' \| \
++         X&quot;$0&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$0&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+@@ -878,6 +888,9 @@
+    { (exit 1); exit 1; }; }
+   fi
+ fi
++(cd $srcdir &amp;&amp; test -r ./$ac_unique_file) 2&gt;/dev/null ||
++  { echo &quot;$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work&quot; &gt;&amp;2
++   { (exit 1); exit 1; }; }
+ srcdir=`echo &quot;$srcdir&quot; | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ ac_env_build_alias_set=${build_alias+set}
+ ac_env_build_alias_value=$build_alias
+@@ -919,6 +932,18 @@
+ ac_env_CXXFLAGS_value=$CXXFLAGS
+ ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ ac_cv_env_CXXFLAGS_value=$CXXFLAGS
++ac_env_CXXCPP_set=${CXXCPP+set}
++ac_env_CXXCPP_value=$CXXCPP
++ac_cv_env_CXXCPP_set=${CXXCPP+set}
++ac_cv_env_CXXCPP_value=$CXXCPP
++ac_env_F77_set=${F77+set}
++ac_env_F77_value=$F77
++ac_cv_env_F77_set=${F77+set}
++ac_cv_env_F77_value=$F77
++ac_env_FFLAGS_set=${FFLAGS+set}
++ac_env_FFLAGS_value=$FFLAGS
++ac_cv_env_FFLAGS_set=${FFLAGS+set}
++ac_cv_env_FFLAGS_value=$FFLAGS

+ #
+ # Report the --help message.
+@@ -952,9 +977,9 @@
+   cat &lt;&lt;_ACEOF
+ Installation directories:
+   --prefix=PREFIX         install architecture-independent files in PREFIX
+-                          [$ac_default_prefix]
++                          [$ac_default_prefix]
+   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+-                          [PREFIX]
++                          [PREFIX]

+ By default, \`make install' will install all the files in
+ \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+@@ -998,24 +1023,31 @@
+ Optional Features:
+   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+-  --disable-dependency-tracking Speeds up one-time builds
+-  --enable-dependency-tracking  Do not reject slow dependency extractors
+-  --enable-shared=PKGS  build shared libraries default=yes
+-  --enable-static=PKGS  build static libraries default=yes
+-  --enable-fast-install=PKGS  optimize for fast installation default=yes
++  --disable-dependency-tracking  speeds up one-time build
++  --enable-dependency-tracking   do not reject slow dependency extractors
++  --enable-shared[=PKGS]
++                          build shared libraries [default=yes]
++  --enable-static[=PKGS]
++                          build static libraries [default=yes]
++  --enable-fast-install[=PKGS]
++                          optimize for fast installation [default=yes]
+   --disable-libtool-lock  avoid locking (might break parallel builds)
+-  --disable-rpath         do not hardcode runtime library paths
+   --disable-nls           do not use Native Language Support
++  --disable-rpath         do not hardcode runtime library paths

+ Optional Packages:
+   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
++  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
++  --with-pic              try to use only PIC/non-PIC objects [default=use
++                          both]
++  --with-tags[=TAGS]
++                          include additional configurations [automatic]
+   --with-gnu-ld           assume the C compiler uses GNU ld default=no
+-  --with-pic              try to use only PIC/non-PIC objects default=use both
+-  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
++  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
+   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
+   --with-included-gettext use the GNU gettext library included here
+-  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
++  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
+   --without-libintl-prefix     don't search for libintl in includedir and libdir

+ Some influential environment variables:
+@@ -1028,6 +1060,9 @@
+   CPP         C preprocessor
+   CXX         C++ compiler command
+   CXXFLAGS    C++ compiler flags
++  CXXCPP      C++ preprocessor
++  F77         Fortran 77 compiler command
++  FFLAGS      Fortran 77 compiler flags

+ Use these variables to override the choices made by `configure' or to help
+ it to find libraries and programs with nonstandard names/locations.
+@@ -1065,12 +1100,45 @@
+     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+     ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ esac
+-# Don't blindly perform a `cd &quot;$ac_dir&quot;/$ac_foo &amp;&amp; pwd` since $ac_foo can be
+-# absolute.
+-ac_abs_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_builddir &amp;&amp; pwd`
+-ac_abs_top_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_builddir &amp;&amp; pwd`
+-ac_abs_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_srcdir &amp;&amp; pwd`
+-ac_abs_top_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_srcdir &amp;&amp; pwd`
++
++# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir=&quot;$ac_dir&quot;;;
++*)
++  case &quot;$ac_dir&quot; in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
++  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac

+     cd $ac_dir
+     # Check for guested configure; otherwise get Cygnus style configure.
+@@ -1081,13 +1149,13 @@
+       echo
+       $SHELL $ac_srcdir/configure  --help=recursive
+     elif test -f $ac_srcdir/configure.ac ||
+-           test -f $ac_srcdir/configure.in; then
++           test -f $ac_srcdir/configure.in; then
+       echo
+       $ac_configure --help
+     else
+       echo &quot;$as_me: WARNING: no configuration information is in $ac_dir&quot; &gt;&amp;2
+     fi
+-    cd $ac_popdir
++    cd &quot;$ac_popdir&quot;
+   done
+ fi

+@@ -1095,8 +1163,7 @@
+ if $ac_init_version; then
+   cat &lt;&lt;\_ACEOF

+-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+-Free Software Foundation, Inc.
++Copyright (C) 2003 Free Software Foundation, Inc.
+ This configure script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it.
+ _ACEOF
+@@ -1108,7 +1175,7 @@
+ running configure, to aid debugging if configure makes a mistake.

+ It was created by $as_me, which was
+-generated by GNU Autoconf 2.53.  Invocation command line was
++generated by GNU Autoconf 2.59.  Invocation command line was

+   $ $0 $@

+@@ -1160,27 +1227,54 @@

+ # Keep a trace of the command line.
+ # Strip out --no-create and --no-recursion so they do not pile up.
++# Strip out --silent because we don't want to record it for future runs.
+ # Also quote any args containing shell meta-characters.
++# Make two passes to allow for proper duplicate-argument suppression.
+ ac_configure_args=
++ac_configure_args0=
++ac_configure_args1=
+ ac_sep=
+-for ac_arg
++ac_must_keep_next=false
++for ac_pass in 1 2
+ do
+-  case $ac_arg in
+-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+-  | --no-cr | --no-c | -n ) continue ;;
+-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+-    continue ;;
+-  *&quot; &quot;*|*&quot;        &quot;*|*[\[\]\~\#\$\^\&amp;\*\(\)\{\}\\\|\;\&lt;\&gt;\?\&quot;\']*)
+-    ac_arg=`echo &quot;$ac_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
+-  esac
+-  case &quot; $ac_configure_args &quot; in
+-    *&quot; '$ac_arg' &quot;*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+-    *) ac_configure_args=&quot;$ac_configure_args$ac_sep'$ac_arg'&quot;
+-       ac_sep=&quot; &quot; ;;
+-  esac
+-  # Get rid of the leading space.
++  for ac_arg
++  do
++    case $ac_arg in
++    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
++    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++    | -silent | --silent | --silen | --sile | --sil)
++      continue ;;
++    *&quot; &quot;*|*&quot;        &quot;*|*[\[\]\~\#\$\^\&amp;\*\(\)\{\}\\\|\;\&lt;\&gt;\?\&quot;\']*)
++      ac_arg=`echo &quot;$ac_arg&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;` ;;
++    esac
++    case $ac_pass in
++    1) ac_configure_args0=&quot;$ac_configure_args0 '$ac_arg'&quot; ;;
++    2)
++      ac_configure_args1=&quot;$ac_configure_args1 '$ac_arg'&quot;
++      if test $ac_must_keep_next = true; then
++        ac_must_keep_next=false # Got value, back to normal.
++      else
++        case $ac_arg in
++          *=* | --config-cache | -C | -disable-* | --disable-* \
++          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
++          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
++          | -with-* | --with-* | -without-* | --without-* | --x)
++            case &quot;$ac_configure_args0 &quot; in
++              &quot;$ac_configure_args1&quot;*&quot; '$ac_arg' &quot;* ) continue ;;
++            esac
++            ;;
++          -* ) ac_must_keep_next=true ;;
++        esac
++      fi
++      ac_configure_args=&quot;$ac_configure_args$ac_sep'$ac_arg'&quot;
++      # Get rid of the leading space.
++      ac_sep=&quot; &quot;
++      ;;
++    esac
++  done
+ done
++$as_unset ac_configure_args0 || test &quot;${ac_configure_args0+set}&quot; != set || { ac_configure_args0=; export ac_configure_args0; }
++$as_unset ac_configure_args1 || test &quot;${ac_configure_args1+set}&quot; != set || { ac_configure_args1=; export ac_configure_args1; }

+ # When interrupted or exit'd, cleanup temporary files, and complete
+ # config.log.  We remove comments because anyway the quotes in there
+@@ -1191,6 +1285,7 @@
+   # Save into config.log some information that might help in debugging.
+   {
+     echo
++
+     cat &lt;&lt;\_ASBOX
+ ## ---------------- ##
+ ## Cache variables. ##
+@@ -1203,16 +1298,45 @@
+     case `(ac_space='&quot;'&quot;' '&quot;'&quot;'; set | grep ac_space) 2&gt;&amp;1` in
+     *ac_space=\ *)
+       sed -n \
+-        &quot;s/'&quot;'&quot;'/'&quot;'&quot;'\\\\'&quot;'&quot;''&quot;'&quot;'/g;
+-              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='&quot;'&quot;'\\2'&quot;'&quot;'/p&quot;
++        &quot;s/'&quot;'&quot;'/'&quot;'&quot;'\\\\'&quot;'&quot;''&quot;'&quot;'/g;
++          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='&quot;'&quot;'\\2'&quot;'&quot;'/p&quot;
+       ;;
+     *)
+       sed -n \
+-        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
++        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
+       ;;
+     esac;
+ }
+     echo
++
++    cat &lt;&lt;\_ASBOX
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++_ASBOX
++    echo
++    for ac_var in $ac_subst_vars
++    do
++      eval ac_val=$`echo $ac_var`
++      echo &quot;$ac_var='&quot;'&quot;'$ac_val'&quot;'&quot;'&quot;
++    done | sort
++    echo
++
++    if test -n &quot;$ac_subst_files&quot;; then
++      cat &lt;&lt;\_ASBOX
++## ------------- ##
++## Output files. ##
++## ------------- ##
++_ASBOX
++      echo
++      for ac_var in $ac_subst_files
++      do
++        eval ac_val=$`echo $ac_var`
++        echo &quot;$ac_var='&quot;'&quot;'$ac_val'&quot;'&quot;'&quot;
++      done | sort
++      echo
++    fi
++
+     if test -s confdefs.h; then
+       cat &lt;&lt;\_ASBOX
+ ## ----------- ##
+@@ -1220,14 +1344,14 @@
+ ## ----------- ##
+ _ASBOX
+       echo
+-      sed &quot;/^$/d&quot; confdefs.h
++      sed &quot;/^$/d&quot; confdefs.h | sort
+       echo
+     fi
+     test &quot;$ac_signal&quot; != 0 &amp;&amp;
+       echo &quot;$as_me: caught signal $ac_signal&quot;
+     echo &quot;$as_me: exit $exit_status&quot;
+   } &gt;&amp;5
+-  rm -f core core.* *.core &amp;&amp;
++  rm -f core *.core &amp;&amp;
+   rm -rf conftest* confdefs* conf$$* $ac_clean_files &amp;&amp;
+     exit $exit_status
+      ' 0
+@@ -1307,7 +1431,7 @@
+ # value.
+ ac_cache_corrupted=false
+ for ac_var in `(set) 2&gt;&amp;1 |
+-               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
++               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+   eval ac_old_set=\$ac_cv_env_${ac_var}_set
+   eval ac_new_set=\$ac_env_${ac_var}_set
+   eval ac_old_val=&quot;\$ac_cv_env_${ac_var}_value&quot;
+@@ -1324,13 +1448,13 @@
+     ,);;
+     *)
+       if test &quot;x$ac_old_val&quot; != &quot;x$ac_new_val&quot;; then
+-        { echo &quot;$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:&quot; &gt;&amp;5
++        { echo &quot;$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:&quot; &gt;&amp;5
+ echo &quot;$as_me: error: \`$ac_var' has changed since the previous run:&quot; &gt;&amp;2;}
+-        { echo &quot;$as_me:$LINENO:   former value:  $ac_old_val&quot; &gt;&amp;5
++        { echo &quot;$as_me:$LINENO:   former value:  $ac_old_val&quot; &gt;&amp;5
+ echo &quot;$as_me:   former value:  $ac_old_val&quot; &gt;&amp;2;}
+-        { echo &quot;$as_me:$LINENO:   current value: $ac_new_val&quot; &gt;&amp;5
++        { echo &quot;$as_me:$LINENO:   current value: $ac_new_val&quot; &gt;&amp;5
+ echo &quot;$as_me:   current value: $ac_new_val&quot; &gt;&amp;2;}
+-        ac_cache_corrupted=:
++        ac_cache_corrupted=:
+       fi;;
+   esac
+   # Pass precious variables to config.status.
+@@ -1378,6 +1502,7 @@



++
+ ac_aux_dir=
+ for ac_dir in scripts $srcdir/scripts; do
+   if test -f $ac_dir/install-sh; then
+@@ -1414,6 +1539,7 @@
+ # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+ # AFS /usr/afsws/bin/install, which mishandles nonexistent args
+ # SVR4 /usr/ucb/install, which tries to use the nonexistent group &quot;staff&quot;
++# OS/2's system install, which has a completely different semantic
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo &quot;$as_me:$LINENO: checking for a BSD-compatible install&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for a BSD-compatible install... $ECHO_C&quot; &gt;&amp;6
+@@ -1430,6 +1556,7 @@
+ case $as_dir/ in
+   ./ | .// | /cC/* | \
+   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
++  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+   /usr/ucb/* ) ;;
+   *)
+     # OSF1 and SCO ODT 3.0 have their own names for install.
+@@ -1437,20 +1564,20 @@
+     # by default.
+     for ac_prog in ginstall scoinst install; do
+       for ac_exec_ext in '' $ac_executable_extensions; do
+-        if $as_executable_p &quot;$as_dir/$ac_prog$ac_exec_ext&quot;; then
+-          if test $ac_prog = install &amp;&amp;
+-            grep dspmsg &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
+-            # AIX install.  It has an incompatible calling convention.
+-            :
+-          elif test $ac_prog = install &amp;&amp;
+-            grep pwplus &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
+-            # program-specific install script used by HP pwplus--don't use.
+-            :
+-          else
+-            ac_cv_path_install=&quot;$as_dir/$ac_prog$ac_exec_ext -c&quot;
+-            break 3
+-          fi
+-        fi
++        if $as_executable_p &quot;$as_dir/$ac_prog$ac_exec_ext&quot;; then
++          if test $ac_prog = install &amp;&amp;
++            grep dspmsg &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
++            # AIX install.  It has an incompatible calling convention.
++            :
++          elif test $ac_prog = install &amp;&amp;
++            grep pwplus &quot;$as_dir/$ac_prog$ac_exec_ext&quot; &gt;/dev/null 2&gt;&amp;1; then
++            # program-specific install script used by HP pwplus--don't use.
++            :
++          else
++            ac_cv_path_install=&quot;$as_dir/$ac_prog$ac_exec_ext -c&quot;
++            break 3
++          fi
++        fi
+       done
+     done
+     ;;
+@@ -1685,9 +1812,7 @@
+     # However, it has the same basename, so the bogon will be chosen
+     # first if we set CC to just the basename; use the full file name.
+     shift
+-    set dummy &quot;$as_dir/$ac_word&quot; ${1+&quot;$@&quot;}
+-    shift
+-    ac_cv_prog_CC=&quot;$@&quot;
++    ac_cv_prog_CC=&quot;$as_dir/$ac_word${1+' '}$@&quot;
+   fi
+ fi
+ fi
+@@ -1792,8 +1917,10 @@
+ fi


+-test -z &quot;$CC&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable C compiler found in \$PATH&quot; &gt;&amp;5
+-echo &quot;$as_me: error: no acceptable C compiler found in \$PATH&quot; &gt;&amp;2;}
++test -z &quot;$CC&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }

+ # Provide some information about the compiler.
+@@ -1817,15 +1944,12 @@
+   (exit $ac_status); }

+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -1835,12 +1959,12 @@
+ }
+ _ACEOF
+ ac_clean_files_save=$ac_clean_files
+-ac_clean_files=&quot;$ac_clean_files a.out a.exe&quot;
++ac_clean_files=&quot;$ac_clean_files a.out a.exe b.out&quot;
+ # Try to create an executable without -o first, disregard a.out.
+ # It will help us diagnose broken compilers, and finding out an intuition
+ # of exeext.
+-echo &quot;$as_me:$LINENO: checking for C compiler default output&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for C compiler default output... $ECHO_C&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: checking for C compiler default output file name&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for C compiler default output file name... $ECHO_C&quot; &gt;&amp;6
+ ac_link_default=`echo &quot;$ac_link&quot; | sed 's/ -o *conftest[^ ]*//'`
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link_default\&quot;&quot;) &gt;&amp;5
+   (eval $ac_link_default) 2&gt;&amp;5
+@@ -1854,26 +1978,39 @@
+ # Be careful to initialize this variable, since it used to be cached.
+ # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ ac_cv_exeext=
+-for ac_file in `ls a_out.exe a.exe conftest.exe 2&gt;/dev/null;
+-                ls a.out conftest 2&gt;/dev/null;
+-                ls a.* conftest.* 2&gt;/dev/null`; do
++# b.out is created by i960 compilers.
++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
++do
++  test -f &quot;$ac_file&quot; || continue
+   case $ac_file in
+-    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
+-    a.out ) # We found the default executable, but exeext='' is most
+-            # certainly right.
+-            break;;
+-    *.* ) ac_cv_exeext=`expr &quot;$ac_file&quot; : '[^.]*\(\..*\)'`
+-          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
+-          export ac_cv_exeext
+-          break;;
+-    * ) break;;
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
++        ;
++    conftest.$ac_ext )
++        # This is the source file.
++        ;
++    [ab].out )
++        # We found the default executable, but exeext='' is most
++        # certainly right.
++        break;;
++    *.* )
++        ac_cv_exeext=`expr &quot;$ac_file&quot; : '[^.]*\(\..*\)'`
++        # FIXME: I believe we export ac_cv_exeext for Libtool,
++        # but it would be cool to find out if it's true.  Does anybody
++        # maintain Libtool? --akim.
++        export ac_cv_exeext
++        break;;
++    * )
++        break;;
+   esac
+ done
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-{ { echo &quot;$as_me:$LINENO: error: C compiler cannot create executables&quot; &gt;&amp;5
+-echo &quot;$as_me: error: C compiler cannot create executables&quot; &gt;&amp;2;}
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++{ { echo &quot;$as_me:$LINENO: error: C compiler cannot create executables
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: C compiler cannot create executables
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 77); exit 77; }; }
+ fi

+@@ -1900,9 +2037,11 @@
+         cross_compiling=yes
+     else
+         { { echo &quot;$as_me:$LINENO: error: cannot run C compiled programs.
+-If you meant to cross compile, use \`--host'.&quot; &gt;&amp;5
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details.&quot; &gt;&amp;5
+ echo &quot;$as_me: error: cannot run C compiled programs.
+-If you meant to cross compile, use \`--host'.&quot; &gt;&amp;2;}
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+     fi
+   fi
+@@ -1910,7 +2049,7 @@
+ echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}yes&quot; &gt;&amp;6

+-rm -f a.out a.exe conftest$ac_cv_exeext
++rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ ac_clean_files=$ac_clean_files_save
+ # Check the compiler produces executables we can run.  If not, either
+ # the compiler is broken, or we cross compile.
+@@ -1930,18 +2069,21 @@
+ # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+ # work properly (i.e., refer to `conftest.exe'), while it won't with
+ # `rm'.
+-for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2&gt;/dev/null`; do
++for ac_file in conftest.exe conftest conftest.*; do
++  test -f &quot;$ac_file&quot; || continue
+   case $ac_file in
+-    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
+     *.* ) ac_cv_exeext=`expr &quot;$ac_file&quot; : '[^.]*\(\..*\)'`
+-          export ac_cv_exeext
+-          break;;
++          export ac_cv_exeext
++          break;;
+     * ) break;;
+   esac
+ done
+ else
+-  { { echo &quot;$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute suffix of executables: cannot compile and link&quot; &gt;&amp;2;}
++  { { echo &quot;$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+ fi

+@@ -1958,15 +2100,12 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -1983,16 +2122,19 @@
+   (exit $ac_status); }; then
+   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2&gt;/dev/null`; do
+   case $ac_file in
+-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+     *) ac_cv_objext=`expr &quot;$ac_file&quot; : '.*\.\(.*\)'`
+        break;;
+   esac
+ done
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-{ { echo &quot;$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute suffix of object files: cannot compile&quot; &gt;&amp;2;}
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++{ { echo &quot;$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+ fi

+@@ -2008,15 +2150,12 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2030,11 +2169,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -2043,10 +2191,11 @@
+   ac_compiler_gnu=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ac_compiler_gnu=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_c_compiler_gnu=$ac_compiler_gnu

+ fi
+@@ -2062,15 +2211,12 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2081,11 +2227,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -2094,10 +2249,11 @@
+   ac_cv_prog_cc_g=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ac_cv_prog_cc_g=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cc_g&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$ac_cv_prog_cc_g&quot; &gt;&amp;6
+@@ -2116,6 +2272,120 @@
+     CFLAGS=
+   fi
+ fi
++echo &quot;$as_me:$LINENO: checking for $CC option to accept ANSI C&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $CC option to accept ANSI C... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_cc_stdc+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdarg.h&gt;
++#include &lt;stdio.h&gt;
++#include &lt;sys/types.h&gt;
++#include &lt;sys/stat.h&gt;
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++     char **p;
++     int i;
++{
++  return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++  char *s;
++  va_list v;
++  va_start (v,p);
++  s = g (p, va_arg (v,int));
++  va_end (v);
++  return s;
++}
++
++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
++   function prototypes and stuff, but not '\xHH' hex character constants.
++   These don't provoke an error unfortunately, instead are silently treated
++   as 'x'.  The following induces an error, until -std1 is added to get
++   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
++   array size at least.  It's necessary to write '\x00'==0 to get something
++   that's true only with -std1.  */
++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
++
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
++  ;
++  return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX                        -qlanglvl=ansi
++# Ultrix and OSF/1        -std1
++# HP-UX 10.20 and later        -Ae
++# HP-UX older versions        -Aa -D_HPUX_SOURCE
++# SVR4                        -Xc -D__EXTENSIONS__
++for ac_arg in &quot;&quot; -qlanglvl=ansi -std1 -Ae &quot;-Aa -D_HPUX_SOURCE&quot; &quot;-Xc -D__EXTENSIONS__&quot;
++do
++  CC=&quot;$ac_save_CC $ac_arg&quot;
++  rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case &quot;x$ac_cv_prog_cc_stdc&quot; in
++  x|xno)
++    echo &quot;$as_me:$LINENO: result: none needed&quot; &gt;&amp;5
++echo &quot;${ECHO_T}none needed&quot; &gt;&amp;6 ;;
++  *)
++    echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cc_stdc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_prog_cc_stdc&quot; &gt;&amp;6
++    CC=&quot;$CC $ac_cv_prog_cc_stdc&quot; ;;
++esac
++
+ # Some people use a C++ compiler to compile C.  Since we use `exit',
+ # in C++ we need to declare it.  In case someone uses the same compiler
+ # for both compiling C and C++ we need to have the C++ compiler decide
+@@ -2127,19 +2397,27 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+   for ac_declaration in \
+-   ''\
+-   '#include &lt;stdlib.h&gt;' \
++   '' \
+    'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
+    'extern &quot;C&quot; void std::exit (int); using std::exit;' \
+    'extern &quot;C&quot; void exit (int) throw ();' \
+@@ -2147,16 +2425,13 @@
+    'void exit (int);'
+ do
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;stdlib.h&gt;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++#include &lt;stdlib.h&gt;
+ int
+ main ()
+ {
+@@ -2167,11 +2442,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -2180,20 +2464,18 @@
+   :
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ continue
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2204,11 +2486,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -2217,9 +2508,10 @@
+   break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+ rm -f conftest*
+ if test -n &quot;$ac_declaration&quot;; then
+@@ -2230,9 +2522,10 @@

+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+@@ -2249,8 +2542,11 @@
+   ac_check_lib_save_LIBS=$LIBS
+ LIBS=&quot;-lintl  $LIBS&quot;
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+ /* Override any gcc2 internal prototype to avoid an error.  */
+ #ifdef __cplusplus
+@@ -2259,12 +2555,6 @@
+ /* We use char because int might match the return type of a gcc2
+    builtin and then its argument prototype would still apply.  */
+ char textdomain ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2275,11 +2565,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -2288,10 +2587,12 @@
+   ac_cv_lib_intl_textdomain=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ac_cv_lib_intl_textdomain=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+ LIBS=$ac_check_lib_save_LIBS
+ fi
+ echo &quot;$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain&quot; &gt;&amp;5
+@@ -2306,14 +2607,10 @@
+ fi


+-# Add the stamp file to the list of files AC keeps track of,
+-# along with our hook.
+-ac_config_headers=&quot;$ac_config_headers gsm_config.h&quot;
++          ac_config_headers=&quot;$ac_config_headers gsm_config.h&quot;


+-
+-
+-am__api_version=&quot;1.6&quot;
++am__api_version=&quot;1.9&quot;
+ echo &quot;$as_me:$LINENO: checking whether build environment is sane&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking whether build environment is sane... $ECHO_C&quot; &gt;&amp;6
+ # Just in case
+@@ -2372,7 +2669,6 @@
+ program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
+ rm conftest.sed

+-
+ # expand $ac_aux_dir to an absolute path
+ am_aux_dir=`cd $ac_aux_dir &amp;&amp; pwd`

+@@ -2386,6 +2682,39 @@
+ echo &quot;$as_me: WARNING: \`missing' script is too old or missing&quot; &gt;&amp;2;}
+ fi

++if mkdir -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test ! -d ./--version; then
++  # We used to keeping the `.' as first argument, in order to
++  # allow $(mkdir_p) to be used without argument.  As in
++  #   $(mkdir_p) $(somedir)
++  # where $(somedir) is conditionally defined.  However this is wrong
++  # for two reasons:
++  #  1. if the package is installed by a user who cannot write `.'
++  #     make install will fail,
++  #  2. the above comment should most certainly read
++  #     $(mkdir_p) $(DESTDIR)$(somedir)
++  #     so it does not work when $(somedir) is undefined and
++  #     $(DESTDIR) is not.
++  #  To support the latter case, we have to write
++  #     test -z &quot;$(somedir)&quot; || $(mkdir_p) $(DESTDIR)$(somedir),
++  #  so the `.' trick is pointless.
++  mkdir_p='mkdir -p --'
++else
++  # On NextStep and OpenStep, the `mkdir' command does not
++  # recognize any option.  It will interpret all options as
++  # directories to create, and then abort because `.' already
++  # exists.
++  for d in ./-p ./--version;
++  do
++    test -d $d &amp;&amp; rmdir $d
++  done
++  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
++  if test -f &quot;$ac_aux_dir/mkinstalldirs&quot;; then
++    mkdir_p='$(mkinstalldirs)'
++  else
++    mkdir_p='$(install_sh) -d'
++  fi
++fi
++
+ for ac_prog in gawk mawk nawk awk
+ do
+   # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+@@ -2426,15 +2755,15 @@
+   test -n &quot;$AWK&quot; &amp;&amp; break
+ done

+-echo &quot;$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C&quot; &gt;&amp;6
+-set dummy ${MAKE-make}; ac_make=`echo &quot;$2&quot; | sed 'y,./+-,__p_,'`
++echo &quot;$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C&quot; &gt;&amp;6
++set dummy ${MAKE-make}; ac_make=`echo &quot;$2&quot; | sed 'y,:./+-,___p_,'`
+ if eval &quot;test \&quot;\${ac_cv_prog_make_${ac_make}_set+set}\&quot; = set&quot;; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.make &lt;&lt;\_ACEOF
+ all:
+-        @echo 'ac_maketemp=&quot;${MAKE}&quot;'
++        @echo 'ac_maketemp=&quot;$(MAKE)&quot;'
+ _ACEOF
+ # GNU make sometimes prints &quot;make[1]: Entering...&quot;, which would confuse us.
+ eval `${MAKE-make} -f conftest.make 2&gt;/dev/null | grep temp=`
+@@ -2455,24 +2784,25 @@
+   SET_MAKE=&quot;MAKE=${MAKE-make}&quot;
+ fi

+-rm -f .deps 2&gt;/dev/null
+-mkdir .deps 2&gt;/dev/null
+-if test -d .deps; then
+-  DEPDIR=.deps
++rm -rf .tst 2&gt;/dev/null
++mkdir .tst 2&gt;/dev/null
++if test -d .tst; then
++  am__leading_dot=.
+ else
+-  # MS-DOS does not allow filenames that begin with a dot.
+-  DEPDIR=_deps
++  am__leading_dot=_
+ fi
+-rmdir .deps 2&gt;/dev/null
++rmdir .tst 2&gt;/dev/null

++DEPDIR=&quot;${am__leading_dot}deps&quot;

+-ac_config_commands=&quot;$ac_config_commands depfiles&quot;
++          ac_config_commands=&quot;$ac_config_commands depfiles&quot;


+ am_make=${MAKE-make}
+ cat &gt; confinc &lt;&lt; 'END'
+-doit:
++am__doit:
+         @echo done
++.PHONY: am__doit
+ END
+ # If we don't find an include directive, just comment out the code.
+ echo &quot;$as_me:$LINENO: checking for style of include used by $am_make&quot; &gt;&amp;5
+@@ -2487,7 +2817,7 @@
+ # In particular we don't look at `^make:' because GNU make might
+ # be invoked under some other name (usually &quot;gmake&quot;), in which
+ # case it prints its new name instead of `make'.
+-if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | fgrep -v 'ing directory'`&quot; = &quot;done&quot;; then
++if test &quot;`$am_make -s -f confmf 2&gt; /dev/null | grep -v 'ing directory'`&quot; = &quot;done&quot;; then
+    am__include=include
+    am__quote=
+    _am_result=GNU
+@@ -2528,7 +2858,7 @@



+- # test to see if srcdir already configured
++# test to see if srcdir already configured
+ if test &quot;`cd $srcdir &amp;&amp; pwd`&quot; != &quot;`pwd`&quot; &amp;&amp;
+    test -f $srcdir/config.status; then
+   { { echo &quot;$as_me:$LINENO: error: source directory already configured; run \&quot;make distclean\&quot; there first&quot; &gt;&amp;5
+@@ -2536,6 +2866,16 @@
+    { (exit 1); exit 1; }; }
+ fi

++# test whether we have cygpath
++if test -z &quot;$CYGPATH_W&quot;; then
++  if (cygpath --version) &gt;/dev/null 2&gt;/dev/null; then
++    CYGPATH_W='cygpath -w'
++  else
++    CYGPATH_W=echo
++  fi
++fi
++
++
+ # Define the identity of the package.
+  PACKAGE=gsmlib
+  VERSION=1.10
+@@ -2566,9 +2906,6 @@

+ MAKEINFO=${MAKEINFO-&quot;${am_missing_run}makeinfo&quot;}

+-
+-AMTAR=${AMTAR-&quot;${am_missing_run}tar&quot;}
+-
+ install_sh=${install_sh-&quot;$am_aux_dir/install-sh&quot;}

+ # Installed binaries are usually stripped using `strip' when the user
+@@ -2661,6 +2998,13 @@

+ # We need awk for the &quot;check&quot; target.  The system &quot;awk&quot; is bad on
+ # some platforms.
++# Always define AMTAR for backward compatibility.
++
++AMTAR=${AMTAR-&quot;${am_missing_run}tar&quot;}
++
++am__tar='${AMTAR} chof - &quot;$$tardir&quot;'; am__untar='${AMTAR} xf -'
++
++


+ depcc=&quot;$CC&quot;   am_compiler_list=
+@@ -2681,18 +3025,34 @@
+   # using a relative directory.
+   cp &quot;$am_depcomp&quot; conftest.dir
+   cd conftest.dir
++  # We will build objects and dependencies in a subdirectory because
++  # it helps to detect inapplicable dependency modes.  For instance
++  # both Tru64's cc and ICC support -MD to output dependencies as a
++  # side effect of compilation, but ICC will put the dependencies in
++  # the current directory while Tru64 will put them in the object
++  # directory.
++  mkdir sub

+   am_cv_CC_dependencies_compiler_type=none
+   if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
+   fi
+   for depmode in $am_compiler_list; do
++    # Setup a source with many dependencies, because some compilers
++    # like to wrap large dependency lists on column 80 (with \), and
++    # we should not choose a depcomp mode which is confused by this.
++    #
+     # We need to recreate these files for each test, as the compiler may
+     # overwrite some of them when testing with obscure command lines.
+     # This happens at least with the AIX C compiler.
+-    echo '#include &quot;conftest.h&quot;' &gt; conftest.c
+-    echo 'int i;' &gt; conftest.h
+-    echo &quot;${am__include} ${am__quote}conftest.Po${am__quote}&quot; &gt; confmf
++    : &gt; sub/conftest.c
++    for i in 1 2 3 4 5 6; do
++      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
++      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
++      # Solaris 8's {/usr,}/bin/sh.
++      touch sub/conftst$i.h
++    done
++    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf

+     case $depmode in
+     nosideeffect)
+@@ -2710,13 +3070,25 @@
+     # mode.  It turns out that the SunPro C++ compiler does not properly
+     # handle `-M -o', and we need to detect this.
+     if depmode=$depmode \
+-       source=conftest.c object=conftest.o \
+-       depfile=conftest.Po tmpdepfile=conftest.TPo \
+-       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       grep conftest.h conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
++       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
++       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
++         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
++       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+        ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+-      am_cv_CC_dependencies_compiler_type=$depmode
+-      break
++      # icc doesn't choke on unknown options, it will just issue warnings
++      # or remarks (even with -Werror).  So we grep stderr for any message
++      # that says an option was ignored or not supported.
++      # When given -MP, icc 7.0 and 7.1 complain thusly:
++      #   icc: Command line warning: ignoring option '-M'; no argument required
++      # The diagnosis changed in icc 8.0:
++      #   icc: Command line remark: option '-MP' not supported
++      if (grep 'ignoring option' conftest.err ||
++          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
++        am_cv_CC_dependencies_compiler_type=$depmode
++        break
++      fi
+     fi
+   done

+@@ -2733,30 +3105,44 @@



++if
++  test &quot;x$enable_dependency_tracking&quot; != xno \
++  &amp;&amp; test &quot;$am_cv_CC_dependencies_compiler_type&quot; = gcc3; then
++  am__fastdepCC_TRUE=
++  am__fastdepCC_FALSE='#'
++else
++  am__fastdepCC_TRUE='#'
++  am__fastdepCC_FALSE=
++fi
++
++
++

+ # Check whether --enable-shared or --disable-shared was given.
+ if test &quot;${enable_shared+set}&quot; = set; then
+   enableval=&quot;$enable_shared&quot;
+   p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_shared=yes ;;
+-no) enable_shared=no ;;
+-*)
+-  enable_shared=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_shared=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac
++    case $enableval in
++    yes) enable_shared=yes ;;
++    no) enable_shared=no ;;
++    *)
++      enable_shared=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_shared=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac
+ else
+   enable_shared=yes
+ fi;

++
+ if test &quot;$CXXFLAGS&quot; = &quot;&quot;; then
+    CXXFLAGS=&quot;-O2&quot;
+ fi
+@@ -2774,46 +3160,50 @@
+ if test &quot;${enable_static+set}&quot; = set; then
+   enableval=&quot;$enable_static&quot;
+   p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_static=yes ;;
+-no) enable_static=no ;;
+-*)
+-  enable_static=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_static=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac
++    case $enableval in
++    yes) enable_static=yes ;;
++    no) enable_static=no ;;
++    *)
++     enable_static=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_static=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac
+ else
+   enable_static=yes
+ fi;
++
+ # Check whether --enable-fast-install or --disable-fast-install was given.
+ if test &quot;${enable_fast_install+set}&quot; = set; then
+   enableval=&quot;$enable_fast_install&quot;
+   p=${PACKAGE-default}
+-case $enableval in
+-yes) enable_fast_install=yes ;;
+-no) enable_fast_install=no ;;
+-*)
+-  enable_fast_install=no
+-  # Look at the argument we got.  We use all the common list separators.
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:,&quot;
+-  for pkg in $enableval; do
+-    if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
+-      enable_fast_install=yes
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  ;;
+-esac
++    case $enableval in
++    yes) enable_fast_install=yes ;;
++    no) enable_fast_install=no ;;
++    *)
++      enable_fast_install=no
++      # Look at the argument we got.  We use all the common list separators.
++      lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++      for pkg in $enableval; do
++        IFS=&quot;$lt_save_ifs&quot;
++        if test &quot;X$pkg&quot; = &quot;X$p&quot;; then
++          enable_fast_install=yes
++        fi
++      done
++      IFS=&quot;$lt_save_ifs&quot;
++      ;;
++    esac
+ else
+   enable_fast_install=yes
+ fi;
++
+ # Make sure we can run config.sub.
+ $ac_config_sub sun4 &gt;/dev/null 2&gt;&amp;1 ||
+   { { echo &quot;$as_me:$LINENO: error: cannot run $ac_config_sub&quot; &gt;&amp;5
+@@ -2868,16 +3258,77 @@
+ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`


+-# Find the correct PATH separator.  Usually this is `:', but
+-# DJGPP uses `;' like DOS.
+-if test &quot;X${PATH_SEPARATOR+set}&quot; != Xset; then
+-  UNAME=${UNAME-`uname 2&gt;/dev/null`}
+-  case X$UNAME in
+-    *-DOS) lt_cv_sys_path_separator=';' ;;
+-    *)     lt_cv_sys_path_separator=':' ;;
+-  esac
+-  PATH_SEPARATOR=$lt_cv_sys_path_separator
++echo &quot;$as_me:$LINENO: checking for a sed that does not truncate output&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for a sed that does not truncate output... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_path_SED+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  # Loop through the user's path and test for sed and gsed.
++# Then use that list of sed's as ones to test for truncation.
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for lt_ac_prog in sed gsed; do
++    for ac_exec_ext in '' $ac_executable_extensions; do
++      if $as_executable_p &quot;$as_dir/$lt_ac_prog$ac_exec_ext&quot;; then
++        lt_ac_sed_list=&quot;$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext&quot;
++      fi
++    done
++  done
++done
++lt_ac_max=0
++lt_ac_count=0
++# Add /usr/xpg4/bin/sed as it is typically found on Solaris
++# along with /bin/sed that truncates output.
++for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
++  test ! -f $lt_ac_sed &amp;&amp; continue
++  cat /dev/null &gt; conftest.in
++  lt_ac_count=0
++  echo $ECHO_N &quot;0123456789$ECHO_C&quot; &gt;conftest.in
++  # Check for GNU sed and select it if it is found.
++  if &quot;$lt_ac_sed&quot; --version 2&gt;&amp;1 &lt; /dev/null | grep 'GNU' &gt; /dev/null; then
++    lt_cv_path_SED=$lt_ac_sed
++    break
++  fi
++  while true; do
++    cat conftest.in conftest.in &gt;conftest.tmp
++    mv conftest.tmp conftest.in
++    cp conftest.in conftest.nl
++    echo &gt;&gt;conftest.nl
++    $lt_ac_sed -e 's/a$//' &lt; conftest.nl &gt;conftest.out || break
++    cmp -s conftest.out conftest.nl || break
++    # 10000 chars as input seems more than enough
++    test $lt_ac_count -gt 10 &amp;&amp; break
++    lt_ac_count=`expr $lt_ac_count + 1`
++    if test $lt_ac_count -gt $lt_ac_max; then
++      lt_ac_max=$lt_ac_count
++      lt_cv_path_SED=$lt_ac_sed
++    fi
++  done
++done
++
++fi
++
++SED=$lt_cv_path_SED
++echo &quot;$as_me:$LINENO: result: $SED&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$SED&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking for egrep&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for egrep... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_egrep+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if echo a | (grep -E '(a|b)') &gt;/dev/null 2&gt;&amp;1
++    then ac_cv_prog_egrep='grep -E'
++    else ac_cv_prog_egrep='egrep'
++    fi
+ fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_prog_egrep&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_prog_egrep&quot; &gt;&amp;6
++ EGREP=$ac_cv_prog_egrep
++


+ # Check whether --with-gnu-ld or --without-gnu-ld was given.
+@@ -2890,8 +3341,8 @@
+ ac_prog=ld
+ if test &quot;$GCC&quot; = yes; then
+   # Check if gcc -print-prog-name=ld gives a path.
+-  echo &quot;$as_me:$LINENO: checking for ld used by GCC&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for ld used by GCC... $ECHO_C&quot; &gt;&amp;6
++  echo &quot;$as_me:$LINENO: checking for ld used by $CC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for ld used by $CC... $ECHO_C&quot; &gt;&amp;6
+   case $host in
+   *-*-mingw*)
+     # gcc leaves a trailing carriage return which upsets mingw
+@@ -2901,12 +3352,12 @@
+   esac
+   case $ac_prog in
+     # Accept absolute paths.
+-    [\\/]* | [A-Za-z]:[\\/]*)
++    [\\/]* | ?:[\\/]*)
+       re_direlt='/[^/][^/]*/\.\./'
+-      # Canonicalize the path of ld
+-      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
++      # Canonicalize the pathname of ld
++      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+       while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+-        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
++        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
+       done
+       test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+       ;;
+@@ -2930,22 +3381,26 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   if test -z &quot;$LD&quot;; then
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+   for ac_dir in $PATH; do
++    IFS=&quot;$lt_save_ifs&quot;
+     test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+     if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+       lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
+       # Check to see if the program is GNU ld.  I'd rather use --version,
+-      # but apparently some GNU ld's only accept -v.
++      # but apparently some variants of GNU ld only accept -v.
+       # Break only if it was the GNU/non-GNU ld that we prefer.
+-      if &quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null | egrep '(GNU|with BFD)' &gt; /dev/null; then
++      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
++      *GNU* | *'with BFD'*)
+         test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+-      else
++        ;
++      *)
+         test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+-      fi
++        ;
++      esac
+     fi
+   done
+-  IFS=&quot;$ac_save_ifs&quot;
++  IFS=&quot;$lt_save_ifs&quot;
+ else
+   lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
+ fi
+@@ -2967,12 +3422,15 @@
+ if test &quot;${lt_cv_prog_gnu_ld+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+-if $LD -v 2&gt;&amp;1 &lt;/dev/null | egrep '(GNU|with BFD)' 1&gt;&amp;5; then
++  # I'd rather use --version here, but apparently some GNU lds only accept -v.
++case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
++*GNU* | *'with BFD'*)
+   lt_cv_prog_gnu_ld=yes
+-else
++  ;;
++*)
+   lt_cv_prog_gnu_ld=no
+-fi
++  ;;
++esac
+ fi
+ echo &quot;$as_me:$LINENO: result: $lt_cv_prog_gnu_ld&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$lt_cv_prog_gnu_ld&quot; &gt;&amp;6
+@@ -2989,7 +3447,20 @@
+ echo &quot;$as_me:$LINENO: result: $lt_cv_ld_reload_flag&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$lt_cv_ld_reload_flag&quot; &gt;&amp;6
+ reload_flag=$lt_cv_ld_reload_flag
+-test -n &quot;$reload_flag&quot; &amp;&amp; reload_flag=&quot; $reload_flag&quot;
++case $reload_flag in
++&quot;&quot; | &quot; &quot;*) ;;
++*) reload_flag=&quot; $reload_flag&quot; ;;
++esac
++reload_cmds='$LD$reload_flag -o $output$reload_objs'
++case $host_os in
++  darwin*)
++    if test &quot;$GCC&quot; = yes; then
++      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
++    else
++      reload_cmds='$LD$reload_flag -o $output$reload_objs'
++    fi
++    ;;
++esac

+ echo &quot;$as_me:$LINENO: checking for BSD-compatible nm&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for BSD-compatible nm... $ECHO_C&quot; &gt;&amp;6
+@@ -3000,35 +3471,42 @@
+   # Let the user override the test.
+   lt_cv_path_NM=&quot;$NM&quot;
+ else
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
+   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
++    IFS=&quot;$lt_save_ifs&quot;
+     test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    tmp_nm=$ac_dir/${ac_tool_prefix}nm
+-    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
++    tmp_nm=&quot;$ac_dir/${ac_tool_prefix}nm&quot;
++    if test -f &quot;$tmp_nm&quot; || test -f &quot;$tmp_nm$ac_exeext&quot; ; then
+       # Check to see if the nm accepts a BSD-compat flag.
+       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+       #   nm: unknown option &quot;B&quot; ignored
+       # Tru64's nm complains that /dev/null is an invalid object file
+-      if ($tmp_nm -B /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' &gt;/dev/null; then
++      case `&quot;$tmp_nm&quot; -B /dev/null 2&gt;&amp;1 | sed '1q'` in
++      */dev/null* | *'Invalid file or object type'*)
+         lt_cv_path_NM=&quot;$tmp_nm -B&quot;
+         break
+-      elif ($tmp_nm -p /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+-        lt_cv_path_NM=&quot;$tmp_nm -p&quot;
+-        break
+-      else
+-        lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
+-        continue # so that we can try to find one that supports BSD flags
+-      fi
++        ;;
++      *)
++        case `&quot;$tmp_nm&quot; -p /dev/null 2&gt;&amp;1 | sed '1q'` in
++        */dev/null*)
++          lt_cv_path_NM=&quot;$tmp_nm -p&quot;
++          break
++          ;;
++        *)
++          lt_cv_path_NM=${lt_cv_path_NM=&quot;$tmp_nm&quot;} # keep the first match, but
++          continue # so that we can try to find one that supports BSD flags
++          ;;
++        esac
++      esac
+     fi
+   done
+-  IFS=&quot;$ac_save_ifs&quot;
++  IFS=&quot;$lt_save_ifs&quot;
+   test -z &quot;$lt_cv_path_NM&quot; &amp;&amp; lt_cv_path_NM=nm
+ fi
+ fi
+-
++echo &quot;$as_me:$LINENO: result: $lt_cv_path_NM&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_path_NM&quot; &gt;&amp;6
+ NM=&quot;$lt_cv_path_NM&quot;
+-echo &quot;$as_me:$LINENO: result: $NM&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$NM&quot; &gt;&amp;6

+ echo &quot;$as_me:$LINENO: checking whether ln -s works&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking whether ln -s works... $ECHO_C&quot; &gt;&amp;6
+@@ -3041,8 +3519,8 @@
+ echo &quot;${ECHO_T}no, using $LN_S&quot; &gt;&amp;6
+ fi

+-echo &quot;$as_me:$LINENO: checking how to recognise dependant libraries&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking how to recognise dependant libraries... $ECHO_C&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: checking how to recognise dependent libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to recognise dependent libraries... $ECHO_C&quot; &gt;&amp;6
+ if test &quot;${lt_cv_deplibs_check_method+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+@@ -3056,7 +3534,7 @@
+ # 'pass_all' -- all dependencies passed with no checks.
+ # 'test_compile' -- check by making test program.
+ # 'file_magic [[regex]]' -- check by looking for files in library path
+-# which responds to the $file_magic_cmd with a given egrep regex.
++# which responds to the $file_magic_cmd with a given extended regex.
+ # If you have `file' or equivalent on your system and you're not sure
+ # whether `pass_all' will *always* work, you probably want this one.

+@@ -3069,37 +3547,36 @@
+   lt_cv_deplibs_check_method=pass_all
+   ;;

+-bsdi4*)
++bsdi[45]*)
+   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+   lt_cv_file_magic_cmd='/usr/bin/file -L'
+   lt_cv_file_magic_test_file=/shlib/libc.so
+   ;;

+-cygwin* | mingw* | pw32*)
++cygwin*)
++  # func_win32_libid is a shell function defined in ltmain.sh
++  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
++  lt_cv_file_magic_cmd='func_win32_libid'
++  ;;
++
++mingw* | pw32*)
++  # Base MSYS/MinGW do not provide the 'file' command needed by
++  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
+   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+   lt_cv_file_magic_cmd='$OBJDUMP -f'
+   ;;

+ darwin* | rhapsody*)
+-  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+-  lt_cv_file_magic_cmd='/usr/bin/file -L'
+-  case &quot;$host_os&quot; in
+-  rhapsody* | darwin1.[012])
+-    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+-    ;;
+-  *) # Darwin 1.3 on
+-    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
+-    ;;
+-  esac
++  lt_cv_deplibs_check_method=pass_all
+   ;;

+-freebsd*)
++freebsd* | kfreebsd*-gnu | dragonfly*)
+   if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+     case $host_cpu in
+     i*86 )
+       # Not sure whether the presence of OpenBSD here was a mistake.
+       # Let's accept both of them until this is cleared up.
+-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
++      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+       lt_cv_file_magic_cmd=/usr/bin/file
+       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+       ;;
+@@ -3113,50 +3590,44 @@
+   lt_cv_deplibs_check_method=pass_all
+   ;;

+-hpux10.20*|hpux11*)
+-  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
++hpux10.20* | hpux11*)
+   lt_cv_file_magic_cmd=/usr/bin/file
+-  lt_cv_file_magic_test_file=/usr/lib/libc.sl
+-  ;;
+-
+-irix5* | irix6*)
+-  case $host_os in
+-  irix5*)
+-    # this will be overridden with pass_all, but let us keep it just in case
+-    lt_cv_deplibs_check_method=&quot;file_magic ELF 32-bit MSB dynamic lib MIPS - version 1&quot;
++  case $host_cpu in
++  ia64*)
++    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
++    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
++    ;;
++  hppa*64*)
++    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
++    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+     ;;
+   *)
+-    case $LD in
+-    *-32|*&quot;-32 &quot;) libmagic=32-bit;;
+-    *-n32|*&quot;-n32 &quot;) libmagic=N32;;
+-    *-64|*&quot;-64 &quot;) libmagic=64-bit;;
+-    *) libmagic=never-match;;
+-    esac
+-    # this will be overridden with pass_all, but let us keep it just in case
+-    lt_cv_deplibs_check_method=&quot;file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1&quot;
++    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
++    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+     ;;
+   esac
+-  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $LD in
++  *-32|*&quot;-32 &quot;) libmagic=32-bit;;
++  *-n32|*&quot;-n32 &quot;) libmagic=N32;;
++  *-64|*&quot;-64 &quot;) libmagic=64-bit;;
++  *) libmagic=never-match;;
++  esac
+   lt_cv_deplibs_check_method=pass_all
+   ;;

+ # This must be Linux ELF.
+-linux-gnu*)
+-  case $host_cpu in
+-  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
+-    lt_cv_deplibs_check_method=pass_all ;;
+-  *)
+-    # glibc up to 2.1.1 does not perform some relocations on ARM
+-    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
+-  esac
+-  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
++linux*)
++  lt_cv_deplibs_check_method=pass_all
+   ;;

+-netbsd*)
++netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
+   if echo __ELF__ | $CC -E - | grep __ELF__ &gt; /dev/null; then
+-    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
++    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+   else
+-    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
++    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+   fi
+   ;;

+@@ -3166,20 +3637,19 @@
+   lt_cv_file_magic_test_file=/usr/lib/libnls.so
+   ;;

++nto-qnx*)
++  lt_cv_deplibs_check_method=unknown
++  ;;
++
+ openbsd*)
+-  lt_cv_file_magic_cmd=/usr/bin/file
+-  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+   if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
++    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+   else
+-    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
++    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+   fi
+   ;;

+ osf3* | osf4* | osf5*)
+-  # this will be overridden with pass_all, but let us keep it just in case
+-  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
+-  lt_cv_file_magic_test_file=/shlib/libc.so
+   lt_cv_deplibs_check_method=pass_all
+   ;;

+@@ -3189,11 +3659,6 @@

+ solaris*)
+   lt_cv_deplibs_check_method=pass_all
+-  lt_cv_file_magic_test_file=/lib/libc.so
+-  ;;
+-
+-sysv5uw[78]* | sysv4*uw2*)
+-  lt_cv_deplibs_check_method=pass_all
+   ;;

+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+@@ -3214,8 +3679,15 @@
+     lt_cv_deplibs_check_method=&quot;file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib&quot;
+     lt_cv_file_magic_test_file=/lib/libc.so
+     ;;
++  siemens)
++    lt_cv_deplibs_check_method=pass_all
++    ;;
+   esac
+   ;;
++
++sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
++  lt_cv_deplibs_check_method=pass_all
++  ;;
+ esac

+ fi
+@@ -3223,207 +3695,208 @@
+ echo &quot;${ECHO_T}$lt_cv_deplibs_check_method&quot; &gt;&amp;6
+ file_magic_cmd=$lt_cv_file_magic_cmd
+ deplibs_check_method=$lt_cv_deplibs_check_method
++test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown




++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}

++# Allow CC to be a program name with arguments.
++compiler=$CC

++# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
++if test &quot;${enable_libtool_lock+set}&quot; = set; then
++  enableval=&quot;$enable_libtool_lock&quot;

+-# Check for command to grab the raw symbol name followed by C symbol from nm.
+-echo &quot;$as_me:$LINENO: checking command to parse $NM output&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking command to parse $NM output... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_sys_global_symbol_pipe+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-
+-# These are sane defaults that work on at least a few old systems.
+-# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+-
+-# Character class describing NM global symbol codes.
+-symcode='[BCDEGRST]'
+-
+-# Regexp to match symbols that can be accessed directly from C.
+-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+-
+-# Transform the above into a raw symbol and a C symbol.
+-symxfrm='\1 \2\3 \3'
+-
+-# Transform an extracted symbol line into a proper C declaration
+-lt_cv_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;
+-
+-# Transform an extracted symbol line into symbol name and symbol address
+-lt_cv_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+-
+-# Define system-specific variables.
+-case $host_os in
+-aix*)
+-  symcode='[BCDT]'
+-  ;;
+-cygwin* | mingw* | pw32*)
+-  symcode='[ABCDGISTW]'
+-  ;;
+-hpux*) # Its linker distinguishes data from code symbols
+-  lt_cv_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
+-  lt_cv_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
+-  ;;
+-irix*)
+-  symcode='[BCDEGRST]'
+-  ;;
+-solaris* | sysv5*)
+-  symcode='[BDT]'
+-  ;;
+-sysv4)
+-  symcode='[DFNSTU]'
+-  ;;
+-esac
+-
+-# Handle CRLF in mingw tool chain
+-opt_cr=
+-case $host_os in
+-mingw*)
+-  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+-  ;;
+-esac
+-
+-# If we're using GNU nm, then use its standard symbol codes.
+-if $NM -V 2&gt;&amp;1 | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-  symcode='[ABCDGISTW]'
+-fi
+-
+-# Try without a prefix undercore, then with it.
+-for ac_symprfx in &quot;&quot; &quot;_&quot;; do
+-
+-  # Write the raw and C identifiers.
+-lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][         ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'&quot;
+-
+-  # Check to see that the pipe works correctly.
+-  pipe_works=no
+-  rm -f conftest*
+-  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+-#ifdef __cplusplus
+-extern &quot;C&quot; {
+-#endif
+-char nm_test_var;
+-void nm_test_func(){}
+-#ifdef __cplusplus
+-}
+-#endif
+-int main(){nm_test_var='a';nm_test_func();return(0);}
+-EOF
++fi;
++test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes

++# Some flags need to be propagated to the compiler or linker for good
++# libtool support.
++case $host in
++ia64-*-hpux*)
++  # Find out which ABI we are using.
++  echo 'int i;' &gt; conftest.$ac_ext
+   if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+   (eval $ac_compile) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; then
+-    # Now try to grab the symbols.
+-    nlist=conftest.nm
+-    if { (eval echo &quot;$as_me:$LINENO: \&quot;$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist\&quot;&quot;) &gt;&amp;5
+-  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) 2&gt;&amp;5
++    case `/usr/bin/file conftest.$ac_objext` in
++    *ELF-32*)
++      HPUX_IA64_MODE=&quot;32&quot;
++      ;;
++    *ELF-64*)
++      HPUX_IA64_MODE=&quot;64&quot;
++      ;;
++    esac
++  fi
++  rm -rf conftest*
++  ;;
++*-*-irix6*)
++  # Find out which ABI we are using.
++  echo '#line 3740 &quot;configure&quot;' &gt; conftest.$ac_ext
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; test -s &quot;$nlist&quot;; then
+-      # Try sorting and uniquifying the output.
+-      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+-        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
+-      else
+-        rm -f &quot;$nlist&quot;T
+-      fi
++  (exit $ac_status); }; then
++   if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++    case `/usr/bin/file conftest.$ac_objext` in
++    *32-bit*)
++      LD=&quot;${LD-ld} -melf32bsmip&quot;
++      ;;
++    *N32*)
++      LD=&quot;${LD-ld} -melf32bmipn32&quot;
++      ;;
++    *64-bit*)
++      LD=&quot;${LD-ld} -melf64bmip&quot;
++      ;;
++    esac
++   else
++    case `/usr/bin/file conftest.$ac_objext` in
++    *32-bit*)
++      LD=&quot;${LD-ld} -32&quot;
++      ;;
++    *N32*)
++      LD=&quot;${LD-ld} -n32&quot;
++      ;;
++    *64-bit*)
++      LD=&quot;${LD-ld} -64&quot;
++      ;;
++    esac
++   fi
++  fi
++  rm -rf conftest*
++  ;;

+-      # Make sure that we snagged all the symbols we need.
+-      if egrep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+-        if egrep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+-          cat &lt;&lt;EOF &gt; conftest.$ac_ext
+-#ifdef __cplusplus
+-extern &quot;C&quot; {
+-#endif
++x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
++  # Find out which ABI we are using.
++  echo 'int i;' &gt; conftest.$ac_ext
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; then
++    case `/usr/bin/file conftest.o` in
++    *32-bit*)
++      case $host in
++        x86_64-*linux*)
++          LD=&quot;${LD-ld} -m elf_i386&quot;
++          ;;
++        ppc64-*linux*|powerpc64-*linux*)
++          LD=&quot;${LD-ld} -m elf32ppclinux&quot;
++          ;;
++        s390x-*linux*)
++          LD=&quot;${LD-ld} -m elf_s390&quot;
++          ;;
++        sparc64-*linux*)
++          LD=&quot;${LD-ld} -m elf32_sparc&quot;
++          ;;
++      esac
++      ;;
++    *64-bit*)
++      case $host in
++        x86_64-*linux*)
++          LD=&quot;${LD-ld} -m elf_x86_64&quot;
++          ;;
++        ppc*-*linux*|powerpc*-*linux*)
++          LD=&quot;${LD-ld} -m elf64ppc&quot;
++          ;;
++        s390*-*linux*)
++          LD=&quot;${LD-ld} -m elf64_s390&quot;
++          ;;
++        sparc*-*linux*)
++          LD=&quot;${LD-ld} -m elf64_sparc&quot;
++          ;;
++      esac
++      ;;
++    esac
++  fi
++  rm -rf conftest*
++  ;;

+-EOF
+-          # Now generate the symbol file.
+-          eval &quot;$lt_cv_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; &gt;&gt; conftest.$ac_ext'
++*-*-sco3.2v5*)
++  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
++  SAVE_CFLAGS=&quot;$CFLAGS&quot;
++  CFLAGS=&quot;$CFLAGS -belf&quot;
++  echo &quot;$as_me:$LINENO: checking whether the C compiler needs -belf&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the C compiler needs -belf... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_cc_needs_belf+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu

+-          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
+-#if defined (__STDC__) &amp;&amp; __STDC__
+-# define lt_ptr void *
+-#else
+-# define lt_ptr char *
+-# define const
+-#endif
++     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-/* The mapping between symbol names and symbols. */
+-const struct {
+-  const char *name;
+-  lt_ptr address;
+-}
+-lt_preloaded_symbols[] =
++int
++main ()
+ {
+-EOF
+-          sed &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; &gt;&gt; conftest.$ac_ext
+-          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
+-  {0, (lt_ptr) 0}
+-};

+-#ifdef __cplusplus
++  ;
++  return 0;
+ }
+-#endif
+-EOF
+-          # Now try linking the two files.
+-          mv conftest.$ac_objext conftstm.$ac_objext
+-          save_LIBS=&quot;$LIBS&quot;
+-          save_CFLAGS=&quot;$CFLAGS&quot;
+-          LIBS=&quot;conftstm.$ac_objext&quot;
+-          CFLAGS=&quot;$CFLAGS$no_builtin_flag&quot;
+-          if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; test -s conftest; then
+-            pipe_works=yes
+-          fi
+-          LIBS=&quot;$save_LIBS&quot;
+-          CFLAGS=&quot;$save_CFLAGS&quot;
+-        else
+-          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
+-        fi
+-      else
+-        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
+-      fi
+-    else
+-      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;5
+-    fi
+-  else
+-    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+-    cat conftest.$ac_ext &gt;&amp;5
+-  fi
+-  rm -f conftest* conftst*
+-
+-  # Do not use the global_symbol_pipe unless it works.
+-  if test &quot;$pipe_works&quot; = yes; then
+-    break
+-  else
+-    lt_cv_sys_global_symbol_pipe=
+-  fi
+-done
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  lt_cv_cc_needs_belf=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++lt_cv_cc_needs_belf=no
+ fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++     ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu

+-global_symbol_pipe=&quot;$lt_cv_sys_global_symbol_pipe&quot;
+-if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
+-  global_symbol_to_cdecl=
+-  global_symbol_to_c_name_address=
+-else
+-  global_symbol_to_cdecl=&quot;$lt_cv_global_symbol_to_cdecl&quot;
+-  global_symbol_to_c_name_address=&quot;$lt_cv_global_symbol_to_c_name_address&quot;
+-fi
+-if test -z &quot;$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address&quot;;
+-then
+-  echo &quot;$as_me:$LINENO: result: failed&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}failed&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: ok&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}ok&quot; &gt;&amp;6
+ fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_cc_needs_belf&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_cc_needs_belf&quot; &gt;&amp;6
++  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
++    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
++    CFLAGS=&quot;$SAVE_CFLAGS&quot;
++  fi
++  ;;
++
++esac
++
++need_locks=&quot;$enable_libtool_lock&quot;
++

+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+@@ -3448,24 +3921,34 @@
+ do
+   # Use a header file that comes with gcc, so configuring glibc
+   # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
+   # On the NeXT, cc -E runs the code through the compiler's parser,
+   # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;assert.h&gt;
+-                     Syntax error
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++                     Syntax error
+ _ACEOF
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+   (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &gt;/dev/null; then
+   if test -s conftest.err; then
+     ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+   else
+     ac_cpp_err=
+   fi
+@@ -3476,7 +3959,8 @@
+   :
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+   # Broken: fails on valid input.
+ continue
+ fi
+@@ -3485,20 +3969,24 @@
+   # OK, works on sane cases.  Now check whether non-existent headers
+   # can be detected and how.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;ac_nonexistent.h&gt;
+ _ACEOF
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+   (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &gt;/dev/null; then
+   if test -s conftest.err; then
+     ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+   else
+     ac_cpp_err=
+   fi
+@@ -3510,7 +3998,8 @@
+ continue
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+   # Passes both tests.
+ ac_preproc_ok=:
+ break
+@@ -3539,24 +4028,34 @@
+ do
+   # Use a header file that comes with gcc, so configuring glibc
+   # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
+   # On the NeXT, cc -E runs the code through the compiler's parser,
+   # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;assert.h&gt;
+-                     Syntax error
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++                     Syntax error
+ _ACEOF
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+   (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &gt;/dev/null; then
+   if test -s conftest.err; then
+     ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+   else
+     ac_cpp_err=
+   fi
+@@ -3567,7 +4066,8 @@
+   :
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+   # Broken: fails on valid input.
+ continue
+ fi
+@@ -3576,20 +4076,24 @@
+   # OK, works on sane cases.  Now check whether non-existent headers
+   # can be detected and how.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;ac_nonexistent.h&gt;
+ _ACEOF
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+   (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &gt;/dev/null; then
+   if test -s conftest.err; then
+     ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+   else
+     ac_cpp_err=
+   fi
+@@ -3601,7 +4105,8 @@
+ continue
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+   # Passes both tests.
+ ac_preproc_ok=:
+ break
+@@ -3614,8 +4119,10 @@
+ if $ac_preproc_ok; then
+   :
+ else
+-  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check&quot; &gt;&amp;5
+-echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check&quot; &gt;&amp;2;}
++  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+ fi

+@@ -3632,49 +4139,67 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;stdlib.h&gt;
+ #include &lt;stdarg.h&gt;
+ #include &lt;string.h&gt;
+ #include &lt;float.h&gt;

++int
++main ()
++{
++
++  ;
++  return 0;
++}
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
+   ac_cv_header_stdc=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_cv_header_stdc=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_header_stdc=no
+ fi
+-rm -f conftest.err conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

+ if test $ac_cv_header_stdc = yes; then
+   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;string.h&gt;

+ _ACEOF
+ if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+-  egrep &quot;memchr&quot; &gt;/dev/null 2&gt;&amp;1; then
++  $EGREP &quot;memchr&quot; &gt;/dev/null 2&gt;&amp;1; then
+   :
+ else
+   ac_cv_header_stdc=no
+@@ -3686,13 +4211,16 @@
+ if test $ac_cv_header_stdc = yes; then
+   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;stdlib.h&gt;

+ _ACEOF
+ if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+-  egrep &quot;free&quot; &gt;/dev/null 2&gt;&amp;1; then
++  $EGREP &quot;free&quot; &gt;/dev/null 2&gt;&amp;1; then
+   :
+ else
+   ac_cv_header_stdc=no
+@@ -3707,16 +4235,20 @@
+   :
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;ctype.h&gt;
+ #if ((' ' &amp; 0x0FF) == 0x020)
+ # define ISLOWER(c) ('a' &lt;= (c) &amp;&amp; (c) &lt;= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+ #else
+-# define ISLOWER(c) (('a' &lt;= (c) &amp;&amp; (c) &lt;= 'i') \
+-                     || ('j' &lt;= (c) &amp;&amp; (c) &lt;= 'r') \
+-                     || ('s' &lt;= (c) &amp;&amp; (c) &lt;= 'z'))
++# define ISLOWER(c) \
++                   (('a' &lt;= (c) &amp;&amp; (c) &lt;= 'i') \
++                     || ('j' &lt;= (c) &amp;&amp; (c) &lt;= 'r') \
++                     || ('s' &lt;= (c) &amp;&amp; (c) &lt;= 'z'))
+ # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+ #endif

+@@ -3727,7 +4259,7 @@
+   int i;
+   for (i = 0; i &lt; 256; i++)
+     if (XOR (islower (i), ISLOWER (i))
+-        || toupper (i) != TOUPPER (i))
++        || toupper (i) != TOUPPER (i))
+       exit(2);
+   exit (0);
+ }
+@@ -3747,11 +4279,12 @@
+ else
+   echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+ echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ( exit $ac_status )
+ ac_cv_header_stdc=no
+ fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+ fi
+ fi
+@@ -3776,7 +4309,7 @@


+ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+-                  inttypes.h stdint.h unistd.h
++                  inttypes.h stdint.h unistd.h
+ do
+ as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+ echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+@@ -3785,19 +4318,31 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default

+ #include &lt;$ac_header&gt;
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -3806,10 +4351,11 @@
+   eval &quot;$as_ac_Header=yes&quot;
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ eval &quot;$as_ac_Header=no&quot;
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+@@ -3840,18 +4386,30 @@
+ echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+ #include &lt;$ac_header&gt;
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -3860,10 +4418,11 @@
+   ac_header_compiler=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ac_header_compiler=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+@@ -3871,20 +4430,24 @@
+ echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;$ac_header&gt;
+ _ACEOF
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+   (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &gt;/dev/null; then
+   if test -s conftest.err; then
+     ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+   else
+     ac_cpp_err=
+   fi
+@@ -3895,7 +4458,8 @@
+   ac_header_preproc=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+   ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -3903,26 +4467,43 @@
+ echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+ # So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
+     { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+ echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
+     { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+ echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
+     { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
+ esac
+ echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+ if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+ fi
+ echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+@@ -3937,159 +4518,65 @@

+ done

+-
+-
+-
+-
+-# Only perform the check for file, if the check method requires it
+-case $deplibs_check_method in
+-file_magic*)
+-  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
+-    echo &quot;$as_me:$LINENO: checking for ${ac_tool_prefix}file&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for ${ac_tool_prefix}file... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++if test -n &quot;$ac_tool_prefix&quot;; then
++  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
++  do
++    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_CXX+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  case $MAGIC_CMD in
+-  /*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+-  ;;
+-  ?:/*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a dos path.
+-  ;;
+-  *)
+-  ac_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+-  IFS=&quot;${IFS=   }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;:&quot;
+-  ac_dummy=&quot;/usr/bin:$PATH&quot;
+-  for ac_dir in $ac_dummy; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/${ac_tool_prefix}file; then
+-      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/${ac_tool_prefix}file&quot;
+-      if test -n &quot;$file_magic_test_file&quot;; then
+-        case $deplibs_check_method in
+-        &quot;file_magic &quot;*)
+-          file_magic_regex=&quot;`expr \&quot;$deplibs_check_method\&quot; : \&quot;file_magic \(.*\)\&quot;`&quot;
+-          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+-            egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
+-            :
+-          else
+-            cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: the command libtool uses to detect shared libraries,
+-*** $file_magic_cmd, produces output that libtool cannot recognize.
+-*** The result is that libtool may fail to recognize shared libraries
+-*** as such.  This will affect the creation of libtool libraries that
+-*** depend on shared libraries, but programs linked with such libtool
+-*** libraries will work regardless of this problem.  Nevertheless, you
+-*** may want to report the problem to your system manager and/or to
+-*** bug-libtool@gnu.org
++  if test -n &quot;$CXX&quot;; then
++  ac_cv_prog_CXX=&quot;$CXX&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_CXX=&quot;$ac_tool_prefix$ac_prog&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

+-EOF
+-          fi ;;
+-        esac
+-      fi
+-      break
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  MAGIC_CMD=&quot;$ac_save_MAGIC_CMD&quot;
+-  ;;
+-esac
+ fi
+-
+-MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-if test -n &quot;$MAGIC_CMD&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
++fi
++CXX=$ac_cv_prog_CXX
++if test -n &quot;$CXX&quot;; then
++  echo &quot;$as_me:$LINENO: result: $CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$CXX&quot; &gt;&amp;6
+ else
+   echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi

+-if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
+-  if test -n &quot;$ac_tool_prefix&quot;; then
+-    echo &quot;$as_me:$LINENO: checking for file&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for file... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  case $MAGIC_CMD in
+-  /*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
+-  ;;
+-  ?:/*)
+-  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a dos path.
+-  ;;
+-  *)
+-  ac_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
+-  IFS=&quot;${IFS=   }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;:&quot;
+-  ac_dummy=&quot;/usr/bin:$PATH&quot;
+-  for ac_dir in $ac_dummy; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/file; then
+-      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/file&quot;
+-      if test -n &quot;$file_magic_test_file&quot;; then
+-        case $deplibs_check_method in
+-        &quot;file_magic &quot;*)
+-          file_magic_regex=&quot;`expr \&quot;$deplibs_check_method\&quot; : \&quot;file_magic \(.*\)\&quot;`&quot;
+-          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
+-            egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
+-            :
+-          else
+-            cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: the command libtool uses to detect shared libraries,
+-*** $file_magic_cmd, produces output that libtool cannot recognize.
+-*** The result is that libtool may fail to recognize shared libraries
+-*** as such.  This will affect the creation of libtool libraries that
+-*** depend on shared libraries, but programs linked with such libtool
+-*** libraries will work regardless of this problem.  Nevertheless, you
+-*** may want to report the problem to your system manager and/or to
+-*** bug-libtool@gnu.org
+-
+-EOF
+-          fi ;;
+-        esac
+-      fi
+-      break
+-    fi
++    test -n &quot;$CXX&quot; &amp;&amp; break
+   done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  MAGIC_CMD=&quot;$ac_save_MAGIC_CMD&quot;
+-  ;;
+-esac
+-fi
+-
+-MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
+-if test -n &quot;$MAGIC_CMD&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
+-
+-  else
+-    MAGIC_CMD=:
+-  fi
+ fi
+-
+-  fi
+-  ;;
+-esac
+-
+-if test -n &quot;$ac_tool_prefix&quot;; then
+-  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
+-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
++if test -z &quot;$CXX&quot;; then
++  ac_ct_CXX=$CXX
++  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
++do
++  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
+ echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
++if test &quot;${ac_cv_prog_ac_ct_CXX+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test -n &quot;$RANLIB&quot;; then
+-  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
++  if test -n &quot;$ac_ct_CXX&quot;; then
++  ac_cv_prog_ac_ct_CXX=&quot;$ac_ct_CXX&quot; # Let the user override the test.
+ else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ for as_dir in $PATH
+@@ -4098,7 +4585,7 @@
+   test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+   for ac_exec_ext in '' $ac_executable_extensions; do
+   if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
++    ac_cv_prog_ac_ct_CXX=&quot;$ac_prog&quot;
+     echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+     break 2
+   fi
+@@ -4107,4958 +4594,18846 @@

+ fi
+ fi
+-RANLIB=$ac_cv_prog_RANLIB
+-if test -n &quot;$RANLIB&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
++if test -n &quot;$ac_ct_CXX&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_CXX&quot; &gt;&amp;6
+ else
+   echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi

+-fi
+-if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
+-  ac_ct_RANLIB=$RANLIB
+-  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
+-set dummy ranlib; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  if test -n &quot;$ac_ct_RANLIB&quot;; then
+-  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
++  test -n &quot;$ac_ct_CXX&quot; &amp;&amp; break
+ done
++test -n &quot;$ac_ct_CXX&quot; || ac_ct_CXX=&quot;g++&quot;

+-  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
+-fi
+-fi
+-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+-if test -n &quot;$ac_ct_RANLIB&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  CXX=$ac_ct_CXX
+ fi

+-  RANLIB=$ac_ct_RANLIB
+-else
+-  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
+-fi

+-if test -n &quot;$ac_tool_prefix&quot;; then
+-  # Extract the first word of &quot;${ac_tool_prefix}strip&quot;, so it can be a program name with args.
+-set dummy ${ac_tool_prefix}strip; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_STRIP+set}&quot; = set; then
++# Provide some information about the compiler.
++echo &quot;$as_me:$LINENO:&quot; \
++     &quot;checking for C++ compiler version&quot; &gt;&amp;5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++
++echo &quot;$as_me:$LINENO: checking whether we are using the GNU C++ compiler&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether we are using the GNU C++ compiler... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_cxx_compiler_gnu+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test -n &quot;$STRIP&quot;; then
+-  ac_cv_prog_STRIP=&quot;$STRIP&quot; # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_STRIP=&quot;${ac_tool_prefix}strip&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-fi
+-fi
+-STRIP=$ac_cv_prog_STRIP
+-if test -n &quot;$STRIP&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $STRIP&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$STRIP&quot; &gt;&amp;6
++int
++main ()
++{
++#ifndef __GNUC__
++       choke me
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_compiler_gnu=yes
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_compiler_gnu=no
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

+ fi
+-if test -z &quot;$ac_cv_prog_STRIP&quot;; then
+-  ac_ct_STRIP=$STRIP
+-  # Extract the first word of &quot;strip&quot;, so it can be a program name with args.
+-set dummy strip; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_ac_ct_STRIP+set}&quot; = set; then
++echo &quot;$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_cxx_compiler_gnu&quot; &gt;&amp;6
++GXX=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
++ac_test_CXXFLAGS=${CXXFLAGS+set}
++ac_save_CXXFLAGS=$CXXFLAGS
++CXXFLAGS=&quot;-g&quot;
++echo &quot;$as_me:$LINENO: checking whether $CXX accepts -g&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether $CXX accepts -g... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_cxx_g+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test -n &quot;$ac_ct_STRIP&quot;; then
+-  ac_cv_prog_ac_ct_STRIP=&quot;$ac_ct_STRIP&quot; # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_ac_ct_STRIP=&quot;strip&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-  test -z &quot;$ac_cv_prog_ac_ct_STRIP&quot; &amp;&amp; ac_cv_prog_ac_ct_STRIP=&quot;:&quot;
+-fi
+-fi
+-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+-if test -n &quot;$ac_ct_STRIP&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $ac_ct_STRIP&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_ct_STRIP&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
++int
++main ()
++{

+-  STRIP=$ac_ct_STRIP
+-else
+-  STRIP=&quot;$ac_cv_prog_STRIP&quot;
+-fi
+-
+-
+-enable_dlopen=no
+-enable_win32_dll=no
+-
+-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+-if test &quot;${enable_libtool_lock+set}&quot; = set; then
+-  enableval=&quot;$enable_libtool_lock&quot;
+-
+-fi;
+-test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
+-
+-# Some flags need to be propagated to the compiler or linker for good
+-# libtool support.
+-case $host in
+-*-*-irix6*)
+-  # Find out which ABI we are using.
+-  echo '#line 4259 &quot;configure&quot;' &gt; conftest.$ac_ext
+-  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; then
+-    case `/usr/bin/file conftest.$ac_objext` in
+-    *32-bit*)
+-      LD=&quot;${LD-ld} -32&quot;
+-      ;;
+-    *N32*)
+-      LD=&quot;${LD-ld} -n32&quot;
+-      ;;
+-    *64-bit*)
+-      LD=&quot;${LD-ld} -64&quot;
+-      ;;
+-    esac
+-  fi
+-  rm -rf conftest*
+-  ;;
+-
+-*-*-sco3.2v5*)
+-  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+-  SAVE_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -belf&quot;
+-  echo &quot;$as_me:$LINENO: checking whether the C compiler needs -belf&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether the C compiler needs -belf... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_cc_needs_belf+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_prog_cxx_g=yes
+ else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-
+-     ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+-
+-     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++ac_cv_prog_cxx_g=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cxx_g&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_prog_cxx_g&quot; &gt;&amp;6
++if test &quot;$ac_test_CXXFLAGS&quot; = set; then
++  CXXFLAGS=$ac_save_CXXFLAGS
++elif test $ac_cv_prog_cxx_g = yes; then
++  if test &quot;$GXX&quot; = yes; then
++    CXXFLAGS=&quot;-g -O2&quot;
++  else
++    CXXFLAGS=&quot;-g&quot;
++  fi
++else
++  if test &quot;$GXX&quot; = yes; then
++    CXXFLAGS=&quot;-O2&quot;
++  else
++    CXXFLAGS=
++  fi
++fi
++for ac_declaration in \
++   '' \
++   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
++   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
++   'extern &quot;C&quot; void exit (int) throw ();' \
++   'extern &quot;C&quot; void exit (int);' \
++   'void exit (int);'
++do
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++#include &lt;stdlib.h&gt;
+ int
+ main ()
+ {
+-
++exit (42);
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  lt_cv_cc_needs_belf=yes
++  :
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-lt_cv_cc_needs_belf=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++continue
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-     ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++int
++main ()
++{
++exit (42);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+ fi
+-echo &quot;$as_me:$LINENO: result: $lt_cv_cc_needs_belf&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_cc_needs_belf&quot; &gt;&amp;6
+-  if test x&quot;$lt_cv_cc_needs_belf&quot; != x&quot;yes&quot;; then
+-    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+-    CFLAGS=&quot;$SAVE_CFLAGS&quot;
+-  fi
+-  ;;
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++rm -f conftest*
++if test -n &quot;$ac_declaration&quot;; then
++  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
++  echo $ac_declaration      &gt;&gt;confdefs.h
++  echo '#endif'             &gt;&gt;confdefs.h
++fi

++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

+-esac
++depcc=&quot;$CXX&quot;  am_compiler_list=

+-# Sed substitution that helps us do robust quoting.  It backslashifies
+-# metacharacters that are still active within double-quoted strings.
+-Xsed='sed -e s/^X//'
+-sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g'
++echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${am_cv_CXX_dependencies_compiler_type+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
++  # We make a subdir and do the tests there.  Otherwise we can end up
++  # making bogus files that we don't know about and never remove.  For
++  # instance it was reported that on HP-UX the gcc test will end up
++  # making a dummy file named `D' -- because `-MD' means `put the output
++  # in D'.
++  mkdir conftest.dir
++  # Copy depcomp to subdir because otherwise we won't find it if we're
++  # using a relative directory.
++  cp &quot;$am_depcomp&quot; conftest.dir
++  cd conftest.dir
++  # We will build objects and dependencies in a subdirectory because
++  # it helps to detect inapplicable dependency modes.  For instance
++  # both Tru64's cc and ICC support -MD to output dependencies as a
++  # side effect of compilation, but ICC will put the dependencies in
++  # the current directory while Tru64 will put them in the object
++  # directory.
++  mkdir sub

+-# Same as above, but do not quote variable references.
+-double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g'
++  am_cv_CXX_dependencies_compiler_type=none
++  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
++     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
++  fi
++  for depmode in $am_compiler_list; do
++    # Setup a source with many dependencies, because some compilers
++    # like to wrap large dependency lists on column 80 (with \), and
++    # we should not choose a depcomp mode which is confused by this.
++    #
++    # We need to recreate these files for each test, as the compiler may
++    # overwrite some of them when testing with obscure command lines.
++    # This happens at least with the AIX C compiler.
++    : &gt; sub/conftest.c
++    for i in 1 2 3 4 5 6; do
++      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
++      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
++      # Solaris 8's {/usr,}/bin/sh.
++      touch sub/conftst$i.h
++    done
++    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf

+-# Sed substitution to delay expansion of an escaped shell variable in a
+-# double_quote_subst'ed string.
+-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
++    case $depmode in
++    nosideeffect)
++      # after this tag, mechanisms are not by side-effect, so they'll
++      # only be used when explicitly requested
++      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
++        continue
++      else
++        break
++      fi
++      ;;
++    none) break ;;
++    esac
++    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
++    # mode.  It turns out that the SunPro C++ compiler does not properly
++    # handle `-M -o', and we need to detect this.
++    if depmode=$depmode \
++       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
++       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
++       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
++         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
++       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
++      # icc doesn't choke on unknown options, it will just issue warnings
++      # or remarks (even with -Werror).  So we grep stderr for any message
++      # that says an option was ignored or not supported.
++      # When given -MP, icc 7.0 and 7.1 complain thusly:
++      #   icc: Command line warning: ignoring option '-M'; no argument required
++      # The diagnosis changed in icc 8.0:
++      #   icc: Command line remark: option '-MP' not supported
++      if (grep 'ignoring option' conftest.err ||
++          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
++        am_cv_CXX_dependencies_compiler_type=$depmode
++        break
++      fi
++    fi
++  done

+-# Constants:
+-rm=&quot;rm -f&quot;
++  cd ..
++  rm -rf conftest.dir
++else
++  am_cv_CXX_dependencies_compiler_type=none
++fi

+-# Global variables:
+-default_ofile=libtool
+-can_build_shared=yes
++fi
++echo &quot;$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;6
++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

+-# All known linkers require a `.a' archive for static linking (except M$VC,
+-# which needs '.lib').
+-libext=a
+-ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
+-ofile=&quot;$default_ofile&quot;
+-with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
+-need_locks=&quot;$enable_libtool_lock&quot;

+-old_CC=&quot;$CC&quot;
+-old_CFLAGS=&quot;$CFLAGS&quot;
+-
+-# Set sane defaults for various variables
+-test -z &quot;$AR&quot; &amp;&amp; AR=ar
+-test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
+-test -z &quot;$AS&quot; &amp;&amp; AS=as
+-test -z &quot;$CC&quot; &amp;&amp; CC=cc
+-test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
+-test -z &quot;$LD&quot; &amp;&amp; LD=ld
+-test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
+-test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
+-test -z &quot;$NM&quot; &amp;&amp; NM=nm
+-test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+-test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
+-test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
+-test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
+-
+-if test x&quot;$host&quot; != x&quot;$build&quot;; then
+-  ac_tool_prefix=${host_alias}-
+-else
+-  ac_tool_prefix=
+-fi
+-
+-# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+-case $host_os in
+-linux-gnu*) ;;
+-linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+-esac
+-
+-case $host_os in
+-aix3*)
+-  # AIX sometimes has problems with the GCC collect2 program.  For some
+-  # reason, if we set the COLLECT_NAMES environment variable, the problems
+-  # vanish in a puff of smoke.
+-  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+-    COLLECT_NAMES=
+-    export COLLECT_NAMES
+-  fi
+-  ;;
+-esac
+-
+-# Determine commands to create old-style static archives.
+-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+-old_postinstall_cmds='chmod 644 $oldlib'
+-old_postuninstall_cmds=
+-
+-if test -n &quot;$RANLIB&quot;; then
+-  case $host_os in
+-  openbsd*)
+-    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
+-    ;;
+-  *)
+-    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+-    ;;
+-  esac
+-  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
+-fi

+-# Allow CC to be a program name with arguments.
+-set dummy $CC
+-compiler=&quot;$2&quot;
+-
+-echo &quot;$as_me:$LINENO: checking for objdir&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for objdir... $ECHO_C&quot; &gt;&amp;6
+-rm -f .libs 2&gt;/dev/null
+-mkdir .libs 2&gt;/dev/null
+-if test -d .libs; then
+-  objdir=.libs
++if
++  test &quot;x$enable_dependency_tracking&quot; != xno \
++  &amp;&amp; test &quot;$am_cv_CXX_dependencies_compiler_type&quot; = gcc3; then
++  am__fastdepCXX_TRUE=
++  am__fastdepCXX_FALSE='#'
+ else
+-  # MS-DOS does not allow filenames that begin with a dot.
+-  objdir=_libs
++  am__fastdepCXX_TRUE='#'
++  am__fastdepCXX_FALSE=
+ fi
+-rmdir .libs 2&gt;/dev/null
+-echo &quot;$as_me:$LINENO: result: $objdir&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$objdir&quot; &gt;&amp;6



+-# Check whether --with-pic or --without-pic was given.
+-if test &quot;${with_pic+set}&quot; = set; then
+-  withval=&quot;$with_pic&quot;
+-  pic_mode=&quot;$withval&quot;
+-else
+-  pic_mode=default
+-fi;
+-test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default

+-# We assume here that the value for lt_cv_prog_cc_pic will not be cached
+-# in isolation, and that seeing it set (from the cache) indicates that
+-# the associated values are set (in the cache) correctly too.
+-echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_prog_cc_pic+set}&quot; = set; then
++if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
++    ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
++    (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
++  ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++echo &quot;$as_me:$LINENO: checking how to run the C++ preprocessor&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to run the C++ preprocessor... $ECHO_C&quot; &gt;&amp;6
++if test -z &quot;$CXXCPP&quot;; then
++  if test &quot;${ac_cv_prog_CXXCPP+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-   lt_cv_prog_cc_pic=
+-  lt_cv_prog_cc_shlib=
+-  lt_cv_prog_cc_wl=
+-  lt_cv_prog_cc_static=
+-  lt_cv_prog_cc_no_builtin=
+-  lt_cv_prog_cc_can_build_shared=$can_build_shared
+-
+-  if test &quot;$GCC&quot; = yes; then
+-    lt_cv_prog_cc_wl='-Wl,'
+-    lt_cv_prog_cc_static='-static'
+-
+-    case $host_os in
+-    aix*)
+-      # Below there is a dirty hack to force normal static linking with -ldl
+-      # The problem is because libdl dynamically linked with both libc and
+-      # libC (AIX C++ library), which obviously doesn't included in libraries
+-      # list by gcc. This cause undefined symbols with -static flags.
+-      # This hack allows C programs to be linked with &quot;-static -ldl&quot;, but
+-      # not sure about C++ programs.
+-      lt_cv_prog_cc_static=&quot;$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC&quot;
+-      ;;
+-    amigaos*)
+-      # FIXME: we need at least 68020 code to build shared libraries, but
+-      # adding the `-m68020' flag to GCC prevents building anything better,
+-      # like `-m68040'.
+-      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
+-      ;;
+-    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
+-      # PIC is the default for these OSes.
+-      ;;
+-    darwin* | rhapsody*)
+-      # PIC is the default on this platform
+-      # Common symbols not allowed in MH_DYLIB files
+-      lt_cv_prog_cc_pic='-fno-common'
+-      ;;
+-    cygwin* | mingw* | pw32* | os2*)
+-      # This hack is so that the source file can tell whether it is being
+-      # built for inclusion in a dll (and should export symbols for example).
+-      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+-      ;;
+-    sysv4*MP*)
+-      if test -d /usr/nec; then
+-         lt_cv_prog_cc_pic=-Kconform_pic
+-      fi
+-      ;;
+-    *)
+-      lt_cv_prog_cc_pic='-fPIC'
+-      ;;
+-    esac
++      # Double quotes because CXXCPP needs to be expanded
++    for CXXCPP in &quot;$CXX -E&quot; &quot;/lib/cpp&quot;
++    do
++      ac_preproc_ok=false
++for ac_cxx_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++                     Syntax error
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_cxx_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+   else
+-    # PORTME Check for PIC flags for the system compiler.
+-    case $host_os in
+-    aix3* | aix4* | aix5*)
+-      lt_cv_prog_cc_wl='-Wl,'
+-      # All AIX code is PIC.
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        # AIX 5 now supports IA64 processor
+-        lt_cv_prog_cc_static='-Bstatic'
+-      else
+-        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
+-      fi
+-      ;;
+-
+-    hpux9* | hpux10* | hpux11*)
+-      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static=&quot;${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive&quot;
+-      lt_cv_prog_cc_pic='+Z'
+-      ;;
+-
+-    irix5* | irix6*)
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static='-non_shared'
+-      # PIC (with -KPIC) is the default.
+-      ;;
+-
+-    cygwin* | mingw* | pw32* | os2*)
+-      # This hack is so that the source file can tell whether it is being
+-      # built for inclusion in a dll (and should export symbols for example).
+-      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+-      ;;
+-
+-    newsos6)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      ;;
+-
+-    osf3* | osf4* | osf5*)
+-      # All OSF/1 code is PIC.
+-      lt_cv_prog_cc_wl='-Wl,'
+-      lt_cv_prog_cc_static='-non_shared'
+-      ;;
+-
+-    sco3.2v5*)
+-      lt_cv_prog_cc_pic='-Kpic'
+-      lt_cv_prog_cc_static='-dn'
+-      lt_cv_prog_cc_shlib='-belf'
+-      ;;
+-
+-    solaris*)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      lt_cv_prog_cc_wl='-Wl,'
+-      ;;
+-
+-    sunos4*)
+-      lt_cv_prog_cc_pic='-PIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      lt_cv_prog_cc_wl='-Qoption ld '
+-      ;;
+-
+-    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+-      lt_cv_prog_cc_pic='-KPIC'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      if test &quot;x$host_vendor&quot; = xsni; then
+-        lt_cv_prog_cc_wl='-LD'
+-      else
+-        lt_cv_prog_cc_wl='-Wl,'
+-      fi
+-      ;;
+-
+-    uts4*)
+-      lt_cv_prog_cc_pic='-pic'
+-      lt_cv_prog_cc_static='-Bstatic'
+-      ;;
+-
+-    sysv4*MP*)
+-      if test -d /usr/nec ;then
+-        lt_cv_prog_cc_pic='-Kconform_pic'
+-        lt_cv_prog_cc_static='-Bstatic'
+-      fi
+-      ;;
+-
+-    *)
+-      lt_cv_prog_cc_can_build_shared=no
+-      ;;
+-    esac
++    ac_cpp_err=
+   fi
+-
+-fi
+-
+-if test -z &quot;$lt_cv_prog_cc_pic&quot;; then
+-  echo &quot;$as_me:$LINENO: result: none&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}none&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me:$LINENO: result: $lt_cv_prog_cc_pic&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_prog_cc_pic&quot; &gt;&amp;6
+-
+-  # Check to make sure the pic_flag actually works.
+-  echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C&quot; &gt;&amp;6
+-  if test &quot;${lt_cv_prog_cc_pic_works+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  :
+ else
+-      save_CFLAGS=&quot;$CFLAGS&quot;
+-    CFLAGS=&quot;$CFLAGS $lt_cv_prog_cc_pic -DPIC&quot;
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext

+-  ;
+-  return 0;
+-}
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;ac_nonexistent.h&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-        case $host_os in
+-      hpux9* | hpux10* | hpux11*)
+-        # On HP-UX, both CC and GCC only warn that PIC is supported... then
+-        # they create non-PIC objects.  So, if there were any warnings, we
+-        # assume that PIC is not supported.
+-        if test -s conftest.err; then
+-          lt_cv_prog_cc_pic_works=no
+-        else
+-          lt_cv_prog_cc_pic_works=yes
+-        fi
+-        ;
+-      *)
+-        lt_cv_prog_cc_pic_works=yes
+-        ;
+-      esac
+-
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_cxx_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  # Broken: success on invalid input.
++continue
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-      lt_cv_prog_cc_pic_works=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++  # Passes both tests.
++ac_preproc_ok=:
++break
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-    CFLAGS=&quot;$save_CFLAGS&quot;
++rm -f conftest.err conftest.$ac_ext

++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  break
+ fi

++    done
++    ac_cv_prog_CXXCPP=$CXXCPP

+-  if test &quot;X$lt_cv_prog_cc_pic_works&quot; = Xno; then
+-    lt_cv_prog_cc_pic=
+-    lt_cv_prog_cc_can_build_shared=no
+-  else
+-    lt_cv_prog_cc_pic=&quot; $lt_cv_prog_cc_pic&quot;
+-  fi
+-
+-  echo &quot;$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_prog_cc_pic_works&quot; &gt;&amp;6
+ fi
+-
+-# Check for any special shared library compilation flags.
+-if test -n &quot;$lt_cv_prog_cc_shlib&quot;; then
+-  { echo &quot;$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;2;}
+-  if echo &quot;$old_CC $old_CFLAGS &quot; | egrep -e &quot;[         ]$lt_cv_prog_cc_shlib[         ]&quot; &gt;/dev/null; then :
+-  else
+-   { echo &quot;$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;2;}
+-    lt_cv_prog_cc_can_build_shared=no
+-  fi
+-fi
+-
+-echo &quot;$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_prog_cc_static_works+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  CXXCPP=$ac_cv_prog_CXXCPP
+ else
+-    lt_cv_prog_cc_static_works=no
+-  save_LDFLAGS=&quot;$LDFLAGS&quot;
+-  LDFLAGS=&quot;$LDFLAGS $lt_cv_prog_cc_static&quot;
++  ac_cv_prog_CXXCPP=$CXXCPP
++fi
++echo &quot;$as_me:$LINENO: result: $CXXCPP&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$CXXCPP&quot; &gt;&amp;6
++ac_preproc_ok=false
++for ac_cxx_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
+ #endif
+-int
+-main ()
+-{
+-
+-  ;
+-  return 0;
+-}
++                     Syntax error
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_cxx_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  :
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;ac_nonexistent.h&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  lt_cv_prog_cc_static_works=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_cxx_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  # Broken: success on invalid input.
++continue
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  # Passes both tests.
++ac_preproc_ok=:
++break
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-  LDFLAGS=&quot;$save_LDFLAGS&quot;
++rm -f conftest.err conftest.$ac_ext

++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  :
++else
++  { { echo &quot;$as_me:$LINENO: error: C++ preprocessor \&quot;$CXXCPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: C++ preprocessor \&quot;$CXXCPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ fi

++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++fi

+-# Belt *and* braces to stop my trousers falling down:
+-test &quot;X$lt_cv_prog_cc_static_works&quot; = Xno &amp;&amp; lt_cv_prog_cc_static=
+-echo &quot;$as_me:$LINENO: result: $lt_cv_prog_cc_static_works&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_prog_cc_static_works&quot; &gt;&amp;6

+-pic_flag=&quot;$lt_cv_prog_cc_pic&quot;
+-special_shlib_compile_flags=&quot;$lt_cv_prog_cc_shlib&quot;
+-wl=&quot;$lt_cv_prog_cc_wl&quot;
+-link_static_flag=&quot;$lt_cv_prog_cc_static&quot;
+-no_builtin_flag=&quot;$lt_cv_prog_cc_no_builtin&quot;
+-can_build_shared=&quot;$lt_cv_prog_cc_can_build_shared&quot;
++ac_ext=f
++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_f77_compiler_gnu
++if test -n &quot;$ac_tool_prefix&quot;; then
++  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
++  do
++    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_F77+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$F77&quot;; then
++  ac_cv_prog_F77=&quot;$F77&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_F77=&quot;$ac_tool_prefix$ac_prog&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

++fi
++fi
++F77=$ac_cv_prog_F77
++if test -n &quot;$F77&quot;; then
++  echo &quot;$as_me:$LINENO: result: $F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$F77&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi

+-# Check to see if options -o and -c are simultaneously supported by compiler
+-echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_compiler_c_o+set}&quot; = set; then
++    test -n &quot;$F77&quot; &amp;&amp; break
++  done
++fi
++if test -z &quot;$F77&quot;; then
++  ac_ct_F77=$F77
++  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
++do
++  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_F77+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
++  if test -n &quot;$ac_ct_F77&quot;; then
++  ac_cv_prog_ac_ct_F77=&quot;$ac_ct_F77&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_F77=&quot;$ac_prog&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++ac_ct_F77=$ac_cv_prog_ac_ct_F77
++if test -n &quot;$ac_ct_F77&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_F77&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi

+-$rm -r conftest 2&gt;/dev/null
+-mkdir conftest
+-cd conftest
+-echo &quot;int some_variable = 0;&quot; &gt; conftest.$ac_ext
+-mkdir out
+-# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
+-# that will create temporary files in the current directory regardless of
+-# the output directory.  Thus, making CWD read-only will cause this test
+-# to fail, enabling locking or at least warning the user not to do parallel
+-# builds.
+-chmod -w .
+-save_CFLAGS=&quot;$CFLAGS&quot;
+-CFLAGS=&quot;$CFLAGS -o out/conftest2.$ac_objext&quot;
+-compiler_c_o=no
+-if { (eval echo configure:4795: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;out/conftest.err; } &amp;&amp; test -s out/conftest2.$ac_objext; then
+-  # The compiler can only warn and ignore the option if not recognized
+-  # So say no if there are warnings
+-  if test -s out/conftest.err; then
+-    lt_cv_compiler_c_o=no
+-  else
+-    lt_cv_compiler_c_o=yes
+-  fi
+-else
+-  # Append any errors to the config.log.
+-  cat out/conftest.err 1&gt;&amp;5
+-  lt_cv_compiler_c_o=no
+-fi
+-CFLAGS=&quot;$save_CFLAGS&quot;
+-chmod u+w .
+-$rm conftest* out/*
+-rmdir out
+-cd ..
+-rmdir conftest
+-$rm -r conftest 2&gt;/dev/null
++  test -n &quot;$ac_ct_F77&quot; &amp;&amp; break
++done

++  F77=$ac_ct_F77
+ fi

+-compiler_c_o=$lt_cv_compiler_c_o
+-echo &quot;$as_me:$LINENO: result: $compiler_c_o&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$compiler_c_o&quot; &gt;&amp;6
+-
+-if test x&quot;$compiler_c_o&quot; = x&quot;yes&quot;; then
+-  # Check to see if we can write to a .lo
+-  echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.lo&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if $compiler supports -c -o file.lo... $ECHO_C&quot; &gt;&amp;6
+-  if test &quot;${lt_cv_compiler_o_lo+set}&quot; = set; then
++
++# Provide some information about the compiler.
++echo &quot;$as_me:5311:&quot; \
++     &quot;checking for Fortran 77 compiler version&quot; &gt;&amp;5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++rm -f a.out
++
++# If we don't use `.F' as extension, the preprocessor is not run on the
++# input file.  (Note that this only needs to work for GNU compilers.)
++ac_save_ext=$ac_ext
++ac_ext=F
++echo &quot;$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether we are using the GNU Fortran 77 compiler... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_f77_compiler_gnu+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-
+-  lt_cv_compiler_o_lo=no
+-  save_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -c -o conftest.lo&quot;
+-  save_objext=&quot;$ac_objext&quot;
+-  ac_objext=lo
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++      program main
++#ifndef __GNUC__
++       choke me
+ #endif
+-int
+-main ()
+-{
+-int some_variable = 0;
+-  ;
+-  return 0;
+-}
++
++      end
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-      # The compiler can only warn and ignore the option if not recognized
+-    # So say no if there are warnings
+-    if test -s conftest.err; then
+-      lt_cv_compiler_o_lo=no
+-    else
+-      lt_cv_compiler_o_lo=yes
+-    fi
+-
++  ac_compiler_gnu=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  ac_objext=&quot;$save_objext&quot;
+-  CFLAGS=&quot;$save_CFLAGS&quot;
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_compiler_gnu=no
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_cv_f77_compiler_gnu=$ac_compiler_gnu

+-  compiler_o_lo=$lt_cv_compiler_o_lo
+-  echo &quot;$as_me:$LINENO: result: $compiler_o_lo&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$compiler_o_lo&quot; &gt;&amp;6
+-else
+-  compiler_o_lo=no
+ fi
+-
+-# Check to see if we can do hard links to lock some files if needed
+-hard_links=&quot;nottested&quot;
+-if test &quot;$compiler_c_o&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
+-  # do not overwrite the value of need_locks provided by the user
+-  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
+-  hard_links=yes
+-  $rm conftest*
+-  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+-  touch conftest.a
+-  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
+-  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
+-  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
+-  if test &quot;$hard_links&quot; = no; then
+-    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
+-    need_locks=warn
+-  fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_f77_compiler_gnu&quot; &gt;&amp;6
++ac_ext=$ac_save_ext
++ac_test_FFLAGS=${FFLAGS+set}
++ac_save_FFLAGS=$FFLAGS
++FFLAGS=
++echo &quot;$as_me:$LINENO: checking whether $F77 accepts -g&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether $F77 accepts -g... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_f77_g+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  need_locks=no
+-fi
+-
+-if test &quot;$GCC&quot; = yes; then
+-  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
+-  echo &quot;$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C&quot; &gt;&amp;6
+-  echo &quot;int some_variable = 0;&quot; &gt; conftest.$ac_ext
+-  save_CFLAGS=&quot;$CFLAGS&quot;
+-  CFLAGS=&quot;$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext&quot;
+-  compiler_rtti_exceptions=no
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  FFLAGS=-g
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++      program main

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-int some_variable = 0;
+-  ;
+-  return 0;
+-}
++      end
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-      # The compiler can only warn and ignore the option if not recognized
+-    # So say no if there are warnings
+-    if test -s conftest.err; then
+-      compiler_rtti_exceptions=no
+-    else
+-      compiler_rtti_exceptions=yes
+-    fi
+-
++  ac_cv_prog_f77_g=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_prog_f77_g=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  CFLAGS=&quot;$save_CFLAGS&quot;
+-  echo &quot;$as_me:$LINENO: result: $compiler_rtti_exceptions&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$compiler_rtti_exceptions&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

+-  if test &quot;$compiler_rtti_exceptions&quot; = &quot;yes&quot;; then
+-    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_prog_f77_g&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_prog_f77_g&quot; &gt;&amp;6
++if test &quot;$ac_test_FFLAGS&quot; = set; then
++  FFLAGS=$ac_save_FFLAGS
++elif test $ac_cv_prog_f77_g = yes; then
++  if test &quot;x$ac_cv_f77_compiler_gnu&quot; = xyes; then
++    FFLAGS=&quot;-g -O2&quot;
++  else
++    FFLAGS=&quot;-g&quot;
++  fi
++else
++  if test &quot;x$ac_cv_f77_compiler_gnu&quot; = xyes; then
++    FFLAGS=&quot;-O2&quot;
+   else
+-    no_builtin_flag=' -fno-builtin'
++    FFLAGS=
+   fi
+ fi

+-# See if the linker supports building shared libraries.
+-echo &quot;$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether the linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++G77=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu

+-allow_undefined_flag=
+-no_undefined_flag=
+-need_lib_prefix=unknown
+-need_version=unknown
+-# when you set need_version to no, make sure it does not cause -set_version
+-# flags to be left without arguments
+-archive_cmds=
+-archive_expsym_cmds=
+-old_archive_from_new_cmds=
+-old_archive_from_expsyms_cmds=
+-export_dynamic_flag_spec=
+-whole_archive_flag_spec=
+-thread_safe_flag_spec=
+-hardcode_into_libs=no
+-hardcode_libdir_flag_spec=
+-hardcode_libdir_separator=
+-hardcode_direct=no
+-hardcode_minus_L=no
+-hardcode_shlibpath_var=unsupported
+-runpath_var=
+-link_all_deplibs=unknown
+-always_export_symbols=no
+-export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
+-# include_expsyms should be a list of space-separated symbols to be *always*
+-# included in the symbol list
+-include_expsyms=
+-# exclude_expsyms can be an egrep regular expression of symbols to exclude
+-# it will be wrapped by ` (' and `)$', so one must not match beginning or
+-# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+-# as well as any symbol that contains `d'.
+-exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
+-# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+-# platforms (ab)use it in PIC code, but their linkers get confused if
+-# the symbol is explicitly referenced.  Since portable code cannot
+-# rely on this symbol name, it's probably fine to never include it in
+-# preloaded symbol tables.
+-extract_expsyms_cmds=

+-case $host_os in
+-cygwin* | mingw* | pw32*)
+-  # FIXME: the MSVC++ port hasn't been tested in a loooong time
+-  # When not using gcc, we currently assume that we are using
+-  # Microsoft Visual C++.
+-  if test &quot;$GCC&quot; != yes; then
+-    with_gnu_ld=no
+-  fi
+-  ;;
+-openbsd*)
+-  with_gnu_ld=no
+-  ;;
+-esac
+-
+-ld_shlibs=yes
+-if test &quot;$with_gnu_ld&quot; = yes; then
+-  # If archive_cmds runs LD, not CC, wlarc should be empty
+-  wlarc='${wl}'

+-  # See if GNU ld supports shared libraries.
+-  case $host_os in
+-  aix3* | aix4* | aix5*)
+-    # On AIX, the GNU linker is very broken
+-    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
+-    ld_shlibs=no
+-    cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+-*** to be unable to reliably create shared libraries on AIX.
+-*** Therefore, libtool is disabling shared libraries support.  If you
+-*** really care for shared libraries, you may want to modify your PATH
+-*** so that a non-GNU linker is found, and then restart.
++# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!

+-EOF
++# find the maximum length of command line arguments
++echo &quot;$as_me:$LINENO: checking the maximum length of command line arguments&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking the maximum length of command line arguments... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_sys_max_cmd_len+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++    i=0
++  teststring=&quot;ABCD&quot;
++
++  case $build_os in
++  msdosdjgpp*)
++    # On DJGPP, this test can blow up pretty badly due to problems in libc
++    # (any single argument exceeding 2000 bytes causes a buffer overrun
++    # during glob expansion).  Even if it were fixed, the result of this
++    # check would be larger than it should be.
++    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
+     ;;

+-  amigaos*)
+-    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-
+-    # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
+-    # that the semantics of dynamic libraries on AmigaOS, at least up
+-    # to version 4, is to share data among multiple programs linked
+-    # with the same dynamic library.  Since this doesn't match the
+-    # behavior of shared libraries on other platforms, we can use
+-    # them.
+-    ld_shlibs=no
++  gnu*)
++    # Under GNU Hurd, this test is not required because there is
++    # no limit to the length of command line arguments.
++    # Libtool will interpret -1 as no limit whatsoever
++    lt_cv_sys_max_cmd_len=-1;
+     ;;

+-  beos*)
+-    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      allow_undefined_flag=unsupported
+-      # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
+-      # support --undefined.  This deserves some investigation.  FIXME
+-      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-    else
+-      ld_shlibs=no
+-    fi
++  cygwin* | mingw*)
++    # On Win9x/ME, this test blows up -- it succeeds, but takes
++    # about 5 minutes as the teststring grows exponentially.
++    # Worse, since 9x/ME are not pre-emptively multitasking,
++    # you end up with a &quot;frozen&quot; computer, even though with patience
++    # the test eventually succeeds (with a max line length of 256k).
++    # Instead, let's just punt: use the minimum linelength reported by
++    # all of the supported platforms: 8192 (on NT/2K/XP).
++    lt_cv_sys_max_cmd_len=8192;
+     ;;

+-  cygwin* | mingw* | pw32*)
+-    # hardcode_libdir_flag_spec is actually meaningless, as there is
+-    # no search path for DLLs.
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    allow_undefined_flag=unsupported
+-    always_export_symbols=yes
+-
+-    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
+-      sed -e &quot;/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }&quot; -e d &lt; $''0 &gt; $output_objdir/impgen.c~
+-      test -f $output_objdir/impgen.exe || (cd $output_objdir &amp;&amp; \
+-      if test &quot;x$HOST_CC&quot; != &quot;x&quot; ; then $HOST_CC -o impgen impgen.c ; \
+-      else $CC -o impgen impgen.c ; fi)~
+-      $output_objdir/impgen $dir/$soroot &gt; $output_objdir/$soname-def'
+-
+-    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
+-
+-    # cygwin and mingw dlls have different entry points and sets of symbols
+-    # to exclude.
+-    # FIXME: what about values for MSVC?
+-    dll_entry=__cygwin_dll_entry@12
+-    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
+-    case $host_os in
+-    mingw*)
+-      # mingw values
+-      dll_entry=_DllMainCRTStartup@12
+-      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
+-      ;;
+-    esac
+-
+-    # mingw and cygwin differ, and it's simplest to just exclude the union
+-    # of the two symbol sets.
+-    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
+-
+-    # recent cygwin and mingw systems supply a stub DllMain which the user
+-    # can override, but on older systems we have to supply one (in ltdll.c)
+-    if test &quot;x$lt_cv_need_dllmain&quot; = &quot;xyes&quot;; then
+-      ltdll_obj='$output_objdir/$soname-ltdll.'&quot;$ac_objext &quot;
+-      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $''0 &gt; $output_objdir/$soname-ltdll.c~
+-        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir &amp;&amp; $CC -c $soname-ltdll.c)~'
+-    else
+-      ltdll_obj=
+-      ltdll_cmds=
+-    fi
+-
+-    # Extract the symbol export list from an `--export-all' def file,
+-    # then regenerate the def file from the symbol export list, so that
+-    # the compiled dll only exports the symbol export list.
+-    # Be careful not to strip the DATA tag left be newer dlltools.
+-    export_symbols_cmds=&quot;$ltdll_cmds&quot;'
+-      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
+-      sed -e &quot;1,/EXPORTS/d&quot; -e &quot;s/ @ [0-9]*//&quot; -e &quot;s/ *;.*$//&quot; &lt; $output_objdir/$soname-def &gt; $export_symbols'
+-
+-    # If the export-symbols file already is a .def file (1st line
+-    # is EXPORTS), use it as is.
+-    # If DATA tags from a recent dlltool are present, honour them!
+-    archive_expsym_cmds='if test &quot;x`head -1 $export_symbols`&quot; = xEXPORTS; then
+-        cp $export_symbols $output_objdir/$soname-def;
+-      else
+-        echo EXPORTS &gt; $output_objdir/$soname-def;
+-        _lt_hint=1;
+-        cat $export_symbols | while read symbol; do
+-         set dummy \$symbol;
+-         case \$# in
+-           2) echo &quot;   \$2 @ \$_lt_hint ; &quot; &gt;&gt; $output_objdir/$soname-def;;
+-           *) echo &quot;     \$2 @ \$_lt_hint \$3 ; &quot; &gt;&gt; $output_objdir/$soname-def;;
+-         esac;
+-         _lt_hint=`expr 1 + \$_lt_hint`;
+-        done;
+-      fi~
+-      '&quot;$ltdll_cmds&quot;'
+-      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
+-      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
+-      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
++  amigaos*)
++    # On AmigaOS with pdksh, this test takes hours, literally.
++    # So we just punt and use a minimum line length of 8192.
++    lt_cv_sys_max_cmd_len=8192;
+     ;;

+-  netbsd*)
+-    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+-      wlarc=
++  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
++    # This has been around since 386BSD, at least.  Likely further.
++    if test -x /sbin/sysctl; then
++      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
++    elif test -x /usr/sbin/sysctl; then
++      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+     else
+-      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      lt_cv_sys_max_cmd_len=65536        # usable default for all BSDs
+     fi
++    # And add a safety zone
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+     ;;
+-
+-  solaris* | sysv5*)
+-    if $LD -v 2&gt;&amp;1 | egrep 'BFD 2\.8' &gt; /dev/null; then
+-      ld_shlibs=no
+-      cat &lt;&lt;EOF 1&gt;&amp;2
+-
+-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+-*** create shared libraries on Solaris systems.  Therefore, libtool
+-*** is disabling shared libraries support.  We urge you to upgrade GNU
+-*** binutils to release 2.9.1 or newer.  Another option is to modify
+-*** your PATH or compiler configuration so that the native linker is
+-*** used, and then restart.
+-
+-EOF
+-    elif $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+-    else
+-      ld_shlibs=no
++  osf*)
++    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
++    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
++    # nice to cause kernel panics so lets avoid the loop below.
++    # First set a reasonable default.
++    lt_cv_sys_max_cmd_len=16384
++    #
++    if test -x /sbin/sysconfig; then
++      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
++        *1*) lt_cv_sys_max_cmd_len=-1 ;;
++      esac
+     fi
+     ;;
+-
+-  sunos4*)
+-    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-    wlarc=
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+   *)
+-    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+-    else
+-      ld_shlibs=no
+-    fi
++    # If test is not a shell built-in, we'll probably end up computing a
++    # maximum length that is only half of the actual maximum length, but
++    # we can't tell.
++    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
++    while (test &quot;X&quot;`$SHELL $0 --fallback-echo &quot;X$teststring&quot; 2&gt;/dev/null` \
++               = &quot;XX$teststring&quot;) &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++            new_result=`expr &quot;X$teststring&quot; : &quot;.*&quot; 2&gt;&amp;1` &amp;&amp;
++            lt_cv_sys_max_cmd_len=$new_result &amp;&amp;
++            test $i != 17 # 1/2 MB should be enough
++    do
++      i=`expr $i + 1`
++      teststring=$teststring$teststring
++    done
++    teststring=
++    # Add a significant safety factor because C++ compilers can tack on massive
++    # amounts of additional arguments before passing them to the linker.
++    # It appears as though 1/2 is a usable value.
++    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+     ;;
+   esac

+-  if test &quot;$ld_shlibs&quot; = yes; then
+-    runpath_var=LD_RUN_PATH
+-    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+-    export_dynamic_flag_spec='${wl}--export-dynamic'
+-    case $host_os in
+-    cygwin* | mingw* | pw32*)
+-      # dlltool doesn't understand --whole-archive et. al.
+-      whole_archive_flag_spec=
+-      ;;
+-    *)
+-      # ancient GNU ld didn't support --whole-archive et. al.
+-      if $LD --help 2&gt;&amp;1 | egrep 'no-whole-archive' &gt; /dev/null; then
+-        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
+-      else
+-        whole_archive_flag_spec=
+-      fi
+-      ;;
+-    esac
+-  fi
+-else
+-  # PORTME fill in a description of your system's linker (not GNU ld)
+-  case $host_os in
+-  aix3*)
+-    allow_undefined_flag=unsupported
+-    always_export_symbols=yes
+-    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+-    # Note: this linker hardcodes the directories in LIBPATH if there
+-    # are no directories specified by -L.
+-    hardcode_minus_L=yes
+-    if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
+-      # Neither direct hardcoding nor static linking is supported with a
+-      # broken collect2.
+-      hardcode_direct=unsupported
+-    fi
+-    ;;
+-
+-  aix4* | aix5*)
+-    if test &quot;$host_cpu&quot; = ia64; then
+-      # On IA64, the linker does run time linking by default, so we don't
+-      # have to do anything special.
+-      aix_use_runtimelinking=no
+-      exp_sym_flag='-Bexport'
+-      no_entry_flag=&quot;&quot;
+-    else
+-      aix_use_runtimelinking=no
+-
+-      # Test if we are trying to use run time linking or normal
+-      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+-      # need to do runtime linking.
+-      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+-        for ld_flag in $LDFLAGS; do
+-          if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
+-            aix_use_runtimelinking=yes
+-            break
+-          fi
+-        done
+-      esac
++fi

+-      exp_sym_flag='-bexport'
+-      no_entry_flag='-bnoentry'
+-    fi
++if test -n $lt_cv_sys_max_cmd_len ; then
++  echo &quot;$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_sys_max_cmd_len&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: none&quot; &gt;&amp;5
++echo &quot;${ECHO_T}none&quot; &gt;&amp;6
++fi

+-    # When large executables or shared objects are built, AIX ld can
+-    # have problems creating the table of contents.  If linking a library
+-    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
+-    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+-    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

+-    hardcode_direct=yes
+-    archive_cmds=''
+-    hardcode_libdir_separator=':'
+-    if test &quot;$GCC&quot; = yes; then
+-      case $host_os in aix4.[012]|aix4.[012].*)
+-        collect2name=`${CC} -print-prog-name=collect2`
+-        if test -f &quot;$collect2name&quot; &amp;&amp; \
+-          strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
+-        then
+-          # We have reworked collect2
+-          hardcode_direct=yes
+-        else
+-          # We have old collect2
+-          hardcode_direct=unsupported
+-          # It fails to find uninstalled libraries when the uninstalled
+-          # path is not listed in the libpath.  Setting hardcode_minus_L
+-          # to unsupported forces relinking
+-          hardcode_minus_L=yes
+-          hardcode_libdir_flag_spec='-L$libdir'
+-          hardcode_libdir_separator=
+-        fi
+-      esac

+-      shared_flag='-shared'
+-    else
+-      # not using gcc
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        shared_flag='${wl}-G'
+-      else
+-        if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-          shared_flag='${wl}-G'
+-        else
+-          shared_flag='${wl}-bM:SRE'
+-        fi
+-      fi
+-    fi

+-    # It seems that -bexpall can do strange things, so it is better to
+-    # generate a list of symbols to export.
+-    always_export_symbols=yes
+-    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-      # Warning - without using the other runtime loading flags (-brtl),
+-      # -berok will link without error, but may produce a broken library.
+-      allow_undefined_flag='-berok'
+-      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
+-      archive_expsym_cmds=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
+-    else
+-      if test &quot;$host_cpu&quot; = ia64; then
+-        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+-        allow_undefined_flag=&quot;-z nodefs&quot;
+-        archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
+-      else
+-        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
+-        # Warning - without using the other run time loading flags,
+-        # -berok will link without error, but may produce a broken library.
+-        allow_undefined_flag='${wl}-berok'
+-        # This is a bit strange, but is similar to how AIX traditionally builds
+-        # it's shared libraries.
+-        archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
+-      fi
+-    fi
+-    ;;
++# Check for command to grab the raw symbol name followed by C symbol from nm.
++echo &quot;$as_me:$LINENO: checking command to parse $NM output from $compiler object&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking command to parse $NM output from $compiler object... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_sys_global_symbol_pipe+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else

+-  amigaos*)
+-    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-    # see comment about different semantics on the GNU ld section
+-    ld_shlibs=no
+-    ;;
++# These are sane defaults that work on at least a few old systems.
++# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

+-  cygwin* | mingw* | pw32*)
+-    # When not using gcc, we currently assume that we are using
+-    # Microsoft Visual C++.
+-    # hardcode_libdir_flag_spec is actually meaningless, as there is
+-    # no search path for DLLs.
+-    hardcode_libdir_flag_spec=' '
+-    allow_undefined_flag=unsupported
+-    # Tell ltmain to make .lib files, not .a files.
+-    libext=lib
+-    # FIXME: Setting linknames here is a bad hack.
+-    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+-    # The linker will automatically build a .lib file if we build a DLL.
+-    old_archive_from_new_cmds='true'
+-    # FIXME: Should let the user specify the lib program.
+-    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+-    fix_srcfile_path='`cygpath -w &quot;$srcfile&quot;`'
+-    ;;
+-
+-  darwin* | rhapsody*)
+-    case &quot;$host_os&quot; in
+-    rhapsody* | darwin1.[012])
+-      allow_undefined_flag='-undefined suppress'
+-      ;;
+-    *) # Darwin 1.3 on
+-      allow_undefined_flag='-flat_namespace -undefined suppress'
+-      ;;
+-    esac
+-    # FIXME: Relying on posixy $() will cause problems for
+-    #        cross-compilation, but unfortunately the echo tests do not
+-    #        yet detect zsh echo's removal of \ escapes.
+-    archive_cmds='$nonopt $(test &quot;x$module&quot; = xyes &amp;&amp; echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
+-    # We need to add '_' to the symbols in $export_symbols first
+-    #archive_expsym_cmds=&quot;$archive_cmds&quot;' &amp;&amp; strip -s $export_symbols'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    whole_archive_flag_spec='-all_load $convenience'
+-    ;;
+-
+-  freebsd1*)
+-    ld_shlibs=no
+-    ;;
+-
+-  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+-  # support.  Future versions do this automatically, but an explicit c++rt0.o
+-  # does not break anything, and helps significantly (at the cost of a little
+-  # extra space).
+-  freebsd2.2*)
+-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
++# Character class describing NM global symbol codes.
++symcode='[BCDEGRST]'

+-  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-  freebsd2*)
+-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    hardcode_shlibpath_var=no
+-    ;;
++# Regexp to match symbols that can be accessed directly from C.
++sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

+-  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+-  freebsd*)
+-    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
++# Transform an extracted symbol line into a proper C declaration
++lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'&quot;

+-  hpux9* | hpux10* | hpux11*)
+-    case $host_os in
+-    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
+-    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
+-    esac
+-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes # Not in the search PATH, but as the default
+-                         # location of the library.
+-    export_dynamic_flag_spec='${wl}-E'
+-    ;;
++# Transform an extracted symbol line into symbol name and symbol address
++lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;

+-  irix5* | irix6*)
+-    if test &quot;$GCC&quot; = yes; then
+-      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-    else
+-      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-    fi
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    link_all_deplibs=yes
+-    ;;
++# Define system-specific variables.
++case $host_os in
++aix*)
++  symcode='[BCDT]'
++  ;;
++cygwin* | mingw* | pw32*)
++  symcode='[ABCDGISTW]'
++  ;;
++hpux*) # Its linker distinguishes data from code symbols
++  if test &quot;$host_cpu&quot; = ia64; then
++    symcode='[ABCDEGRST]'
++  fi
++  lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
++  lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
++  ;;
++linux*)
++  if test &quot;$host_cpu&quot; = ia64; then
++    symcode='[ABCDGIRSTW]'
++    lt_cv_sys_global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'&quot;
++    lt_cv_sys_global_symbol_to_c_name_address=&quot;sed -n -e 's/^: \([^ ]*\) $/  {\\\&quot;\1\\\&quot;, (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\&quot;\2\&quot;, (lt_ptr) \&amp;\2},/p'&quot;
++  fi
++  ;;
++irix* | nonstopux*)
++  symcode='[BCDEGRST]'
++  ;;
++osf*)
++  symcode='[BCDEGQRST]'
++  ;;
++solaris* | sysv5*)
++  symcode='[BDRT]'
++  ;;
++sysv4)
++  symcode='[DFNSTU]'
++  ;;
++esac

+-  netbsd*)
+-    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+-    else
+-      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+-    fi
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    ;;
++# Handle CRLF in mingw tool chain
++opt_cr=
++case $build_os in
++mingw*)
++  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
++  ;;
++esac

+-  newsos6)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    hardcode_shlibpath_var=no
+-    ;;
++# If we're using GNU nm, then use its standard symbol codes.
++case `$NM -V 2&gt;&amp;1` in
++*GNU* | *'with BFD'*)
++  symcode='[ABCDGIRSTW]' ;;
++esac

+-  openbsd*)
+-    hardcode_direct=yes
+-    hardcode_shlibpath_var=no
+-    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+-      export_dynamic_flag_spec='${wl}-E'
+-    else
+-      case &quot;$host_os&quot; in
+-      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+-        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+-        hardcode_libdir_flag_spec='-R$libdir'
+-        ;;
+-      *)
+-        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
+-        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+-        ;;
+-      esac
+-    fi
+-    ;;
++# Try without a prefix undercore, then with it.
++for ac_symprfx in &quot;&quot; &quot;_&quot;; do

+-  os2*)
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_minus_L=yes
+-    allow_undefined_flag=unsupported
+-    archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+-    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+-    ;;
++  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
++  symxfrm=&quot;\\1 $ac_symprfx\\2 \\2&quot;

+-  osf3*)
+-    if test &quot;$GCC&quot; = yes; then
+-      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+-      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-    else
+-      allow_undefined_flag=' -expect_unresolved \*'
+-      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-    fi
+-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    hardcode_libdir_separator=:
+-    ;;
++  # Write the raw and C identifiers.
++  lt_cv_sys_global_symbol_pipe=&quot;sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][         ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'&quot;

+-  osf4* | osf5*)        # as osf3* with the addition of -msym flag
+-    if test &quot;$GCC&quot; = yes; then
+-      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+-      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+-      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+-    else
+-      allow_undefined_flag=' -expect_unresolved \*'
+-      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+-      archive_expsym_cmds='for i in `cat $export_symbols`; do printf &quot;-exported_symbol &quot; &gt;&gt; $lib.exp; echo &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
+-      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
++  # Check to see that the pipe works correctly.
++  pipe_works=no

+-      #Both c and cxx compiler support -rpath directly
+-      hardcode_libdir_flag_spec='-rpath $libdir'
+-    fi
+-    hardcode_libdir_separator=:
+-    ;;
++  rm -f conftest*
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#ifdef __cplusplus
++extern &quot;C&quot; {
++#endif
++char nm_test_var;
++void nm_test_func(){}
++#ifdef __cplusplus
++}
++#endif
++int main(){nm_test_var='a';nm_test_func();return(0);}
++EOF

+-  sco3.2v5*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_shlibpath_var=no
+-    runpath_var=LD_RUN_PATH
+-    hardcode_runpath_var=yes
+-    export_dynamic_flag_spec='${wl}-Bexport'
+-    ;;
+-
+-  solaris*)
+-    # gcc --version &lt; 3.0 without binutils cannot create self contained
+-    # shared libraries reliably, requiring libgcc.a to resolve some of
+-    # the object symbols generated in some cases.  Libraries that use
+-    # assert need libgcc.a to resolve __eprintf, for example.  Linking
+-    # a copy of libgcc.a into every shared library to guarantee resolving
+-    # such symbols causes other problems:  According to Tim Van Holder
+-    # &lt;tim.van.holder@pandora.be&gt;, C++ libraries end up with a separate
+-    # (to the application) exception stack for one thing.
+-    no_undefined_flag=' -z defs'
+-    if test &quot;$GCC&quot; = yes; then
+-      case `$CC --version 2&gt;/dev/null` in
+-      [12].*)
+-        cat &lt;&lt;EOF 1&gt;&amp;2
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; then
++    # Now try to grab the symbols.
++    nlist=conftest.nm
++    if { (eval echo &quot;$as_me:$LINENO: \&quot;$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist\&quot;&quot;) &gt;&amp;5
++  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \&gt; $nlist) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s &quot;$nlist&quot;; then
++      # Try sorting and uniquifying the output.
++      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
++        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
++      else
++        rm -f &quot;$nlist&quot;T
++      fi

+-*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
+-*** create self contained shared libraries on Solaris systems, without
+-*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
+-*** -no-undefined support, which will at least allow you to build shared
+-*** libraries.  However, you may find that when you link such libraries
+-*** into an application without using GCC, you have to manually add
+-*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
+-*** upgrade to a newer version of GCC.  Another option is to rebuild your
+-*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
++      # Make sure that we snagged all the symbols we need.
++      if grep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
++        if grep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
++          cat &lt;&lt;EOF &gt; conftest.$ac_ext
++#ifdef __cplusplus
++extern &quot;C&quot; {
++#endif

+ EOF
+-        no_undefined_flag=
+-        ;
+-      esac
+-    fi
+-    # $CC -shared without GNU ld will not create a library from C++
+-    # object files and a static libstdc++, better avoid it by now
+-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+-                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+-    hardcode_libdir_flag_spec='-R$libdir'
+-    hardcode_shlibpath_var=no
+-    case $host_os in
+-    solaris2.[0-5] | solaris2.[0-5].*) ;;
+-    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+-      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+-    esac
+-    link_all_deplibs=yes
+-    ;;
+-
+-  sunos4*)
+-    if test &quot;x$host_vendor&quot; = xsequent; then
+-      # Use $CC to link under sequent, because it throws in some extra .o
+-      # files that make .init and .fini sections work.
+-      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+-    else
+-      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+-    fi
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  sysv4)
+-    if test &quot;x$host_vendor&quot; = xsno; then
+-      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_direct=yes # is this really true???
+-    else
+-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+-    fi
+-    runpath_var='LD_RUN_PATH'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  sysv4.3*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_shlibpath_var=no
+-    export_dynamic_flag_spec='-Bexport'
+-    ;;
+-
+-  sysv5*)
+-    no_undefined_flag=' -z text'
+-    # $CC -shared without GNU ld will not create a library from C++
+-    # object files and a static libstdc++, better avoid it by now
+-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
+-                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+-    hardcode_libdir_flag_spec=
+-    hardcode_shlibpath_var=no
+-    runpath_var='LD_RUN_PATH'
+-    ;;
+-
+-  uts4*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  dgux*)
+-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_shlibpath_var=no
+-    ;;
++          # Now generate the symbol file.
++          eval &quot;$lt_cv_sys_global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext'

+-  sysv4*MP*)
+-    if test -d /usr/nec; then
+-      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+-      hardcode_shlibpath_var=no
+-      runpath_var=LD_RUN_PATH
+-      hardcode_runpath_var=yes
+-      ld_shlibs=yes
+-    fi
+-    ;;
++          cat &lt;&lt;EOF &gt;&gt; conftest.$ac_ext
++#if defined (__STDC__) &amp;&amp; __STDC__
++# define lt_ptr_t void *
++#else
++# define lt_ptr_t char *
++# define const
++#endif

+-  sysv4.2uw2*)
+-    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+-    hardcode_direct=yes
+-    hardcode_minus_L=no
+-    hardcode_shlibpath_var=no
+-    hardcode_runpath_var=yes
+-    runpath_var=LD_RUN_PATH
+-    ;;
++/* The mapping between symbol names and symbols. */
++const struct {
++  const char *name;
++  lt_ptr_t address;
++}
++lt_preloaded_symbols[] =
++{
++EOF
++          $SED &quot;s/^$symcode$symcode* \(.*\) \(.*\)$/  {\&quot;\2\&quot;, (lt_ptr_t) \&amp;\2},/&quot; &lt; &quot;$nlist&quot; | grep -v main &gt;&gt; conftest.$ac_ext
++          cat &lt;&lt;\EOF &gt;&gt; conftest.$ac_ext
++  {0, (lt_ptr_t) 0}
++};

+-  sysv5uw7* | unixware7*)
+-    no_undefined_flag='${wl}-z ${wl}text'
+-    if test &quot;$GCC&quot; = yes; then
+-      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++#ifdef __cplusplus
++}
++#endif
++EOF
++          # Now try linking the two files.
++          mv conftest.$ac_objext conftstm.$ac_objext
++          lt_save_LIBS=&quot;$LIBS&quot;
++          lt_save_CFLAGS=&quot;$CFLAGS&quot;
++          LIBS=&quot;conftstm.$ac_objext&quot;
++          CFLAGS=&quot;$CFLAGS$lt_prog_compiler_no_builtin_flag&quot;
++          if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext}; then
++            pipe_works=yes
++          fi
++          LIBS=&quot;$lt_save_LIBS&quot;
++          CFLAGS=&quot;$lt_save_CFLAGS&quot;
++        else
++          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
++        fi
++      else
++        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
++      fi
+     else
+-      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      echo &quot;cannot run $lt_cv_sys_global_symbol_pipe&quot; &gt;&amp;5
+     fi
+-    runpath_var='LD_RUN_PATH'
+-    hardcode_shlibpath_var=no
+-    ;;
+-
+-  *)
+-    ld_shlibs=no
+-    ;;
+-  esac
+-fi
+-echo &quot;$as_me:$LINENO: result: $ld_shlibs&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ld_shlibs&quot; &gt;&amp;6
+-test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no
+-
+-# Check hardcoding attributes.
+-echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
+-hardcode_action=
+-if test -n &quot;$hardcode_libdir_flag_spec&quot; || \
+-   test -n &quot;$runpath_var&quot;; then
++  else
++    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++    cat conftest.$ac_ext &gt;&amp;5
++  fi
++  rm -f conftest* conftst*

+-  # We can hardcode non-existant directories.
+-  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
+-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+-     # have to relink, otherwise we might link with an installed library
+-     # when we should be linking with a yet-to-be-installed one
+-     ## test &quot;$hardcode_shlibpath_var&quot; != no &amp;&amp;
+-     test &quot;$hardcode_minus_L&quot; != no; then
+-    # Linking always hardcodes the temporary library directory.
+-    hardcode_action=relink
++  # Do not use the global_symbol_pipe unless it works.
++  if test &quot;$pipe_works&quot; = yes; then
++    break
+   else
+-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+-    hardcode_action=immediate
++    lt_cv_sys_global_symbol_pipe=
+   fi
++done
++
++fi
++
++if test -z &quot;$lt_cv_sys_global_symbol_pipe&quot;; then
++  lt_cv_sys_global_symbol_to_cdecl=
++fi
++if test -z &quot;$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl&quot;; then
++  echo &quot;$as_me:$LINENO: result: failed&quot; &gt;&amp;5
++echo &quot;${ECHO_T}failed&quot; &gt;&amp;6
+ else
+-  # We cannot hardcode anything, or else we can only hardcode existing
+-  # directories.
+-  hardcode_action=unsupported
++  echo &quot;$as_me:$LINENO: result: ok&quot; &gt;&amp;5
++echo &quot;${ECHO_T}ok&quot; &gt;&amp;6
+ fi
+-echo &quot;$as_me:$LINENO: result: $hardcode_action&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$hardcode_action&quot; &gt;&amp;6

+-striplib=
+-old_striplib=
+-echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
+-if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
+-  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
+-  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
+-  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: checking for objdir&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for objdir... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_objdir+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  rm -f .libs 2&gt;/dev/null
++mkdir .libs 2&gt;/dev/null
++if test -d .libs; then
++  lt_cv_objdir=.libs
++else
++  # MS-DOS does not allow filenames that begin with a dot.
++  lt_cv_objdir=_libs
+ fi
++rmdir .libs 2&gt;/dev/null
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_objdir&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_objdir&quot; &gt;&amp;6
++objdir=$lt_cv_objdir

+-reload_cmds='$LD$reload_flag -o $output$reload_objs'
+-test -z &quot;$deplibs_check_method&quot; &amp;&amp; deplibs_check_method=unknown

+-# PORTME Fill in your ld.so characteristics
+-echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
+-library_names_spec=
+-libname_spec='lib$name'
+-soname_spec=
+-postinstall_cmds=
+-postuninstall_cmds=
+-finish_cmds=
+-finish_eval=
+-shlibpath_var=
+-shlibpath_overrides_runpath=unknown
+-version_type=none
+-dynamic_linker=&quot;$host_os ld.so&quot;
+-sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
+-sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;

+-case $host_os in
+-aix3*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix $libname.a'
+-  shlibpath_var=LIBPATH

+-  # AIX has no versioning support, so we append a major version to the name.
+-  soname_spec='${libname}${release}.so$major'
+-  ;;

+-aix4* | aix5*)
+-  version_type=linux
+-  if test &quot;$host_cpu&quot; = ia64; then
+-    # AIX 5 supports IA64
+-    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
+-    shlibpath_var=LD_LIBRARY_PATH
+-  else
+-    # With GCC up to 2.95.x, collect2 would create an import file
+-    # for dependence libraries.  The import file would start with
+-    # the line `#! .'.  This would cause the generated library to
+-    # depend on `.', always an invalid library.  This was fixed in
+-    # development snapshots of GCC prior to 3.0.
+-    case $host_os in
+-      aix4 | aix4.[01] | aix4.[01].*)
+-        if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
+-             echo ' yes '
+-             echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
+-          :
+-        else
+-          can_build_shared=no
+-        fi
+-        ;
+-    esac
+-    # AIX (on Power*) has no versioning support, so currently we can
+-    # not hardcode correct soname into executable. Probably we can
+-    # add versioning support to collect2, so additional links can
+-    # be useful in future.
+-    if test &quot;$aix_use_runtimelinking&quot; = yes; then
+-      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
+-      # instead of lib&lt;name&gt;.a to let people know that these are not
+-      # typical AIX shared libraries.
+-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-    else
+-      # We preserve .a as extension for shared libraries through AIX4.2
+-      # and later when we are not doing run time linking.
+-      library_names_spec='${libname}${release}.a $libname.a'
+-      soname_spec='${libname}${release}.so$major'
+-    fi
+-    shlibpath_var=LIBPATH
++case $host_os in
++aix3*)
++  # AIX sometimes has problems with the GCC collect2 program.  For some
++  # reason, if we set the COLLECT_NAMES environment variable, the problems
++  # vanish in a puff of smoke.
++  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
++    COLLECT_NAMES=
++    export COLLECT_NAMES
+   fi
+   ;;
++esac

+-amigaos*)
+-  library_names_spec='$libname.ixlibrary $libname.a'
+-  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+-  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;(cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a)&quot;; (cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+-  ;;
++# Sed substitution that helps us do robust quoting.  It backslashifies
++# metacharacters that are still active within double-quoted strings.
++Xsed='sed -e 1s/^X//'
++sed_quote_subst='s/\([\\&quot;\\`$\\\\]\)/\\\1/g'

+-beos*)
+-  library_names_spec='${libname}.so'
+-  dynamic_linker=&quot;$host_os ld.so&quot;
+-  shlibpath_var=LIBRARY_PATH
+-  ;;
++# Same as above, but do not quote variable references.
++double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g'

+-bsdi4*)
+-  version_type=linux
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
+-  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
+-  export_dynamic_flag_spec=-rdynamic
+-  # the default ld.so.conf also contains /usr/contrib/lib and
+-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+-  # libtool to hard-code these into programs
+-  ;;
++# Sed substitution to delay expansion of an escaped shell variable in a
++# double_quote_subst'ed string.
++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

+-cygwin* | mingw* | pw32*)
+-  version_type=windows
+-  need_version=no
+-  need_lib_prefix=no
+-  case $GCC,$host_os in
+-  yes,cygwin*)
+-    library_names_spec='$libname.dll.a'
+-    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+-    postinstall_cmds='dlpath=`bash 2&gt;&amp;1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+-      dldir=$destdir/`dirname \$dlpath`~
+-      test -d \$dldir || mkdir -p \$dldir~
+-      $install_prog .libs/$dlname \$dldir/$dlname'
+-    postuninstall_cmds='dldll=`bash 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
+-      dlpath=$dir/\$dldll~
+-       $rm \$dlpath'
+-    ;;
+-  yes,mingw*)
+-    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+-    sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s/;/ /g&quot;`
++# Sed substitution to avoid accidental globbing in evaled expressions
++no_glob_subst='s/\*/\\\*/g'
++
++# Constants:
++rm=&quot;rm -f&quot;
++
++# Global variables:
++default_ofile=libtool
++can_build_shared=yes
++
++# All known linkers require a `.a' archive for static linking (except MSVC,
++# which needs '.lib').
++libext=a
++ltmain=&quot;$ac_aux_dir/ltmain.sh&quot;
++ofile=&quot;$default_ofile&quot;
++with_gnu_ld=&quot;$lt_cv_prog_gnu_ld&quot;
++
++if test -n &quot;$ac_tool_prefix&quot;; then
++  # Extract the first word of &quot;${ac_tool_prefix}ar&quot;, so it can be a program name with args.
++set dummy ${ac_tool_prefix}ar; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_AR+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$AR&quot;; then
++  ac_cv_prog_AR=&quot;$AR&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_AR=&quot;${ac_tool_prefix}ar&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++AR=$ac_cv_prog_AR
++if test -n &quot;$AR&quot;; then
++  echo &quot;$as_me:$LINENO: result: $AR&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$AR&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++fi
++if test -z &quot;$ac_cv_prog_AR&quot;; then
++  ac_ct_AR=$AR
++  # Extract the first word of &quot;ar&quot;, so it can be a program name with args.
++set dummy ar; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_AR+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$ac_ct_AR&quot;; then
++  ac_cv_prog_ac_ct_AR=&quot;$ac_ct_AR&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_AR=&quot;ar&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++  test -z &quot;$ac_cv_prog_ac_ct_AR&quot; &amp;&amp; ac_cv_prog_ac_ct_AR=&quot;false&quot;
++fi
++fi
++ac_ct_AR=$ac_cv_prog_ac_ct_AR
++if test -n &quot;$ac_ct_AR&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_AR&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_AR&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  AR=$ac_ct_AR
++else
++  AR=&quot;$ac_cv_prog_AR&quot;
++fi
++
++if test -n &quot;$ac_tool_prefix&quot;; then
++  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$RANLIB&quot;; then
++  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++RANLIB=$ac_cv_prog_RANLIB
++if test -n &quot;$RANLIB&quot;; then
++  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++fi
++if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
++  ac_ct_RANLIB=$RANLIB
++  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
++set dummy ranlib; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$ac_ct_RANLIB&quot;; then
++  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
++fi
++fi
++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
++if test -n &quot;$ac_ct_RANLIB&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  RANLIB=$ac_ct_RANLIB
++else
++  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
++fi
++
++if test -n &quot;$ac_tool_prefix&quot;; then
++  # Extract the first word of &quot;${ac_tool_prefix}strip&quot;, so it can be a program name with args.
++set dummy ${ac_tool_prefix}strip; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_STRIP+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$STRIP&quot;; then
++  ac_cv_prog_STRIP=&quot;$STRIP&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_STRIP=&quot;${ac_tool_prefix}strip&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++STRIP=$ac_cv_prog_STRIP
++if test -n &quot;$STRIP&quot;; then
++  echo &quot;$as_me:$LINENO: result: $STRIP&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$STRIP&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++fi
++if test -z &quot;$ac_cv_prog_STRIP&quot;; then
++  ac_ct_STRIP=$STRIP
++  # Extract the first word of &quot;strip&quot;, so it can be a program name with args.
++set dummy strip; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_STRIP+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -n &quot;$ac_ct_STRIP&quot;; then
++  ac_cv_prog_ac_ct_STRIP=&quot;$ac_ct_STRIP&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_STRIP=&quot;strip&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
++  test -z &quot;$ac_cv_prog_ac_ct_STRIP&quot; &amp;&amp; ac_cv_prog_ac_ct_STRIP=&quot;:&quot;
++fi
++fi
++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
++if test -n &quot;$ac_ct_STRIP&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_STRIP&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_STRIP&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  STRIP=$ac_ct_STRIP
++else
++  STRIP=&quot;$ac_cv_prog_STRIP&quot;
++fi
++
++
++old_CC=&quot;$CC&quot;
++old_CFLAGS=&quot;$CFLAGS&quot;
++
++# Set sane defaults for various variables
++test -z &quot;$AR&quot; &amp;&amp; AR=ar
++test -z &quot;$AR_FLAGS&quot; &amp;&amp; AR_FLAGS=cru
++test -z &quot;$AS&quot; &amp;&amp; AS=as
++test -z &quot;$CC&quot; &amp;&amp; CC=cc
++test -z &quot;$LTCC&quot; &amp;&amp; LTCC=$CC
++test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
++test -z &quot;$LD&quot; &amp;&amp; LD=ld
++test -z &quot;$LN_S&quot; &amp;&amp; LN_S=&quot;ln -s&quot;
++test -z &quot;$MAGIC_CMD&quot; &amp;&amp; MAGIC_CMD=file
++test -z &quot;$NM&quot; &amp;&amp; NM=nm
++test -z &quot;$SED&quot; &amp;&amp; SED=sed
++test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
++test -z &quot;$RANLIB&quot; &amp;&amp; RANLIB=:
++test -z &quot;$STRIP&quot; &amp;&amp; STRIP=:
++test -z &quot;$ac_objext&quot; &amp;&amp; ac_objext=o
++
++# Determine commands to create old-style static archives.
++old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
++old_postinstall_cmds='chmod 644 $oldlib'
++old_postuninstall_cmds=
++
++if test -n &quot;$RANLIB&quot;; then
++  case $host_os in
++  openbsd*)
++    old_postinstall_cmds=&quot;\$RANLIB -t \$oldlib~$old_postinstall_cmds&quot;
++    ;;
++  *)
++    old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
++    ;;
++  esac
++  old_archive_cmds=&quot;$old_archive_cmds~\$RANLIB \$oldlib&quot;
++fi
++
++for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++
++# Only perform the check for file, if the check method requires it
++case $deplibs_check_method in
++file_magic*)
++  if test &quot;$file_magic_cmd&quot; = '$MAGIC_CMD'; then
++    echo &quot;$as_me:$LINENO: checking for ${ac_tool_prefix}file&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for ${ac_tool_prefix}file... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  case $MAGIC_CMD in
++[\\/*] |  ?:[\\/]*)
++  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
++  ;;
++*)
++  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  ac_dummy=&quot;/usr/bin$PATH_SEPARATOR$PATH&quot;
++  for ac_dir in $ac_dummy; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f $ac_dir/${ac_tool_prefix}file; then
++      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/${ac_tool_prefix}file&quot;
++      if test -n &quot;$file_magic_test_file&quot;; then
++        case $deplibs_check_method in
++        &quot;file_magic &quot;*)
++          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
++          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
++            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
++            :
++          else
++            cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the command libtool uses to detect shared libraries,
++*** $file_magic_cmd, produces output that libtool cannot recognize.
++*** The result is that libtool may fail to recognize shared libraries
++*** as such.  This will affect the creation of libtool libraries that
++*** depend on shared libraries, but programs linked with such libtool
++*** libraries will work regardless of this problem.  Nevertheless, you
++*** may want to report the problem to your system manager and/or to
++*** bug-libtool@gnu.org
++
++EOF
++          fi ;;
++        esac
++      fi
++      break
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
++  ;;
++esac
++fi
++
++MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++if test -n &quot;$MAGIC_CMD&quot;; then
++  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++if test -z &quot;$lt_cv_path_MAGIC_CMD&quot;; then
++  if test -n &quot;$ac_tool_prefix&quot;; then
++    echo &quot;$as_me:$LINENO: checking for file&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for file... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_path_MAGIC_CMD+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  case $MAGIC_CMD in
++[\\/*] |  ?:[\\/]*)
++  lt_cv_path_MAGIC_CMD=&quot;$MAGIC_CMD&quot; # Let the user override the test with a path.
++  ;;
++*)
++  lt_save_MAGIC_CMD=&quot;$MAGIC_CMD&quot;
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  ac_dummy=&quot;/usr/bin$PATH_SEPARATOR$PATH&quot;
++  for ac_dir in $ac_dummy; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f $ac_dir/file; then
++      lt_cv_path_MAGIC_CMD=&quot;$ac_dir/file&quot;
++      if test -n &quot;$file_magic_test_file&quot;; then
++        case $deplibs_check_method in
++        &quot;file_magic &quot;*)
++          file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;file_magic \(.*\)&quot;`
++          MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++          if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
++            $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
++            :
++          else
++            cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the command libtool uses to detect shared libraries,
++*** $file_magic_cmd, produces output that libtool cannot recognize.
++*** The result is that libtool may fail to recognize shared libraries
++*** as such.  This will affect the creation of libtool libraries that
++*** depend on shared libraries, but programs linked with such libtool
++*** libraries will work regardless of this problem.  Nevertheless, you
++*** may want to report the problem to your system manager and/or to
++*** bug-libtool@gnu.org
++
++EOF
++          fi ;;
++        esac
++      fi
++      break
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++  MAGIC_CMD=&quot;$lt_save_MAGIC_CMD&quot;
++  ;;
++esac
++fi
++
++MAGIC_CMD=&quot;$lt_cv_path_MAGIC_CMD&quot;
++if test -n &quot;$MAGIC_CMD&quot;; then
++  echo &quot;$as_me:$LINENO: result: $MAGIC_CMD&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$MAGIC_CMD&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  else
++    MAGIC_CMD=:
++  fi
++fi
++
++  fi
++  ;;
++esac
++
++enable_dlopen=no
++enable_win32_dll=no
++
++# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
++if test &quot;${enable_libtool_lock+set}&quot; = set; then
++  enableval=&quot;$enable_libtool_lock&quot;
++
++fi;
++test &quot;x$enable_libtool_lock&quot; != xno &amp;&amp; enable_libtool_lock=yes
++
++
++# Check whether --with-pic or --without-pic was given.
++if test &quot;${with_pic+set}&quot; = set; then
++  withval=&quot;$with_pic&quot;
++  pic_mode=&quot;$withval&quot;
++else
++  pic_mode=default
++fi;
++test -z &quot;$pic_mode&quot; &amp;&amp; pic_mode=default
++
++# Use C for the default configuration in the libtool script
++tagname=
++lt_save_CC=&quot;$CC&quot;
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++# Source file extension for C test sources.
++ac_ext=c
++
++# Object file extension for compiled C test sources.
++objext=o
++objext=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='int main(){return(0);}\n'
++
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++
++
++# save warnings/boilerplate of simple test code
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++
++
++#
++# Check for any special shared library compilation flags.
++#
++lt_prog_cc_shlib=
++if test &quot;$GCC&quot; = no; then
++  case $host_os in
++  sco3.2v5*)
++    lt_prog_cc_shlib='-belf'
++    ;;
++  esac
++fi
++if test -n &quot;$lt_prog_cc_shlib&quot;; then
++  { echo &quot;$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries&quot; &gt;&amp;2;}
++  if echo &quot;$old_CC $old_CFLAGS &quot; | grep &quot;[         ]$lt_prog_cc_shlib[         ]&quot; &gt;/dev/null; then :
++  else
++    { echo &quot;$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure&quot; &gt;&amp;2;}
++    lt_cv_prog_cc_can_build_shared=no
++  fi
++fi
++
++
++#
++# Check to make sure the static flag actually works.
++#
++echo &quot;$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_prog_compiler_static_works+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_prog_compiler_static_works=no
++   save_LDFLAGS=&quot;$LDFLAGS&quot;
++   LDFLAGS=&quot;$LDFLAGS $lt_prog_compiler_static&quot;
++   printf &quot;$lt_simple_link_test_code&quot; &gt; conftest.$ac_ext
++   if (eval $ac_link 2&gt;conftest.err) &amp;&amp; test -s conftest$ac_exeext; then
++     # The linker can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     if test -s conftest.err; then
++       # Append any errors to the config.log.
++       cat conftest.err 1&gt;&amp;5
++       $echo &quot;X$_lt_linker_boilerplate&quot; | $Xsed &gt; conftest.exp
++       $SED '/^$/d' conftest.err &gt;conftest.er2
++       if diff conftest.exp conftest.er2 &gt;/dev/null; then
++         lt_prog_compiler_static_works=yes
++       fi
++     else
++       lt_prog_compiler_static_works=yes
++     fi
++   fi
++   $rm conftest*
++   LDFLAGS=&quot;$save_LDFLAGS&quot;
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_static_works&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_static_works&quot; &gt;&amp;6
++
++if test x&quot;$lt_prog_compiler_static_works&quot; = xyes; then
++    :
++else
++    lt_prog_compiler_static=
++fi
++
++
++
++
++lt_prog_compiler_no_builtin_flag=
++
++if test &quot;$GCC&quot; = yes; then
++  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
++
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_rtti_exceptions+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_rtti_exceptions=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;-fno-rtti -fno-exceptions&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:6407: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:6411: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_rtti_exceptions=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;6
++
++if test x&quot;$lt_cv_prog_compiler_rtti_exceptions&quot; = xyes; then
++    lt_prog_compiler_no_builtin_flag=&quot;$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions&quot;
++else
++    :
++fi
++
++fi
++
++lt_prog_compiler_wl=
++lt_prog_compiler_pic=
++lt_prog_compiler_static=
++
++echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
++
++  if test &quot;$GCC&quot; = yes; then
++    lt_prog_compiler_wl='-Wl,'
++    lt_prog_compiler_static='-static'
++
++    case $host_os in
++      aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static='-Bstatic'
++      fi
++      ;;
++
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
++      ;;
++
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic='-DDLL_EXPORT'
++      ;;
++
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      lt_prog_compiler_pic='-fno-common'
++      ;;
++
++    msdosdjgpp*)
++      # Just because we use GCC doesn't mean we suddenly get shared libraries
++      # on systems that don't support them.
++      lt_prog_compiler_can_build_shared=no
++      enable_shared=no
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        lt_prog_compiler_pic=-Kconform_pic
++      fi
++      ;;
++
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic='-fPIC'
++        ;
++      esac
++      ;;
++
++    *)
++      lt_prog_compiler_pic='-fPIC'
++      ;;
++    esac
++  else
++    # PORTME Check for flag to pass linker flags through the system compiler.
++    case $host_os in
++    aix*)
++      lt_prog_compiler_wl='-Wl,'
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static='-Bstatic'
++      else
++        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
++      fi
++      ;;
++      darwin*)
++        # PIC is the default on this platform
++        # Common symbols not allowed in MH_DYLIB files
++       case $cc_basename in
++         xlc*)
++         lt_prog_compiler_pic='-qnocommon'
++         lt_prog_compiler_wl='-Wl,'
++         ;;
++       esac
++       ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic='-DDLL_EXPORT'
++      ;;
++
++    hpux9* | hpux10* | hpux11*)
++      lt_prog_compiler_wl='-Wl,'
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic='+Z'
++        ;
++      esac
++      # Is there a better lt_prog_compiler_static that works with the bundled CC?
++      lt_prog_compiler_static='${wl}-a ${wl}archive'
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      lt_prog_compiler_wl='-Wl,'
++      # PIC (with -KPIC) is the default.
++      lt_prog_compiler_static='-non_shared'
++      ;;
++
++    newsos6)
++      lt_prog_compiler_pic='-KPIC'
++      lt_prog_compiler_static='-Bstatic'
++      ;;
++
++    linux*)
++      case $cc_basename in
++      icc* | ecc*)
++        lt_prog_compiler_wl='-Wl,'
++        lt_prog_compiler_pic='-KPIC'
++        lt_prog_compiler_static='-static'
++        ;;
++      pgcc* | pgf77* | pgf90* | pgf95*)
++        # Portland Group compilers (*not* the Pentium gcc compiler,
++        # which looks to be a dead project)
++        lt_prog_compiler_wl='-Wl,'
++        lt_prog_compiler_pic='-fpic'
++        lt_prog_compiler_static='-Bstatic'
++        ;;
++      ccc*)
++        lt_prog_compiler_wl='-Wl,'
++        # All Alpha code is PIC.
++        lt_prog_compiler_static='-non_shared'
++        ;;
++      esac
++      ;;
++
++    osf3* | osf4* | osf5*)
++      lt_prog_compiler_wl='-Wl,'
++      # All OSF/1 code is PIC.
++      lt_prog_compiler_static='-non_shared'
++      ;;
++
++    sco3.2v5*)
++      lt_prog_compiler_pic='-Kpic'
++      lt_prog_compiler_static='-dn'
++      ;;
++
++    solaris*)
++      lt_prog_compiler_pic='-KPIC'
++      lt_prog_compiler_static='-Bstatic'
++      case $cc_basename in
++      f77* | f90* | f95*)
++        lt_prog_compiler_wl='-Qoption ld ';;
++      *)
++        lt_prog_compiler_wl='-Wl,';;
++      esac
++      ;;
++
++    sunos4*)
++      lt_prog_compiler_wl='-Qoption ld '
++      lt_prog_compiler_pic='-PIC'
++      lt_prog_compiler_static='-Bstatic'
++      ;;
++
++    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++      lt_prog_compiler_wl='-Wl,'
++      lt_prog_compiler_pic='-KPIC'
++      lt_prog_compiler_static='-Bstatic'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec ;then
++        lt_prog_compiler_pic='-Kconform_pic'
++        lt_prog_compiler_static='-Bstatic'
++      fi
++      ;;
++
++    unicos*)
++      lt_prog_compiler_wl='-Wl,'
++      lt_prog_compiler_can_build_shared=no
++      ;;
++
++    uts4*)
++      lt_prog_compiler_pic='-pic'
++      lt_prog_compiler_static='-Bstatic'
++      ;;
++
++    *)
++      lt_prog_compiler_can_build_shared=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic&quot; &gt;&amp;6
++
++#
++# Check to make sure the PIC flag actually works.
++#
++if test -n &quot;$lt_prog_compiler_pic&quot;; then
++
++echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_prog_compiler_pic_works+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_prog_compiler_pic_works=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;$lt_prog_compiler_pic -DPIC&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:6669: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:6673: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_prog_compiler_pic_works=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_works&quot; &gt;&amp;6
++
++if test x&quot;$lt_prog_compiler_pic_works&quot; = xyes; then
++    case $lt_prog_compiler_pic in
++     &quot;&quot; | &quot; &quot;*) ;;
++     *) lt_prog_compiler_pic=&quot; $lt_prog_compiler_pic&quot; ;;
++     esac
++else
++    lt_prog_compiler_pic=
++     lt_prog_compiler_can_build_shared=no
++fi
++
++fi
++case $host_os in
++  # For platforms which do not support PIC, -DPIC is meaningless:
++  *djgpp*)
++    lt_prog_compiler_pic=
++    ;;
++  *)
++    lt_prog_compiler_pic=&quot;$lt_prog_compiler_pic -DPIC&quot;
++    ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_c_o+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_c_o=no
++   $rm -r conftest 2&gt;/dev/null
++   mkdir conftest
++   cd conftest
++   mkdir out
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:6731: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
++   ac_status=$?
++   cat out/conftest.err &gt;&amp;5
++   echo &quot;$as_me:6735: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
++   then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
++     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
++     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_c_o=yes
++     fi
++   fi
++   chmod u+w . 2&gt;&amp;5
++   $rm conftest*
++   # SGI C++ compiler will create directory out/ii_files/ for
++   # template instantiation
++   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
++   $rm out/* &amp;&amp; rmdir out
++   cd ..
++   rmdir conftest
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o&quot; &gt;&amp;6
++
++
++hard_links=&quot;nottested&quot;
++if test &quot;$lt_cv_prog_compiler_c_o&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
++  # do not overwrite the value of need_locks provided by the user
++  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
++  hard_links=yes
++  $rm conftest*
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  touch conftest.a
++  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
++  if test &quot;$hard_links&quot; = no; then
++    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
++    need_locks=warn
++  fi
++else
++  need_locks=no
++fi
++
++echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++
++  runpath_var=
++  allow_undefined_flag=
++  enable_shared_with_static_runtimes=no
++  archive_cmds=
++  archive_expsym_cmds=
++  old_archive_From_new_cmds=
++  old_archive_from_expsyms_cmds=
++  export_dynamic_flag_spec=
++  whole_archive_flag_spec=
++  thread_safe_flag_spec=
++  hardcode_libdir_flag_spec=
++  hardcode_libdir_flag_spec_ld=
++  hardcode_libdir_separator=
++  hardcode_direct=no
++  hardcode_minus_L=no
++  hardcode_shlibpath_var=unsupported
++  link_all_deplibs=unknown
++  hardcode_automatic=no
++  module_cmds=
++  module_expsym_cmds=
++  always_export_symbols=no
++  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  # include_expsyms should be a list of space-separated symbols to be *always*
++  # included in the symbol list
++  include_expsyms=
++  # exclude_expsyms can be an extended regexp of symbols to exclude
++  # it will be wrapped by ` (' and `)$', so one must not match beginning or
++  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
++  # as well as any symbol that contains `d'.
++  exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
++  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
++  # platforms (ab)use it in PIC code, but their linkers get confused if
++  # the symbol is explicitly referenced.  Since portable code cannot
++  # rely on this symbol name, it's probably fine to never include it in
++  # preloaded symbol tables.
++  extract_expsyms_cmds=
++  # Just being paranoid about ensuring that cc_basename is set.
++  for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++  case $host_os in
++  cygwin* | mingw* | pw32*)
++    # FIXME: the MSVC++ port hasn't been tested in a loooong time
++    # When not using gcc, we currently assume that we are using
++    # Microsoft Visual C++.
++    if test &quot;$GCC&quot; != yes; then
++      with_gnu_ld=no
++    fi
++    ;;
++  openbsd*)
++    with_gnu_ld=no
++    ;;
++  esac
++
++  ld_shlibs=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    wlarc='${wl}'
++
++    # Set some defaults for GNU ld with shared library support. These
++    # are reset later if shared libraries are not supported. Putting them
++    # here allows them to be overridden if necessary.
++    runpath_var=LD_RUN_PATH
++    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
++    export_dynamic_flag_spec='${wl}--export-dynamic'
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
++        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++      else
++          whole_archive_flag_spec=
++    fi
++    supports_anon_versioning=no
++    case `$LD -v 2&gt;/dev/null` in
++      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
++      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
++      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
++      *\ 2.11.*) ;; # other 2.11 versions
++      *) supports_anon_versioning=yes ;;
++    esac
++
++    # See if GNU ld supports shared libraries.
++    case $host_os in
++    aix3* | aix4* | aix5*)
++      # On AIX/PPC, the GNU linker is very broken
++      if test &quot;$host_cpu&quot; != ia64; then
++        ld_shlibs=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the GNU linker, at least up to release 2.9.1, is reported
++*** to be unable to reliably create shared libraries on AIX.
++*** Therefore, libtool is disabling shared libraries support.  If you
++*** really care for shared libraries, you may want to modify your PATH
++*** so that a non-GNU linker is found, and then restart.
++
++EOF
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_minus_L=yes
++
++      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
++      # that the semantics of dynamic libraries on AmigaOS, at least up
++      # to version 4, is to share data among multiple programs linked
++      # with the same dynamic library.  Since this doesn't match the
++      # behavior of shared libraries on other platforms, we can't use
++      # them.
++      ld_shlibs=no
++      ;;
++
++    beos*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        allow_undefined_flag=unsupported
++        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
++        # support --undefined.  This deserves some investigation.  FIXME
++        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++      else
++        ld_shlibs=no
++      fi
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
++      # as there is no search path for DLLs.
++      hardcode_libdir_flag_spec='-L$libdir'
++      allow_undefined_flag=unsupported
++      always_export_symbols=no
++      enable_shared_with_static_runtimes=yes
++      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++
++      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++        # If the export-symbols file already is a .def file (1st line
++        # is EXPORTS), use it as is; otherwise, prepend...
++        archive_expsym_cmds='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++          cp $export_symbols $output_objdir/$soname.def;
++        else
++          echo EXPORTS &gt; $output_objdir/$soname.def;
++          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++        fi~
++        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
++      else
++        ld_shlibs=no
++      fi
++      ;;
++
++    linux*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        tmp_addflag=
++        case $cc_basename,$host_cpu in
++        pgcc*)                                # Portland Group C compiler
++          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag'
++          ;;
++        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
++          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag -Mnomain' ;;
++        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
++          tmp_addflag=' -i_dynamic' ;;
++        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
++          tmp_addflag=' -i_dynamic -nofor_main' ;;
++        ifc* | ifort*)                        # Intel Fortran compiler
++          tmp_addflag=' -nofor_main' ;;
++        esac
++        archive_cmds='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++        if test $supports_anon_versioning = yes; then
++          archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
++  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
++  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
++          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
++        fi
++        link_all_deplibs=no
++      else
++        ld_shlibs=no
++      fi
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
++        wlarc=
++      else
++        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      fi
++      ;;
++
++    solaris* | sysv5*)
++      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
++        ld_shlibs=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: The releases 2.8.* of the GNU linker cannot reliably
++*** create shared libraries on Solaris systems.  Therefore, libtool
++*** is disabling shared libraries support.  We urge you to upgrade GNU
++*** binutils to release 2.9.1 or newer.  Another option is to modify
++*** your PATH or compiler configuration so that the native linker is
++*** used, and then restart.
++
++EOF
++      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs=no
++      fi
++      ;;
++
++    sunos4*)
++      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      wlarc=
++      hardcode_direct=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    *)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs=no
++      fi
++      ;;
++    esac
++
++    if test &quot;$ld_shlibs&quot; = no; then
++      runpath_var=
++      hardcode_libdir_flag_spec=
++      export_dynamic_flag_spec=
++      whole_archive_flag_spec=
++    fi
++  else
++    # PORTME fill in a description of your system's linker (not GNU ld)
++    case $host_os in
++    aix3*)
++      allow_undefined_flag=unsupported
++      always_export_symbols=yes
++      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
++      # Note: this linker hardcodes the directories in LIBPATH if there
++      # are no directories specified by -L.
++      hardcode_minus_L=yes
++      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
++        # Neither direct hardcoding nor static linking is supported with a
++        # broken collect2.
++        hardcode_direct=unsupported
++      fi
++      ;;
++
++    aix4* | aix5*)
++      if test &quot;$host_cpu&quot; = ia64; then
++        # On IA64, the linker does run time linking by default, so we don't
++        # have to do anything special.
++        aix_use_runtimelinking=no
++        exp_sym_flag='-Bexport'
++        no_entry_flag=&quot;&quot;
++      else
++        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++        # -C means demangle to AIX nm, but means don't demangle with GNU nm
++        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        else
++          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        fi
++        aix_use_runtimelinking=no
++
++        # Test if we are trying to use run time linking or normal
++        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++        # need to do runtime linking.
++        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
++          for ld_flag in $LDFLAGS; do
++            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
++              aix_use_runtimelinking=yes
++              break
++            fi
++          done
++        esac
++
++        exp_sym_flag='-bexport'
++        no_entry_flag='-bnoentry'
++      fi
++
++      # When large executables or shared objects are built, AIX ld can
++      # have problems creating the table of contents.  If linking a library
++      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++      archive_cmds=''
++      hardcode_direct=yes
++      hardcode_libdir_separator=':'
++      link_all_deplibs=yes
++
++      if test &quot;$GCC&quot; = yes; then
++        case $host_os in aix4.[012]|aix4.[012].*)
++        # We only want to do this on AIX 4.2 and lower, the check
++        # below for broken collect2 doesn't work under 4.3+
++          collect2name=`${CC} -print-prog-name=collect2`
++          if test -f &quot;$collect2name&quot; &amp;&amp; \
++             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++          then
++            # We have reworked collect2
++            hardcode_direct=yes
++          else
++            # We have old collect2
++            hardcode_direct=unsupported
++            # It fails to find uninstalled libraries when the uninstalled
++            # path is not listed in the libpath.  Setting hardcode_minus_L
++            # to unsupported forces relinking
++            hardcode_minus_L=yes
++            hardcode_libdir_flag_spec='-L$libdir'
++            hardcode_libdir_separator=
++          fi
++        esac
++        shared_flag='-shared'
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++        fi
++      else
++        # not using gcc
++        if test &quot;$host_cpu&quot; = ia64; then
++          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++          # chokes on -Wl,-G. The following line is correct:
++          shared_flag='-G'
++        else
++          if test &quot;$aix_use_runtimelinking&quot; = yes; then
++            shared_flag='${wl}-G'
++          else
++            shared_flag='${wl}-bM:SRE'
++          fi
++        fi
++      fi
++
++      # It seems that -bexpall does not export symbols beginning with
++      # underscore (_), so it is better to generate a list of symbols to export.
++      always_export_symbols=yes
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        # Warning - without using the other runtime loading flags (-brtl),
++        # -berok will link without error, but may produce a broken library.
++        allow_undefined_flag='-berok'
++       # Determine the default libpath from the value encoded in an empty executable.
++       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        archive_expsym_cmds=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++       else
++        if test &quot;$host_cpu&quot; = ia64; then
++          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
++          allow_undefined_flag=&quot;-z nodefs&quot;
++          archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++        else
++         # Determine the default libpath from the value encoded in an empty executable.
++         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++          # Warning - without using the other run time loading flags,
++          # -berok will link without error, but may produce a broken library.
++          no_undefined_flag=' ${wl}-bernotok'
++          allow_undefined_flag=' ${wl}-berok'
++          # -bexpall does not export symbols beginning with underscore (_)
++          always_export_symbols=yes
++          # Exported symbols can be pulled into shared objects from archives
++          whole_archive_flag_spec=' '
++          archive_cmds_need_lc=yes
++          # This is similar to how AIX traditionally builds its shared libraries.
++          archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++        fi
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_minus_L=yes
++      # see comment about different semantics on the GNU ld section
++      ld_shlibs=no
++      ;;
++
++    bsdi[45]*)
++      export_dynamic_flag_spec=-rdynamic
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # When not using gcc, we currently assume that we are using
++      # Microsoft Visual C++.
++      # hardcode_libdir_flag_spec is actually meaningless, as there is
++      # no search path for DLLs.
++      hardcode_libdir_flag_spec=' '
++      allow_undefined_flag=unsupported
++      # Tell ltmain to make .lib files, not .a files.
++      libext=lib
++      # Tell ltmain to make .dll files, not .so files.
++      shrext_cmds=&quot;.dll&quot;
++      # FIXME: Setting linknames here is a bad hack.
++      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
++      # The linker will automatically build a .lib file if we build a DLL.
++      old_archive_From_new_cmds='true'
++      # FIXME: Should let the user specify the lib program.
++      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
++      fix_srcfile_path='`cygpath -w &quot;$srcfile&quot;`'
++      enable_shared_with_static_runtimes=yes
++      ;;
++
++    darwin* | rhapsody*)
++      case $host_os in
++        rhapsody* | darwin1.[012])
++         allow_undefined_flag='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[012])
++               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++      esac
++      archive_cmds_need_lc=no
++      hardcode_direct=no
++      hardcode_automatic=yes
++      hardcode_shlibpath_var=unsupported
++      whole_archive_flag_spec=''
++      link_all_deplibs=yes
++    if test &quot;$GCC&quot; = yes ; then
++            output_verbose_link_cmd='echo'
++        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++      archive_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      module_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++    else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++         archive_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          module_expsym_cmds='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         ld_shlibs=no
++          ;;
++      esac
++    fi
++      ;;
++
++    dgux*)
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_shlibpath_var=no
++      ;;
++
++    freebsd1*)
++      ld_shlibs=no
++      ;;
++
++    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
++    # support.  Future versions do this automatically, but an explicit c++rt0.o
++    # does not break anything, and helps significantly (at the cost of a little
++    # extra space).
++    freebsd2.2*)
++      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
++      hardcode_libdir_flag_spec='-R$libdir'
++      hardcode_direct=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
++    freebsd2*)
++      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct=yes
++      hardcode_minus_L=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
++    freebsd* | kfreebsd*-gnu | dragonfly*)
++      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
++      hardcode_libdir_flag_spec='-R$libdir'
++      hardcode_direct=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    hpux9*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      fi
++      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
++      hardcode_libdir_separator=:
++      hardcode_direct=yes
++
++      # hardcode_minus_L: Not really in the search PATH,
++      # but as the default location of the library.
++      hardcode_minus_L=yes
++      export_dynamic_flag_spec='${wl}-E'
++      ;;
++
++    hpux10* | hpux11*)
++      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        *)
++          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        esac
++      else
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        *)
++          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        esac
++      fi
++      if test &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*)
++          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
++          hardcode_libdir_flag_spec_ld='+b $libdir'
++          hardcode_libdir_separator=:
++          hardcode_direct=no
++          hardcode_shlibpath_var=no
++          ;;
++        ia64*)
++          hardcode_libdir_flag_spec='-L$libdir'
++          hardcode_direct=no
++          hardcode_shlibpath_var=no
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L=yes
++          ;;
++        *)
++          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
++          hardcode_libdir_separator=:
++          hardcode_direct=yes
++          export_dynamic_flag_spec='${wl}-E'
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L=yes
++          ;;
++        esac
++      fi
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec_ld='-rpath $libdir'
++      fi
++      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator=:
++      link_all_deplibs=yes
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
++      else
++        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
++      fi
++      hardcode_libdir_flag_spec='-R$libdir'
++      hardcode_direct=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    newsos6)
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct=yes
++      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator=:
++      hardcode_shlibpath_var=no
++      ;;
++
++    openbsd*)
++      hardcode_direct=yes
++      hardcode_shlibpath_var=no
++      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
++        export_dynamic_flag_spec='${wl}-E'
++      else
++       case $host_os in
++         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
++           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++           hardcode_libdir_flag_spec='-R$libdir'
++           ;;
++         *)
++           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
++           ;;
++       esac
++      fi
++      ;;
++
++    os2*)
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_minus_L=yes
++      allow_undefined_flag=unsupported
++      archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
++      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
++      ;;
++
++    osf3*)
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        allow_undefined_flag=' -expect_unresolved \*'
++        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++      fi
++      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator=:
++      ;;
++
++    osf4* | osf5*)        # as osf3* with the addition of -msym flag
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++      else
++        allow_undefined_flag=' -expect_unresolved \*'
++        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        archive_expsym_cmds='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
++
++        # Both c and cxx compiler support -rpath directly
++        hardcode_libdir_flag_spec='-rpath $libdir'
++      fi
++      hardcode_libdir_separator=:
++      ;;
++
++    sco3.2v5*)
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var=no
++      export_dynamic_flag_spec='${wl}-Bexport'
++      runpath_var=LD_RUN_PATH
++      hardcode_runpath_var=yes
++      ;;
++
++    solaris*)
++      no_undefined_flag=' -z text'
++      if test &quot;$GCC&quot; = yes; then
++        wlarc='${wl}'
++        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
++      else
++        wlarc=''
++        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      fi
++      hardcode_libdir_flag_spec='-R$libdir'
++      hardcode_shlibpath_var=no
++      case $host_os in
++      solaris2.[0-5] | solaris2.[0-5].*) ;;
++      *)
++         # The compiler driver will combine linker options so we
++         # cannot just pass the convience library names through
++         # without $wl, iff we do not link with $LD.
++         # Luckily, gcc supports the same syntax we need for Sun Studio.
++         # Supported since Solaris 2.6 (maybe 2.5.1?)
++         case $wlarc in
++         '')
++           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
++         *)
++           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
++         esac ;;
++      esac
++      link_all_deplibs=yes
++      ;;
++
++    sunos4*)
++      if test &quot;x$host_vendor&quot; = xsequent; then
++        # Use $CC to link under sequent, because it throws in some extra .o
++        # files that make .init and .fini sections work.
++        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
++      fi
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_direct=yes
++      hardcode_minus_L=yes
++      hardcode_shlibpath_var=no
++      ;;
++
++    sysv4)
++      case $host_vendor in
++        sni)
++          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct=yes # is this really true???
++        ;
++        siemens)
++          ## LD is ld it makes a PLAMLIB
++          ## CC just makes a GrossModule.
++          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++          reload_cmds='$CC -r -o $output$reload_objs'
++          hardcode_direct=no
++        ;;
++        motorola)
++          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
++        ;
++      esac
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var=no
++      ;;
++
++    sysv4.3*)
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var=no
++      export_dynamic_flag_spec='-Bexport'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        hardcode_shlibpath_var=no
++        runpath_var=LD_RUN_PATH
++        hardcode_runpath_var=yes
++        ld_shlibs=yes
++      fi
++      ;;
++
++    sysv4.2uw2*)
++      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct=yes
++      hardcode_minus_L=no
++      hardcode_shlibpath_var=no
++      hardcode_runpath_var=yes
++      runpath_var=LD_RUN_PATH
++      ;;
++
++   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
++      no_undefined_flag='${wl}-z ${wl}text'
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      fi
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var=no
++      ;;
++
++    sysv5*)
++      no_undefined_flag=' -z text'
++      # $CC -shared without GNU ld will not create a library from C++
++      # object files and a static libstdc++, better avoid it by now
++      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      hardcode_libdir_flag_spec=
++      hardcode_shlibpath_var=no
++      runpath_var='LD_RUN_PATH'
++      ;;
++
++    uts4*)
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec='-L$libdir'
++      hardcode_shlibpath_var=no
++      ;;
++
++    *)
++      ld_shlibs=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $ld_shlibs&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ld_shlibs&quot; &gt;&amp;6
++test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no
++
++variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
++if test &quot;$GCC&quot; = yes; then
++  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
++fi
++
++#
++# Do we need to explicitly link libc?
++#
++case &quot;x$archive_cmds_need_lc&quot; in
++x|xyes)
++  # Assume -lc should be added
++  archive_cmds_need_lc=yes
++
++  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
++    case $archive_cmds in
++    *'~'*)
++      # FIXME: we may have to deal with multi-command sequences.
++      ;;
++    '$CC '*)
++      # Test whether the compiler implicitly links with -lc since on some
++      # systems, -lgcc has to come before -lc. If gcc already passes -lc
++      # to ld, don't add -lc before -lgcc.
++      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
++      $rm conftest*
++      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } 2&gt;conftest.err; then
++        soname=conftest
++        lib=conftest
++        libobjs=conftest.$ac_objext
++        deplibs=
++        wl=$lt_prog_compiler_wl
++        compiler_flags=-v
++        linker_flags=-v
++        verstring=
++        output_objdir=.
++        libname=conftest
++        lt_save_allow_undefined_flag=$allow_undefined_flag
++        allow_undefined_flag=
++        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
++  (eval $archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++        then
++          archive_cmds_need_lc=no
++        else
++          archive_cmds_need_lc=yes
++        fi
++        allow_undefined_flag=$lt_save_allow_undefined_flag
++      else
++        cat conftest.err 1&gt;&amp;5
++      fi
++      $rm conftest*
++      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$archive_cmds_need_lc&quot; &gt;&amp;6
++      ;;
++    esac
++  fi
++  ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
++library_names_spec=
++libname_spec='lib$name'
++soname_spec=
++shrext_cmds=&quot;.so&quot;
++postinstall_cmds=
++postuninstall_cmds=
++finish_cmds=
++finish_eval=
++shlibpath_var=
++shlibpath_overrides_runpath=unknown
++version_type=none
++dynamic_linker=&quot;$host_os ld.so&quot;
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++if test &quot;$GCC&quot; = yes; then
++  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
++    # if the path contains &quot;;&quot; then we assume it to be the separator
++    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
++    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
++    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++  else
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++  fi
++else
++  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++fi
++need_lib_prefix=unknown
++hardcode_into_libs=no
++
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
++need_version=unknown
++
++case $host_os in
++aix3*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
++  shlibpath_var=LIBPATH
++
++  # AIX 3 has no versioning support, so we append a major version to the name.
++  soname_spec='${libname}${release}${shared_ext}$major'
++  ;;
++
++aix4* | aix5*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  hardcode_into_libs=yes
++  if test &quot;$host_cpu&quot; = ia64; then
++    # AIX 5 supports IA64
++    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
++    shlibpath_var=LD_LIBRARY_PATH
++  else
++    # With GCC up to 2.95.x, collect2 would create an import file
++    # for dependence libraries.  The import file would start with
++    # the line `#! .'.  This would cause the generated library to
++    # depend on `.', always an invalid library.  This was fixed in
++    # development snapshots of GCC prior to 3.0.
++    case $host_os in
++      aix4 | aix4.[01] | aix4.[01].*)
++      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
++           echo ' yes '
++           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
++        :
++      else
++        can_build_shared=no
++      fi
++      ;;
++    esac
++    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
++    # soname into executable. Probably we can add versioning support to
++    # collect2, so additional links can be useful in future.
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
++      # instead of lib&lt;name&gt;.a to let people know that these are not
++      # typical AIX shared libraries.
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    else
++      # We preserve .a as extension for shared libraries through AIX4.2
++      # and later when we are not doing run time linking.
++      library_names_spec='${libname}${release}.a $libname.a'
++      soname_spec='${libname}${release}${shared_ext}$major'
++    fi
++    shlibpath_var=LIBPATH
++  fi
++  ;;
++
++amigaos*)
++  library_names_spec='$libname.ixlibrary $libname.a'
++  # Create ${libname}_ixlibrary.a entries in /sys/libs.
++  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
++  ;;
++
++beos*)
++  library_names_spec='${libname}${shared_ext}'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  ;;
++
++bsdi[45]*)
++  version_type=linux
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
++  ;;
++
++cygwin* | mingw* | pw32*)
++  version_type=windows
++  shrext_cmds=&quot;.dll&quot;
++  need_version=no
++  need_lib_prefix=no
++
++  case $GCC,$host_os in
++  yes,cygwin* | yes,mingw* | yes,pw32*)
++    library_names_spec='$libname.dll.a'
++    # DLL is installed to $(libdir)/../bin by postinstall_cmds
++    postinstall_cmds='base_file=`basename \${file}`~
++      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
++      dldir=$destdir/`dirname \$dlpath`~
++      test -d \$dldir || mkdir -p \$dldir~
++      $install_prog $dir/$dlname \$dldir/$dlname~
++      chmod a+x \$dldir/$dlname'
++    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
++      dlpath=$dir/\$dldll~
++       $rm \$dlpath'
++    shlibpath_overrides_runpath=yes
++
++    case $host_os in
++    cygwin*)
++      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
++      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
++      ;;
++    mingw*)
++      # MinGW DLLs use traditional 'lib' prefix
++      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
++        # It is most probably a Windows format PATH printed by
++        # mingw gcc, but we are running on Cygwin. Gcc prints its search
++        # path with ; separators, and with drive letters. We can handle the
++        # drive letters (cygwin fileutils understands them), so leave them,
++        # especially as we might pass files found there to a mingw objdump,
++        # which wouldn't understand a cygwinified path. Ahh.
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++      else
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++      fi
++      ;;
++    pw32*)
++      # pw32 DLLs use 'pw' prefix rather than 'lib'
++      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      ;;
++    esac
++    ;;
++
++  *)
++    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
++    ;;
++  esac
++  dynamic_linker='Win32 ld.exe'
++  # FIXME: first we should search . and the directory the executable is in
++  shlibpath_var=PATH
++  ;;
++
++darwin* | rhapsody*)
++  dynamic_linker=&quot;$host_os dyld&quot;
++  version_type=darwin
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
++  soname_spec='${libname}${release}${major}$shared_ext'
++  shlibpath_overrides_runpath=yes
++  shlibpath_var=DYLD_LIBRARY_PATH
++  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
++  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
++  if test &quot;$GCC&quot; = yes; then
++    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
++  else
++    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
++  fi
++  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
++  ;;
++
++dgux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++freebsd1*)
++  dynamic_linker=no
++  ;;
++
++kfreebsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++freebsd* | dragonfly*)
++  # DragonFly does not have aout.  When/if they implement a new
++  # versioning mechanism, adjust this.
++  if test -x /usr/bin/objformat; then
++    objformat=`/usr/bin/objformat`
++  else
++    case $host_os in
++    freebsd[123]*) objformat=aout ;;
++    *) objformat=elf ;;
++    esac
++  fi
++  version_type=freebsd-$objformat
++  case $version_type in
++    freebsd-elf*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
++      need_version=yes
++      ;;
++  esac
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_os in
++  freebsd2*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  freebsd3.[01]* | freebsdelf3.[01]*)
++    shlibpath_overrides_runpath=yes
++    hardcode_into_libs=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    hardcode_into_libs=yes
++    ;;
++  esac
++  ;;
++
++gnu*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  hardcode_into_libs=yes
++  ;;
++
++hpux9* | hpux10* | hpux11*)
++  # Give a soname corresponding to the major version so that dld.sl refuses to
++  # link against other versions.
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  case $host_cpu in
++  ia64*)
++    shrext_cmds='.so'
++    hardcode_into_libs=yes
++    dynamic_linker=&quot;$host_os dld.so&quot;
++    shlibpath_var=LD_LIBRARY_PATH
++    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
++    else
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
++    fi
++    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++    ;;
++   hppa*64*)
++     shrext_cmds='.sl'
++     hardcode_into_libs=yes
++     dynamic_linker=&quot;$host_os dld.sl&quot;
++     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
++     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++     soname_spec='${libname}${release}${shared_ext}$major'
++     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
++     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++     ;;
++   *)
++    shrext_cmds='.sl'
++    dynamic_linker=&quot;$host_os dld.sl&quot;
++    shlibpath_var=SHLIB_PATH
++    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    ;;
++  esac
++  # HP-UX runs *really* slowly unless shared libraries are mode 555.
++  postinstall_cmds='chmod 555 $lib'
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $host_os in
++    nonstopux*) version_type=nonstopux ;;
++    *)
++        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++                version_type=linux
++        else
++                version_type=irix
++        fi ;;
++  esac
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
++  case $host_os in
++  irix5* | nonstopux*)
++    libsuff= shlibsuff=
++    ;;
++  *)
++    case $LD in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
++      libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
++      libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
++      libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  hardcode_into_libs=yes
++  ;;
++
++# No shared lib support for Linux oldld, aout, or coff.
++linux*oldld* | linux*aout* | linux*coff*)
++  dynamic_linker=no
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  # This implies no fast_install, which is unacceptable.
++  # Some rework will be needed to allow for fast_install
++  # before this can be enabled.
++  hardcode_into_libs=yes
++
++  # Append ld.so.conf contents to the search path
++  if test -f /etc/ld.so.conf; then
++    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
++    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
++  fi
++
++  # We used to test for /lib/ld.so.1 and disable shared libraries on
++  # powerpc, because MkLinux only supported shared libraries with the
++  # GNU dynamic linker.  Since this was broken with cross compilers,
++  # most powerpc-linux boxes support dynamic linking these days and
++  # people can always --disable-shared, the test was removed, and we
++  # assume the GNU/Linux dynamic linker is in use.
++  dynamic_linker='GNU/Linux ld.so'
++  ;;
++
++netbsdelf*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='NetBSD ld.elf_so'
++  ;;
++
++knetbsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++netbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  ;;
++
++newsos6)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++nto-qnx*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++openbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
++  case $host_os in
++    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
++    *)                         need_version=no  ;;
++  esac
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    case $host_os in
++      openbsd2.[89] | openbsd2.[89].*)
++        shlibpath_overrides_runpath=no
++        ;
++      *)
++        shlibpath_overrides_runpath=yes
++        ;
++      esac
++  else
++    shlibpath_overrides_runpath=yes
++  fi
++  ;;
++
++os2*)
++  libname_spec='$name'
++  shrext_cmds=&quot;.dll&quot;
++  need_lib_prefix=no
++  library_names_spec='$libname${shared_ext} $libname.a'
++  dynamic_linker='OS/2 ld.exe'
++  shlibpath_var=LIBPATH
++  ;;
++
++osf3* | osf4* | osf5*)
++  version_type=osf
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++sco3.2v5*)
++  version_type=osf
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++solaris*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  # ldd complains unless libraries are executable
++  postinstall_cmds='chmod +x $lib'
++  ;;
++
++sunos4*)
++  version_type=sunos
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_vendor in
++    sni)
++      shlibpath_overrides_runpath=no
++      need_lib_prefix=no
++      export_dynamic_flag_spec='${wl}-Blargedynsym'
++      runpath_var=LD_RUN_PATH
++      ;;
++    siemens)
++      need_lib_prefix=no
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      ;;
++  esac
++  ;;
++
++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
++    soname_spec='$libname${shared_ext}.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
++uts4*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++*)
++  dynamic_linker=no
++  ;;
++esac
++echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
++test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
++
++echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
++hardcode_action=
++if test -n &quot;$hardcode_libdir_flag_spec&quot; || \
++   test -n &quot;$runpath_var&quot; || \
++   test &quot;X$hardcode_automatic&quot; = &quot;Xyes&quot; ; then
++
++  # We can hardcode non-existant directories.
++  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, )&quot; != no &amp;&amp;
++     test &quot;$hardcode_minus_L&quot; != no; then
++    # Linking always hardcodes the temporary library directory.
++    hardcode_action=relink
++  else
++    # We can link without hardcoding, and we can hardcode nonexisting dirs.
++    hardcode_action=immediate
++  fi
++else
++  # We cannot hardcode anything, or else we can only hardcode existing
++  # directories.
++  hardcode_action=unsupported
++fi
++echo &quot;$as_me:$LINENO: result: $hardcode_action&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hardcode_action&quot; &gt;&amp;6
++
++if test &quot;$hardcode_action&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++
++striplib=
++old_striplib=
++echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
++if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
++  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
++  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
++  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++else
++# FIXME - insert some real tests, host_os isn't really good enough
++  case $host_os in
++   darwin*)
++       if test -n &quot;$STRIP&quot; ; then
++         striplib=&quot;$STRIP -x&quot;
++         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++       else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++       ;;
++   *)
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++    ;;
++  esac
++fi
++
++if test &quot;x$enable_dlopen&quot; != xyes; then
++  enable_dlopen=unknown
++  enable_dlopen_self=unknown
++  enable_dlopen_self_static=unknown
++else
++  lt_cv_dlopen=no
++  lt_cv_dlopen_libs=
++
++  case $host_os in
++  beos*)
++    lt_cv_dlopen=&quot;load_add_on&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++    ;;
++
++  mingw* | pw32*)
++    lt_cv_dlopen=&quot;LoadLibrary&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  cygwin*)
++    lt_cv_dlopen=&quot;dlopen&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  darwin*)
++  # if libdl is installed we need to link against it
++    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++
++    lt_cv_dlopen=&quot;dyld&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++
++fi
++
++   ;;
++
++  *)
++    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define shl_load innocuous_shl_load
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char shl_load (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef shl_load
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_shl_load) || defined (__stub___shl_load)
++choke me
++#else
++char (*f) () = shl_load;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != shl_load;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
++if test $ac_cv_func_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++int
++main ()
++{
++shl_load ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define dlopen innocuous_dlopen
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char dlopen (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef dlopen
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_dlopen) || defined (__stub___dlopen)
++choke me
++#else
++char (*f) () = dlopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != dlopen;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
++if test $ac_cv_func_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-lsvld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_svld_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_svld_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_svld_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dld_link ();
++int
++main ()
++{
++dld_link ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_dld_link=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_dld_link=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_dld_link = yes; then
++  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++    ;;
++  esac
++
++  if test &quot;x$lt_cv_dlopen&quot; != xno; then
++    enable_dlopen=yes
++  else
++    enable_dlopen=no
++  fi
++
++  case $lt_cv_dlopen in
++  dlopen)
++    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
++
++    save_LDFLAGS=&quot;$LDFLAGS&quot;
++    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
++
++    save_LIBS=&quot;$LIBS&quot;
++    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
++
++    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 8983 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
++
++    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
++      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
++      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self_static=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 9081 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self_static=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
++    fi
++
++    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
++    LDFLAGS=&quot;$save_LDFLAGS&quot;
++    LIBS=&quot;$save_LIBS&quot;
++    ;;
++  esac
++
++  case $lt_cv_dlopen_self in
++  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
++  *) enable_dlopen_self=unknown ;;
++  esac
++
++  case $lt_cv_dlopen_self_static in
++  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
++  *) enable_dlopen_self_static=unknown ;;
++  esac
++fi
++
++
++# Report which librarie types wil actually be built
++echo &quot;$as_me:$LINENO: checking if libtool supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if libtool supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $can_build_shared&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$can_build_shared&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking whether to build shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether to build shared libraries... $ECHO_C&quot; &gt;&amp;6
++test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
++
++# On AIX, shared libraries and static libraries use the same namespace, and
++# are all built from PIC.
++case $host_os in
++aix3*)
++  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  if test -n &quot;$RANLIB&quot;; then
++    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
++    postinstall_cmds='$RANLIB $lib'
++  fi
++  ;;
++
++aix4* | aix5*)
++  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
++    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  fi
++    ;;
++esac
++echo &quot;$as_me:$LINENO: result: $enable_shared&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$enable_shared&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking whether to build static libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether to build static libraries... $ECHO_C&quot; &gt;&amp;6
++# Make sure either enable_shared or enable_static is yes.
++test &quot;$enable_shared&quot; = yes || enable_static=yes
++echo &quot;$as_me:$LINENO: result: $enable_static&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$enable_static&quot; &gt;&amp;6
++
++# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    compiler \
++    CC \
++    LD \
++    lt_prog_compiler_wl \
++    lt_prog_compiler_pic \
++    lt_prog_compiler_static \
++    lt_prog_compiler_no_builtin_flag \
++    export_dynamic_flag_spec \
++    thread_safe_flag_spec \
++    whole_archive_flag_spec \
++    enable_shared_with_static_runtimes \
++    old_archive_cmds \
++    old_archive_from_new_cmds \
++    predep_objects \
++    postdep_objects \
++    predeps \
++    postdeps \
++    compiler_lib_search_path \
++    archive_cmds \
++    archive_expsym_cmds \
++    postinstall_cmds \
++    postuninstall_cmds \
++    old_archive_from_expsyms_cmds \
++    allow_undefined_flag \
++    no_undefined_flag \
++    export_symbols_cmds \
++    hardcode_libdir_flag_spec \
++    hardcode_libdir_flag_spec_ld \
++    hardcode_libdir_separator \
++    hardcode_automatic \
++    module_cmds \
++    module_expsym_cmds \
++    lt_cv_prog_compiler_c_o \
++    exclude_expsyms \
++    include_expsyms; do
++
++    case $var in
++    old_archive_cmds | \
++    old_archive_from_new_cmds | \
++    archive_cmds | \
++    archive_expsym_cmds | \
++    module_cmds | \
++    module_expsym_cmds | \
++    old_archive_from_expsyms_cmds | \
++    export_symbols_cmds | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\$0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
++    ;;
++  esac
++
++cfgfile=&quot;${ofile}T&quot;
++  trap &quot;$rm \&quot;$cfgfile\&quot;; exit 1&quot; 1 2 15
++  $rm -f &quot;$cfgfile&quot;
++  { echo &quot;$as_me:$LINENO: creating $ofile&quot; &gt;&amp;5
++echo &quot;$as_me: creating $ofile&quot; &gt;&amp;6;}
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++#! $SHELL
++
++# `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
++# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
++# NOTE: Changes made to this file will be lost: look at ltmain.sh.
++#
++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
++# Free Software Foundation, Inc.
++#
++# This file is part of GNU Libtool:
++# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
++#
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful, but
++# WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++# General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#
++# As a special exception to the GNU General Public License, if you
++# distribute this file as part of a program that contains a
++# configuration script generated by Autoconf, you may include it under
++# the same distribution terms that you use for the rest of that program.
++
++# A sed program that does not truncate output.
++SED=$lt_SED
++
++# Sed that helps us avoid accidentally triggering echo(1) options like -n.
++Xsed=&quot;$SED -e 1s/^X//&quot;
++
++# The HP-UX ksh and POSIX shell print the target directory to stdout
++# if CDPATH is set.
++(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH
++
++# The names of the tagged configurations supported by this script.
++available_tags=
++
++# ### BEGIN LIBTOOL CONFIG
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$archive_cmds_need_lc
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_compiler
++
++# Is the compiler the GNU C compiler?
++with_gcc=$GCC
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_LD
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_lt_prog_compiler_wl
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_lt_prog_compiler_pic
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_lt_cv_prog_compiler_c_o
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_lt_prog_compiler_static
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_whole_archive_flag_spec
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_thread_safe_flag_spec
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_old_archive_cmds
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_archive_cmds
++archive_expsym_cmds=$lt_archive_expsym_cmds
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_module_cmds
++module_expsym_cmds=$lt_module_expsym_cmds
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_predep_objects
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_postdep_objects
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_predeps
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_postdeps
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_compiler_lib_search_path
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_allow_undefined_flag
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_no_undefined_flag
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
++
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var
++
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var
++
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
++# How to hardcode a shared library path into an executable.
++hardcode_action=$hardcode_action
++
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs
++
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
++
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
++
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_hardcode_libdir_separator
++
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$hardcode_direct
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$hardcode_minus_L
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$hardcode_shlibpath_var
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$hardcode_automatic
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$link_all_deplibs
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$fix_srcfile_path&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_export_symbols_cmds
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_exclude_expsyms
++
++# Symbols that must always be exported.
++include_expsyms=$lt_include_expsyms
++
++# ### END LIBTOOL CONFIG
++
++__EOF__
++
++
++  case $host_os in
++  aix3*)
++    cat &lt;&lt;\EOF &gt;&gt; &quot;$cfgfile&quot;
++
++# AIX sometimes has problems with the GCC collect2 program.  For some
++# reason, if we set the COLLECT_NAMES environment variable, the problems
++# vanish in a puff of smoke.
++if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
++  COLLECT_NAMES=
++  export COLLECT_NAMES
++fi
++EOF
++    ;;
++  esac
++
++  # We use sed instead of cat because bash on DJGPP gets confused if
++  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
++  # text mode, it properly converts lines to CR/LF.  This bash problem
++  # is reportedly fixed, but why not run on old versions too?
++  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$cfgfile&quot; || (rm -f &quot;$cfgfile&quot;; exit 1)
++
++  mv -f &quot;$cfgfile&quot; &quot;$ofile&quot; || \
++    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;$cfgfile&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;$cfgfile&quot;)
++  chmod +x &quot;$ofile&quot;
++
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  fi
++fi
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++CC=&quot;$lt_save_CC&quot;
++
++
++# Check whether --with-tags or --without-tags was given.
++if test &quot;${with_tags+set}&quot; = set; then
++  withval=&quot;$with_tags&quot;
++  tagnames=&quot;$withval&quot;
++fi;
++
++if test -f &quot;$ltmain&quot; &amp;&amp; test -n &quot;$tagnames&quot;; then
++  if test ! -f &quot;${ofile}&quot;; then
++    { echo &quot;$as_me:$LINENO: WARNING: output file \`$ofile' does not exist&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: output file \`$ofile' does not exist&quot; &gt;&amp;2;}
++  fi
++
++  if test -z &quot;$LTCC&quot;; then
++    eval &quot;`$SHELL ${ofile} --config | grep '^LTCC='`&quot;
++    if test -z &quot;$LTCC&quot;; then
++      { echo &quot;$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: output file \`$ofile' does not look like a libtool script&quot; &gt;&amp;2;}
++    else
++      { echo &quot;$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'&quot; &gt;&amp;2;}
++    fi
++  fi
++
++  # Extract list of available tagged configurations in $ofile.
++  # Note that this assumes the entire list is on one line.
++  available_tags=`grep &quot;^available_tags=&quot; &quot;${ofile}&quot; | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\&quot;//g'`
++
++  lt_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}$PATH_SEPARATOR,&quot;
++  for tagname in $tagnames; do
++    IFS=&quot;$lt_save_ifs&quot;
++    # Check whether tagname contains only valid characters
++    case `$echo &quot;X$tagname&quot; | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
++    &quot;&quot;) ;;
++    *)  { { echo &quot;$as_me:$LINENO: error: invalid tag name: $tagname&quot; &gt;&amp;5
++echo &quot;$as_me: error: invalid tag name: $tagname&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++        ;
++    esac
++
++    if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;${ofile}&quot; &gt; /dev/null
++    then
++      { { echo &quot;$as_me:$LINENO: error: tag name \&quot;$tagname\&quot; already exists&quot; &gt;&amp;5
++echo &quot;$as_me: error: tag name \&quot;$tagname\&quot; already exists&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++    fi
++
++    # Update the list of available tags.
++    if test -n &quot;$tagname&quot;; then
++      echo appending configuration tag \&quot;$tagname\&quot; to $ofile
++
++      case $tagname in
++      CXX)
++        if test -n &quot;$CXX&quot; &amp;&amp; ( test &quot;X$CXX&quot; != &quot;Xno&quot; &amp;&amp;
++            ( (test &quot;X$CXX&quot; = &quot;Xg++&quot; &amp;&amp; `g++ -v &gt;/dev/null 2&gt;&amp;1` ) ||
++            (test &quot;X$CXX&quot; != &quot;Xg++&quot;))) ; then
++          ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++
++
++archive_cmds_need_lc_CXX=no
++allow_undefined_flag_CXX=
++always_export_symbols_CXX=no
++archive_expsym_cmds_CXX=
++export_dynamic_flag_spec_CXX=
++hardcode_direct_CXX=no
++hardcode_libdir_flag_spec_CXX=
++hardcode_libdir_flag_spec_ld_CXX=
++hardcode_libdir_separator_CXX=
++hardcode_minus_L_CXX=no
++hardcode_automatic_CXX=no
++module_cmds_CXX=
++module_expsym_cmds_CXX=
++link_all_deplibs_CXX=unknown
++old_archive_cmds_CXX=$old_archive_cmds
++no_undefined_flag_CXX=
++whole_archive_flag_spec_CXX=
++enable_shared_with_static_runtimes_CXX=no
++
++# Dependencies to place before and after the object being linked:
++predep_objects_CXX=
++postdep_objects_CXX=
++predeps_CXX=
++postdeps_CXX=
++compiler_lib_search_path_CXX=
++
++# Source file extension for C++ test sources.
++ac_ext=cpp
++
++# Object file extension for compiled C++ test sources.
++objext=o
++objext_CXX=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;int some_variable = 0;\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++
++
++# save warnings/boilerplate of simple test code
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=$CC
++lt_save_LD=$LD
++lt_save_GCC=$GCC
++GCC=$GXX
++lt_save_with_gnu_ld=$with_gnu_ld
++lt_save_path_LD=$lt_cv_path_LD
++if test -n &quot;${lt_cv_prog_gnu_ldcxx+set}&quot;; then
++  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
++else
++  unset lt_cv_prog_gnu_ld
++fi
++if test -n &quot;${lt_cv_path_LDCXX+set}&quot;; then
++  lt_cv_path_LD=$lt_cv_path_LDCXX
++else
++  unset lt_cv_path_LD
++fi
++test -z &quot;${LDCXX+set}&quot; || LD=$LDCXX
++CC=${CXX-&quot;c++&quot;}
++compiler=$CC
++compiler_CXX=$CC
++for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++
++# We don't want -fno-exception wen compiling C++ code, so set the
++# no_builtin_flag separately
++if test &quot;$GXX&quot; = yes; then
++  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
++else
++  lt_prog_compiler_no_builtin_flag_CXX=
++fi
++
++if test &quot;$GXX&quot; = yes; then
++  # Set up default GNU C++ configuration
++
++
++# Check whether --with-gnu-ld or --without-gnu-ld was given.
++if test &quot;${with_gnu_ld+set}&quot; = set; then
++  withval=&quot;$with_gnu_ld&quot;
++  test &quot;$withval&quot; = no || with_gnu_ld=yes
++else
++  with_gnu_ld=no
++fi;
++ac_prog=ld
++if test &quot;$GCC&quot; = yes; then
++  # Check if gcc -print-prog-name=ld gives a path.
++  echo &quot;$as_me:$LINENO: checking for ld used by $CC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for ld used by $CC... $ECHO_C&quot; &gt;&amp;6
++  case $host in
++  *-*-mingw*)
++    # gcc leaves a trailing carriage return which upsets mingw
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5 | tr -d '\015'` ;;
++  *)
++    ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5` ;;
++  esac
++  case $ac_prog in
++    # Accept absolute paths.
++    [\\/]* | ?:[\\/]*)
++      re_direlt='/[^/][^/]*/\.\./'
++      # Canonicalize the pathname of ld
++      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
++      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
++        ac_prog=`echo $ac_prog| $SED &quot;s%$re_direlt%/%&quot;`
++      done
++      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
++      ;;
++  &quot;&quot;)
++    # If it fails, then pretend we aren't using GCC.
++    ac_prog=ld
++    ;;
++  *)
++    # If it is relative, then search for the first ld in PATH.
++    with_gnu_ld=unknown
++    ;;
++  esac
++elif test &quot;$with_gnu_ld&quot; = yes; then
++  echo &quot;$as_me:$LINENO: checking for GNU ld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for GNU ld... $ECHO_C&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: checking for non-GNU ld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for non-GNU ld... $ECHO_C&quot; &gt;&amp;6
++fi
++if test &quot;${lt_cv_path_LD+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -z &quot;$LD&quot;; then
++  lt_save_ifs=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++  for ac_dir in $PATH; do
++    IFS=&quot;$lt_save_ifs&quot;
++    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++    if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
++      lt_cv_path_LD=&quot;$ac_dir/$ac_prog&quot;
++      # Check to see if the program is GNU ld.  I'd rather use --version,
++      # but apparently some variants of GNU ld only accept -v.
++      # Break only if it was the GNU/non-GNU ld that we prefer.
++      case `&quot;$lt_cv_path_LD&quot; -v 2&gt;&amp;1 &lt;/dev/null` in
++      *GNU* | *'with BFD'*)
++        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
++        ;
++      *)
++        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
++        ;
++      esac
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++else
++  lt_cv_path_LD=&quot;$LD&quot; # Let the user override the test with a path.
++fi
++fi
++
++LD=&quot;$lt_cv_path_LD&quot;
++if test -n &quot;$LD&quot;; then
++  echo &quot;$as_me:$LINENO: result: $LD&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$LD&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++test -z &quot;$LD&quot; &amp;&amp; { { echo &quot;$as_me:$LINENO: error: no acceptable ld found in \$PATH&quot; &gt;&amp;5
++echo &quot;$as_me: error: no acceptable ld found in \$PATH&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++echo &quot;$as_me:$LINENO: checking if the linker ($LD) is GNU ld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if the linker ($LD) is GNU ld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_gnu_ld+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  # I'd rather use --version here, but apparently some GNU lds only accept -v.
++case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
++*GNU* | *'with BFD'*)
++  lt_cv_prog_gnu_ld=yes
++  ;;
++*)
++  lt_cv_prog_gnu_ld=no
++  ;;
++esac
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_gnu_ld&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_gnu_ld&quot; &gt;&amp;6
++with_gnu_ld=$lt_cv_prog_gnu_ld
++
++
++
++  # Check if GNU C++ uses GNU ld as the underlying linker, since the
++  # archiving commands below assume that GNU ld is being used.
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++
++    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
++    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
++
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
++    #     investigate it a little bit more. (MM)
++    wlarc='${wl}'
++
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if eval &quot;`$CC -print-prog-name=ld` --help 2&gt;&amp;1&quot; | \
++        grep 'no-whole-archive' &gt; /dev/null; then
++      whole_archive_flag_spec_CXX=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++    else
++      whole_archive_flag_spec_CXX=
++    fi
++  else
++    with_gnu_ld=no
++    wlarc=
++
++    # A generic and very simple default shared library creation
++    # command for GNU C++ for the case where it uses the native
++    # linker, instead of GNU ld.  If possible, this setting should
++    # overridden to take advantage of the native linker features on
++    # the platform it is being used on.
++    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
++  fi
++
++  # Commands to make compiler produce verbose output that lists
++  # what &quot;hidden&quot; libraries, object files and flags are used when
++  # linking a shared library.
++  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++else
++  GXX=no
++  with_gnu_ld=no
++  wlarc=
++fi
++
++# PORTME: fill in a description of your system's C++ link characteristics
++echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++ld_shlibs_CXX=yes
++case $host_os in
++  aix3*)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++  aix4* | aix5*)
++    if test &quot;$host_cpu&quot; = ia64; then
++      # On IA64, the linker does run time linking by default, so we don't
++      # have to do anything special.
++      aix_use_runtimelinking=no
++      exp_sym_flag='-Bexport'
++      no_entry_flag=&quot;&quot;
++    else
++      aix_use_runtimelinking=no
++
++      # Test if we are trying to use run time linking or normal
++      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++      # need to do runtime linking.
++      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
++        for ld_flag in $LDFLAGS; do
++          case $ld_flag in
++          *-brtl*)
++            aix_use_runtimelinking=yes
++            break
++            ;;
++          esac
++        done
++      esac
++
++      exp_sym_flag='-bexport'
++      no_entry_flag='-bnoentry'
++    fi
++
++    # When large executables or shared objects are built, AIX ld can
++    # have problems creating the table of contents.  If linking a library
++    # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++    archive_cmds_CXX=''
++    hardcode_direct_CXX=yes
++    hardcode_libdir_separator_CXX=':'
++    link_all_deplibs_CXX=yes
++
++    if test &quot;$GXX&quot; = yes; then
++      case $host_os in aix4.[012]|aix4.[012].*)
++      # We only want to do this on AIX 4.2 and lower, the check
++      # below for broken collect2 doesn't work under 4.3+
++        collect2name=`${CC} -print-prog-name=collect2`
++        if test -f &quot;$collect2name&quot; &amp;&amp; \
++           strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++        then
++          # We have reworked collect2
++          hardcode_direct_CXX=yes
++        else
++          # We have old collect2
++          hardcode_direct_CXX=unsupported
++          # It fails to find uninstalled libraries when the uninstalled
++          # path is not listed in the libpath.  Setting hardcode_minus_L
++          # to unsupported forces relinking
++          hardcode_minus_L_CXX=yes
++          hardcode_libdir_flag_spec_CXX='-L$libdir'
++          hardcode_libdir_separator_CXX=
++        fi
++      esac
++      shared_flag='-shared'
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++      fi
++    else
++      # not using gcc
++      if test &quot;$host_cpu&quot; = ia64; then
++        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++        # chokes on -Wl,-G. The following line is correct:
++        shared_flag='-G'
++      else
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag='${wl}-G'
++        else
++          shared_flag='${wl}-bM:SRE'
++        fi
++      fi
++    fi
++
++    # It seems that -bexpall does not export symbols beginning with
++    # underscore (_), so it is better to generate a list of symbols to export.
++    always_export_symbols_CXX=yes
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # Warning - without using the other runtime loading flags (-brtl),
++      # -berok will link without error, but may produce a broken library.
++      allow_undefined_flag_CXX='-berok'
++      # Determine the default libpath from the value encoded in an empty executable.
++      cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++
++      archive_expsym_cmds_CXX=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++     else
++      if test &quot;$host_cpu&quot; = ia64; then
++        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
++        allow_undefined_flag_CXX=&quot;-z nodefs&quot;
++        archive_expsym_cmds_CXX=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++      else
++        # Determine the default libpath from the value encoded in an empty executable.
++        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        # Warning - without using the other run time loading flags,
++        # -berok will link without error, but may produce a broken library.
++        no_undefined_flag_CXX=' ${wl}-bernotok'
++        allow_undefined_flag_CXX=' ${wl}-berok'
++        # -bexpall does not export symbols beginning with underscore (_)
++        always_export_symbols_CXX=yes
++        # Exported symbols can be pulled into shared objects from archives
++        whole_archive_flag_spec_CXX=' '
++        archive_cmds_need_lc_CXX=yes
++        # This is similar to how AIX traditionally builds its shared libraries.
++        archive_expsym_cmds_CXX=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++      fi
++    fi
++    ;;
++  chorus*)
++    case $cc_basename in
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++
++
++  cygwin* | mingw* | pw32*)
++    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
++    # as there is no search path for DLLs.
++    hardcode_libdir_flag_spec_CXX='-L$libdir'
++    allow_undefined_flag_CXX=unsupported
++    always_export_symbols_CXX=no
++    enable_shared_with_static_runtimes_CXX=yes
++
++    if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++      # If the export-symbols file already is a .def file (1st line
++      # is EXPORTS), use it as is; otherwise, prepend...
++      archive_expsym_cmds_CXX='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++        cp $export_symbols $output_objdir/$soname.def;
++      else
++        echo EXPORTS &gt; $output_objdir/$soname.def;
++        cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++      fi~
++      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++    else
++      ld_shlibs_CXX=no
++    fi
++  ;;
++      darwin* | rhapsody*)
++        case $host_os in
++        rhapsody* | darwin1.[012])
++         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[012])
++               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++        esac
++      archive_cmds_need_lc_CXX=no
++      hardcode_direct_CXX=no
++      hardcode_automatic_CXX=yes
++      hardcode_shlibpath_var_CXX=unsupported
++      whole_archive_flag_spec_CXX=''
++      link_all_deplibs_CXX=yes
++
++    if test &quot;$GXX&quot; = yes ; then
++      lt_int_apple_cc_single_mod=no
++      output_verbose_link_cmd='echo'
++      if $CC -dumpspecs 2&gt;&amp;1 | $EGREP 'single_module' &gt;/dev/null ; then
++       lt_int_apple_cc_single_mod=yes
++      fi
++      if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
++       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      else
++          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++        fi
++        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++          if test &quot;X$lt_int_apple_cc_single_mod&quot; = Xyes ; then
++            archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          else
++            archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          fi
++            module_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++          archive_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          module_expsym_cmds_CXX='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         ld_shlibs_CXX=no
++          ;;
++      esac
++      fi
++        ;;
++
++  dgux*)
++    case $cc_basename in
++      ec++*)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      ghcx*)
++        # Green Hills C++ Compiler
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++  freebsd[12]*)
++    # C++ shared libraries reported to be fairly broken before switch to ELF
++    ld_shlibs_CXX=no
++    ;;
++  freebsd-elf*)
++    archive_cmds_need_lc_CXX=no
++    ;;
++  freebsd* | kfreebsd*-gnu | dragonfly*)
++    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
++    # conventions
++    ld_shlibs_CXX=yes
++    ;;
++  gnu*)
++    ;;
++  hpux9*)
++    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
++    hardcode_libdir_separator_CXX=:
++    export_dynamic_flag_spec_CXX='${wl}-E'
++    hardcode_direct_CXX=yes
++    hardcode_minus_L_CXX=yes # Not in the search PATH,
++                                # but as the default
++                                # location of the library.
++
++    case $cc_basename in
++    CC*)
++      # FIXME: insert proper C++ library support
++      ld_shlibs_CXX=no
++      ;;
++    aCC*)
++      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      # Commands to make compiler produce verbose output that lists
++      # what &quot;hidden&quot; libraries, object files and flags are used when
++      # linking a shared library.
++      #
++      # There doesn't appear to be a way to prevent this compiler from
++      # explicitly linking system object files so we need to strip them
++      # from the output so that they don't get included in the library
++      # dependencies.
++      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;[-]L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++      ;;
++    *)
++      if test &quot;$GXX&quot; = yes; then
++        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++      fi
++      ;;
++    esac
++    ;;
++  hpux10*|hpux11*)
++    if test $with_gnu_ld = no; then
++      case $host_cpu in
++      hppa*64*)
++        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
++        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
++        hardcode_libdir_separator_CXX=:
++        ;;
++      ia64*)
++        hardcode_libdir_flag_spec_CXX='-L$libdir'
++        ;;
++      *)
++        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
++        hardcode_libdir_separator_CXX=:
++        export_dynamic_flag_spec_CXX='${wl}-E'
++        ;;
++      esac
++    fi
++    case $host_cpu in
++    hppa*64*)
++      hardcode_direct_CXX=no
++      hardcode_shlibpath_var_CXX=no
++      ;;
++    ia64*)
++      hardcode_direct_CXX=no
++      hardcode_shlibpath_var_CXX=no
++      hardcode_minus_L_CXX=yes # Not in the search PATH,
++                                              # but as the default
++                                              # location of the library.
++      ;;
++    *)
++      hardcode_direct_CXX=yes
++      hardcode_minus_L_CXX=yes # Not in the search PATH,
++                                              # but as the default
++                                              # location of the library.
++      ;;
++    esac
++
++    case $cc_basename in
++      CC*)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      aCC*)
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
++          ;;
++        *)
++          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++          ;;
++        esac
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2&gt;&amp;1) | grep &quot;\-L&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes; then
++          if test $with_gnu_ld = no; then
++            case $host_cpu in
++            ia64*|hppa*64*)
++              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
++              ;;
++            *)
++              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++              ;;
++            esac
++          fi
++        else
++          # FIXME: insert proper C++ library support
++          ld_shlibs_CXX=no
++        fi
++        ;
++    esac
++    ;;
++  irix5* | irix6*)
++    case $cc_basename in
++      CC*)
++        # SGI C++
++        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -ar&quot;, where &quot;CC&quot; is the IRIX C++ compiler.  This is
++        # necessary to make sure instantiated templates are included
++        # in the archive.
++        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes; then
++          if test &quot;$with_gnu_ld&quot; = no; then
++            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++          else
++            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` -o $lib'
++          fi
++        fi
++        link_all_deplibs_CXX=yes
++        ;
++    esac
++    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
++    hardcode_libdir_separator_CXX=:
++    ;;
++  linux*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2&gt;&amp;1 | grep &quot;ld&quot;`; rm -f libconftest$shared_ext; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++
++        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
++        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
++        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
++        ;
++      icpc*)
++        # Intel C++
++        with_gnu_ld=yes
++        # version 8.0 and above of icpc choke on multiply defined symbols
++        # if we add $predep_objects and $postdep_objects, however 7.1 and
++        # earlier do not add the objects themselves.
++        case `$CC -V 2&gt;&amp;1` in
++        *&quot;Version 7.&quot;*)
++            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++          ;;
++        *)  # Version 8.0 or newer
++          tmp_idyn=
++          case $host_cpu in
++            ia64*) tmp_idyn=' -i_dynamic';;
++          esac
++            archive_cmds_CXX='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++          archive_expsym_cmds_CXX='$CC -shared'&quot;$tmp_idyn&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++          ;;
++        esac
++        archive_cmds_need_lc_CXX=no
++        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
++        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
++        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
++        ;
++      pgCC*)
++        # Portland Group C++ compiler
++        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
++          archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
++
++        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
++        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
++        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++        ;;
++      cxx*)
++        # Compaq C++
++        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
++
++        runpath_var=LD_RUN_PATH
++        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
++        hardcode_libdir_separator_CXX=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld .*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++    esac
++    ;;
++  lynxos*)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++  m88k*)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++  mvs*)
++    case $cc_basename in
++      cxx*)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
++      wlarc=
++      hardcode_libdir_flag_spec_CXX='-R$libdir'
++      hardcode_direct_CXX=yes
++      hardcode_shlibpath_var_CXX=no
++    fi
++    # Workaround some broken pre-1.5 toolchains
++    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep conftest.$objext | $SED -e &quot;s:-lgcc -lc -lgcc::&quot;'
++    ;;
++  openbsd2*)
++    # C++ shared libraries are fairly broken
++    ld_shlibs_CXX=no
++    ;;
++  openbsd*)
++    hardcode_direct_CXX=yes
++    hardcode_shlibpath_var_CXX=no
++    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
++    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
++    if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
++      export_dynamic_flag_spec_CXX='${wl}-E'
++      whole_archive_flag_spec_CXX=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++    fi
++    output_verbose_link_cmd='echo'
++    ;;
++  osf3*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++
++        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
++        hardcode_libdir_separator_CXX=:
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -Bstatic&quot;, where &quot;CC&quot; is the KAI C++ compiler.
++        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
++
++        ;
++      RCC*)
++        # Rational C++ 2.4.1
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      cxx*)
++        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++
++        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
++        hardcode_libdir_separator_CXX=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
++          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++
++          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
++          hardcode_libdir_separator_CXX=:
++
++          # Commands to make compiler produce verbose output that lists
++          # what &quot;hidden&quot; libraries, object files and flags are used when
++          # linking a shared library.
++          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++        else
++          # FIXME: insert proper C++ library support
++          ld_shlibs_CXX=no
++        fi
++        ;
++    esac
++    ;;
++  osf4* | osf5*)
++    case $cc_basename in
++      KCC*)
++        # Kuck and Associates, Inc. (KAI) C++ Compiler
++
++        # KCC will only create a shared library if the output file
++        # ends with &quot;.so&quot; (or &quot;.sl&quot; for HP-UX), so rename the library
++        # to its proper name (with version) after linking.
++        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e &quot;s/\${tempext}\..*/.so/&quot;`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
++
++        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
++        hardcode_libdir_separator_CXX=:
++
++        # Archives containing C++ object files must be created using
++        # the KAI C++ compiler.
++        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
++        ;
++      RCC*)
++        # Rational C++ 2.4.1
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      cxx*)
++        allow_undefined_flag_CXX=' -expect_unresolved \*'
++        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done~
++          echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version        $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
++          $rm $lib.exp'
++
++        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
++        hardcode_libdir_separator_CXX=:
++
++        # Commands to make compiler produce verbose output that lists
++        # what &quot;hidden&quot; libraries, object files and flags are used when
++        # linking a shared library.
++        #
++        # There doesn't appear to be a way to prevent this compiler from
++        # explicitly linking system object files so we need to strip them
++        # from the output so that they don't get included in the library
++        # dependencies.
++        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;ld&quot; | grep -v &quot;ld:&quot;`; templist=`echo $templist | $SED &quot;s/\(^.*ld.*\)\( .*ld.*$\)/\1/&quot;`; list=&quot;&quot;; for z in $templist; do case $z in conftest.$objext) list=&quot;$list $z&quot;;; *.$objext);; *) list=&quot;$list $z&quot;;;esac; done; echo $list'
++        ;
++      *)
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
++         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++
++          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
++          hardcode_libdir_separator_CXX=:
++
++          # Commands to make compiler produce verbose output that lists
++          # what &quot;hidden&quot; libraries, object files and flags are used when
++          # linking a shared library.
++          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep &quot;\-L&quot;'
++
++        else
++          # FIXME: insert proper C++ library support
++          ld_shlibs_CXX=no
++        fi
++        ;
++    esac
++    ;;
++  psos*)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++  sco*)
++    archive_cmds_need_lc_CXX=no
++    case $cc_basename in
++      CC*)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++  sunos4*)
++    case $cc_basename in
++      CC*)
++        # Sun C++ 4.x
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      lcc*)
++        # Lucid
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++  solaris*)
++    case $cc_basename in
++      CC*)
++        # Sun C++ 4.2, 5.x and Centerline C++
++        archive_cmds_need_lc_CXX=yes
++        no_undefined_flag_CXX=' -zdefs'
++        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
++        archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++        hardcode_libdir_flag_spec_CXX='-R$libdir'
++        hardcode_shlibpath_var_CXX=no
++        case $host_os in
++          solaris2.[0-5] | solaris2.[0-5].*) ;;
++          *)
++            # The C++ compiler is used as linker so we must use $wl
++            # flag to pass the commands to the underlying system
++            # linker. We must also pass each convience library through
++            # to the system linker between allextract/defaultextract.
++            # The C++ compiler will combine linker options so we
++            # cannot just pass the convience library names through
++            # without $wl.
++            # Supported since Solaris 2.6 (maybe 2.5.1?)
++            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract'
++            ;;
++        esac
++        link_all_deplibs_CXX=yes
++
++        output_verbose_link_cmd='echo'
++
++        # Archives containing C++ object files must be created using
++        # &quot;CC -xar&quot;, where &quot;CC&quot; is the Sun C++ compiler.  This is
++        # necessary to make sure instantiated templates are included
++        # in the archive.
++        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
++        ;
++      gcx*)
++        # Green Hills C++ Compiler
++        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++
++        # The C++ compiler must be used to create the archive.
++        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
++        ;
++      *)
++        # GNU C++ compiler with Solaris linker
++        if test &quot;$GXX&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = no; then
++          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
++          if $CC --version | grep -v '^2\.7' &gt; /dev/null; then
++            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++            archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++            # Commands to make compiler produce verbose output that lists
++            # what &quot;hidden&quot; libraries, object files and flags are used when
++            # linking a shared library.
++            output_verbose_link_cmd=&quot;$CC -shared $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
++          else
++            # g++ 2.7 appears to require `-G' NOT `-shared' on this
++            # platform.
++            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
++            archive_expsym_cmds_CXX='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
++
++            # Commands to make compiler produce verbose output that lists
++            # what &quot;hidden&quot; libraries, object files and flags are used when
++            # linking a shared library.
++            output_verbose_link_cmd=&quot;$CC -G $CFLAGS -v conftest.$objext 2&gt;&amp;1 | grep \&quot;\-L\&quot;&quot;
++          fi
++
++          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
++        fi
++        ;
++    esac
++    ;;
++  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
++    archive_cmds_need_lc_CXX=no
++    ;;
++  tandem*)
++    case $cc_basename in
++      NCC*)
++        # NonStop-UX NCC 3.20
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++      *)
++        # FIXME: insert proper C++ library support
++        ld_shlibs_CXX=no
++        ;
++    esac
++    ;;
++  vxworks*)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++  *)
++    # FIXME: insert proper C++ library support
++    ld_shlibs_CXX=no
++    ;;
++esac
++echo &quot;$as_me:$LINENO: result: $ld_shlibs_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ld_shlibs_CXX&quot; &gt;&amp;6
++test &quot;$ld_shlibs_CXX&quot; = no &amp;&amp; can_build_shared=no
++
++GCC_CXX=&quot;$GXX&quot;
++LD_CXX=&quot;$LD&quot;
++
++
++cat &gt; conftest.$ac_ext &lt;&lt;EOF
++class Foo
++{
++public:
++  Foo (void) { a = 0; }
++private:
++  int a;
++};
++EOF
++
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; then
++  # Parse the compiler output and extract the necessary
++  # objects, libraries and library flags.
++
++  # Sentinel used to keep track of whether or not we are before
++  # the conftest object file.
++  pre_test_object_deps_done=no
++
++  # The `*' in the case matches for architectures that use `case' in
++  # $output_verbose_cmd can trigger glob expansion during the loop
++  # eval without this substitution.
++  output_verbose_link_cmd=`$echo &quot;X$output_verbose_link_cmd&quot; | $Xsed -e &quot;$no_glob_subst&quot;`
++
++  for p in `eval $output_verbose_link_cmd`; do
++    case $p in
++
++    -L* | -R* | -l*)
++       # Some compilers place space between &quot;-{L,R}&quot; and the path.
++       # Remove the space.
++       if test $p = &quot;-L&quot; \
++          || test $p = &quot;-R&quot;; then
++         prev=$p
++         continue
++       else
++         prev=
++       fi
++
++       if test &quot;$pre_test_object_deps_done&quot; = no; then
++         case $p in
++         -L* | -R*)
++           # Internal compiler library paths should come after those
++           # provided the user.  The postdeps already come after the
++           # user supplied libs so there is no need to process them.
++           if test -z &quot;$compiler_lib_search_path_CXX&quot;; then
++             compiler_lib_search_path_CXX=&quot;${prev}${p}&quot;
++           else
++             compiler_lib_search_path_CXX=&quot;${compiler_lib_search_path_CXX} ${prev}${p}&quot;
++           fi
++           ;;
++         # The &quot;-l&quot; case would never come before the object being
++         # linked, so don't bother handling this case.
++         esac
++       else
++         if test -z &quot;$postdeps_CXX&quot;; then
++           postdeps_CXX=&quot;${prev}${p}&quot;
++         else
++           postdeps_CXX=&quot;${postdeps_CXX} ${prev}${p}&quot;
++         fi
++       fi
++       ;;
++
++    *.$objext)
++       # This assumes that the test object file only shows up
++       # once in the compiler output.
++       if test &quot;$p&quot; = &quot;conftest.$objext&quot;; then
++         pre_test_object_deps_done=yes
++         continue
++       fi
++
++       if test &quot;$pre_test_object_deps_done&quot; = no; then
++         if test -z &quot;$predep_objects_CXX&quot;; then
++           predep_objects_CXX=&quot;$p&quot;
++         else
++           predep_objects_CXX=&quot;$predep_objects_CXX $p&quot;
++         fi
++       else
++         if test -z &quot;$postdep_objects_CXX&quot;; then
++           postdep_objects_CXX=&quot;$p&quot;
++         else
++           postdep_objects_CXX=&quot;$postdep_objects_CXX $p&quot;
++         fi
++       fi
++       ;;
++
++    *) ;; # Ignore the rest.
++
++    esac
++  done
++
++  # Clean up.
++  rm -f a.out a.exe
++else
++  echo &quot;libtool.m4: error: problem compiling CXX test program&quot;
++fi
++
++$rm -f confest.$objext
++
++# PORTME: override above test on systems where it is broken
++case $host_os in
++solaris*)
++  case $cc_basename in
++  CC*)
++    # Adding this requires a known-good setup of shared libraries for
++    # Sun compiler versions before 5.6, else PIC objects from an old
++    # archive will be linked into the output, leading to subtle bugs.
++    postdeps_CXX='-lCstd -lCrun'
++    ;;
++  esac
++esac
++
++
++case &quot; $postdeps_CXX &quot; in
++*&quot; -lc &quot;*) archive_cmds_need_lc_CXX=no ;;
++esac
++
++lt_prog_compiler_wl_CXX=
++lt_prog_compiler_pic_CXX=
++lt_prog_compiler_static_CXX=
++
++echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
++
++  # C++ specific cases for pic, static, wl, etc.
++  if test &quot;$GXX&quot; = yes; then
++    lt_prog_compiler_wl_CXX='-Wl,'
++    lt_prog_compiler_static_CXX='-static'
++
++    case $host_os in
++    aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static_CXX='-Bstatic'
++      fi
++      ;;
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
++      ;;
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++    mingw* | os2* | pw32*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
++      ;;
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      lt_prog_compiler_pic_CXX='-fno-common'
++      ;;
++    *djgpp*)
++      # DJGPP does not support shared libraries at all
++      lt_prog_compiler_pic_CXX=
++      ;;
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        lt_prog_compiler_pic_CXX=-Kconform_pic
++      fi
++      ;;
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        ;
++      *)
++        lt_prog_compiler_pic_CXX='-fPIC'
++        ;
++      esac
++      ;;
++    *)
++      lt_prog_compiler_pic_CXX='-fPIC'
++      ;;
++    esac
++  else
++    case $host_os in
++      aix4* | aix5*)
++        # All AIX code is PIC.
++        if test &quot;$host_cpu&quot; = ia64; then
++          # AIX 5 now supports IA64 processor
++          lt_prog_compiler_static_CXX='-Bstatic'
++        else
++          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
++        fi
++        ;
++      chorus*)
++        case $cc_basename in
++        cxch68*)
++          # Green Hills C++ Compiler
++          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)=&quot;--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a&quot;
++          ;;
++        esac
++        ;
++       darwin*)
++         # PIC is the default on this platform
++         # Common symbols not allowed in MH_DYLIB files
++         case $cc_basename in
++           xlc*)
++           lt_prog_compiler_pic_CXX='-qnocommon'
++           lt_prog_compiler_wl_CXX='-Wl,'
++           ;;
++         esac
++       ;;
++      dgux*)
++        case $cc_basename in
++          ec++*)
++            lt_prog_compiler_pic_CXX='-KPIC'
++            ;;
++          ghcx*)
++            # Green Hills C++ Compiler
++            lt_prog_compiler_pic_CXX='-pic'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      freebsd* | kfreebsd*-gnu | dragonfly*)
++        # FreeBSD uses GNU C++
++        ;
++      hpux9* | hpux10* | hpux11*)
++        case $cc_basename in
++          CC*)
++            lt_prog_compiler_wl_CXX='-Wl,'
++            lt_prog_compiler_static_CXX=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
++            if test &quot;$host_cpu&quot; != ia64; then
++              lt_prog_compiler_pic_CXX='+Z'
++            fi
++            ;;
++          aCC*)
++            lt_prog_compiler_wl_CXX='-Wl,'
++            lt_prog_compiler_static_CXX=&quot;${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive&quot;
++            case $host_cpu in
++            hppa*64*|ia64*)
++              # +Z the default
++              ;;
++            *)
++              lt_prog_compiler_pic_CXX='+Z'
++              ;;
++            esac
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      irix5* | irix6* | nonstopux*)
++        case $cc_basename in
++          CC*)
++            lt_prog_compiler_wl_CXX='-Wl,'
++            lt_prog_compiler_static_CXX='-non_shared'
++            # CC pic flag -KPIC is the default.
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      linux*)
++        case $cc_basename in
++          KCC*)
++            # KAI C++ Compiler
++            lt_prog_compiler_wl_CXX='--backend -Wl,'
++            lt_prog_compiler_pic_CXX='-fPIC'
++            ;;
++          icpc* | ecpc*)
++            # Intel C++
++            lt_prog_compiler_wl_CXX='-Wl,'
++            lt_prog_compiler_pic_CXX='-KPIC'
++            lt_prog_compiler_static_CXX='-static'
++            ;;
++          pgCC*)
++            # Portland Group C++ compiler.
++            lt_prog_compiler_wl_CXX='-Wl,'
++            lt_prog_compiler_pic_CXX='-fpic'
++            lt_prog_compiler_static_CXX='-Bstatic'
++            ;;
++          cxx*)
++            # Compaq C++
++            # Make sure the PIC flag is empty.  It appears that all Alpha
++            # Linux and Compaq Tru64 Unix objects are PIC.
++            lt_prog_compiler_pic_CXX=
++            lt_prog_compiler_static_CXX='-non_shared'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      lynxos*)
++        ;
++      m88k*)
++        ;
++      mvs*)
++        case $cc_basename in
++          cxx*)
++            lt_prog_compiler_pic_CXX='-W c,exportall'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++        ;
++      osf3* | osf4* | osf5*)
++        case $cc_basename in
++          KCC*)
++            lt_prog_compiler_wl_CXX='--backend -Wl,'
++            ;;
++          RCC*)
++            # Rational C++ 2.4.1
++            lt_prog_compiler_pic_CXX='-pic'
++            ;;
++          cxx*)
++            # Digital/Compaq C++
++            lt_prog_compiler_wl_CXX='-Wl,'
++            # Make sure the PIC flag is empty.  It appears that all Alpha
++            # Linux and Compaq Tru64 Unix objects are PIC.
++            lt_prog_compiler_pic_CXX=
++            lt_prog_compiler_static_CXX='-non_shared'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      psos*)
++        ;
++      sco*)
++        case $cc_basename in
++          CC*)
++            lt_prog_compiler_pic_CXX='-fPIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      solaris*)
++        case $cc_basename in
++          CC*)
++            # Sun C++ 4.2, 5.x and Centerline C++
++            lt_prog_compiler_pic_CXX='-KPIC'
++            lt_prog_compiler_static_CXX='-Bstatic'
++            lt_prog_compiler_wl_CXX='-Qoption ld '
++            ;;
++          gcx*)
++            # Green Hills C++ Compiler
++            lt_prog_compiler_pic_CXX='-PIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      sunos4*)
++        case $cc_basename in
++          CC*)
++            # Sun C++ 4.x
++            lt_prog_compiler_pic_CXX='-pic'
++            lt_prog_compiler_static_CXX='-Bstatic'
++            ;;
++          lcc*)
++            # Lucid
++            lt_prog_compiler_pic_CXX='-pic'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      tandem*)
++        case $cc_basename in
++          NCC*)
++            # NonStop-UX NCC 3.20
++            lt_prog_compiler_pic_CXX='-KPIC'
++            ;;
++          *)
++            ;;
++        esac
++        ;
++      unixware*)
++        ;
++      vxworks*)
++        ;
++      *)
++        lt_prog_compiler_can_build_shared_CXX=no
++        ;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_CXX&quot; &gt;&amp;6
++
++#
++# Check to make sure the PIC flag actually works.
++#
++if test -n &quot;$lt_prog_compiler_pic_CXX&quot;; then
++
++echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_prog_compiler_pic_works_CXX+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_prog_compiler_pic_works_CXX=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;$lt_prog_compiler_pic_CXX -DPIC&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:11334: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:11338: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_prog_compiler_pic_works_CXX=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_CXX&quot; &gt;&amp;6
++
++if test x&quot;$lt_prog_compiler_pic_works_CXX&quot; = xyes; then
++    case $lt_prog_compiler_pic_CXX in
++     &quot;&quot; | &quot; &quot;*) ;;
++     *) lt_prog_compiler_pic_CXX=&quot; $lt_prog_compiler_pic_CXX&quot; ;;
++     esac
++else
++    lt_prog_compiler_pic_CXX=
++     lt_prog_compiler_can_build_shared_CXX=no
++fi
++
++fi
++case $host_os in
++  # For platforms which do not support PIC, -DPIC is meaningless:
++  *djgpp*)
++    lt_prog_compiler_pic_CXX=
++    ;;
++  *)
++    lt_prog_compiler_pic_CXX=&quot;$lt_prog_compiler_pic_CXX -DPIC&quot;
++    ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_c_o_CXX+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_c_o_CXX=no
++   $rm -r conftest 2&gt;/dev/null
++   mkdir conftest
++   cd conftest
++   mkdir out
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:11396: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
++   ac_status=$?
++   cat out/conftest.err &gt;&amp;5
++   echo &quot;$as_me:11400: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
++   then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
++     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
++     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_c_o_CXX=yes
++     fi
++   fi
++   chmod u+w . 2&gt;&amp;5
++   $rm conftest*
++   # SGI C++ compiler will create directory out/ii_files/ for
++   # template instantiation
++   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
++   $rm out/* &amp;&amp; rmdir out
++   cd ..
++   rmdir conftest
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_CXX&quot; &gt;&amp;6
++
++
++hard_links=&quot;nottested&quot;
++if test &quot;$lt_cv_prog_compiler_c_o_CXX&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
++  # do not overwrite the value of need_locks provided by the user
++  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
++  hard_links=yes
++  $rm conftest*
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  touch conftest.a
++  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
++  if test &quot;$hard_links&quot; = no; then
++    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
++    need_locks=warn
++  fi
++else
++  need_locks=no
++fi
++
++echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++
++  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  case $host_os in
++  aix4* | aix5*)
++    # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++    # -C means demangle to AIX nm, but means don't demangle with GNU nm
++    if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++    else
++      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++    fi
++    ;;
++  pw32*)
++    export_symbols_cmds_CXX=&quot;$ltdll_cmds&quot;
++  ;;
++  cygwin* | mingw*)
++    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  ;;
++  linux*)
++    link_all_deplibs_CXX=no
++  ;;
++  *)
++    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  ;;
++  esac
++
++echo &quot;$as_me:$LINENO: result: $ld_shlibs_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ld_shlibs_CXX&quot; &gt;&amp;6
++test &quot;$ld_shlibs_CXX&quot; = no &amp;&amp; can_build_shared=no
++
++variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
++if test &quot;$GCC&quot; = yes; then
++  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
++fi
++
++#
++# Do we need to explicitly link libc?
++#
++case &quot;x$archive_cmds_need_lc_CXX&quot; in
++x|xyes)
++  # Assume -lc should be added
++  archive_cmds_need_lc_CXX=yes
++
++  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
++    case $archive_cmds_CXX in
++    *'~'*)
++      # FIXME: we may have to deal with multi-command sequences.
++      ;;
++    '$CC '*)
++      # Test whether the compiler implicitly links with -lc since on some
++      # systems, -lgcc has to come before -lc. If gcc already passes -lc
++      # to ld, don't add -lc before -lgcc.
++      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
++      $rm conftest*
++      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } 2&gt;conftest.err; then
++        soname=conftest
++        lib=conftest
++        libobjs=conftest.$ac_objext
++        deplibs=
++        wl=$lt_prog_compiler_wl_CXX
++        compiler_flags=-v
++        linker_flags=-v
++        verstring=
++        output_objdir=.
++        libname=conftest
++        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
++        allow_undefined_flag_CXX=
++        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_CXX 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
++  (eval $archive_cmds_CXX 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++        then
++          archive_cmds_need_lc_CXX=no
++        else
++          archive_cmds_need_lc_CXX=yes
++        fi
++        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
++      else
++        cat conftest.err 1&gt;&amp;5
++      fi
++      $rm conftest*
++      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$archive_cmds_need_lc_CXX&quot; &gt;&amp;6
++      ;;
++    esac
++  fi
++  ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
++library_names_spec=
++libname_spec='lib$name'
++soname_spec=
++shrext_cmds=&quot;.so&quot;
++postinstall_cmds=
++postuninstall_cmds=
++finish_cmds=
++finish_eval=
++shlibpath_var=
++shlibpath_overrides_runpath=unknown
++version_type=none
++dynamic_linker=&quot;$host_os ld.so&quot;
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++if test &quot;$GCC&quot; = yes; then
++  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
++    # if the path contains &quot;;&quot; then we assume it to be the separator
++    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
++    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
++    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++  else
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++  fi
++else
++  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++fi
++need_lib_prefix=unknown
++hardcode_into_libs=no
++
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
++need_version=unknown
++
++case $host_os in
++aix3*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
++  shlibpath_var=LIBPATH
++
++  # AIX 3 has no versioning support, so we append a major version to the name.
++  soname_spec='${libname}${release}${shared_ext}$major'
++  ;;
++
++aix4* | aix5*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  hardcode_into_libs=yes
++  if test &quot;$host_cpu&quot; = ia64; then
++    # AIX 5 supports IA64
++    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
++    shlibpath_var=LD_LIBRARY_PATH
++  else
++    # With GCC up to 2.95.x, collect2 would create an import file
++    # for dependence libraries.  The import file would start with
++    # the line `#! .'.  This would cause the generated library to
++    # depend on `.', always an invalid library.  This was fixed in
++    # development snapshots of GCC prior to 3.0.
++    case $host_os in
++      aix4 | aix4.[01] | aix4.[01].*)
++      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
++           echo ' yes '
++           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
++        :
++      else
++        can_build_shared=no
++      fi
++      ;;
++    esac
++    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
++    # soname into executable. Probably we can add versioning support to
++    # collect2, so additional links can be useful in future.
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
++      # instead of lib&lt;name&gt;.a to let people know that these are not
++      # typical AIX shared libraries.
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    else
++      # We preserve .a as extension for shared libraries through AIX4.2
++      # and later when we are not doing run time linking.
++      library_names_spec='${libname}${release}.a $libname.a'
++      soname_spec='${libname}${release}${shared_ext}$major'
++    fi
++    shlibpath_var=LIBPATH
++  fi
++  ;;
++
++amigaos*)
++  library_names_spec='$libname.ixlibrary $libname.a'
++  # Create ${libname}_ixlibrary.a entries in /sys/libs.
++  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
++  ;;
++
++beos*)
++  library_names_spec='${libname}${shared_ext}'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  ;;
++
++bsdi[45]*)
++  version_type=linux
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
++  ;;
++
++cygwin* | mingw* | pw32*)
++  version_type=windows
++  shrext_cmds=&quot;.dll&quot;
++  need_version=no
++  need_lib_prefix=no
++
++  case $GCC,$host_os in
++  yes,cygwin* | yes,mingw* | yes,pw32*)
++    library_names_spec='$libname.dll.a'
++    # DLL is installed to $(libdir)/../bin by postinstall_cmds
++    postinstall_cmds='base_file=`basename \${file}`~
++      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
++      dldir=$destdir/`dirname \$dlpath`~
++      test -d \$dldir || mkdir -p \$dldir~
++      $install_prog $dir/$dlname \$dldir/$dlname~
++      chmod a+x \$dldir/$dlname'
++    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
++      dlpath=$dir/\$dldll~
++       $rm \$dlpath'
++    shlibpath_overrides_runpath=yes
++
++    case $host_os in
++    cygwin*)
++      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
++      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
++      ;;
++    mingw*)
++      # MinGW DLLs use traditional 'lib' prefix
++      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
++        # It is most probably a Windows format PATH printed by
++        # mingw gcc, but we are running on Cygwin. Gcc prints its search
++        # path with ; separators, and with drive letters. We can handle the
++        # drive letters (cygwin fileutils understands them), so leave them,
++        # especially as we might pass files found there to a mingw objdump,
++        # which wouldn't understand a cygwinified path. Ahh.
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++      else
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++      fi
++      ;;
++    pw32*)
++      # pw32 DLLs use 'pw' prefix rather than 'lib'
++      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      ;;
++    esac
++    ;;
++
++  *)
++    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
++    ;;
++  esac
++  dynamic_linker='Win32 ld.exe'
++  # FIXME: first we should search . and the directory the executable is in
++  shlibpath_var=PATH
++  ;;
++
++darwin* | rhapsody*)
++  dynamic_linker=&quot;$host_os dyld&quot;
++  version_type=darwin
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
++  soname_spec='${libname}${release}${major}$shared_ext'
++  shlibpath_overrides_runpath=yes
++  shlibpath_var=DYLD_LIBRARY_PATH
++  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
++  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
++  if test &quot;$GCC&quot; = yes; then
++    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
++  else
++    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
++  fi
++  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
++  ;;
++
++dgux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++freebsd1*)
++  dynamic_linker=no
++  ;;
++
++kfreebsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++freebsd* | dragonfly*)
++  # DragonFly does not have aout.  When/if they implement a new
++  # versioning mechanism, adjust this.
++  if test -x /usr/bin/objformat; then
++    objformat=`/usr/bin/objformat`
++  else
++    case $host_os in
++    freebsd[123]*) objformat=aout ;;
++    *) objformat=elf ;;
++    esac
++  fi
++  version_type=freebsd-$objformat
++  case $version_type in
++    freebsd-elf*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
++      need_version=yes
++      ;;
++  esac
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_os in
++  freebsd2*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  freebsd3.[01]* | freebsdelf3.[01]*)
++    shlibpath_overrides_runpath=yes
++    hardcode_into_libs=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    hardcode_into_libs=yes
++    ;;
++  esac
++  ;;
++
++gnu*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  hardcode_into_libs=yes
++  ;;
++
++hpux9* | hpux10* | hpux11*)
++  # Give a soname corresponding to the major version so that dld.sl refuses to
++  # link against other versions.
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  case $host_cpu in
++  ia64*)
++    shrext_cmds='.so'
++    hardcode_into_libs=yes
++    dynamic_linker=&quot;$host_os dld.so&quot;
++    shlibpath_var=LD_LIBRARY_PATH
++    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
++    else
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
++    fi
++    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++    ;;
++   hppa*64*)
++     shrext_cmds='.sl'
++     hardcode_into_libs=yes
++     dynamic_linker=&quot;$host_os dld.sl&quot;
++     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
++     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++     soname_spec='${libname}${release}${shared_ext}$major'
++     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
++     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++     ;;
++   *)
++    shrext_cmds='.sl'
++    dynamic_linker=&quot;$host_os dld.sl&quot;
++    shlibpath_var=SHLIB_PATH
++    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    ;;
++  esac
++  # HP-UX runs *really* slowly unless shared libraries are mode 555.
++  postinstall_cmds='chmod 555 $lib'
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $host_os in
++    nonstopux*) version_type=nonstopux ;;
++    *)
++        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++                version_type=linux
++        else
++                version_type=irix
++        fi ;;
++  esac
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
++  case $host_os in
++  irix5* | nonstopux*)
++    libsuff= shlibsuff=
++    ;;
++  *)
++    case $LD in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
++      libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
++      libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
++      libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  hardcode_into_libs=yes
++  ;;
++
++# No shared lib support for Linux oldld, aout, or coff.
++linux*oldld* | linux*aout* | linux*coff*)
++  dynamic_linker=no
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  # This implies no fast_install, which is unacceptable.
++  # Some rework will be needed to allow for fast_install
++  # before this can be enabled.
++  hardcode_into_libs=yes
++
++  # Append ld.so.conf contents to the search path
++  if test -f /etc/ld.so.conf; then
++    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
++    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
++  fi
++
++  # We used to test for /lib/ld.so.1 and disable shared libraries on
++  # powerpc, because MkLinux only supported shared libraries with the
++  # GNU dynamic linker.  Since this was broken with cross compilers,
++  # most powerpc-linux boxes support dynamic linking these days and
++  # people can always --disable-shared, the test was removed, and we
++  # assume the GNU/Linux dynamic linker is in use.
++  dynamic_linker='GNU/Linux ld.so'
++  ;;
++
++netbsdelf*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='NetBSD ld.elf_so'
++  ;;
++
++knetbsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++netbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  ;;
++
++newsos6)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++nto-qnx*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++openbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
++  case $host_os in
++    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
++    *)                         need_version=no  ;;
++  esac
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    case $host_os in
++      openbsd2.[89] | openbsd2.[89].*)
++        shlibpath_overrides_runpath=no
++        ;
++      *)
++        shlibpath_overrides_runpath=yes
++        ;
++      esac
++  else
++    shlibpath_overrides_runpath=yes
++  fi
++  ;;
++
++os2*)
++  libname_spec='$name'
++  shrext_cmds=&quot;.dll&quot;
++  need_lib_prefix=no
++  library_names_spec='$libname${shared_ext} $libname.a'
++  dynamic_linker='OS/2 ld.exe'
++  shlibpath_var=LIBPATH
++  ;;
++
++osf3* | osf4* | osf5*)
++  version_type=osf
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++sco3.2v5*)
++  version_type=osf
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++solaris*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  # ldd complains unless libraries are executable
++  postinstall_cmds='chmod +x $lib'
++  ;;
++
++sunos4*)
++  version_type=sunos
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_vendor in
++    sni)
++      shlibpath_overrides_runpath=no
++      need_lib_prefix=no
++      export_dynamic_flag_spec='${wl}-Blargedynsym'
++      runpath_var=LD_RUN_PATH
++      ;;
++    siemens)
++      need_lib_prefix=no
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      ;;
++  esac
++  ;;
++
++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
++    soname_spec='$libname${shared_ext}.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
++uts4*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++*)
++  dynamic_linker=no
++  ;;
++esac
++echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
++test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
++
++echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
++hardcode_action_CXX=
++if test -n &quot;$hardcode_libdir_flag_spec_CXX&quot; || \
++   test -n &quot;$runpath_var_CXX&quot; || \
++   test &quot;X$hardcode_automatic_CXX&quot; = &quot;Xyes&quot; ; then
++
++  # We can hardcode non-existant directories.
++  if test &quot;$hardcode_direct_CXX&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)&quot; != no &amp;&amp;
++     test &quot;$hardcode_minus_L_CXX&quot; != no; then
++    # Linking always hardcodes the temporary library directory.
++    hardcode_action_CXX=relink
++  else
++    # We can link without hardcoding, and we can hardcode nonexisting dirs.
++    hardcode_action_CXX=immediate
++  fi
++else
++  # We cannot hardcode anything, or else we can only hardcode existing
++  # directories.
++  hardcode_action_CXX=unsupported
++fi
++echo &quot;$as_me:$LINENO: result: $hardcode_action_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hardcode_action_CXX&quot; &gt;&amp;6
++
++if test &quot;$hardcode_action_CXX&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++
++striplib=
++old_striplib=
++echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
++if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
++  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
++  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
++  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++else
++# FIXME - insert some real tests, host_os isn't really good enough
++  case $host_os in
++   darwin*)
++       if test -n &quot;$STRIP&quot; ; then
++         striplib=&quot;$STRIP -x&quot;
++         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++       else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++       ;;
++   *)
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++    ;;
++  esac
++fi
++
++if test &quot;x$enable_dlopen&quot; != xyes; then
++  enable_dlopen=unknown
++  enable_dlopen_self=unknown
++  enable_dlopen_self_static=unknown
++else
++  lt_cv_dlopen=no
++  lt_cv_dlopen_libs=
++
++  case $host_os in
++  beos*)
++    lt_cv_dlopen=&quot;load_add_on&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++    ;;
++
++  mingw* | pw32*)
++    lt_cv_dlopen=&quot;LoadLibrary&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  cygwin*)
++    lt_cv_dlopen=&quot;dlopen&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  darwin*)
++  # if libdl is installed we need to link against it
++    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++
++    lt_cv_dlopen=&quot;dyld&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++
++fi
++
++   ;;
++
++  *)
++    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define shl_load innocuous_shl_load
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char shl_load (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef shl_load
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_shl_load) || defined (__stub___shl_load)
++choke me
++#else
++char (*f) () = shl_load;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != shl_load;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
++if test $ac_cv_func_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++int
++main ()
++{
++shl_load ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define dlopen innocuous_dlopen
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char dlopen (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef dlopen
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_dlopen) || defined (__stub___dlopen)
++choke me
++#else
++char (*f) () = dlopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != dlopen;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
++if test $ac_cv_func_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-lsvld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_svld_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_svld_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_svld_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dld_link ();
++int
++main ()
++{
++dld_link ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_dld_link=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_dld_link=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_dld_link = yes; then
++  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++    ;;
++  esac
++
++  if test &quot;x$lt_cv_dlopen&quot; != xno; then
++    enable_dlopen=yes
++  else
++    enable_dlopen=no
++  fi
++
++  case $lt_cv_dlopen in
++  dlopen)
++    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
++
++    save_LDFLAGS=&quot;$LDFLAGS&quot;
++    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
++
++    save_LIBS=&quot;$LIBS&quot;
++    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
++
++    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 12781 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
++
++    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
++      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
++      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self_static=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 12879 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self_static=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
++    fi
++
++    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
++    LDFLAGS=&quot;$save_LDFLAGS&quot;
++    LIBS=&quot;$save_LIBS&quot;
++    ;;
++  esac
++
++  case $lt_cv_dlopen_self in
++  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
++  *) enable_dlopen_self=unknown ;;
++  esac
++
++  case $lt_cv_dlopen_self_static in
++  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
++  *) enable_dlopen_self_static=unknown ;;
++  esac
++fi
++
++
++# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    compiler_CXX \
++    CC_CXX \
++    LD_CXX \
++    lt_prog_compiler_wl_CXX \
++    lt_prog_compiler_pic_CXX \
++    lt_prog_compiler_static_CXX \
++    lt_prog_compiler_no_builtin_flag_CXX \
++    export_dynamic_flag_spec_CXX \
++    thread_safe_flag_spec_CXX \
++    whole_archive_flag_spec_CXX \
++    enable_shared_with_static_runtimes_CXX \
++    old_archive_cmds_CXX \
++    old_archive_from_new_cmds_CXX \
++    predep_objects_CXX \
++    postdep_objects_CXX \
++    predeps_CXX \
++    postdeps_CXX \
++    compiler_lib_search_path_CXX \
++    archive_cmds_CXX \
++    archive_expsym_cmds_CXX \
++    postinstall_cmds_CXX \
++    postuninstall_cmds_CXX \
++    old_archive_from_expsyms_cmds_CXX \
++    allow_undefined_flag_CXX \
++    no_undefined_flag_CXX \
++    export_symbols_cmds_CXX \
++    hardcode_libdir_flag_spec_CXX \
++    hardcode_libdir_flag_spec_ld_CXX \
++    hardcode_libdir_separator_CXX \
++    hardcode_automatic_CXX \
++    module_cmds_CXX \
++    module_expsym_cmds_CXX \
++    lt_cv_prog_compiler_c_o_CXX \
++    exclude_expsyms_CXX \
++    include_expsyms_CXX; do
++
++    case $var in
++    old_archive_cmds_CXX | \
++    old_archive_from_new_cmds_CXX | \
++    archive_cmds_CXX | \
++    archive_expsym_cmds_CXX | \
++    module_cmds_CXX | \
++    module_expsym_cmds_CXX | \
++    old_archive_from_expsyms_cmds_CXX | \
++    export_symbols_cmds_CXX | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\$0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
++    ;;
++  esac
++
++cfgfile=&quot;$ofile&quot;
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++# ### BEGIN LIBTOOL TAG CONFIG: $tagname
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$archive_cmds_need_lc_CXX
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_compiler_CXX
++
++# Is the compiler the GNU C compiler?
++with_gcc=$GCC_CXX
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_LD_CXX
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_lt_prog_compiler_wl_CXX
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_lt_prog_compiler_pic_CXX
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_lt_prog_compiler_static_CXX
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_old_archive_cmds_CXX
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_archive_cmds_CXX
++archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_module_cmds_CXX
++module_expsym_cmds=$lt_module_expsym_cmds_CXX
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_predep_objects_CXX
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_postdep_objects_CXX
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_predeps_CXX
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_postdeps_CXX
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_allow_undefined_flag_CXX
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_no_undefined_flag_CXX
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
++
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var
++
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var
++
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
++# How to hardcode a shared library path into an executable.
++hardcode_action=$hardcode_action_CXX
++
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs
++
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
++
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
++
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
++
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$hardcode_direct_CXX
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$hardcode_minus_L_CXX
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$hardcode_automatic_CXX
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$link_all_deplibs_CXX
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$fix_srcfile_path_CXX&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols_CXX
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_export_symbols_cmds_CXX
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_exclude_expsyms_CXX
++
++# Symbols that must always be exported.
++include_expsyms=$lt_include_expsyms_CXX
++
++# ### END LIBTOOL TAG CONFIG: $tagname
++
++__EOF__
++
++
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  fi
++fi
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++CC=$lt_save_CC
++LDCXX=$LD
++LD=$lt_save_LD
++GCC=$lt_save_GCC
++with_gnu_ldcxx=$with_gnu_ld
++with_gnu_ld=$lt_save_with_gnu_ld
++lt_cv_path_LDCXX=$lt_cv_path_LD
++lt_cv_path_LD=$lt_save_path_LD
++lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
++lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
++
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      F77)
++        if test -n &quot;$F77&quot; &amp;&amp; test &quot;X$F77&quot; != &quot;Xno&quot;; then
++
++ac_ext=f
++ac_compile='$F77 -c $FFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_f77_compiler_gnu
++
++
++archive_cmds_need_lc_F77=no
++allow_undefined_flag_F77=
++always_export_symbols_F77=no
++archive_expsym_cmds_F77=
++export_dynamic_flag_spec_F77=
++hardcode_direct_F77=no
++hardcode_libdir_flag_spec_F77=
++hardcode_libdir_flag_spec_ld_F77=
++hardcode_libdir_separator_F77=
++hardcode_minus_L_F77=no
++hardcode_automatic_F77=no
++module_cmds_F77=
++module_expsym_cmds_F77=
++link_all_deplibs_F77=unknown
++old_archive_cmds_F77=$old_archive_cmds
++no_undefined_flag_F77=
++whole_archive_flag_spec_F77=
++enable_shared_with_static_runtimes_F77=no
++
++# Source file extension for f77 test sources.
++ac_ext=f
++
++# Object file extension for compiled f77 test sources.
++objext=o
++objext_F77=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;      subroutine t\n      return\n      end\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code=&quot;      program t\n      end\n&quot;
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++
++
++# save warnings/boilerplate of simple test code
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${F77-&quot;f77&quot;}
++compiler=$CC
++compiler_F77=$CC
++for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++
++echo &quot;$as_me:$LINENO: checking if libtool supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if libtool supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $can_build_shared&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$can_build_shared&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking whether to build shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether to build shared libraries... $ECHO_C&quot; &gt;&amp;6
++test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no
++
++# On AIX, shared libraries and static libraries use the same namespace, and
++# are all built from PIC.
++case $host_os in
++aix3*)
++  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  if test -n &quot;$RANLIB&quot;; then
++    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
++    postinstall_cmds='$RANLIB $lib'
++  fi
++  ;;
++aix4* | aix5*)
++  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
++    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  fi
++  ;;
++esac
++echo &quot;$as_me:$LINENO: result: $enable_shared&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$enable_shared&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking whether to build static libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether to build static libraries... $ECHO_C&quot; &gt;&amp;6
++# Make sure either enable_shared or enable_static is yes.
++test &quot;$enable_shared&quot; = yes || enable_static=yes
++echo &quot;$as_me:$LINENO: result: $enable_static&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$enable_static&quot; &gt;&amp;6
++
++test &quot;$ld_shlibs_F77&quot; = no &amp;&amp; can_build_shared=no
++
++GCC_F77=&quot;$G77&quot;
++LD_F77=&quot;$LD&quot;
++
++lt_prog_compiler_wl_F77=
++lt_prog_compiler_pic_F77=
++lt_prog_compiler_static_F77=
++
++echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
++
++  if test &quot;$GCC&quot; = yes; then
++    lt_prog_compiler_wl_F77='-Wl,'
++    lt_prog_compiler_static_F77='-static'
++
++    case $host_os in
++      aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static_F77='-Bstatic'
++      fi
++      ;;
++
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
++      ;;
++
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
++      ;;
++
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      lt_prog_compiler_pic_F77='-fno-common'
++      ;;
++
++    msdosdjgpp*)
++      # Just because we use GCC doesn't mean we suddenly get shared libraries
++      # on systems that don't support them.
++      lt_prog_compiler_can_build_shared_F77=no
++      enable_shared=no
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        lt_prog_compiler_pic_F77=-Kconform_pic
++      fi
++      ;;
++
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic_F77='-fPIC'
++        ;
++      esac
++      ;;
++
++    *)
++      lt_prog_compiler_pic_F77='-fPIC'
++      ;;
++    esac
++  else
++    # PORTME Check for flag to pass linker flags through the system compiler.
++    case $host_os in
++    aix*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static_F77='-Bstatic'
++      else
++        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
++      fi
++      ;;
++      darwin*)
++        # PIC is the default on this platform
++        # Common symbols not allowed in MH_DYLIB files
++       case $cc_basename in
++         xlc*)
++         lt_prog_compiler_pic_F77='-qnocommon'
++         lt_prog_compiler_wl_F77='-Wl,'
++         ;;
++       esac
++       ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
++      ;;
++
++    hpux9* | hpux10* | hpux11*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic_F77='+Z'
++        ;
++      esac
++      # Is there a better lt_prog_compiler_static that works with the bundled CC?
++      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      # PIC (with -KPIC) is the default.
++      lt_prog_compiler_static_F77='-non_shared'
++      ;;
++
++    newsos6)
++      lt_prog_compiler_pic_F77='-KPIC'
++      lt_prog_compiler_static_F77='-Bstatic'
++      ;;
++
++    linux*)
++      case $cc_basename in
++      icc* | ecc*)
++        lt_prog_compiler_wl_F77='-Wl,'
++        lt_prog_compiler_pic_F77='-KPIC'
++        lt_prog_compiler_static_F77='-static'
++        ;;
++      pgcc* | pgf77* | pgf90* | pgf95*)
++        # Portland Group compilers (*not* the Pentium gcc compiler,
++        # which looks to be a dead project)
++        lt_prog_compiler_wl_F77='-Wl,'
++        lt_prog_compiler_pic_F77='-fpic'
++        lt_prog_compiler_static_F77='-Bstatic'
++        ;;
++      ccc*)
++        lt_prog_compiler_wl_F77='-Wl,'
++        # All Alpha code is PIC.
++        lt_prog_compiler_static_F77='-non_shared'
++        ;;
++      esac
++      ;;
++
++    osf3* | osf4* | osf5*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      # All OSF/1 code is PIC.
++      lt_prog_compiler_static_F77='-non_shared'
++      ;;
++
++    sco3.2v5*)
++      lt_prog_compiler_pic_F77='-Kpic'
++      lt_prog_compiler_static_F77='-dn'
++      ;;
++
++    solaris*)
++      lt_prog_compiler_pic_F77='-KPIC'
++      lt_prog_compiler_static_F77='-Bstatic'
++      case $cc_basename in
++      f77* | f90* | f95*)
++        lt_prog_compiler_wl_F77='-Qoption ld ';;
++      *)
++        lt_prog_compiler_wl_F77='-Wl,';;
++      esac
++      ;;
++
++    sunos4*)
++      lt_prog_compiler_wl_F77='-Qoption ld '
++      lt_prog_compiler_pic_F77='-PIC'
++      lt_prog_compiler_static_F77='-Bstatic'
++      ;;
++
++    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      lt_prog_compiler_pic_F77='-KPIC'
++      lt_prog_compiler_static_F77='-Bstatic'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec ;then
++        lt_prog_compiler_pic_F77='-Kconform_pic'
++        lt_prog_compiler_static_F77='-Bstatic'
++      fi
++      ;;
++
++    unicos*)
++      lt_prog_compiler_wl_F77='-Wl,'
++      lt_prog_compiler_can_build_shared_F77=no
++      ;;
++
++    uts4*)
++      lt_prog_compiler_pic_F77='-pic'
++      lt_prog_compiler_static_F77='-Bstatic'
++      ;;
++
++    *)
++      lt_prog_compiler_can_build_shared_F77=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_F77&quot; &gt;&amp;6
++
++#
++# Check to make sure the PIC flag actually works.
++#
++if test -n &quot;$lt_prog_compiler_pic_F77&quot;; then
++
++echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_prog_compiler_pic_works_F77+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_prog_compiler_pic_works_F77=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;$lt_prog_compiler_pic_F77&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:13764: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:13768: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_prog_compiler_pic_works_F77=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_F77&quot; &gt;&amp;6
++
++if test x&quot;$lt_prog_compiler_pic_works_F77&quot; = xyes; then
++    case $lt_prog_compiler_pic_F77 in
++     &quot;&quot; | &quot; &quot;*) ;;
++     *) lt_prog_compiler_pic_F77=&quot; $lt_prog_compiler_pic_F77&quot; ;;
++     esac
++else
++    lt_prog_compiler_pic_F77=
++     lt_prog_compiler_can_build_shared_F77=no
++fi
++
++fi
++case $host_os in
++  # For platforms which do not support PIC, -DPIC is meaningless:
++  *djgpp*)
++    lt_prog_compiler_pic_F77=
++    ;;
++  *)
++    lt_prog_compiler_pic_F77=&quot;$lt_prog_compiler_pic_F77&quot;
++    ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_c_o_F77+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_c_o_F77=no
++   $rm -r conftest 2&gt;/dev/null
++   mkdir conftest
++   cd conftest
++   mkdir out
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:13826: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
++   ac_status=$?
++   cat out/conftest.err &gt;&amp;5
++   echo &quot;$as_me:13830: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
++   then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
++     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
++     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_c_o_F77=yes
++     fi
++   fi
++   chmod u+w . 2&gt;&amp;5
++   $rm conftest*
++   # SGI C++ compiler will create directory out/ii_files/ for
++   # template instantiation
++   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
++   $rm out/* &amp;&amp; rmdir out
++   cd ..
++   rmdir conftest
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_F77&quot; &gt;&amp;6
++
++
++hard_links=&quot;nottested&quot;
++if test &quot;$lt_cv_prog_compiler_c_o_F77&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
++  # do not overwrite the value of need_locks provided by the user
++  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
++  hard_links=yes
++  $rm conftest*
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  touch conftest.a
++  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
++  if test &quot;$hard_links&quot; = no; then
++    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
++    need_locks=warn
++  fi
++else
++  need_locks=no
++fi
++
++echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++
++  runpath_var=
++  allow_undefined_flag_F77=
++  enable_shared_with_static_runtimes_F77=no
++  archive_cmds_F77=
++  archive_expsym_cmds_F77=
++  old_archive_From_new_cmds_F77=
++  old_archive_from_expsyms_cmds_F77=
++  export_dynamic_flag_spec_F77=
++  whole_archive_flag_spec_F77=
++  thread_safe_flag_spec_F77=
++  hardcode_libdir_flag_spec_F77=
++  hardcode_libdir_flag_spec_ld_F77=
++  hardcode_libdir_separator_F77=
++  hardcode_direct_F77=no
++  hardcode_minus_L_F77=no
++  hardcode_shlibpath_var_F77=unsupported
++  link_all_deplibs_F77=unknown
++  hardcode_automatic_F77=no
++  module_cmds_F77=
++  module_expsym_cmds_F77=
++  always_export_symbols_F77=no
++  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  # include_expsyms should be a list of space-separated symbols to be *always*
++  # included in the symbol list
++  include_expsyms_F77=
++  # exclude_expsyms can be an extended regexp of symbols to exclude
++  # it will be wrapped by ` (' and `)$', so one must not match beginning or
++  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
++  # as well as any symbol that contains `d'.
++  exclude_expsyms_F77=&quot;_GLOBAL_OFFSET_TABLE_&quot;
++  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
++  # platforms (ab)use it in PIC code, but their linkers get confused if
++  # the symbol is explicitly referenced.  Since portable code cannot
++  # rely on this symbol name, it's probably fine to never include it in
++  # preloaded symbol tables.
++  extract_expsyms_cmds=
++  # Just being paranoid about ensuring that cc_basename is set.
++  for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++  case $host_os in
++  cygwin* | mingw* | pw32*)
++    # FIXME: the MSVC++ port hasn't been tested in a loooong time
++    # When not using gcc, we currently assume that we are using
++    # Microsoft Visual C++.
++    if test &quot;$GCC&quot; != yes; then
++      with_gnu_ld=no
++    fi
++    ;;
++  openbsd*)
++    with_gnu_ld=no
++    ;;
++  esac
++
++  ld_shlibs_F77=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    wlarc='${wl}'
++
++    # Set some defaults for GNU ld with shared library support. These
++    # are reset later if shared libraries are not supported. Putting them
++    # here allows them to be overridden if necessary.
++    runpath_var=LD_RUN_PATH
++    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
++    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
++        whole_archive_flag_spec_F77=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++      else
++          whole_archive_flag_spec_F77=
++    fi
++    supports_anon_versioning=no
++    case `$LD -v 2&gt;/dev/null` in
++      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
++      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
++      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
++      *\ 2.11.*) ;; # other 2.11 versions
++      *) supports_anon_versioning=yes ;;
++    esac
++
++    # See if GNU ld supports shared libraries.
++    case $host_os in
++    aix3* | aix4* | aix5*)
++      # On AIX/PPC, the GNU linker is very broken
++      if test &quot;$host_cpu&quot; != ia64; then
++        ld_shlibs_F77=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the GNU linker, at least up to release 2.9.1, is reported
++*** to be unable to reliably create shared libraries on AIX.
++*** Therefore, libtool is disabling shared libraries support.  If you
++*** really care for shared libraries, you may want to modify your PATH
++*** so that a non-GNU linker is found, and then restart.
++
++EOF
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_minus_L_F77=yes
++
++      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
++      # that the semantics of dynamic libraries on AmigaOS, at least up
++      # to version 4, is to share data among multiple programs linked
++      # with the same dynamic library.  Since this doesn't match the
++      # behavior of shared libraries on other platforms, we can't use
++      # them.
++      ld_shlibs_F77=no
++      ;;
++
++    beos*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        allow_undefined_flag_F77=unsupported
++        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
++        # support --undefined.  This deserves some investigation.  FIXME
++        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++      else
++        ld_shlibs_F77=no
++      fi
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
++      # as there is no search path for DLLs.
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      allow_undefined_flag_F77=unsupported
++      always_export_symbols_F77=no
++      enable_shared_with_static_runtimes_F77=yes
++      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++
++      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++        # If the export-symbols file already is a .def file (1st line
++        # is EXPORTS), use it as is; otherwise, prepend...
++        archive_expsym_cmds_F77='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++          cp $export_symbols $output_objdir/$soname.def;
++        else
++          echo EXPORTS &gt; $output_objdir/$soname.def;
++          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++        fi~
++        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
++      else
++        ld_shlibs_F77=no
++      fi
++      ;;
++
++    linux*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        tmp_addflag=
++        case $cc_basename,$host_cpu in
++        pgcc*)                                # Portland Group C compiler
++          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag'
++          ;;
++        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
++          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag -Mnomain' ;;
++        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
++          tmp_addflag=' -i_dynamic' ;;
++        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
++          tmp_addflag=' -i_dynamic -nofor_main' ;;
++        ifc* | ifort*)                        # Intel Fortran compiler
++          tmp_addflag=' -nofor_main' ;;
++        esac
++        archive_cmds_F77='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++        if test $supports_anon_versioning = yes; then
++          archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
++  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
++  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
++          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
++        fi
++        link_all_deplibs_F77=no
++      else
++        ld_shlibs_F77=no
++      fi
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
++        wlarc=
++      else
++        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      fi
++      ;;
++
++    solaris* | sysv5*)
++      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
++        ld_shlibs_F77=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: The releases 2.8.* of the GNU linker cannot reliably
++*** create shared libraries on Solaris systems.  Therefore, libtool
++*** is disabling shared libraries support.  We urge you to upgrade GNU
++*** binutils to release 2.9.1 or newer.  Another option is to modify
++*** your PATH or compiler configuration so that the native linker is
++*** used, and then restart.
++
++EOF
++      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs_F77=no
++      fi
++      ;;
++
++    sunos4*)
++      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      wlarc=
++      hardcode_direct_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    *)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs_F77=no
++      fi
++      ;;
++    esac
++
++    if test &quot;$ld_shlibs_F77&quot; = no; then
++      runpath_var=
++      hardcode_libdir_flag_spec_F77=
++      export_dynamic_flag_spec_F77=
++      whole_archive_flag_spec_F77=
++    fi
++  else
++    # PORTME fill in a description of your system's linker (not GNU ld)
++    case $host_os in
++    aix3*)
++      allow_undefined_flag_F77=unsupported
++      always_export_symbols_F77=yes
++      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
++      # Note: this linker hardcodes the directories in LIBPATH if there
++      # are no directories specified by -L.
++      hardcode_minus_L_F77=yes
++      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
++        # Neither direct hardcoding nor static linking is supported with a
++        # broken collect2.
++        hardcode_direct_F77=unsupported
++      fi
++      ;;
++
++    aix4* | aix5*)
++      if test &quot;$host_cpu&quot; = ia64; then
++        # On IA64, the linker does run time linking by default, so we don't
++        # have to do anything special.
++        aix_use_runtimelinking=no
++        exp_sym_flag='-Bexport'
++        no_entry_flag=&quot;&quot;
++      else
++        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++        # -C means demangle to AIX nm, but means don't demangle with GNU nm
++        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        else
++          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        fi
++        aix_use_runtimelinking=no
++
++        # Test if we are trying to use run time linking or normal
++        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++        # need to do runtime linking.
++        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
++          for ld_flag in $LDFLAGS; do
++            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
++              aix_use_runtimelinking=yes
++              break
++            fi
++          done
++        esac
++
++        exp_sym_flag='-bexport'
++        no_entry_flag='-bnoentry'
++      fi
++
++      # When large executables or shared objects are built, AIX ld can
++      # have problems creating the table of contents.  If linking a library
++      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++      archive_cmds_F77=''
++      hardcode_direct_F77=yes
++      hardcode_libdir_separator_F77=':'
++      link_all_deplibs_F77=yes
++
++      if test &quot;$GCC&quot; = yes; then
++        case $host_os in aix4.[012]|aix4.[012].*)
++        # We only want to do this on AIX 4.2 and lower, the check
++        # below for broken collect2 doesn't work under 4.3+
++          collect2name=`${CC} -print-prog-name=collect2`
++          if test -f &quot;$collect2name&quot; &amp;&amp; \
++             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++          then
++            # We have reworked collect2
++            hardcode_direct_F77=yes
++          else
++            # We have old collect2
++            hardcode_direct_F77=unsupported
++            # It fails to find uninstalled libraries when the uninstalled
++            # path is not listed in the libpath.  Setting hardcode_minus_L
++            # to unsupported forces relinking
++            hardcode_minus_L_F77=yes
++            hardcode_libdir_flag_spec_F77='-L$libdir'
++            hardcode_libdir_separator_F77=
++          fi
++        esac
++        shared_flag='-shared'
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++        fi
++      else
++        # not using gcc
++        if test &quot;$host_cpu&quot; = ia64; then
++          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++          # chokes on -Wl,-G. The following line is correct:
++          shared_flag='-G'
++        else
++          if test &quot;$aix_use_runtimelinking&quot; = yes; then
++            shared_flag='${wl}-G'
++          else
++            shared_flag='${wl}-bM:SRE'
++          fi
++        fi
++      fi
++
++      # It seems that -bexpall does not export symbols beginning with
++      # underscore (_), so it is better to generate a list of symbols to export.
++      always_export_symbols_F77=yes
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        # Warning - without using the other runtime loading flags (-brtl),
++        # -berok will link without error, but may produce a broken library.
++        allow_undefined_flag_F77='-berok'
++       # Determine the default libpath from the value encoded in an empty executable.
++       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++      program main
++
++      end
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        archive_expsym_cmds_F77=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++       else
++        if test &quot;$host_cpu&quot; = ia64; then
++          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
++          allow_undefined_flag_F77=&quot;-z nodefs&quot;
++          archive_expsym_cmds_F77=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++        else
++         # Determine the default libpath from the value encoded in an empty executable.
++         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++      program main
++
++      end
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_f77_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++          # Warning - without using the other run time loading flags,
++          # -berok will link without error, but may produce a broken library.
++          no_undefined_flag_F77=' ${wl}-bernotok'
++          allow_undefined_flag_F77=' ${wl}-berok'
++          # -bexpall does not export symbols beginning with underscore (_)
++          always_export_symbols_F77=yes
++          # Exported symbols can be pulled into shared objects from archives
++          whole_archive_flag_spec_F77=' '
++          archive_cmds_need_lc_F77=yes
++          # This is similar to how AIX traditionally builds its shared libraries.
++          archive_expsym_cmds_F77=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++        fi
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_minus_L_F77=yes
++      # see comment about different semantics on the GNU ld section
++      ld_shlibs_F77=no
++      ;;
++
++    bsdi[45]*)
++      export_dynamic_flag_spec_F77=-rdynamic
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # When not using gcc, we currently assume that we are using
++      # Microsoft Visual C++.
++      # hardcode_libdir_flag_spec is actually meaningless, as there is
++      # no search path for DLLs.
++      hardcode_libdir_flag_spec_F77=' '
++      allow_undefined_flag_F77=unsupported
++      # Tell ltmain to make .lib files, not .a files.
++      libext=lib
++      # Tell ltmain to make .dll files, not .so files.
++      shrext_cmds=&quot;.dll&quot;
++      # FIXME: Setting linknames here is a bad hack.
++      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
++      # The linker will automatically build a .lib file if we build a DLL.
++      old_archive_From_new_cmds_F77='true'
++      # FIXME: Should let the user specify the lib program.
++      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
++      fix_srcfile_path_F77='`cygpath -w &quot;$srcfile&quot;`'
++      enable_shared_with_static_runtimes_F77=yes
++      ;;
++
++    darwin* | rhapsody*)
++      case $host_os in
++        rhapsody* | darwin1.[012])
++         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[012])
++               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++      esac
++      archive_cmds_need_lc_F77=no
++      hardcode_direct_F77=no
++      hardcode_automatic_F77=yes
++      hardcode_shlibpath_var_F77=unsupported
++      whole_archive_flag_spec_F77=''
++      link_all_deplibs_F77=yes
++    if test &quot;$GCC&quot; = yes ; then
++            output_verbose_link_cmd='echo'
++        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++      archive_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      module_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++    else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++         archive_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          module_expsym_cmds_F77='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         ld_shlibs_F77=no
++          ;;
++      esac
++    fi
++      ;;
++
++    dgux*)
++      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    freebsd1*)
++      ld_shlibs_F77=no
++      ;;
++
++    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
++    # support.  Future versions do this automatically, but an explicit c++rt0.o
++    # does not break anything, and helps significantly (at the cost of a little
++    # extra space).
++    freebsd2.2*)
++      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
++      hardcode_libdir_flag_spec_F77='-R$libdir'
++      hardcode_direct_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
++    freebsd2*)
++      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_F77=yes
++      hardcode_minus_L_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
++    freebsd* | kfreebsd*-gnu | dragonfly*)
++      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
++      hardcode_libdir_flag_spec_F77='-R$libdir'
++      hardcode_direct_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    hpux9*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      fi
++      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
++      hardcode_libdir_separator_F77=:
++      hardcode_direct_F77=yes
++
++      # hardcode_minus_L: Not really in the search PATH,
++      # but as the default location of the library.
++      hardcode_minus_L_F77=yes
++      export_dynamic_flag_spec_F77='${wl}-E'
++      ;;
++
++    hpux10* | hpux11*)
++      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        *)
++          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        esac
++      else
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        *)
++          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        esac
++      fi
++      if test &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*)
++          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
++          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
++          hardcode_libdir_separator_F77=:
++          hardcode_direct_F77=no
++          hardcode_shlibpath_var_F77=no
++          ;;
++        ia64*)
++          hardcode_libdir_flag_spec_F77='-L$libdir'
++          hardcode_direct_F77=no
++          hardcode_shlibpath_var_F77=no
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L_F77=yes
++          ;;
++        *)
++          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
++          hardcode_libdir_separator_F77=:
++          hardcode_direct_F77=yes
++          export_dynamic_flag_spec_F77='${wl}-E'
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L_F77=yes
++          ;;
++        esac
++      fi
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
++      fi
++      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_F77=:
++      link_all_deplibs_F77=yes
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
++      else
++        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
++      fi
++      hardcode_libdir_flag_spec_F77='-R$libdir'
++      hardcode_direct_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    newsos6)
++      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_F77=yes
++      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_F77=:
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    openbsd*)
++      hardcode_direct_F77=yes
++      hardcode_shlibpath_var_F77=no
++      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
++        export_dynamic_flag_spec_F77='${wl}-E'
++      else
++       case $host_os in
++         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
++           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++           hardcode_libdir_flag_spec_F77='-R$libdir'
++           ;;
++         *)
++           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
++           ;;
++       esac
++      fi
++      ;;
++
++    os2*)
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_minus_L_F77=yes
++      allow_undefined_flag_F77=unsupported
++      archive_cmds_F77='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
++      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
++      ;;
++
++    osf3*)
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        allow_undefined_flag_F77=' -expect_unresolved \*'
++        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++      fi
++      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_F77=:
++      ;;
++
++    osf4* | osf5*)        # as osf3* with the addition of -msym flag
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
++      else
++        allow_undefined_flag_F77=' -expect_unresolved \*'
++        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
++
++        # Both c and cxx compiler support -rpath directly
++        hardcode_libdir_flag_spec_F77='-rpath $libdir'
++      fi
++      hardcode_libdir_separator_F77=:
++      ;;
++
++    sco3.2v5*)
++      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var_F77=no
++      export_dynamic_flag_spec_F77='${wl}-Bexport'
++      runpath_var=LD_RUN_PATH
++      hardcode_runpath_var=yes
++      ;;
++
++    solaris*)
++      no_undefined_flag_F77=' -z text'
++      if test &quot;$GCC&quot; = yes; then
++        wlarc='${wl}'
++        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
++      else
++        wlarc=''
++        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      fi
++      hardcode_libdir_flag_spec_F77='-R$libdir'
++      hardcode_shlibpath_var_F77=no
++      case $host_os in
++      solaris2.[0-5] | solaris2.[0-5].*) ;;
++      *)
++         # The compiler driver will combine linker options so we
++         # cannot just pass the convience library names through
++         # without $wl, iff we do not link with $LD.
++         # Luckily, gcc supports the same syntax we need for Sun Studio.
++         # Supported since Solaris 2.6 (maybe 2.5.1?)
++         case $wlarc in
++         '')
++           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
++         *)
++           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
++         esac ;;
++      esac
++      link_all_deplibs_F77=yes
++      ;;
++
++    sunos4*)
++      if test &quot;x$host_vendor&quot; = xsequent; then
++        # Use $CC to link under sequent, because it throws in some extra .o
++        # files that make .init and .fini sections work.
++        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
++      fi
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_direct_F77=yes
++      hardcode_minus_L_F77=yes
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    sysv4)
++      case $host_vendor in
++        sni)
++          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct_F77=yes # is this really true???
++        ;
++        siemens)
++          ## LD is ld it makes a PLAMLIB
++          ## CC just makes a GrossModule.
++          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++          reload_cmds_F77='$CC -r -o $output$reload_objs'
++          hardcode_direct_F77=no
++        ;;
++        motorola)
++          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
++        ;
++      esac
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    sysv4.3*)
++      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var_F77=no
++      export_dynamic_flag_spec_F77='-Bexport'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        hardcode_shlibpath_var_F77=no
++        runpath_var=LD_RUN_PATH
++        hardcode_runpath_var=yes
++        ld_shlibs_F77=yes
++      fi
++      ;;
++
++    sysv4.2uw2*)
++      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_F77=yes
++      hardcode_minus_L_F77=no
++      hardcode_shlibpath_var_F77=no
++      hardcode_runpath_var=yes
++      runpath_var=LD_RUN_PATH
++      ;;
++
++   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
++      no_undefined_flag_F77='${wl}-z ${wl}text'
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      fi
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    sysv5*)
++      no_undefined_flag_F77=' -z text'
++      # $CC -shared without GNU ld will not create a library from C++
++      # object files and a static libstdc++, better avoid it by now
++      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      archive_expsym_cmds_F77='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      hardcode_libdir_flag_spec_F77=
++      hardcode_shlibpath_var_F77=no
++      runpath_var='LD_RUN_PATH'
++      ;;
++
++    uts4*)
++      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec_F77='-L$libdir'
++      hardcode_shlibpath_var_F77=no
++      ;;
++
++    *)
++      ld_shlibs_F77=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $ld_shlibs_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ld_shlibs_F77&quot; &gt;&amp;6
++test &quot;$ld_shlibs_F77&quot; = no &amp;&amp; can_build_shared=no
++
++variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
++if test &quot;$GCC&quot; = yes; then
++  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
++fi
++
++#
++# Do we need to explicitly link libc?
++#
++case &quot;x$archive_cmds_need_lc_F77&quot; in
++x|xyes)
++  # Assume -lc should be added
++  archive_cmds_need_lc_F77=yes
++
++  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
++    case $archive_cmds_F77 in
++    *'~'*)
++      # FIXME: we may have to deal with multi-command sequences.
++      ;;
++    '$CC '*)
++      # Test whether the compiler implicitly links with -lc since on some
++      # systems, -lgcc has to come before -lc. If gcc already passes -lc
++      # to ld, don't add -lc before -lgcc.
++      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
++      $rm conftest*
++      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } 2&gt;conftest.err; then
++        soname=conftest
++        lib=conftest
++        libobjs=conftest.$ac_objext
++        deplibs=
++        wl=$lt_prog_compiler_wl_F77
++        compiler_flags=-v
++        linker_flags=-v
++        verstring=
++        output_objdir=.
++        libname=conftest
++        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
++        allow_undefined_flag_F77=
++        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_F77 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
++  (eval $archive_cmds_F77 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++        then
++          archive_cmds_need_lc_F77=no
++        else
++          archive_cmds_need_lc_F77=yes
++        fi
++        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
++      else
++        cat conftest.err 1&gt;&amp;5
++      fi
++      $rm conftest*
++      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$archive_cmds_need_lc_F77&quot; &gt;&amp;6
++      ;;
++    esac
++  fi
++  ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
++library_names_spec=
++libname_spec='lib$name'
++soname_spec=
++shrext_cmds=&quot;.so&quot;
++postinstall_cmds=
++postuninstall_cmds=
++finish_cmds=
++finish_eval=
++shlibpath_var=
++shlibpath_overrides_runpath=unknown
++version_type=none
++dynamic_linker=&quot;$host_os ld.so&quot;
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++if test &quot;$GCC&quot; = yes; then
++  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
++    # if the path contains &quot;;&quot; then we assume it to be the separator
++    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
++    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
++    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++  else
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++  fi
++else
++  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++fi
++need_lib_prefix=unknown
++hardcode_into_libs=no
++
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
++need_version=unknown
++
++case $host_os in
++aix3*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
++  shlibpath_var=LIBPATH
++
++  # AIX 3 has no versioning support, so we append a major version to the name.
++  soname_spec='${libname}${release}${shared_ext}$major'
++  ;;
++
++aix4* | aix5*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  hardcode_into_libs=yes
++  if test &quot;$host_cpu&quot; = ia64; then
++    # AIX 5 supports IA64
++    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
++    shlibpath_var=LD_LIBRARY_PATH
++  else
++    # With GCC up to 2.95.x, collect2 would create an import file
++    # for dependence libraries.  The import file would start with
++    # the line `#! .'.  This would cause the generated library to
++    # depend on `.', always an invalid library.  This was fixed in
++    # development snapshots of GCC prior to 3.0.
++    case $host_os in
++      aix4 | aix4.[01] | aix4.[01].*)
++      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
++           echo ' yes '
++           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
++        :
++      else
++        can_build_shared=no
++      fi
++      ;;
++    esac
++    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
++    # soname into executable. Probably we can add versioning support to
++    # collect2, so additional links can be useful in future.
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
++      # instead of lib&lt;name&gt;.a to let people know that these are not
++      # typical AIX shared libraries.
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    else
++      # We preserve .a as extension for shared libraries through AIX4.2
++      # and later when we are not doing run time linking.
++      library_names_spec='${libname}${release}.a $libname.a'
++      soname_spec='${libname}${release}${shared_ext}$major'
++    fi
++    shlibpath_var=LIBPATH
++  fi
++  ;;
++
++amigaos*)
++  library_names_spec='$libname.ixlibrary $libname.a'
++  # Create ${libname}_ixlibrary.a entries in /sys/libs.
++  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
++  ;;
++
++beos*)
++  library_names_spec='${libname}${shared_ext}'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  ;;
++
++bsdi[45]*)
++  version_type=linux
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
++  ;;
++
++cygwin* | mingw* | pw32*)
++  version_type=windows
++  shrext_cmds=&quot;.dll&quot;
++  need_version=no
++  need_lib_prefix=no
++
++  case $GCC,$host_os in
++  yes,cygwin* | yes,mingw* | yes,pw32*)
++    library_names_spec='$libname.dll.a'
++    # DLL is installed to $(libdir)/../bin by postinstall_cmds
++    postinstall_cmds='base_file=`basename \${file}`~
++      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
++      dldir=$destdir/`dirname \$dlpath`~
++      test -d \$dldir || mkdir -p \$dldir~
++      $install_prog $dir/$dlname \$dldir/$dlname~
++      chmod a+x \$dldir/$dlname'
++    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
++      dlpath=$dir/\$dldll~
++       $rm \$dlpath'
++    shlibpath_overrides_runpath=yes
++
++    case $host_os in
++    cygwin*)
++      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
++      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
++      ;;
++    mingw*)
++      # MinGW DLLs use traditional 'lib' prefix
++      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
++        # It is most probably a Windows format PATH printed by
++        # mingw gcc, but we are running on Cygwin. Gcc prints its search
++        # path with ; separators, and with drive letters. We can handle the
++        # drive letters (cygwin fileutils understands them), so leave them,
++        # especially as we might pass files found there to a mingw objdump,
++        # which wouldn't understand a cygwinified path. Ahh.
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++      else
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++      fi
++      ;;
++    pw32*)
++      # pw32 DLLs use 'pw' prefix rather than 'lib'
++      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      ;;
++    esac
++    ;;
++
++  *)
++    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
++    ;;
++  esac
++  dynamic_linker='Win32 ld.exe'
++  # FIXME: first we should search . and the directory the executable is in
++  shlibpath_var=PATH
++  ;;
++
++darwin* | rhapsody*)
++  dynamic_linker=&quot;$host_os dyld&quot;
++  version_type=darwin
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
++  soname_spec='${libname}${release}${major}$shared_ext'
++  shlibpath_overrides_runpath=yes
++  shlibpath_var=DYLD_LIBRARY_PATH
++  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
++  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
++  if test &quot;$GCC&quot; = yes; then
++    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
++  else
++    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
++  fi
++  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
++  ;;
++
++dgux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++freebsd1*)
++  dynamic_linker=no
++  ;;
++
++kfreebsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++freebsd* | dragonfly*)
++  # DragonFly does not have aout.  When/if they implement a new
++  # versioning mechanism, adjust this.
++  if test -x /usr/bin/objformat; then
++    objformat=`/usr/bin/objformat`
++  else
++    case $host_os in
++    freebsd[123]*) objformat=aout ;;
++    *) objformat=elf ;;
++    esac
++  fi
++  version_type=freebsd-$objformat
++  case $version_type in
++    freebsd-elf*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
++      need_version=yes
++      ;;
++  esac
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_os in
++  freebsd2*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  freebsd3.[01]* | freebsdelf3.[01]*)
++    shlibpath_overrides_runpath=yes
++    hardcode_into_libs=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    hardcode_into_libs=yes
++    ;;
++  esac
++  ;;
++
++gnu*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  hardcode_into_libs=yes
++  ;;
++
++hpux9* | hpux10* | hpux11*)
++  # Give a soname corresponding to the major version so that dld.sl refuses to
++  # link against other versions.
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  case $host_cpu in
++  ia64*)
++    shrext_cmds='.so'
++    hardcode_into_libs=yes
++    dynamic_linker=&quot;$host_os dld.so&quot;
++    shlibpath_var=LD_LIBRARY_PATH
++    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
++    else
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
++    fi
++    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++    ;;
++   hppa*64*)
++     shrext_cmds='.sl'
++     hardcode_into_libs=yes
++     dynamic_linker=&quot;$host_os dld.sl&quot;
++     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
++     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++     soname_spec='${libname}${release}${shared_ext}$major'
++     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
++     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++     ;;
++   *)
++    shrext_cmds='.sl'
++    dynamic_linker=&quot;$host_os dld.sl&quot;
++    shlibpath_var=SHLIB_PATH
++    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    ;;
++  esac
++  # HP-UX runs *really* slowly unless shared libraries are mode 555.
++  postinstall_cmds='chmod 555 $lib'
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $host_os in
++    nonstopux*) version_type=nonstopux ;;
++    *)
++        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++                version_type=linux
++        else
++                version_type=irix
++        fi ;;
++  esac
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
++  case $host_os in
++  irix5* | nonstopux*)
++    libsuff= shlibsuff=
++    ;;
++  *)
++    case $LD in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
++      libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
++      libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
++      libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  hardcode_into_libs=yes
++  ;;
++
++# No shared lib support for Linux oldld, aout, or coff.
++linux*oldld* | linux*aout* | linux*coff*)
++  dynamic_linker=no
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  # This implies no fast_install, which is unacceptable.
++  # Some rework will be needed to allow for fast_install
++  # before this can be enabled.
++  hardcode_into_libs=yes
++
++  # Append ld.so.conf contents to the search path
++  if test -f /etc/ld.so.conf; then
++    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
++    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
++  fi
++
++  # We used to test for /lib/ld.so.1 and disable shared libraries on
++  # powerpc, because MkLinux only supported shared libraries with the
++  # GNU dynamic linker.  Since this was broken with cross compilers,
++  # most powerpc-linux boxes support dynamic linking these days and
++  # people can always --disable-shared, the test was removed, and we
++  # assume the GNU/Linux dynamic linker is in use.
++  dynamic_linker='GNU/Linux ld.so'
++  ;;
++
++netbsdelf*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='NetBSD ld.elf_so'
++  ;;
++
++knetbsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++netbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  ;;
++
++newsos6)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++nto-qnx*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++openbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
++  case $host_os in
++    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
++    *)                         need_version=no  ;;
++  esac
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    case $host_os in
++      openbsd2.[89] | openbsd2.[89].*)
++        shlibpath_overrides_runpath=no
++        ;
++      *)
++        shlibpath_overrides_runpath=yes
++        ;
++      esac
++  else
++    shlibpath_overrides_runpath=yes
++  fi
++  ;;
++
++os2*)
++  libname_spec='$name'
++  shrext_cmds=&quot;.dll&quot;
++  need_lib_prefix=no
++  library_names_spec='$libname${shared_ext} $libname.a'
++  dynamic_linker='OS/2 ld.exe'
++  shlibpath_var=LIBPATH
++  ;;
++
++osf3* | osf4* | osf5*)
++  version_type=osf
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++sco3.2v5*)
++  version_type=osf
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++solaris*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  # ldd complains unless libraries are executable
++  postinstall_cmds='chmod +x $lib'
++  ;;
++
++sunos4*)
++  version_type=sunos
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_vendor in
++    sni)
++      shlibpath_overrides_runpath=no
++      need_lib_prefix=no
++      export_dynamic_flag_spec='${wl}-Blargedynsym'
++      runpath_var=LD_RUN_PATH
++      ;;
++    siemens)
++      need_lib_prefix=no
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      ;;
++  esac
++  ;;
++
++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
++    soname_spec='$libname${shared_ext}.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
++uts4*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++*)
++  dynamic_linker=no
++  ;;
++esac
++echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
++test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
++
++echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
++hardcode_action_F77=
++if test -n &quot;$hardcode_libdir_flag_spec_F77&quot; || \
++   test -n &quot;$runpath_var_F77&quot; || \
++   test &quot;X$hardcode_automatic_F77&quot; = &quot;Xyes&quot; ; then
++
++  # We can hardcode non-existant directories.
++  if test &quot;$hardcode_direct_F77&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)&quot; != no &amp;&amp;
++     test &quot;$hardcode_minus_L_F77&quot; != no; then
++    # Linking always hardcodes the temporary library directory.
++    hardcode_action_F77=relink
++  else
++    # We can link without hardcoding, and we can hardcode nonexisting dirs.
++    hardcode_action_F77=immediate
++  fi
++else
++  # We cannot hardcode anything, or else we can only hardcode existing
++  # directories.
++  hardcode_action_F77=unsupported
++fi
++echo &quot;$as_me:$LINENO: result: $hardcode_action_F77&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hardcode_action_F77&quot; &gt;&amp;6
++
++if test &quot;$hardcode_action_F77&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++
++striplib=
++old_striplib=
++echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
++if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
++  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
++  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
++  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++else
++# FIXME - insert some real tests, host_os isn't really good enough
++  case $host_os in
++   darwin*)
++       if test -n &quot;$STRIP&quot; ; then
++         striplib=&quot;$STRIP -x&quot;
++         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++       else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++       ;;
++   *)
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++    ;;
++  esac
++fi
++
++
++
++# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    compiler_F77 \
++    CC_F77 \
++    LD_F77 \
++    lt_prog_compiler_wl_F77 \
++    lt_prog_compiler_pic_F77 \
++    lt_prog_compiler_static_F77 \
++    lt_prog_compiler_no_builtin_flag_F77 \
++    export_dynamic_flag_spec_F77 \
++    thread_safe_flag_spec_F77 \
++    whole_archive_flag_spec_F77 \
++    enable_shared_with_static_runtimes_F77 \
++    old_archive_cmds_F77 \
++    old_archive_from_new_cmds_F77 \
++    predep_objects_F77 \
++    postdep_objects_F77 \
++    predeps_F77 \
++    postdeps_F77 \
++    compiler_lib_search_path_F77 \
++    archive_cmds_F77 \
++    archive_expsym_cmds_F77 \
++    postinstall_cmds_F77 \
++    postuninstall_cmds_F77 \
++    old_archive_from_expsyms_cmds_F77 \
++    allow_undefined_flag_F77 \
++    no_undefined_flag_F77 \
++    export_symbols_cmds_F77 \
++    hardcode_libdir_flag_spec_F77 \
++    hardcode_libdir_flag_spec_ld_F77 \
++    hardcode_libdir_separator_F77 \
++    hardcode_automatic_F77 \
++    module_cmds_F77 \
++    module_expsym_cmds_F77 \
++    lt_cv_prog_compiler_c_o_F77 \
++    exclude_expsyms_F77 \
++    include_expsyms_F77; do
++
++    case $var in
++    old_archive_cmds_F77 | \
++    old_archive_from_new_cmds_F77 | \
++    archive_cmds_F77 | \
++    archive_expsym_cmds_F77 | \
++    module_cmds_F77 | \
++    module_expsym_cmds_F77 | \
++    old_archive_from_expsyms_cmds_F77 | \
++    export_symbols_cmds_F77 | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\$0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
++    ;;
++  esac
++
++cfgfile=&quot;$ofile&quot;
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++# ### BEGIN LIBTOOL TAG CONFIG: $tagname
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$archive_cmds_need_lc_F77
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_compiler_F77
++
++# Is the compiler the GNU C compiler?
++with_gcc=$GCC_F77
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_LD_F77
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_lt_prog_compiler_wl_F77
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_lt_prog_compiler_pic_F77
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_lt_prog_compiler_static_F77
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_old_archive_cmds_F77
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_archive_cmds_F77
++archive_expsym_cmds=$lt_archive_expsym_cmds_F77
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_module_cmds_F77
++module_expsym_cmds=$lt_module_expsym_cmds_F77
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_predep_objects_F77
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_postdep_objects_F77
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_predeps_F77
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_postdeps_F77
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_compiler_lib_search_path_F77
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_allow_undefined_flag_F77
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_no_undefined_flag_F77
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
++
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var
++
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var
++
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
++# How to hardcode a shared library path into an executable.
++hardcode_action=$hardcode_action_F77
++
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs
++
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
++
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
++
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
++
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$hardcode_direct_F77
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$hardcode_minus_L_F77
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$hardcode_automatic_F77
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$link_all_deplibs_F77
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$fix_srcfile_path_F77&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols_F77
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_export_symbols_cmds_F77
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_exclude_expsyms_F77
++
++# Symbols that must always be exported.
++include_expsyms=$lt_include_expsyms_F77
++
++# ### END LIBTOOL TAG CONFIG: $tagname
++
++__EOF__
++
++
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  fi
++fi
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++CC=&quot;$lt_save_CC&quot;
++
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      GCJ)
++        if test -n &quot;$GCJ&quot; &amp;&amp; test &quot;X$GCJ&quot; != &quot;Xno&quot;; then
++
++
++
++# Source file extension for Java test sources.
++ac_ext=java
++
++# Object file extension for compiled Java test sources.
++objext=o
++objext_GCJ=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code=&quot;class foo {}\n&quot;
++
++# Code to be used in simple link tests
++lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++
++
++# save warnings/boilerplate of simple test code
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${GCJ-&quot;gcj&quot;}
++compiler=$CC
++compiler_GCJ=$CC
++for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++
++# GCJ did not exist at the time GCC didn't implicitly link libc in.
++archive_cmds_need_lc_GCJ=no
++
++old_archive_cmds_GCJ=$old_archive_cmds
++
++
++lt_prog_compiler_no_builtin_flag_GCJ=
++
++if test &quot;$GCC&quot; = yes; then
++  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
++
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_rtti_exceptions+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_rtti_exceptions=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;-fno-rtti -fno-exceptions&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:15967: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:15971: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_rtti_exceptions=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions&quot; &gt;&amp;6
++
++if test x&quot;$lt_cv_prog_compiler_rtti_exceptions&quot; = xyes; then
++    lt_prog_compiler_no_builtin_flag_GCJ=&quot;$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions&quot;
++else
++    :
++fi
++
++fi
++
++lt_prog_compiler_wl_GCJ=
++lt_prog_compiler_pic_GCJ=
++lt_prog_compiler_static_GCJ=
++
++echo &quot;$as_me:$LINENO: checking for $compiler option to produce PIC&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $compiler option to produce PIC... $ECHO_C&quot; &gt;&amp;6
++
++  if test &quot;$GCC&quot; = yes; then
++    lt_prog_compiler_wl_GCJ='-Wl,'
++    lt_prog_compiler_static_GCJ='-static'
++
++    case $host_os in
++      aix*)
++      # All AIX code is PIC.
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static_GCJ='-Bstatic'
++      fi
++      ;;
++
++    amigaos*)
++      # FIXME: we need at least 68020 code to build shared libraries, but
++      # adding the `-m68020' flag to GCC prevents building anything better,
++      # like `-m68040'.
++      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
++      ;;
++
++    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
++      # PIC is the default for these OSes.
++      ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
++      ;;
++
++    darwin* | rhapsody*)
++      # PIC is the default on this platform
++      # Common symbols not allowed in MH_DYLIB files
++      lt_prog_compiler_pic_GCJ='-fno-common'
++      ;;
++
++    msdosdjgpp*)
++      # Just because we use GCC doesn't mean we suddenly get shared libraries
++      # on systems that don't support them.
++      lt_prog_compiler_can_build_shared_GCJ=no
++      enable_shared=no
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        lt_prog_compiler_pic_GCJ=-Kconform_pic
++      fi
++      ;;
++
++    hpux*)
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic_GCJ='-fPIC'
++        ;
++      esac
++      ;;
++
++    *)
++      lt_prog_compiler_pic_GCJ='-fPIC'
++      ;;
++    esac
++  else
++    # PORTME Check for flag to pass linker flags through the system compiler.
++    case $host_os in
++    aix*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      if test &quot;$host_cpu&quot; = ia64; then
++        # AIX 5 now supports IA64 processor
++        lt_prog_compiler_static_GCJ='-Bstatic'
++      else
++        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
++      fi
++      ;;
++      darwin*)
++        # PIC is the default on this platform
++        # Common symbols not allowed in MH_DYLIB files
++       case $cc_basename in
++         xlc*)
++         lt_prog_compiler_pic_GCJ='-qnocommon'
++         lt_prog_compiler_wl_GCJ='-Wl,'
++         ;;
++       esac
++       ;;
++
++    mingw* | pw32* | os2*)
++      # This hack is so that the source file can tell whether it is being
++      # built for inclusion in a dll (and should export symbols for example).
++      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
++      ;;
++
++    hpux9* | hpux10* | hpux11*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
++      # not for PA HP-UX.
++      case $host_cpu in
++      hppa*64*|ia64*)
++        # +Z the default
++        ;
++      *)
++        lt_prog_compiler_pic_GCJ='+Z'
++        ;
++      esac
++      # Is there a better lt_prog_compiler_static that works with the bundled CC?
++      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      # PIC (with -KPIC) is the default.
++      lt_prog_compiler_static_GCJ='-non_shared'
++      ;;
++
++    newsos6)
++      lt_prog_compiler_pic_GCJ='-KPIC'
++      lt_prog_compiler_static_GCJ='-Bstatic'
++      ;;
++
++    linux*)
++      case $cc_basename in
++      icc* | ecc*)
++        lt_prog_compiler_wl_GCJ='-Wl,'
++        lt_prog_compiler_pic_GCJ='-KPIC'
++        lt_prog_compiler_static_GCJ='-static'
++        ;;
++      pgcc* | pgf77* | pgf90* | pgf95*)
++        # Portland Group compilers (*not* the Pentium gcc compiler,
++        # which looks to be a dead project)
++        lt_prog_compiler_wl_GCJ='-Wl,'
++        lt_prog_compiler_pic_GCJ='-fpic'
++        lt_prog_compiler_static_GCJ='-Bstatic'
++        ;;
++      ccc*)
++        lt_prog_compiler_wl_GCJ='-Wl,'
++        # All Alpha code is PIC.
++        lt_prog_compiler_static_GCJ='-non_shared'
++        ;;
++      esac
++      ;;
++
++    osf3* | osf4* | osf5*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      # All OSF/1 code is PIC.
++      lt_prog_compiler_static_GCJ='-non_shared'
++      ;;
++
++    sco3.2v5*)
++      lt_prog_compiler_pic_GCJ='-Kpic'
++      lt_prog_compiler_static_GCJ='-dn'
++      ;;
++
++    solaris*)
++      lt_prog_compiler_pic_GCJ='-KPIC'
++      lt_prog_compiler_static_GCJ='-Bstatic'
++      case $cc_basename in
++      f77* | f90* | f95*)
++        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
++      *)
++        lt_prog_compiler_wl_GCJ='-Wl,';;
++      esac
++      ;;
++
++    sunos4*)
++      lt_prog_compiler_wl_GCJ='-Qoption ld '
++      lt_prog_compiler_pic_GCJ='-PIC'
++      lt_prog_compiler_static_GCJ='-Bstatic'
++      ;;
++
++    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      lt_prog_compiler_pic_GCJ='-KPIC'
++      lt_prog_compiler_static_GCJ='-Bstatic'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec ;then
++        lt_prog_compiler_pic_GCJ='-Kconform_pic'
++        lt_prog_compiler_static_GCJ='-Bstatic'
++      fi
++      ;;
++
++    unicos*)
++      lt_prog_compiler_wl_GCJ='-Wl,'
++      lt_prog_compiler_can_build_shared_GCJ=no
++      ;;
++
++    uts4*)
++      lt_prog_compiler_pic_GCJ='-pic'
++      lt_prog_compiler_static_GCJ='-Bstatic'
++      ;;
++
++    *)
++      lt_prog_compiler_can_build_shared_GCJ=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_GCJ&quot; &gt;&amp;6
++
++#
++# Check to make sure the PIC flag actually works.
++#
++if test -n &quot;$lt_prog_compiler_pic_GCJ&quot;; then
++
++echo &quot;$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_prog_compiler_pic_works_GCJ+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_prog_compiler_pic_works_GCJ=no
++  ac_outfile=conftest.$ac_objext
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++   lt_compiler_flag=&quot;$lt_prog_compiler_pic_GCJ&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   # The option is referenced via a variable to avoid confusing sed.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:16229: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;conftest.err)
++   ac_status=$?
++   cat conftest.err &gt;&amp;5
++   echo &quot;$as_me:16233: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s &quot;$ac_outfile&quot;; then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings other than the usual output.
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt;conftest.exp
++     $SED '/^$/d' conftest.err &gt;conftest.er2
++     if test ! -s conftest.err || diff conftest.exp conftest.er2 &gt;/dev/null; then
++       lt_prog_compiler_pic_works_GCJ=yes
++     fi
++   fi
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_prog_compiler_pic_works_GCJ&quot; &gt;&amp;6
++
++if test x&quot;$lt_prog_compiler_pic_works_GCJ&quot; = xyes; then
++    case $lt_prog_compiler_pic_GCJ in
++     &quot;&quot; | &quot; &quot;*) ;;
++     *) lt_prog_compiler_pic_GCJ=&quot; $lt_prog_compiler_pic_GCJ&quot; ;;
++     esac
++else
++    lt_prog_compiler_pic_GCJ=
++     lt_prog_compiler_can_build_shared_GCJ=no
++fi
++
++fi
++case $host_os in
++  # For platforms which do not support PIC, -DPIC is meaningless:
++  *djgpp*)
++    lt_prog_compiler_pic_GCJ=
++    ;;
++  *)
++    lt_prog_compiler_pic_GCJ=&quot;$lt_prog_compiler_pic_GCJ&quot;
++    ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if $compiler supports -c -o file.$ac_objext... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_prog_compiler_c_o_GCJ+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  lt_cv_prog_compiler_c_o_GCJ=no
++   $rm -r conftest 2&gt;/dev/null
++   mkdir conftest
++   cd conftest
++   mkdir out
++   printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++   lt_compiler_flag=&quot;-o out/conftest2.$ac_objext&quot;
++   # Insert the option either (1) after the last *FLAGS variable, or
++   # (2) before a word containing &quot;conftest.&quot;, or (3) at the end.
++   # Note that $ac_compile itself does not contain backslashes and begins
++   # with a dollar sign (not a hyphen), so the echo should work correctly.
++   lt_compile=`echo &quot;$ac_compile&quot; | $SED \
++   -e 's:.*FLAGS}\{0,1\} :&amp;$lt_compiler_flag :; t' \
++   -e 's: [^ ]*conftest\.: $lt_compiler_flag&amp;:; t' \
++   -e 's:$: $lt_compiler_flag:'`
++   (eval echo &quot;\&quot;\$as_me:16291: $lt_compile\&quot;&quot; &gt;&amp;5)
++   (eval &quot;$lt_compile&quot; 2&gt;out/conftest.err)
++   ac_status=$?
++   cat out/conftest.err &gt;&amp;5
++   echo &quot;$as_me:16295: \$? = $ac_status&quot; &gt;&amp;5
++   if (exit $ac_status) &amp;&amp; test -s out/conftest2.$ac_objext
++   then
++     # The compiler can only warn and ignore the option if not recognized
++     # So say no if there are warnings
++     $echo &quot;X$_lt_compiler_boilerplate&quot; | $Xsed &gt; out/conftest.exp
++     $SED '/^$/d' out/conftest.err &gt;out/conftest.er2
++     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 &gt;/dev/null; then
++       lt_cv_prog_compiler_c_o_GCJ=yes
++     fi
++   fi
++   chmod u+w . 2&gt;&amp;5
++   $rm conftest*
++   # SGI C++ compiler will create directory out/ii_files/ for
++   # template instantiation
++   test -d out/ii_files &amp;&amp; $rm out/ii_files/* &amp;&amp; rmdir out/ii_files
++   $rm out/* &amp;&amp; rmdir out
++   cd ..
++   rmdir conftest
++   $rm conftest*
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ&quot; &gt;&amp;6
++
++
++hard_links=&quot;nottested&quot;
++if test &quot;$lt_cv_prog_compiler_c_o_GCJ&quot; = no &amp;&amp; test &quot;$need_locks&quot; != no; then
++  # do not overwrite the value of need_locks provided by the user
++  echo &quot;$as_me:$LINENO: checking if we can lock with hard links&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking if we can lock with hard links... $ECHO_C&quot; &gt;&amp;6
++  hard_links=yes
++  $rm conftest*
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  touch conftest.a
++  ln conftest.a conftest.b 2&gt;&amp;5 || hard_links=no
++  ln conftest.a conftest.b 2&gt;/dev/null &amp;&amp; hard_links=no
++  echo &quot;$as_me:$LINENO: result: $hard_links&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hard_links&quot; &gt;&amp;6
++  if test &quot;$hard_links&quot; = no; then
++    { echo &quot;$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe&quot; &gt;&amp;2;}
++    need_locks=warn
++  fi
++else
++  need_locks=no
++fi
++
++echo &quot;$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C&quot; &gt;&amp;6
++
++  runpath_var=
++  allow_undefined_flag_GCJ=
++  enable_shared_with_static_runtimes_GCJ=no
++  archive_cmds_GCJ=
++  archive_expsym_cmds_GCJ=
++  old_archive_From_new_cmds_GCJ=
++  old_archive_from_expsyms_cmds_GCJ=
++  export_dynamic_flag_spec_GCJ=
++  whole_archive_flag_spec_GCJ=
++  thread_safe_flag_spec_GCJ=
++  hardcode_libdir_flag_spec_GCJ=
++  hardcode_libdir_flag_spec_ld_GCJ=
++  hardcode_libdir_separator_GCJ=
++  hardcode_direct_GCJ=no
++  hardcode_minus_L_GCJ=no
++  hardcode_shlibpath_var_GCJ=unsupported
++  link_all_deplibs_GCJ=unknown
++  hardcode_automatic_GCJ=no
++  module_cmds_GCJ=
++  module_expsym_cmds_GCJ=
++  always_export_symbols_GCJ=no
++  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++  # include_expsyms should be a list of space-separated symbols to be *always*
++  # included in the symbol list
++  include_expsyms_GCJ=
++  # exclude_expsyms can be an extended regexp of symbols to exclude
++  # it will be wrapped by ` (' and `)$', so one must not match beginning or
++  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
++  # as well as any symbol that contains `d'.
++  exclude_expsyms_GCJ=&quot;_GLOBAL_OFFSET_TABLE_&quot;
++  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
++  # platforms (ab)use it in PIC code, but their linkers get confused if
++  # the symbol is explicitly referenced.  Since portable code cannot
++  # rely on this symbol name, it's probably fine to never include it in
++  # preloaded symbol tables.
++  extract_expsyms_cmds=
++  # Just being paranoid about ensuring that cc_basename is set.
++  for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++  case $host_os in
++  cygwin* | mingw* | pw32*)
++    # FIXME: the MSVC++ port hasn't been tested in a loooong time
++    # When not using gcc, we currently assume that we are using
++    # Microsoft Visual C++.
++    if test &quot;$GCC&quot; != yes; then
++      with_gnu_ld=no
++    fi
++    ;;
++  openbsd*)
++    with_gnu_ld=no
++    ;;
++  esac
++
++  ld_shlibs_GCJ=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    # If archive_cmds runs LD, not CC, wlarc should be empty
++    wlarc='${wl}'
++
++    # Set some defaults for GNU ld with shared library support. These
++    # are reset later if shared libraries are not supported. Putting them
++    # here allows them to be overridden if necessary.
++    runpath_var=LD_RUN_PATH
++    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
++    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
++    # ancient GNU ld didn't support --whole-archive et. al.
++    if $LD --help 2&gt;&amp;1 | grep 'no-whole-archive' &gt; /dev/null; then
++        whole_archive_flag_spec_GCJ=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++      else
++          whole_archive_flag_spec_GCJ=
++    fi
++    supports_anon_versioning=no
++    case `$LD -v 2&gt;/dev/null` in
++      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions &lt; 2.11
++      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
++      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
++      *\ 2.11.*) ;; # other 2.11 versions
++      *) supports_anon_versioning=yes ;;
++    esac
++
++    # See if GNU ld supports shared libraries.
++    case $host_os in
++    aix3* | aix4* | aix5*)
++      # On AIX/PPC, the GNU linker is very broken
++      if test &quot;$host_cpu&quot; != ia64; then
++        ld_shlibs_GCJ=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the GNU linker, at least up to release 2.9.1, is reported
++*** to be unable to reliably create shared libraries on AIX.
++*** Therefore, libtool is disabling shared libraries support.  If you
++*** really care for shared libraries, you may want to modify your PATH
++*** so that a non-GNU linker is found, and then restart.
++
++EOF
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_minus_L_GCJ=yes
++
++      # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
++      # that the semantics of dynamic libraries on AmigaOS, at least up
++      # to version 4, is to share data among multiple programs linked
++      # with the same dynamic library.  Since this doesn't match the
++      # behavior of shared libraries on other platforms, we can't use
++      # them.
++      ld_shlibs_GCJ=no
++      ;;
++
++    beos*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        allow_undefined_flag_GCJ=unsupported
++        # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
++        # support --undefined.  This deserves some investigation.  FIXME
++        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++      else
++        ld_shlibs_GCJ=no
++      fi
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
++      # as there is no search path for DLLs.
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      allow_undefined_flag_GCJ=unsupported
++      always_export_symbols_GCJ=no
++      enable_shared_with_static_runtimes_GCJ=yes
++      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq &gt; $export_symbols'
++
++      if $LD --help 2&gt;&amp;1 | grep 'auto-import' &gt; /dev/null; then
++        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
++        # If the export-symbols file already is a .def file (1st line
++        # is EXPORTS), use it as is; otherwise, prepend...
++        archive_expsym_cmds_GCJ='if test &quot;x`$SED 1q $export_symbols`&quot; = xEXPORTS; then
++          cp $export_symbols $output_objdir/$soname.def;
++        else
++          echo EXPORTS &gt; $output_objdir/$soname.def;
++          cat $export_symbols &gt;&gt; $output_objdir/$soname.def;
++        fi~
++        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
++      else
++        ld_shlibs_GCJ=no
++      fi
++      ;;
++
++    linux*)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        tmp_addflag=
++        case $cc_basename,$host_cpu in
++        pgcc*)                                # Portland Group C compiler
++          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag'
++          ;;
++        pgf77* | pgf90* | pgf95*)        # Portland Group f77 and f90 compilers
++          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\&quot;\&quot;; do test  -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}--no-whole-archive'
++          tmp_addflag=' $pic_flag -Mnomain' ;;
++        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
++          tmp_addflag=' -i_dynamic' ;;
++        efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
++          tmp_addflag=' -i_dynamic -nofor_main' ;;
++        ifc* | ifort*)                        # Intel Fortran compiler
++          tmp_addflag=' -nofor_main' ;;
++        esac
++        archive_cmds_GCJ='$CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++
++        if test $supports_anon_versioning = yes; then
++          archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $output_objdir/$libname.ver~
++  cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $output_objdir/$libname.ver~
++  $echo &quot;local: *; };&quot; &gt;&gt; $output_objdir/$libname.ver~
++          $CC -shared'&quot;$tmp_addflag&quot;' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
++        fi
++        link_all_deplibs_GCJ=no
++      else
++        ld_shlibs_GCJ=no
++      fi
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
++        wlarc=
++      else
++        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      fi
++      ;;
++
++    solaris* | sysv5*)
++      if $LD -v 2&gt;&amp;1 | grep 'BFD 2\.8' &gt; /dev/null; then
++        ld_shlibs_GCJ=no
++        cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: The releases 2.8.* of the GNU linker cannot reliably
++*** create shared libraries on Solaris systems.  Therefore, libtool
++*** is disabling shared libraries support.  We urge you to upgrade GNU
++*** binutils to release 2.9.1 or newer.  Another option is to modify
++*** your PATH or compiler configuration so that the native linker is
++*** used, and then restart.
++
++EOF
++      elif $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs_GCJ=no
++      fi
++      ;;
++
++    sunos4*)
++      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      wlarc=
++      hardcode_direct_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    *)
++      if $LD --help 2&gt;&amp;1 | grep ': supported targets:.* elf' &gt; /dev/null; then
++        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
++        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++      else
++        ld_shlibs_GCJ=no
++      fi
++      ;;
++    esac
++
++    if test &quot;$ld_shlibs_GCJ&quot; = no; then
++      runpath_var=
++      hardcode_libdir_flag_spec_GCJ=
++      export_dynamic_flag_spec_GCJ=
++      whole_archive_flag_spec_GCJ=
++    fi
++  else
++    # PORTME fill in a description of your system's linker (not GNU ld)
++    case $host_os in
++    aix3*)
++      allow_undefined_flag_GCJ=unsupported
++      always_export_symbols_GCJ=yes
++      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
++      # Note: this linker hardcodes the directories in LIBPATH if there
++      # are no directories specified by -L.
++      hardcode_minus_L_GCJ=yes
++      if test &quot;$GCC&quot; = yes &amp;&amp; test -z &quot;$link_static_flag&quot;; then
++        # Neither direct hardcoding nor static linking is supported with a
++        # broken collect2.
++        hardcode_direct_GCJ=unsupported
++      fi
++      ;;
++
++    aix4* | aix5*)
++      if test &quot;$host_cpu&quot; = ia64; then
++        # On IA64, the linker does run time linking by default, so we don't
++        # have to do anything special.
++        aix_use_runtimelinking=no
++        exp_sym_flag='-Bexport'
++        no_entry_flag=&quot;&quot;
++      else
++        # If we're using GNU nm, then we don't want the &quot;-C&quot; option.
++        # -C means demangle to AIX nm, but means don't demangle with GNU nm
++        if $NM -V 2&gt;&amp;1 | grep 'GNU' &gt; /dev/null; then
++          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        else
++          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == &quot;T&quot;) || (\$2 == &quot;D&quot;) || (\$2 == &quot;B&quot;)) &amp;&amp; (substr(\$3,1,1) != &quot;.&quot;)) { print \$3 } }'\'' | sort -u &gt; $export_symbols'
++        fi
++        aix_use_runtimelinking=no
++
++        # Test if we are trying to use run time linking or normal
++        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
++        # need to do runtime linking.
++        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
++          for ld_flag in $LDFLAGS; do
++            if (test $ld_flag = &quot;-brtl&quot; || test $ld_flag = &quot;-Wl,-brtl&quot;); then
++              aix_use_runtimelinking=yes
++              break
++            fi
++          done
++        esac
++
++        exp_sym_flag='-bexport'
++        no_entry_flag='-bnoentry'
++      fi
++
++      # When large executables or shared objects are built, AIX ld can
++      # have problems creating the table of contents.  If linking a library
++      # or program results in &quot;error TOC overflow&quot; add -mminimal-toc to
++      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
++      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
++
++      archive_cmds_GCJ=''
++      hardcode_direct_GCJ=yes
++      hardcode_libdir_separator_GCJ=':'
++      link_all_deplibs_GCJ=yes
++
++      if test &quot;$GCC&quot; = yes; then
++        case $host_os in aix4.[012]|aix4.[012].*)
++        # We only want to do this on AIX 4.2 and lower, the check
++        # below for broken collect2 doesn't work under 4.3+
++          collect2name=`${CC} -print-prog-name=collect2`
++          if test -f &quot;$collect2name&quot; &amp;&amp; \
++             strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++          then
++            # We have reworked collect2
++            hardcode_direct_GCJ=yes
++          else
++            # We have old collect2
++            hardcode_direct_GCJ=unsupported
++            # It fails to find uninstalled libraries when the uninstalled
++            # path is not listed in the libpath.  Setting hardcode_minus_L
++            # to unsupported forces relinking
++            hardcode_minus_L_GCJ=yes
++            hardcode_libdir_flag_spec_GCJ='-L$libdir'
++            hardcode_libdir_separator_GCJ=
++          fi
++        esac
++        shared_flag='-shared'
++        if test &quot;$aix_use_runtimelinking&quot; = yes; then
++          shared_flag=&quot;$shared_flag &quot;'${wl}-G'
++        fi
++      else
++        # not using gcc
++        if test &quot;$host_cpu&quot; = ia64; then
++          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
++          # chokes on -Wl,-G. The following line is correct:
++          shared_flag='-G'
++        else
++          if test &quot;$aix_use_runtimelinking&quot; = yes; then
++            shared_flag='${wl}-G'
++          else
++            shared_flag='${wl}-bM:SRE'
++          fi
++        fi
++      fi
++
++      # It seems that -bexpall does not export symbols beginning with
++      # underscore (_), so it is better to generate a list of symbols to export.
++      always_export_symbols_GCJ=yes
++      if test &quot;$aix_use_runtimelinking&quot; = yes; then
++        # Warning - without using the other runtime loading flags (-brtl),
++        # -berok will link without error, but may produce a broken library.
++        allow_undefined_flag_GCJ='-berok'
++       # Determine the default libpath from the value encoded in an empty executable.
++       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++        archive_expsym_cmds_GCJ=&quot;\$CC&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test &quot;x${allow_undefined_flag}&quot; != &quot;x&quot;; then echo &quot;${wl}${allow_undefined_flag}&quot;; else :; fi` '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag&quot;
++       else
++        if test &quot;$host_cpu&quot; = ia64; then
++          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
++          allow_undefined_flag_GCJ=&quot;-z nodefs&quot;
++          archive_expsym_cmds_GCJ=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '&quot;\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols&quot;
++        else
++         # Determine the default libpath from the value encoded in an empty executable.
++         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++
++aix_libpath=`dump -H conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`
++# Check for a 64-bit object if we didn't find anything.
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=`dump -HX64 conftest$ac_exeext 2&gt;/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
++}'`; fi
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test -z &quot;$aix_libpath&quot;; then aix_libpath=&quot;/usr/lib:/lib&quot;; fi
++
++         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'&quot;$aix_libpath&quot;
++          # Warning - without using the other run time loading flags,
++          # -berok will link without error, but may produce a broken library.
++          no_undefined_flag_GCJ=' ${wl}-bernotok'
++          allow_undefined_flag_GCJ=' ${wl}-berok'
++          # -bexpall does not export symbols beginning with underscore (_)
++          always_export_symbols_GCJ=yes
++          # Exported symbols can be pulled into shared objects from archives
++          whole_archive_flag_spec_GCJ=' '
++          archive_cmds_need_lc_GCJ=yes
++          # This is similar to how AIX traditionally builds its shared libraries.
++          archive_expsym_cmds_GCJ=&quot;\$CC $shared_flag&quot;' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
++        fi
++      fi
++      ;;
++
++    amigaos*)
++      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir &amp;&amp; a2ixlibrary -32)'
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_minus_L_GCJ=yes
++      # see comment about different semantics on the GNU ld section
++      ld_shlibs_GCJ=no
++      ;;
++
++    bsdi[45]*)
++      export_dynamic_flag_spec_GCJ=-rdynamic
++      ;;
++
++    cygwin* | mingw* | pw32*)
++      # When not using gcc, we currently assume that we are using
++      # Microsoft Visual C++.
++      # hardcode_libdir_flag_spec is actually meaningless, as there is
++      # no search path for DLLs.
++      hardcode_libdir_flag_spec_GCJ=' '
++      allow_undefined_flag_GCJ=unsupported
++      # Tell ltmain to make .lib files, not .a files.
++      libext=lib
++      # Tell ltmain to make .dll files, not .so files.
++      shrext_cmds=&quot;.dll&quot;
++      # FIXME: Setting linknames here is a bad hack.
++      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo &quot;$deplibs&quot; | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
++      # The linker will automatically build a .lib file if we build a DLL.
++      old_archive_From_new_cmds_GCJ='true'
++      # FIXME: Should let the user specify the lib program.
++      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
++      fix_srcfile_path_GCJ='`cygpath -w &quot;$srcfile&quot;`'
++      enable_shared_with_static_runtimes_GCJ=yes
++      ;;
++
++    darwin* | rhapsody*)
++      case $host_os in
++        rhapsody* | darwin1.[012])
++         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
++         ;;
++       *) # Darwin 1.3 on
++         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
++           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++         else
++           case ${MACOSX_DEPLOYMENT_TARGET} in
++             10.[012])
++               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
++               ;;
++             10.*)
++               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
++               ;;
++           esac
++         fi
++         ;;
++      esac
++      archive_cmds_need_lc_GCJ=no
++      hardcode_direct_GCJ=no
++      hardcode_automatic_GCJ=yes
++      hardcode_shlibpath_var_GCJ=unsupported
++      whole_archive_flag_spec_GCJ=''
++      link_all_deplibs_GCJ=yes
++    if test &quot;$GCC&quot; = yes ; then
++            output_verbose_link_cmd='echo'
++        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
++      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++      archive_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++      module_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++    else
++      case $cc_basename in
++        xlc*)
++         output_verbose_link_cmd='echo'
++         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
++         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
++          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
++         archive_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          module_expsym_cmds_GCJ='sed -e &quot;s,#.*,,&quot; -e &quot;s,^[    ]*,,&quot; -e &quot;s,^\(..*\),_&amp;,&quot; &lt; $export_symbols &gt; $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
++          ;;
++       *)
++         ld_shlibs_GCJ=no
++          ;;
++      esac
++    fi
++      ;;
++
++    dgux*)
++      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    freebsd1*)
++      ld_shlibs_GCJ=no
++      ;;
++
++    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
++    # support.  Future versions do this automatically, but an explicit c++rt0.o
++    # does not break anything, and helps significantly (at the cost of a little
++    # extra space).
++    freebsd2.2*)
++      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
++      hardcode_libdir_flag_spec_GCJ='-R$libdir'
++      hardcode_direct_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
++    freebsd2*)
++      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_GCJ=yes
++      hardcode_minus_L_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
++    freebsd* | kfreebsd*-gnu | dragonfly*)
++      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
++      hardcode_libdir_flag_spec_GCJ='-R$libdir'
++      hardcode_direct_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    hpux9*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      else
++        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
++      fi
++      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
++      hardcode_libdir_separator_GCJ=:
++      hardcode_direct_GCJ=yes
++
++      # hardcode_minus_L: Not really in the search PATH,
++      # but as the default location of the library.
++      hardcode_minus_L_GCJ=yes
++      export_dynamic_flag_spec_GCJ='${wl}-E'
++      ;;
++
++    hpux10* | hpux11*)
++      if test &quot;$GCC&quot; = yes -a &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        *)
++          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
++          ;;
++        esac
++      else
++        case $host_cpu in
++        hppa*64*|ia64*)
++          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        *)
++          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
++          ;;
++        esac
++      fi
++      if test &quot;$with_gnu_ld&quot; = no; then
++        case $host_cpu in
++        hppa*64*)
++          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
++          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
++          hardcode_libdir_separator_GCJ=:
++          hardcode_direct_GCJ=no
++          hardcode_shlibpath_var_GCJ=no
++          ;;
++        ia64*)
++          hardcode_libdir_flag_spec_GCJ='-L$libdir'
++          hardcode_direct_GCJ=no
++          hardcode_shlibpath_var_GCJ=no
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L_GCJ=yes
++          ;;
++        *)
++          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
++          hardcode_libdir_separator_GCJ=:
++          hardcode_direct_GCJ=yes
++          export_dynamic_flag_spec_GCJ='${wl}-E'
++
++          # hardcode_minus_L: Not really in the search PATH,
++          # but as the default location of the library.
++          hardcode_minus_L_GCJ=yes
++          ;;
++        esac
++      fi
++      ;;
++
++    irix5* | irix6* | nonstopux*)
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
++      fi
++      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_GCJ=:
++      link_all_deplibs_GCJ=yes
++      ;;
++
++    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
++      if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
++      else
++        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
++      fi
++      hardcode_libdir_flag_spec_GCJ='-R$libdir'
++      hardcode_direct_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    newsos6)
++      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_GCJ=yes
++      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_GCJ=:
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    openbsd*)
++      hardcode_direct_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
++        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
++        export_dynamic_flag_spec_GCJ='${wl}-E'
++      else
++       case $host_os in
++         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
++           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
++           hardcode_libdir_flag_spec_GCJ='-R$libdir'
++           ;;
++         *)
++           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
++           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
++           ;;
++       esac
++      fi
++      ;;
++
++    os2*)
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_minus_L_GCJ=yes
++      allow_undefined_flag_GCJ=unsupported
++      archive_cmds_GCJ='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $output_objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $output_objdir/$libname.def~$echo DATA &gt;&gt; $output_objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $output_objdir/$libname.def~$echo EXPORTS &gt;&gt; $output_objdir/$libname.def~emxexp $libobjs &gt;&gt; $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
++      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
++      ;;
++
++    osf3*)
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++      else
++        allow_undefined_flag_GCJ=' -expect_unresolved \*'
++        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++      fi
++      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
++      hardcode_libdir_separator_GCJ=:
++      ;;
++
++    osf4* | osf5*)        # as osf3* with the addition of -msym flag
++      if test &quot;$GCC&quot; = yes; then
++        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
++        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
++        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
++      else
++        allow_undefined_flag_GCJ=' -expect_unresolved \*'
++        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
++        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf &quot;%s %s\\n&quot; -exported_symbol &quot;\$i&quot; &gt;&gt; $lib.exp; done; echo &quot;-hidden&quot;&gt;&gt; $lib.exp~
++        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
++
++        # Both c and cxx compiler support -rpath directly
++        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
++      fi
++      hardcode_libdir_separator_GCJ=:
++      ;;
++
++    sco3.2v5*)
++      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var_GCJ=no
++      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
++      runpath_var=LD_RUN_PATH
++      hardcode_runpath_var=yes
++      ;;
++
++    solaris*)
++      no_undefined_flag_GCJ=' -z text'
++      if test &quot;$GCC&quot; = yes; then
++        wlarc='${wl}'
++        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++        archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
++      else
++        wlarc=''
++        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      fi
++      hardcode_libdir_flag_spec_GCJ='-R$libdir'
++      hardcode_shlibpath_var_GCJ=no
++      case $host_os in
++      solaris2.[0-5] | solaris2.[0-5].*) ;;
++      *)
++         # The compiler driver will combine linker options so we
++         # cannot just pass the convience library names through
++         # without $wl, iff we do not link with $LD.
++         # Luckily, gcc supports the same syntax we need for Sun Studio.
++         # Supported since Solaris 2.6 (maybe 2.5.1?)
++         case $wlarc in
++         '')
++           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
++         *)
++           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\&quot;\&quot;; do test -n \&quot;$conv\&quot; &amp;&amp; new_convenience=\&quot;$new_convenience,$conv\&quot;; done; $echo \&quot;$new_convenience\&quot;` ${wl}-z ${wl}defaultextract' ;;
++         esac ;;
++      esac
++      link_all_deplibs_GCJ=yes
++      ;;
++
++    sunos4*)
++      if test &quot;x$host_vendor&quot; = xsequent; then
++        # Use $CC to link under sequent, because it throws in some extra .o
++        # files that make .init and .fini sections work.
++        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
++      fi
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_direct_GCJ=yes
++      hardcode_minus_L_GCJ=yes
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    sysv4)
++      case $host_vendor in
++        sni)
++          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct_GCJ=yes # is this really true???
++        ;
++        siemens)
++          ## LD is ld it makes a PLAMLIB
++          ## CC just makes a GrossModule.
++          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
++          hardcode_direct_GCJ=no
++        ;;
++        motorola)
++          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
++        ;
++      esac
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    sysv4.3*)
++      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_shlibpath_var_GCJ=no
++      export_dynamic_flag_spec_GCJ='-Bexport'
++      ;;
++
++    sysv4*MP*)
++      if test -d /usr/nec; then
++        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++        hardcode_shlibpath_var_GCJ=no
++        runpath_var=LD_RUN_PATH
++        hardcode_runpath_var=yes
++        ld_shlibs_GCJ=yes
++      fi
++      ;;
++
++    sysv4.2uw2*)
++      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_direct_GCJ=yes
++      hardcode_minus_L_GCJ=no
++      hardcode_shlibpath_var_GCJ=no
++      hardcode_runpath_var=yes
++      runpath_var=LD_RUN_PATH
++      ;;
++
++   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
++      no_undefined_flag_GCJ='${wl}-z ${wl}text'
++      if test &quot;$GCC&quot; = yes; then
++        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      else
++        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      fi
++      runpath_var='LD_RUN_PATH'
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    sysv5*)
++      no_undefined_flag_GCJ=' -z text'
++      # $CC -shared without GNU ld will not create a library from C++
++      # object files and a static libstdc++, better avoid it by now
++      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      archive_expsym_cmds_GCJ='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | $SED -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
++      hardcode_libdir_flag_spec_GCJ=
++      hardcode_shlibpath_var_GCJ=no
++      runpath_var='LD_RUN_PATH'
++      ;;
++
++    uts4*)
++      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
++      hardcode_libdir_flag_spec_GCJ='-L$libdir'
++      hardcode_shlibpath_var_GCJ=no
++      ;;
++
++    *)
++      ld_shlibs_GCJ=no
++      ;;
++    esac
++  fi
++
++echo &quot;$as_me:$LINENO: result: $ld_shlibs_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ld_shlibs_GCJ&quot; &gt;&amp;6
++test &quot;$ld_shlibs_GCJ&quot; = no &amp;&amp; can_build_shared=no
++
++variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
++if test &quot;$GCC&quot; = yes; then
++  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
++fi
++
++#
++# Do we need to explicitly link libc?
++#
++case &quot;x$archive_cmds_need_lc_GCJ&quot; in
++x|xyes)
++  # Assume -lc should be added
++  archive_cmds_need_lc_GCJ=yes
++
++  if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
++    case $archive_cmds_GCJ in
++    *'~'*)
++      # FIXME: we may have to deal with multi-command sequences.
++      ;;
++    '$CC '*)
++      # Test whether the compiler implicitly links with -lc since on some
++      # systems, -lgcc has to come before -lc. If gcc already passes -lc
++      # to ld, don't add -lc before -lgcc.
++      echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
++      $rm conftest*
++      printf &quot;$lt_simple_compile_test_code&quot; &gt; conftest.$ac_ext
++
++      if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } 2&gt;conftest.err; then
++        soname=conftest
++        lib=conftest
++        libobjs=conftest.$ac_objext
++        deplibs=
++        wl=$lt_prog_compiler_wl_GCJ
++        compiler_flags=-v
++        linker_flags=-v
++        verstring=
++        output_objdir=.
++        libname=conftest
++        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
++        allow_undefined_flag_GCJ=
++        if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds_GCJ 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
++  (eval $archive_cmds_GCJ 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++        then
++          archive_cmds_need_lc_GCJ=no
++        else
++          archive_cmds_need_lc_GCJ=yes
++        fi
++        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
++      else
++        cat conftest.err 1&gt;&amp;5
++      fi
++      $rm conftest*
++      echo &quot;$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$archive_cmds_need_lc_GCJ&quot; &gt;&amp;6
++      ;;
++    esac
++  fi
++  ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking dynamic linker characteristics&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dynamic linker characteristics... $ECHO_C&quot; &gt;&amp;6
++library_names_spec=
++libname_spec='lib$name'
++soname_spec=
++shrext_cmds=&quot;.so&quot;
++postinstall_cmds=
++postuninstall_cmds=
++finish_cmds=
++finish_eval=
++shlibpath_var=
++shlibpath_overrides_runpath=unknown
++version_type=none
++dynamic_linker=&quot;$host_os ld.so&quot;
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++if test &quot;$GCC&quot; = yes; then
++  sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++  if echo &quot;$sys_lib_search_path_spec&quot; | grep ';' &gt;/dev/null ; then
++    # if the path contains &quot;;&quot; then we assume it to be the separator
++    # otherwise default to the standard path separator (i.e. &quot;:&quot;) - it is
++    # assumed that no part of a normal pathname contains &quot;;&quot; but that should
++    # okay in the real world where &quot;;&quot; in dirpaths is itself problematic.
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++  else
++    sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++  fi
++else
++  sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++fi
++need_lib_prefix=unknown
++hardcode_into_libs=no
++
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
++need_version=unknown
++
++case $host_os in
++aix3*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
++  shlibpath_var=LIBPATH
++
++  # AIX 3 has no versioning support, so we append a major version to the name.
++  soname_spec='${libname}${release}${shared_ext}$major'
++  ;;
++
++aix4* | aix5*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  hardcode_into_libs=yes
++  if test &quot;$host_cpu&quot; = ia64; then
++    # AIX 5 supports IA64
++    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
++    shlibpath_var=LD_LIBRARY_PATH
++  else
++    # With GCC up to 2.95.x, collect2 would create an import file
++    # for dependence libraries.  The import file would start with
++    # the line `#! .'.  This would cause the generated library to
++    # depend on `.', always an invalid library.  This was fixed in
++    # development snapshots of GCC prior to 3.0.
++    case $host_os in
++      aix4 | aix4.[01] | aix4.[01].*)
++      if { echo '#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 97)'
++           echo ' yes '
++           echo '#endif'; } | ${CC} -E - | grep yes &gt; /dev/null; then
++        :
++      else
++        can_build_shared=no
++      fi
++      ;;
++    esac
++    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
++    # soname into executable. Probably we can add versioning support to
++    # collect2, so additional links can be useful in future.
++    if test &quot;$aix_use_runtimelinking&quot; = yes; then
++      # If using run time linking (on AIX 4.2 or later) use lib&lt;name&gt;.so
++      # instead of lib&lt;name&gt;.a to let people know that these are not
++      # typical AIX shared libraries.
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    else
++      # We preserve .a as extension for shared libraries through AIX4.2
++      # and later when we are not doing run time linking.
++      library_names_spec='${libname}${release}.a $libname.a'
++      soname_spec='${libname}${release}${shared_ext}$major'
++    fi
++    shlibpath_var=LIBPATH
++  fi
++  ;;
++
++amigaos*)
++  library_names_spec='$libname.ixlibrary $libname.a'
++  # Create ${libname}_ixlibrary.a entries in /sys/libs.
++  finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a&quot;; cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
++  ;;
++
++beos*)
++  library_names_spec='${libname}${shared_ext}'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  ;;
++
++bsdi[45]*)
++  version_type=linux
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
++  ;;
++
++cygwin* | mingw* | pw32*)
++  version_type=windows
++  shrext_cmds=&quot;.dll&quot;
++  need_version=no
++  need_lib_prefix=no
++
++  case $GCC,$host_os in
++  yes,cygwin* | yes,mingw* | yes,pw32*)
++    library_names_spec='$libname.dll.a'
++    # DLL is installed to $(libdir)/../bin by postinstall_cmds
++    postinstall_cmds='base_file=`basename \${file}`~
++      dlpath=`$SHELL 2&gt;&amp;1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
++      dldir=$destdir/`dirname \$dlpath`~
++      test -d \$dldir || mkdir -p \$dldir~
++      $install_prog $dir/$dlname \$dldir/$dlname~
++      chmod a+x \$dldir/$dlname'
++    postuninstall_cmds='dldll=`$SHELL 2&gt;&amp;1 -c '\''. $file; echo \$dlname'\''`~
++      dlpath=$dir/\$dldll~
++       $rm \$dlpath'
++    shlibpath_overrides_runpath=yes
++
++    case $host_os in
++    cygwin*)
++      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
++      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=&quot;/usr/lib /lib/w32api /lib /usr/local/lib&quot;
++      ;;
++    mingw*)
++      # MinGW DLLs use traditional 'lib' prefix
++      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      sys_lib_search_path_spec=`$CC -print-search-dirs | grep &quot;^libraries:&quot; | $SED -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot;`
++      if echo &quot;$sys_lib_search_path_spec&quot; | grep ';[c-zC-Z]:/' &gt;/dev/null; then
++        # It is most probably a Windows format PATH printed by
++        # mingw gcc, but we are running on Cygwin. Gcc prints its search
++        # path with ; separators, and with drive letters. We can handle the
++        # drive letters (cygwin fileutils understands them), so leave them,
++        # especially as we might pass files found there to a mingw objdump,
++        # which wouldn't understand a cygwinified path. Ahh.
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED -e 's/;/ /g'`
++      else
++        sys_lib_search_path_spec=`echo &quot;$sys_lib_search_path_spec&quot; | $SED  -e &quot;s/$PATH_SEPARATOR/ /g&quot;`
++      fi
++      ;;
++    pw32*)
++      # pw32 DLLs use 'pw' prefix rather than 'lib'
++      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
++      ;;
++    esac
++    ;;
++
++  *)
++    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
++    ;;
++  esac
++  dynamic_linker='Win32 ld.exe'
++  # FIXME: first we should search . and the directory the executable is in
++  shlibpath_var=PATH
++  ;;
++
++darwin* | rhapsody*)
++  dynamic_linker=&quot;$host_os dyld&quot;
++  version_type=darwin
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
++  soname_spec='${libname}${release}${major}$shared_ext'
++  shlibpath_overrides_runpath=yes
++  shlibpath_var=DYLD_LIBRARY_PATH
++  shrext_cmds='`test .$module = .yes &amp;&amp; echo .so || echo .dylib`'
++  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
++  if test &quot;$GCC&quot; = yes; then
++    sys_lib_search_path_spec=`$CC -print-search-dirs | tr &quot;\n&quot; &quot;$PATH_SEPARATOR&quot; | sed -e 's/libraries:/@libraries:/' | tr &quot;@&quot; &quot;\n&quot; | grep &quot;^libraries:&quot; | sed -e &quot;s/^libraries://&quot; -e &quot;s,=/,/,g&quot; -e &quot;s,$PATH_SEPARATOR, ,g&quot; -e &quot;s,.*,&amp; /lib /usr/lib /usr/local/lib,g&quot;`
++  else
++    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
++  fi
++  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
++  ;;
++
++dgux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++freebsd1*)
++  dynamic_linker=no
++  ;;
++
++kfreebsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++freebsd* | dragonfly*)
++  # DragonFly does not have aout.  When/if they implement a new
++  # versioning mechanism, adjust this.
++  if test -x /usr/bin/objformat; then
++    objformat=`/usr/bin/objformat`
++  else
++    case $host_os in
++    freebsd[123]*) objformat=aout ;;
++    *) objformat=elf ;;
++    esac
++  fi
++  version_type=freebsd-$objformat
++  case $version_type in
++    freebsd-elf*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
++      need_version=yes
++      ;;
++  esac
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_os in
++  freebsd2*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  freebsd3.[01]* | freebsdelf3.[01]*)
++    shlibpath_overrides_runpath=yes
++    hardcode_into_libs=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    hardcode_into_libs=yes
++    ;;
++  esac
++  ;;
++
++gnu*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  hardcode_into_libs=yes
++  ;;
++
++hpux9* | hpux10* | hpux11*)
++  # Give a soname corresponding to the major version so that dld.sl refuses to
++  # link against other versions.
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  case $host_cpu in
++  ia64*)
++    shrext_cmds='.so'
++    hardcode_into_libs=yes
++    dynamic_linker=&quot;$host_os dld.so&quot;
++    shlibpath_var=LD_LIBRARY_PATH
++    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    if test &quot;X$HPUX_IA64_MODE&quot; = X32; then
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib&quot;
++    else
++      sys_lib_search_path_spec=&quot;/usr/lib/hpux64 /usr/local/lib/hpux64&quot;
++    fi
++    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++    ;;
++   hppa*64*)
++     shrext_cmds='.sl'
++     hardcode_into_libs=yes
++     dynamic_linker=&quot;$host_os dld.sl&quot;
++     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
++     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
++     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++     soname_spec='${libname}${release}${shared_ext}$major'
++     sys_lib_search_path_spec=&quot;/usr/lib/pa20_64 /usr/ccs/lib/pa20_64&quot;
++     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
++     ;;
++   *)
++    shrext_cmds='.sl'
++    dynamic_linker=&quot;$host_os dld.sl&quot;
++    shlibpath_var=SHLIB_PATH
++    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    ;;
++  esac
++  # HP-UX runs *really* slowly unless shared libraries are mode 555.
++  postinstall_cmds='chmod 555 $lib'
++  ;;
++
++irix5* | irix6* | nonstopux*)
++  case $host_os in
++    nonstopux*) version_type=nonstopux ;;
++    *)
++        if test &quot;$lt_cv_prog_gnu_ld&quot; = yes; then
++                version_type=linux
++        else
++                version_type=irix
++        fi ;;
++  esac
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
++  case $host_os in
++  irix5* | nonstopux*)
++    libsuff= shlibsuff=
++    ;;
++  *)
++    case $LD in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;|*-melf32bsmip|*&quot;-melf32bsmip &quot;)
++      libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;|*-melf32bmipn32|*&quot;-melf32bmipn32 &quot;)
++      libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;|*-melf64bmip|*&quot;-melf64bmip &quot;)
++      libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  hardcode_into_libs=yes
++  ;;
++
++# No shared lib support for Linux oldld, aout, or coff.
++linux*oldld* | linux*aout* | linux*coff*)
++  dynamic_linker=no
++  ;;
++
++# This must be Linux ELF.
++linux*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  # This implies no fast_install, which is unacceptable.
++  # Some rework will be needed to allow for fast_install
++  # before this can be enabled.
++  hardcode_into_libs=yes
++
++  # Append ld.so.conf contents to the search path
++  if test -f /etc/ld.so.conf; then
++    lt_ld_extra=`awk '/^include / { system(sprintf(&quot;cd /etc; cat %s&quot;, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' &lt; /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
++    sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;
++  fi
++
++  # We used to test for /lib/ld.so.1 and disable shared libraries on
++  # powerpc, because MkLinux only supported shared libraries with the
++  # GNU dynamic linker.  Since this was broken with cross compilers,
++  # most powerpc-linux boxes support dynamic linking these days and
++  # people can always --disable-shared, the test was removed, and we
++  # assume the GNU/Linux dynamic linker is in use.
++  dynamic_linker='GNU/Linux ld.so'
++  ;;
++
++netbsdelf*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='NetBSD ld.elf_so'
++  ;;
++
++knetbsd*-gnu)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=no
++  hardcode_into_libs=yes
++  dynamic_linker='GNU ld.so'
++  ;;
++
++netbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  need_version=no
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++    soname_spec='${libname}${release}${shared_ext}$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  ;;
++
++newsos6)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++nto-qnx*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  ;;
++
++openbsd*)
++  version_type=sunos
++  need_lib_prefix=no
++  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
++  case $host_os in
++    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
++    *)                         need_version=no  ;;
++  esac
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
++    case $host_os in
++      openbsd2.[89] | openbsd2.[89].*)
++        shlibpath_overrides_runpath=no
++        ;
++      *)
++        shlibpath_overrides_runpath=yes
++        ;
++      esac
++  else
++    shlibpath_overrides_runpath=yes
++  fi
++  ;;
++
++os2*)
++  libname_spec='$name'
++  shrext_cmds=&quot;.dll&quot;
++  need_lib_prefix=no
++  library_names_spec='$libname${shared_ext} $libname.a'
++  dynamic_linker='OS/2 ld.exe'
++  shlibpath_var=LIBPATH
++  ;;
++
++osf3* | osf4* | osf5*)
++  version_type=osf
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++sco3.2v5*)
++  version_type=osf
++  soname_spec='${libname}${release}${shared_ext}$major'
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++solaris*)
++  version_type=linux
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  hardcode_into_libs=yes
++  # ldd complains unless libraries are executable
++  postinstall_cmds='chmod +x $lib'
++  ;;
++
++sunos4*)
++  version_type=sunos
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
++  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
++  shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
++  ;;
++
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  case $host_vendor in
++    sni)
++      shlibpath_overrides_runpath=no
++      need_lib_prefix=no
++      export_dynamic_flag_spec='${wl}-Blargedynsym'
++      runpath_var=LD_RUN_PATH
++      ;;
++    siemens)
++      need_lib_prefix=no
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      ;;
++  esac
++  ;;
++
++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
++    soname_spec='$libname${shared_ext}.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
++uts4*)
++  version_type=linux
++  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
++  soname_spec='${libname}${release}${shared_ext}$major'
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++*)
++  dynamic_linker=no
++  ;;
++esac
++echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
++test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no
++
++echo &quot;$as_me:$LINENO: checking how to hardcode library paths into programs&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to hardcode library paths into programs... $ECHO_C&quot; &gt;&amp;6
++hardcode_action_GCJ=
++if test -n &quot;$hardcode_libdir_flag_spec_GCJ&quot; || \
++   test -n &quot;$runpath_var_GCJ&quot; || \
++   test &quot;X$hardcode_automatic_GCJ&quot; = &quot;Xyes&quot; ; then
++
++  # We can hardcode non-existant directories.
++  if test &quot;$hardcode_direct_GCJ&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)&quot; != no &amp;&amp;
++     test &quot;$hardcode_minus_L_GCJ&quot; != no; then
++    # Linking always hardcodes the temporary library directory.
++    hardcode_action_GCJ=relink
++  else
++    # We can link without hardcoding, and we can hardcode nonexisting dirs.
++    hardcode_action_GCJ=immediate
++  fi
++else
++  # We cannot hardcode anything, or else we can only hardcode existing
++  # directories.
++  hardcode_action_GCJ=unsupported
++fi
++echo &quot;$as_me:$LINENO: result: $hardcode_action_GCJ&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$hardcode_action_GCJ&quot; &gt;&amp;6
++
++if test &quot;$hardcode_action_GCJ&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++
++striplib=
++old_striplib=
++echo &quot;$as_me:$LINENO: checking whether stripping libraries is possible&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether stripping libraries is possible... $ECHO_C&quot; &gt;&amp;6
++if test -n &quot;$STRIP&quot; &amp;&amp; $STRIP -V 2&gt;&amp;1 | grep &quot;GNU strip&quot; &gt;/dev/null; then
++  test -z &quot;$old_striplib&quot; &amp;&amp; old_striplib=&quot;$STRIP --strip-debug&quot;
++  test -z &quot;$striplib&quot; &amp;&amp; striplib=&quot;$STRIP --strip-unneeded&quot;
++  echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++else
++# FIXME - insert some real tests, host_os isn't really good enough
++  case $host_os in
++   darwin*)
++       if test -n &quot;$STRIP&quot; ; then
++         striplib=&quot;$STRIP -x&quot;
++         echo &quot;$as_me:$LINENO: result: yes&quot; &gt;&amp;5
++echo &quot;${ECHO_T}yes&quot; &gt;&amp;6
++       else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++       ;;
++   *)
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++    ;;
++  esac
++fi
++
++if test &quot;x$enable_dlopen&quot; != xyes; then
++  enable_dlopen=unknown
++  enable_dlopen_self=unknown
++  enable_dlopen_self_static=unknown
++else
++  lt_cv_dlopen=no
++  lt_cv_dlopen_libs=
++
++  case $host_os in
++  beos*)
++    lt_cv_dlopen=&quot;load_add_on&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++    ;;
++
++  mingw* | pw32*)
++    lt_cv_dlopen=&quot;LoadLibrary&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  cygwin*)
++    lt_cv_dlopen=&quot;dlopen&quot;
++    lt_cv_dlopen_libs=
++   ;;
++
++  darwin*)
++  # if libdl is installed we need to link against it
++    echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++
++    lt_cv_dlopen=&quot;dyld&quot;
++    lt_cv_dlopen_libs=
++    lt_cv_dlopen_self=yes
++
++fi
++
++   ;;
++
++  *)
++    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define shl_load to an innocuous variant, in case &lt;limits.h&gt; declares shl_load.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define shl_load innocuous_shl_load
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char shl_load (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef shl_load
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_shl_load) || defined (__stub___shl_load)
++choke me
++#else
++char (*f) () = shl_load;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != shl_load;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
++if test $ac_cv_func_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char shl_load ();
++int
++main ()
++{
++shl_load ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_shl_load=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_shl_load=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_shl_load = yes; then
++  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define dlopen to an innocuous variant, in case &lt;limits.h&gt; declares dlopen.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define dlopen innocuous_dlopen
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char dlopen (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef dlopen
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_dlopen) || defined (__stub___dlopen)
++choke me
++#else
++char (*f) () = dlopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != dlopen;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_func_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
++if test $ac_cv_func_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dl_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dl_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_dl_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-lsvld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dlopen ();
++int
++main ()
++{
++dlopen ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_svld_dlopen=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_svld_dlopen=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
++if test $ac_cv_lib_svld_dlopen = yes; then
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
++else
++  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dld_link ();
++int
++main ()
++{
++dld_link ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dld_dld_link=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_lib_dld_dld_link=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
++if test $ac_cv_lib_dld_dld_link = yes; then
++  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++
++fi
++
++    ;;
++  esac
++
++  if test &quot;x$lt_cv_dlopen&quot; != xno; then
++    enable_dlopen=yes
++  else
++    enable_dlopen=no
++  fi
++
++  case $lt_cv_dlopen in
++  dlopen)
++    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++    test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
++
++    save_LDFLAGS=&quot;$LDFLAGS&quot;
++    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
++
++    save_LIBS=&quot;$LIBS&quot;
++    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
++
++    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 18543 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
++
++    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
++      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
++      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++            if test &quot;$cross_compiling&quot; = yes; then :
++  lt_cv_dlopen_self_static=cross
++else
++  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
++  lt_status=$lt_dlunknown
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 18641 &quot;configure&quot;
++#include &quot;confdefs.h&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++#  define LT_DLGLOBAL                RTLD_GLOBAL
++#else
++#  ifdef DL_GLOBAL
++#    define LT_DLGLOBAL                DL_GLOBAL
++#  else
++#    define LT_DLGLOBAL                0
++#  endif
++#endif
++
++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LT_DLLAZY_OR_NOW
++#  ifdef RTLD_LAZY
++#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
++#  else
++#    ifdef DL_LAZY
++#      define LT_DLLAZY_OR_NOW                DL_LAZY
++#    else
++#      ifdef RTLD_NOW
++#        define LT_DLLAZY_OR_NOW        RTLD_NOW
++#      else
++#        ifdef DL_NOW
++#          define LT_DLLAZY_OR_NOW        DL_NOW
++#        else
++#          define LT_DLLAZY_OR_NOW        0
++#        endif
++#      endif
++#    endif
++#  endif
++#endif
++
++#ifdef __cplusplus
++extern &quot;C&quot; void exit (int);
++#endif
++
++void fnord() { int i=42;}
++int main ()
++{
++  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
++  int status = $lt_dlunknown;
++
++  if (self)
++    {
++      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
++      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
++      /* dlclose (self); */
++    }
++
++    exit (status);
++}
++EOF
++  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
++    (./conftest; exit; ) &gt;&amp;5 2&gt;/dev/null
++    lt_status=$?
++    case x$lt_status in
++      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
++      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
++    esac
++  else :
++    # compilation failed
++    lt_cv_dlopen_self_static=no
++  fi
++fi
++rm -fr conftest*
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
++    fi
++
++    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
++    LDFLAGS=&quot;$save_LDFLAGS&quot;
++    LIBS=&quot;$save_LIBS&quot;
+     ;;
+-  yes,pw32*)
+-    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
++  esac
++
++  case $lt_cv_dlopen_self in
++  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
++  *) enable_dlopen_self=unknown ;;
++  esac
++
++  case $lt_cv_dlopen_self_static in
++  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
++  *) enable_dlopen_self_static=unknown ;;
++  esac
++fi
++
++
++# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    compiler_GCJ \
++    CC_GCJ \
++    LD_GCJ \
++    lt_prog_compiler_wl_GCJ \
++    lt_prog_compiler_pic_GCJ \
++    lt_prog_compiler_static_GCJ \
++    lt_prog_compiler_no_builtin_flag_GCJ \
++    export_dynamic_flag_spec_GCJ \
++    thread_safe_flag_spec_GCJ \
++    whole_archive_flag_spec_GCJ \
++    enable_shared_with_static_runtimes_GCJ \
++    old_archive_cmds_GCJ \
++    old_archive_from_new_cmds_GCJ \
++    predep_objects_GCJ \
++    postdep_objects_GCJ \
++    predeps_GCJ \
++    postdeps_GCJ \
++    compiler_lib_search_path_GCJ \
++    archive_cmds_GCJ \
++    archive_expsym_cmds_GCJ \
++    postinstall_cmds_GCJ \
++    postuninstall_cmds_GCJ \
++    old_archive_from_expsyms_cmds_GCJ \
++    allow_undefined_flag_GCJ \
++    no_undefined_flag_GCJ \
++    export_symbols_cmds_GCJ \
++    hardcode_libdir_flag_spec_GCJ \
++    hardcode_libdir_flag_spec_ld_GCJ \
++    hardcode_libdir_separator_GCJ \
++    hardcode_automatic_GCJ \
++    module_cmds_GCJ \
++    module_expsym_cmds_GCJ \
++    lt_cv_prog_compiler_c_o_GCJ \
++    exclude_expsyms_GCJ \
++    include_expsyms_GCJ; do
++
++    case $var in
++    old_archive_cmds_GCJ | \
++    old_archive_from_new_cmds_GCJ | \
++    archive_cmds_GCJ | \
++    archive_expsym_cmds_GCJ | \
++    module_cmds_GCJ | \
++    module_expsym_cmds_GCJ | \
++    old_archive_from_expsyms_cmds_GCJ | \
++    export_symbols_cmds_GCJ | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\$0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+     ;;
+-  *)
+-    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
++  esac
++
++cfgfile=&quot;$ofile&quot;
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++# ### BEGIN LIBTOOL TAG CONFIG: $tagname
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$archive_cmds_need_lc_GCJ
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_compiler_GCJ
++
++# Is the compiler the GNU C compiler?
++with_gcc=$GCC_GCJ
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_LD_GCJ
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_lt_prog_compiler_wl_GCJ
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_lt_prog_compiler_pic_GCJ
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_lt_prog_compiler_static_GCJ
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_old_archive_cmds_GCJ
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_archive_cmds_GCJ
++archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_module_cmds_GCJ
++module_expsym_cmds=$lt_module_expsym_cmds_GCJ
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_predep_objects_GCJ
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_postdep_objects_GCJ
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_predeps_GCJ
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_postdeps_GCJ
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_allow_undefined_flag_GCJ
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_no_undefined_flag_GCJ
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
++
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var
++
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var
++
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
++# How to hardcode a shared library path into an executable.
++hardcode_action=$hardcode_action_GCJ
++
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs
++
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
++
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
++
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
++
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$hardcode_direct_GCJ
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$hardcode_minus_L_GCJ
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$hardcode_automatic_GCJ
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$link_all_deplibs_GCJ
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$fix_srcfile_path_GCJ&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols_GCJ
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_export_symbols_cmds_GCJ
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_exclude_expsyms_GCJ
++
++# Symbols that must always be exported.
++include_expsyms=$lt_include_expsyms_GCJ
++
++# ### END LIBTOOL TAG CONFIG: $tagname
++
++__EOF__
++
++
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  fi
++fi
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++CC=&quot;$lt_save_CC&quot;
++
++        else
++          tagname=&quot;&quot;
++        fi
++        ;
++
++      RC)
++
++
++
++# Source file extension for RC test sources.
++ac_ext=rc
++
++# Object file extension for compiled RC test sources.
++objext=o
++objext_RC=$objext
++
++# Code to be used in simple compile tests
++lt_simple_compile_test_code='sample MENU { MENUITEM &quot;&amp;Soup&quot;, 100, CHECKED }\n'
++
++# Code to be used in simple link tests
++lt_simple_link_test_code=&quot;$lt_simple_compile_test_code&quot;
++
++# ltmain only uses $CC for tagged configurations so make sure $CC is set.
++
++# If no C compiler was specified, use CC.
++LTCC=${LTCC-&quot;$CC&quot;}
++
++# Allow CC to be a program name with arguments.
++compiler=$CC
++
++
++# save warnings/boilerplate of simple test code
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_compile_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_compile&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_compiler_boilerplate=`cat conftest.err`
++$rm conftest*
++
++ac_outfile=conftest.$ac_objext
++printf &quot;$lt_simple_link_test_code&quot; &gt;conftest.$ac_ext
++eval &quot;$ac_link&quot; 2&gt;&amp;1 &gt;/dev/null | $SED '/^$/d' &gt;conftest.err
++_lt_linker_boilerplate=`cat conftest.err`
++$rm conftest*
++
++
++# Allow CC to be a program name with arguments.
++lt_save_CC=&quot;$CC&quot;
++CC=${RC-&quot;windres&quot;}
++compiler=$CC
++compiler_RC=$CC
++for cc_temp in $compiler&quot;&quot;; do
++  case $cc_temp in
++    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
++    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
++    \-*) ;;
++    *) break;;
++  esac
++done
++cc_basename=`$echo &quot;X$cc_temp&quot; | $Xsed -e 's%.*/%%' -e &quot;s%^$host_alias-%%&quot;`
++
++lt_cv_prog_compiler_c_o_RC=yes
++
++# The else clause should only fire when bootstrapping the
++# libtool distribution, otherwise you forgot to ship ltmain.sh
++# with your package, and you will get complaints that there are
++# no rules to generate ltmain.sh.
++if test -f &quot;$ltmain&quot;; then
++  # See if we are running on zsh, and set the options which allow our commands through
++  # without removal of \ escapes.
++  if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++    setopt NO_GLOB_SUBST
++  fi
++  # Now quote all the things that may contain metacharacters while being
++  # careful not to overquote the AC_SUBSTed values.  We take copies of the
++  # variables and quote the copies for generation of the libtool script.
++  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
++    SED SHELL STRIP \
++    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
++    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
++    deplibs_check_method reload_flag reload_cmds need_locks \
++    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
++    lt_cv_sys_global_symbol_to_c_name_address \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    old_postinstall_cmds old_postuninstall_cmds \
++    compiler_RC \
++    CC_RC \
++    LD_RC \
++    lt_prog_compiler_wl_RC \
++    lt_prog_compiler_pic_RC \
++    lt_prog_compiler_static_RC \
++    lt_prog_compiler_no_builtin_flag_RC \
++    export_dynamic_flag_spec_RC \
++    thread_safe_flag_spec_RC \
++    whole_archive_flag_spec_RC \
++    enable_shared_with_static_runtimes_RC \
++    old_archive_cmds_RC \
++    old_archive_from_new_cmds_RC \
++    predep_objects_RC \
++    postdep_objects_RC \
++    predeps_RC \
++    postdeps_RC \
++    compiler_lib_search_path_RC \
++    archive_cmds_RC \
++    archive_expsym_cmds_RC \
++    postinstall_cmds_RC \
++    postuninstall_cmds_RC \
++    old_archive_from_expsyms_cmds_RC \
++    allow_undefined_flag_RC \
++    no_undefined_flag_RC \
++    export_symbols_cmds_RC \
++    hardcode_libdir_flag_spec_RC \
++    hardcode_libdir_flag_spec_ld_RC \
++    hardcode_libdir_separator_RC \
++    hardcode_automatic_RC \
++    module_cmds_RC \
++    module_expsym_cmds_RC \
++    lt_cv_prog_compiler_c_o_RC \
++    exclude_expsyms_RC \
++    include_expsyms_RC; do
++
++    case $var in
++    old_archive_cmds_RC | \
++    old_archive_from_new_cmds_RC | \
++    archive_cmds_RC | \
++    archive_expsym_cmds_RC | \
++    module_cmds_RC | \
++    module_expsym_cmds_RC | \
++    old_archive_from_expsyms_cmds_RC | \
++    export_symbols_cmds_RC | \
++    extract_expsyms_cmds | reload_cmds | finish_cmds | \
++    postinstall_cmds | postuninstall_cmds | \
++    old_postinstall_cmds | old_postuninstall_cmds | \
++    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
++      # Double-quote double-evaled strings.
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    *)
++      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      ;;
++    esac
++  done
++
++  case $lt_echo in
++  *'\$0 --fallback-echo&quot;')
++    lt_echo=`$echo &quot;X$lt_echo&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+     ;;
+   esac
+-  dynamic_linker='Win32 ld.exe'
+-  # FIXME: first we should search . and the directory the executable is in
+-  shlibpath_var=PATH
+-  ;;

+-darwin* | rhapsody*)
+-  dynamic_linker=&quot;$host_os dyld&quot;
+-  version_type=darwin
+-  need_lib_prefix=no
+-  need_version=no
+-  # FIXME: Relying on posixy $() will cause problems for
+-  #        cross-compilation, but unfortunately the echo tests do not
+-  #        yet detect zsh echo's removal of \ escapes.
+-  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes &amp;&amp; echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes &amp;&amp; echo so || echo dylib) ${libname}.$(test .$module = .yes &amp;&amp; echo so || echo dylib)'
+-  soname_spec='${libname}${release}${major}.$(test .$module = .yes &amp;&amp; echo so || echo dylib)'
+-  shlibpath_overrides_runpath=yes
+-  shlibpath_var=DYLD_LIBRARY_PATH
+-  ;;
++cfgfile=&quot;$ofile&quot;
++
++  cat &lt;&lt;__EOF__ &gt;&gt; &quot;$cfgfile&quot;
++# ### BEGIN LIBTOOL TAG CONFIG: $tagname
++
++# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++
++# Shell to use when invoking shell scripts.
++SHELL=$lt_SHELL
++
++# Whether or not to build shared libraries.
++build_libtool_libs=$enable_shared
++
++# Whether or not to build static libraries.
++build_old_libs=$enable_static
++
++# Whether or not to add -lc for building shared libraries.
++build_libtool_need_lc=$archive_cmds_need_lc_RC
++
++# Whether or not to disallow shared libs when runtime libs are static
++allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
++
++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
++# The host system.
++host_alias=$host_alias
++host=$host
++host_os=$host_os
++
++# The build system.
++build_alias=$build_alias
++build=$build
++build_os=$build_os
++
++# An echo program that does not interpret backslashes.
++echo=$lt_echo
++
++# The archiver.
++AR=$lt_AR
++AR_FLAGS=$lt_AR_FLAGS
++
++# A C compiler.
++LTCC=$lt_LTCC
++
++# A language-specific compiler.
++CC=$lt_compiler_RC
++
++# Is the compiler the GNU C compiler?
++with_gcc=$GCC_RC
++
++# An ERE matcher.
++EGREP=$lt_EGREP
++
++# The linker used to build libraries.
++LD=$lt_LD_RC
++
++# Whether we need hard or soft links.
++LN_S=$lt_LN_S
++
++# A BSD-compatible nm program.
++NM=$lt_NM
++
++# A symbol stripping program
++STRIP=$lt_STRIP
++
++# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
++MAGIC_CMD=$MAGIC_CMD
++
++# Used on cygwin: DLL creation program.
++DLLTOOL=&quot;$DLLTOOL&quot;
++
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
++AS=&quot;$AS&quot;
++
++# The name of the directory that contains temporary libtool files.
++objdir=$objdir
++
++# How to create reloadable object files.
++reload_flag=$lt_reload_flag
++reload_cmds=$lt_reload_cmds
++
++# How to pass a linker flag through the compiler.
++wl=$lt_lt_prog_compiler_wl_RC
++
++# Object file suffix (normally &quot;o&quot;).
++objext=&quot;$ac_objext&quot;
++
++# Old archive suffix (normally &quot;a&quot;).
++libext=&quot;$libext&quot;
++
++# Shared library suffix (normally &quot;.so&quot;).
++shrext_cmds='$shrext_cmds'
++
++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
++# Additional compiler flags for building library objects.
++pic_flag=$lt_lt_prog_compiler_pic_RC
++pic_mode=$pic_mode
++
++# What is the maximum length of a command?
++max_cmd_len=$lt_cv_sys_max_cmd_len
++
++# Does compiler simultaneously support -c and -o options?
++compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
++
++# Must we lock files when doing compilation?
++need_locks=$lt_need_locks
++
++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen_support=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
++# Compiler flag to prevent dynamic linking.
++link_static_flag=$lt_lt_prog_compiler_static_RC
++
++# Compiler flag to turn off builtin functions.
++no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
++
++# Compiler flag to allow reflexive dlopens.
++export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
++
++# Compiler flag to generate shared objects directly from archives.
++whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
++
++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
++
++# Library versioning type.
++version_type=$version_type
++
++# Format of library name prefix.
++libname_spec=$lt_libname_spec
++
++# List of archive names.  First name is the real one, the rest are links.
++# The last name is the one that the linker finds with -lNAME.
++library_names_spec=$lt_library_names_spec
++
++# The coded name of the library, if different from the real name.
++soname_spec=$lt_soname_spec
++
++# Commands used to build and install an old-style archive.
++RANLIB=$lt_RANLIB
++old_archive_cmds=$lt_old_archive_cmds_RC
++old_postinstall_cmds=$lt_old_postinstall_cmds
++old_postuninstall_cmds=$lt_old_postuninstall_cmds
++
++# Create an old-style archive from a shared archive.
++old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
++
++# Create a temporary old-style archive to link instead of a shared archive.
++old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
++
++# Commands used to build and install a shared archive.
++archive_cmds=$lt_archive_cmds_RC
++archive_expsym_cmds=$lt_archive_expsym_cmds_RC
++postinstall_cmds=$lt_postinstall_cmds
++postuninstall_cmds=$lt_postuninstall_cmds
++
++# Commands used to build a loadable module (assumed same as above if empty)
++module_cmds=$lt_module_cmds_RC
++module_expsym_cmds=$lt_module_expsym_cmds_RC
++
++# Commands to strip libraries.
++old_striplib=$lt_old_striplib
++striplib=$lt_striplib
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predep_objects=$lt_predep_objects_RC
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdep_objects=$lt_postdep_objects_RC
++
++# Dependencies to place before the objects being linked to create a
++# shared library.
++predeps=$lt_predeps_RC
++
++# Dependencies to place after the objects being linked to create a
++# shared library.
++postdeps=$lt_postdeps_RC
++
++# The library search path used internally by the compiler when linking
++# a shared library.
++compiler_lib_search_path=$lt_compiler_lib_search_path_RC
++
++# Method to check whether dependent libraries are shared objects.
++deplibs_check_method=$lt_deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$lt_file_magic_cmd
++
++# Flag that allows shared libraries with undefined symbols to be built.
++allow_undefined_flag=$lt_allow_undefined_flag_RC
++
++# Flag that forces no undefined symbols.
++no_undefined_flag=$lt_no_undefined_flag_RC
++
++# Commands used to finish a libtool library installation in a directory.
++finish_cmds=$lt_finish_cmds
++
++# Same as above, but a single script fragment to be evaled but not shown.
++finish_eval=$lt_finish_eval
++
++# Take the output of nm and produce a listing of raw symbols and C names.
++global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
++
++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
++
++# Transform the output of nm in a C name address pair
++global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

+-freebsd1*)
+-  dynamic_linker=no
+-  ;;
++# This is the shared library runtime path variable.
++runpath_var=$runpath_var

+-freebsd*)
+-  objformat=`test -x /usr/bin/objformat &amp;&amp; /usr/bin/objformat || echo aout`
+-  version_type=freebsd-$objformat
+-  case $version_type in
+-    freebsd-elf*)
+-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+-      need_version=no
+-      need_lib_prefix=no
+-      ;;
+-    freebsd-*)
+-      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+-      need_version=yes
+-      ;;
+-  esac
+-  shlibpath_var=LD_LIBRARY_PATH
+-  case $host_os in
+-  freebsd2*)
+-    shlibpath_overrides_runpath=yes
+-    ;;
+-  *)
+-    shlibpath_overrides_runpath=no
+-    hardcode_into_libs=yes
+-    ;;
+-  esac
+-  ;;
++# This is the shared library path variable.
++shlibpath_var=$shlibpath_var

+-gnu*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  hardcode_into_libs=yes
+-  ;;
++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath

+-hpux9* | hpux10* | hpux11*)
+-  # Give a soname corresponding to the major version so that dld.sl refuses to
+-  # link against other versions.
+-  dynamic_linker=&quot;$host_os dld.sl&quot;
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  shlibpath_var=SHLIB_PATH
+-  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+-  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+-  soname_spec='${libname}${release}.sl$major'
+-  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+-  postinstall_cmds='chmod 555 $lib'
+-  ;;
++# How to hardcode a shared library path into an executable.
++hardcode_action=$hardcode_action_RC

+-irix5* | irix6*)
+-  version_type=irix
+-  need_lib_prefix=no
+-  need_version=no
+-  soname_spec='${libname}${release}.so$major'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
+-  case $host_os in
+-  irix5*)
+-    libsuff= shlibsuff=
+-    ;;
+-  *)
+-    case $LD in # libtool.m4 will add one of these switches to LD
+-    *-32|*&quot;-32 &quot;) libsuff= shlibsuff= libmagic=32-bit;;
+-    *-n32|*&quot;-n32 &quot;) libsuff=32 shlibsuff=N32 libmagic=N32;;
+-    *-64|*&quot;-64 &quot;) libsuff=64 shlibsuff=64 libmagic=64-bit;;
+-    *) libsuff= shlibsuff= libmagic=never-match;;
+-    esac
+-    ;;
+-  esac
+-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+-  shlibpath_overrides_runpath=no
+-  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
+-  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
+-  ;;
++# Whether we should hardcode library paths into libraries.
++hardcode_into_libs=$hardcode_into_libs

+-# No shared lib support for Linux oldld, aout, or coff.
+-linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
+-  dynamic_linker=no
+-  ;;
++# Flag to hardcode \$libdir into a binary during linking.
++# This must work even if \$libdir does not exist.
++hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

+-# This must be Linux ELF.
+-linux-gnu*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=no
+-  # This implies no fast_install, which is unacceptable.
+-  # Some rework will be needed to allow for fast_install
+-  # before this can be enabled.
+-  hardcode_into_libs=yes
++# If ld is used when linking, flag to hardcode \$libdir into
++# a binary during linking. This must work even if \$libdir does
++# not exist.
++hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC

+-  # We used to test for /lib/ld.so.1 and disable shared libraries on
+-  # powerpc, because MkLinux only supported shared libraries with the
+-  # GNU dynamic linker.  Since this was broken with cross compilers,
+-  # most powerpc-linux boxes support dynamic linking these days and
+-  # people can always --disable-shared, the test was removed, and we
+-  # assume the GNU/Linux dynamic linker is in use.
+-  dynamic_linker='GNU/Linux ld.so'
+-  ;;
++# Whether we need a single -rpath flag with a separated argument.
++hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC

+-netbsd*)
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
+-    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+-    dynamic_linker='NetBSD (a.out) ld.so'
+-  else
+-    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
+-    soname_spec='${libname}${release}.so$major'
+-    dynamic_linker='NetBSD ld.elf_so'
++# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
++# resulting binary.
++hardcode_direct=$hardcode_direct_RC
++
++# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
++# resulting binary.
++hardcode_minus_L=$hardcode_minus_L_RC
++
++# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
++# the resulting binary.
++hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
++
++# Set to yes if building a shared library automatically hardcodes DIR into the library
++# and all subsequent libraries and executables linked against it.
++hardcode_automatic=$hardcode_automatic_RC
++
++# Variables whose values should be saved in libtool wrapper scripts and
++# restored at relink time.
++variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++
++# Whether libtool must link a program against all its dependency libraries.
++link_all_deplibs=$link_all_deplibs_RC
++
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++
++# Fix the shell variable \$srcfile for the compiler.
++fix_srcfile_path=&quot;$fix_srcfile_path_RC&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols_RC
++
++# The commands to list exported symbols.
++export_symbols_cmds=$lt_export_symbols_cmds_RC
++
++# The commands to extract the exported symbol list from a shared archive.
++extract_expsyms_cmds=$lt_extract_expsyms_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$lt_exclude_expsyms_RC
++
++# Symbols that must always be exported.
++include_expsyms=$lt_include_expsyms_RC
++
++# ### END LIBTOOL TAG CONFIG: $tagname
++
++__EOF__
++
++
++else
++  # If there is no Makefile yet, we rely on a make rule to execute
++  # `config.status --recheck' to rerun these tests and create the
++  # libtool script then.
++  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
++  if test -f &quot;$ltmain_in&quot;; then
++    test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
+   fi
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  hardcode_into_libs=yes
+-  ;;
++fi

+-newsos6)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  ;;

+-openbsd*)
+-  version_type=sunos
+-  need_lib_prefix=no
+-  need_version=no
+-  if test -z &quot;`echo __ELF__ | $CC -E - | grep __ELF__`&quot; || test &quot;$host_os-$host_cpu&quot; = &quot;openbsd2.8-powerpc&quot;; then
+-    case &quot;$host_os&quot; in
+-    openbsd2.[89] | openbsd2.[89].*)
+-      shlibpath_overrides_runpath=no
+-      ;;
+-    *)
+-      shlibpath_overrides_runpath=yes
+-      ;;
+-    esac
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++CC=&quot;$lt_save_CC&quot;
++
++        ;
++
++      *)
++        { { echo &quot;$as_me:$LINENO: error: Unsupported tag name: $tagname&quot; &gt;&amp;5
++echo &quot;$as_me: error: Unsupported tag name: $tagname&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++        ;
++      esac
++
++      # Append the new tag name to the list of available tags.
++      if test -n &quot;$tagname&quot; ; then
++      available_tags=&quot;$available_tags $tagname&quot;
++    fi
++    fi
++  done
++  IFS=&quot;$lt_save_ifs&quot;
++
++  # Now substitute the updated list of available tags.
++  if eval &quot;sed -e 's/^available_tags=.*\$/available_tags=\&quot;$available_tags\&quot;/' \&quot;$ofile\&quot; &gt; \&quot;${ofile}T\&quot;&quot;; then
++    mv &quot;${ofile}T&quot; &quot;$ofile&quot;
++    chmod +x &quot;$ofile&quot;
+   else
+-    shlibpath_overrides_runpath=yes
++    rm -f &quot;${ofile}T&quot;
++    { { echo &quot;$as_me:$LINENO: error: unable to update list of available tagged configurations.&quot; &gt;&amp;5
++echo &quot;$as_me: error: unable to update list of available tagged configurations.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+   fi
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
++fi
++
++
++
++# This can be used to rebuild libtool when needed
++LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
++
++# Always use our own libtool.
++LIBTOOL='$(SHELL) $(top_builddir)/libtool'
++
++# Prevent multiple expansion

+-os2*)
+-  libname_spec='$name'
+-  need_lib_prefix=no
+-  library_names_spec='$libname.dll $libname.a'
+-  dynamic_linker='OS/2 ld.exe'
+-  shlibpath_var=LIBPATH
+-  ;;

+-osf3* | osf4* | osf5*)
+-  version_type=osf
+-  need_version=no
+-  soname_spec='${libname}${release}.so'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
+-  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
+-  ;;

+-sco3.2v5*)
+-  version_type=osf
+-  soname_spec='${libname}${release}.so$major'
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;

+-solaris*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  hardcode_into_libs=yes
+-  # ldd complains unless libraries are executable
+-  postinstall_cmds='chmod +x $lib'
+-  ;;

+-sunos4*)
+-  version_type=sunos
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+-  finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  shlibpath_overrides_runpath=yes
+-  if test &quot;$with_gnu_ld&quot; = yes; then
+-    need_lib_prefix=no
+-  fi
+-  need_version=yes
+-  ;;

+-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  case $host_vendor in
+-    sni)
+-      shlibpath_overrides_runpath=no
+-      ;;
+-    motorola)
+-      need_lib_prefix=no
+-      need_version=no
+-      shlibpath_overrides_runpath=no
+-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+-      ;;
+-  esac
+-  ;;

+-uts4*)
+-  version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;

+-dgux*)
+-  version_type=linux
+-  need_lib_prefix=no
+-  need_version=no
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+-  soname_spec='${libname}${release}.so$major'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;

+-sysv4*MP*)
+-  if test -d /usr/nec ;then
+-    version_type=linux
+-    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
+-    soname_spec='$libname.so.$major'
+-    shlibpath_var=LD_LIBRARY_PATH
+-  fi
+-  ;;

+-*)
+-  dynamic_linker=no
+-  ;;
+-esac
+-echo &quot;$as_me:$LINENO: result: $dynamic_linker&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$dynamic_linker&quot; &gt;&amp;6
+-test &quot;$dynamic_linker&quot; = no &amp;&amp; can_build_shared=no

+-# Report the final consequences.
+-echo &quot;$as_me:$LINENO: checking if libtool supports shared libraries&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking if libtool supports shared libraries... $ECHO_C&quot; &gt;&amp;6
+-echo &quot;$as_me:$LINENO: result: $can_build_shared&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$can_build_shared&quot; &gt;&amp;6

+-echo &quot;$as_me:$LINENO: checking whether to build shared libraries&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether to build shared libraries... $ECHO_C&quot; &gt;&amp;6
+-test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no

+-# On AIX, shared libraries and static libraries use the same namespace, and
+-# are all built from PIC.
+-case &quot;$host_os&quot; in
+-aix3*)
+-  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+-  if test -n &quot;$RANLIB&quot;; then
+-    archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+-    postinstall_cmds='$RANLIB $lib'
+-  fi
+-  ;;

+-aix4*)
+-  if test &quot;$host_cpu&quot; != ia64 &amp;&amp; test &quot;$aix_use_runtimelinking&quot; = no ; then
+-    test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+-  fi
+-  ;;
+-esac
+-echo &quot;$as_me:$LINENO: result: $enable_shared&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$enable_shared&quot; &gt;&amp;6

+-echo &quot;$as_me:$LINENO: checking whether to build static libraries&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether to build static libraries... $ECHO_C&quot; &gt;&amp;6
+-# Make sure either enable_shared or enable_static is yes.
+-test &quot;$enable_shared&quot; = yes || enable_static=yes
+-echo &quot;$as_me:$LINENO: result: $enable_static&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$enable_static&quot; &gt;&amp;6

+-if test &quot;$hardcode_action&quot; = relink; then
+-  # Fast installation is not supported
+-  enable_fast_install=no
+-elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
+-     test &quot;$enable_shared&quot; = no; then
+-  # Fast installation is not necessary
+-  enable_fast_install=needless
+-fi

+-variables_saved_for_relink=&quot;PATH $shlibpath_var $runpath_var&quot;
+-if test &quot;$GCC&quot; = yes; then
+-  variables_saved_for_relink=&quot;$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH&quot;
+-fi

+-if test &quot;x$enable_dlopen&quot; != xyes; then
+-  enable_dlopen=unknown
+-  enable_dlopen_self=unknown
+-  enable_dlopen_self_static=unknown
+-else
+-  lt_cv_dlopen=no
+-  lt_cv_dlopen_libs=

+-  case $host_os in
+-  beos*)
+-    lt_cv_dlopen=&quot;load_add_on&quot;
+-    lt_cv_dlopen_libs=
+-    lt_cv_dlopen_self=yes
+-    ;;

+-  cygwin* | mingw* | pw32*)
+-    lt_cv_dlopen=&quot;LoadLibrary&quot;
+-    lt_cv_dlopen_libs=
+-   ;;

+-  *)
+-    echo &quot;$as_me:$LINENO: checking for shl_load&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for shl_load... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_func_shl_load+set}&quot; = set; then
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++echo &quot;$as_me:$LINENO: checking how to run the C preprocessor&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking how to run the C preprocessor... $ECHO_C&quot; &gt;&amp;6
++# On Suns, sometimes $CPP names a directory.
++if test -n &quot;$CPP&quot; &amp;&amp; test -d &quot;$CPP&quot;; then
++  CPP=
++fi
++if test -z &quot;$CPP&quot;; then
++  if test &quot;${ac_cv_prog_CPP+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
++      # Double quotes because CPP needs to be expanded
++    for CPP in &quot;$CC -E&quot; &quot;$CC -E -traditional-cpp&quot; &quot;/lib/cpp&quot;
++    do
++      ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char shl_load (); below.  */
+-#include &lt;assert.h&gt;
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char shl_load ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_shl_load) || defined (__stub___shl_load)
+-choke me
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
+ #else
+-f = shl_load;
++# include &lt;assert.h&gt;
+ #endif
+-
+-  ;
+-  return 0;
+-}
++                     Syntax error
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_func_shl_load=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_func_shl_load=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++  ac_cpp_err=yes
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_func_shl_load&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_func_shl_load&quot; &gt;&amp;6
+-if test $ac_cv_func_shl_load = yes; then
+-  lt_cv_dlopen=&quot;shl_load&quot;
+-else
+-  echo &quot;$as_me:$LINENO: checking for shl_load in -ldld&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for shl_load in -ldld... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_dld_shl_load+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-ldld  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char shl_load ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-shl_load ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_lib_dld_shl_load=yes
++if test -z &quot;$ac_cpp_err&quot;; then
++  :
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_dld_shl_load=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_dld_shl_load&quot; &gt;&amp;6
+-if test $ac_cv_lib_dld_shl_load = yes; then
+-  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+-else
+-  echo &quot;$as_me:$LINENO: checking for dlopen&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for dlopen... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_func_dlopen+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char dlopen (); below.  */
+-#include &lt;assert.h&gt;
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char dlopen ();
+-char (*f) ();
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_dlopen) || defined (__stub___dlopen)
+-choke me
+-#else
+-f = dlopen;
+-#endif
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext

+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;ac_nonexistent.h&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_func_dlopen=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  # Broken: success on invalid input.
++continue
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_func_dlopen=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  break
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++
++    done
++    ac_cv_prog_CPP=$CPP
++
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_func_dlopen&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_func_dlopen&quot; &gt;&amp;6
+-if test $ac_cv_func_dlopen = yes; then
+-  lt_cv_dlopen=&quot;dlopen&quot;
+-else
+-  echo &quot;$as_me:$LINENO: checking for dlopen in -ldl&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for dlopen in -ldl... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_dl_dlopen+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  CPP=$ac_cv_prog_CPP
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-ldl  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char dlopen ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++  ac_cv_prog_CPP=$CPP
++fi
++echo &quot;$as_me:$LINENO: result: $CPP&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$CPP&quot; &gt;&amp;6
++ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++  # &lt;limits.h&gt; exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
+ #endif
+-int
+-main ()
+-{
+-dlopen ();
+-  ;
+-  return 0;
+-}
++                     Syntax error
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_lib_dl_dlopen=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_dl_dlopen=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++  ac_cpp_err=yes
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_dl_dlopen&quot; &gt;&amp;6
+-if test $ac_cv_lib_dl_dlopen = yes; then
+-  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
+-else
+-  echo &quot;$as_me:$LINENO: checking for dlopen in -lsvld&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for dlopen in -lsvld... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_svld_dlopen+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++if test -z &quot;$ac_cpp_err&quot;; then
++  :
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-lsvld  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char dlopen ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-dlopen ();
+-  ;
+-  return 0;
+-}
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;ac_nonexistent.h&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_lib_svld_dlopen=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_svld_dlopen=no
++  ac_cpp_err=yes
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++if test -z &quot;$ac_cpp_err&quot;; then
++  # Broken: success on invalid input.
++continue
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  # Passes both tests.
++ac_preproc_ok=:
++break
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_svld_dlopen&quot; &gt;&amp;6
+-if test $ac_cv_lib_svld_dlopen = yes; then
+-  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-lsvld&quot;
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  :
+ else
+-  echo &quot;$as_me:$LINENO: checking for dld_link in -ldld&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for dld_link in -ldld... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_dld_dld_link+set}&quot; = set; then
++  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++if test -n &quot;$ac_tool_prefix&quot;; then
++  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
++  do
++    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_CXX+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-ldld  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char dld_link ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-dld_link ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_lib_dld_dld_link=yes
++  if test -n &quot;$CXX&quot;; then
++  ac_cv_prog_CXX=&quot;$CXX&quot; # Let the user override the test.
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_dld_dld_link=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_dld_dld_link&quot; &gt;&amp;6
+-if test $ac_cv_lib_dld_dld_link = yes; then
+-  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-dld&quot;
+-fi
+-
+-
+-fi
+-
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_CXX=&quot;$ac_tool_prefix$ac_prog&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

+ fi
+-
+-
+ fi
+-
+-
++CXX=$ac_cv_prog_CXX
++if test -n &quot;$CXX&quot;; then
++  echo &quot;$as_me:$LINENO: result: $CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$CXX&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi

+-
++    test -n &quot;$CXX&quot; &amp;&amp; break
++  done
+ fi
+-
+-    ;;
+-  esac
+-
+-  if test &quot;x$lt_cv_dlopen&quot; != xno; then
+-    enable_dlopen=yes
+-  else
+-    enable_dlopen=no
+-  fi
+-
+-  case $lt_cv_dlopen in
+-  dlopen)
+-    save_CPPFLAGS=&quot;$CPPFLAGS&quot;
+-        test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes &amp;&amp; CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
+-
+-    save_LDFLAGS=&quot;$LDFLAGS&quot;
+-    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
+-
+-    save_LIBS=&quot;$LIBS&quot;
+-    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
+-
+-    echo &quot;$as_me:$LINENO: checking whether a program can dlopen itself&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether a program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
++if test -z &quot;$CXX&quot;; then
++  ac_ct_CXX=$CXX
++  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
++do
++  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_CXX+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-            if test &quot;$cross_compiling&quot; = yes; then :
+-  lt_cv_dlopen_self=cross
++  if test -n &quot;$ac_ct_CXX&quot;; then
++  ac_cv_prog_ac_ct_CXX=&quot;$ac_ct_CXX&quot; # Let the user override the test.
+ else
+-    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+-  lt_status=$lt_dlunknown
+-  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+-#line 6588 &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#if HAVE_DLFCN_H
+-#include &lt;dlfcn.h&gt;
+-#endif
+-
+-#include &lt;stdio.h&gt;
+-
+-#ifdef RTLD_GLOBAL
+-#  define LT_DLGLOBAL                RTLD_GLOBAL
+-#else
+-#  ifdef DL_GLOBAL
+-#    define LT_DLGLOBAL                DL_GLOBAL
+-#  else
+-#    define LT_DLGLOBAL                0
+-#  endif
+-#endif
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_CXX=&quot;$ac_prog&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

+-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+-   find out it does not work in some platform. */
+-#ifndef LT_DLLAZY_OR_NOW
+-#  ifdef RTLD_LAZY
+-#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+-#  else
+-#    ifdef DL_LAZY
+-#      define LT_DLLAZY_OR_NOW                DL_LAZY
+-#    else
+-#      ifdef RTLD_NOW
+-#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+-#      else
+-#        ifdef DL_NOW
+-#          define LT_DLLAZY_OR_NOW        DL_NOW
+-#        else
+-#          define LT_DLLAZY_OR_NOW        0
+-#        endif
+-#      endif
+-#    endif
+-#  endif
+-#endif
++fi
++fi
++ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
++if test -n &quot;$ac_ct_CXX&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_CXX&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_CXX&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi

+-#ifdef __cplusplus
+-extern &quot;C&quot; void exit (int);
+-#endif
++  test -n &quot;$ac_ct_CXX&quot; &amp;&amp; break
++done
++test -n &quot;$ac_ct_CXX&quot; || ac_ct_CXX=&quot;g++&quot;

+-void fnord() { int i=42;}
+-int main ()
+-{
+-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+-  int status = $lt_dlunknown;
++  CXX=$ac_ct_CXX
++fi

+-  if (self)
+-    {
+-      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+-      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+-      /* dlclose (self); */
+-    }

+-    exit (status);
+-}
+-EOF
+-  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++# Provide some information about the compiler.
++echo &quot;$as_me:$LINENO:&quot; \
++     &quot;checking for C++ compiler version&quot; &gt;&amp;5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+-    (./conftest; exit; ) 2&gt;/dev/null
+-    lt_status=$?
+-    case x$lt_status in
+-      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+-      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+-      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+-    esac
+-  else :
+-    # compilation failed
+-    lt_cv_dlopen_self=no
+-  fi
+-fi
+-rm -fr conftest*
+-
+-
+-fi
+-echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_dlopen_self&quot; &gt;&amp;6
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }
++{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }

+-    if test &quot;x$lt_cv_dlopen_self&quot; = xyes; then
+-      LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+-      echo &quot;$as_me:$LINENO: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether a statically linked program can dlopen itself... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
++echo &quot;$as_me:$LINENO: checking whether we are using the GNU C++ compiler&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether we are using the GNU C++ compiler... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_cxx_compiler_gnu+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-            if test &quot;$cross_compiling&quot; = yes; then :
+-  lt_cv_dlopen_self_static=cross
+-else
+-    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+-  lt_status=$lt_dlunknown
+-  cat &gt; conftest.$ac_ext &lt;&lt;EOF
+-#line 6686 &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#if HAVE_DLFCN_H
+-#include &lt;dlfcn.h&gt;
+-#endif
+-
+-#include &lt;stdio.h&gt;
+-
+-#ifdef RTLD_GLOBAL
+-#  define LT_DLGLOBAL                RTLD_GLOBAL
+-#else
+-#  ifdef DL_GLOBAL
+-#    define LT_DLGLOBAL                DL_GLOBAL
+-#  else
+-#    define LT_DLGLOBAL                0
+-#  endif
+-#endif
+-
+-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+-   find out it does not work in some platform. */
+-#ifndef LT_DLLAZY_OR_NOW
+-#  ifdef RTLD_LAZY
+-#    define LT_DLLAZY_OR_NOW                RTLD_LAZY
+-#  else
+-#    ifdef DL_LAZY
+-#      define LT_DLLAZY_OR_NOW                DL_LAZY
+-#    else
+-#      ifdef RTLD_NOW
+-#        define LT_DLLAZY_OR_NOW        RTLD_NOW
+-#      else
+-#        ifdef DL_NOW
+-#          define LT_DLLAZY_OR_NOW        DL_NOW
+-#        else
+-#          define LT_DLLAZY_OR_NOW        0
+-#        endif
+-#      endif
+-#    endif
+-#  endif
+-#endif
+-
+-#ifdef __cplusplus
+-extern &quot;C&quot; void exit (int);
+-#endif
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-void fnord() { int i=42;}
+-int main ()
++int
++main ()
+ {
+-  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+-  int status = $lt_dlunknown;
+-
+-  if (self)
+-    {
+-      if (dlsym (self,&quot;fnord&quot;))       status = $lt_dlno_uscore;
+-      else if (dlsym( self,&quot;_fnord&quot;)) status = $lt_dlneed_uscore;
+-      /* dlclose (self); */
+-    }
++#ifndef __GNUC__
++       choke me
++#endif

+-    exit (status);
++  ;
++  return 0;
+ }
+-EOF
+-  if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; test -s conftest${ac_exeext} 2&gt;/dev/null; then
+-    (./conftest; exit; ) 2&gt;/dev/null
+-    lt_status=$?
+-    case x$lt_status in
+-      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+-      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+-      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+-    esac
+-  else :
+-    # compilation failed
+-    lt_cv_dlopen_self_static=no
+-  fi
+-fi
+-rm -fr conftest*
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_compiler_gnu=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_compiler_gnu=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

+ fi
+-echo &quot;$as_me:$LINENO: result: $lt_cv_dlopen_self_static&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_dlopen_self_static&quot; &gt;&amp;6
+-    fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_cxx_compiler_gnu&quot; &gt;&amp;6
++GXX=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
++ac_test_CXXFLAGS=${CXXFLAGS+set}
++ac_save_CXXFLAGS=$CXXFLAGS
++CXXFLAGS=&quot;-g&quot;
++echo &quot;$as_me:$LINENO: checking whether $CXX accepts -g&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether $CXX accepts -g... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_cxx_g+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-    CPPFLAGS=&quot;$save_CPPFLAGS&quot;
+-    LDFLAGS=&quot;$save_LDFLAGS&quot;
+-    LIBS=&quot;$save_LIBS&quot;
+-    ;;
+-  esac
++int
++main ()
++{

+-  case $lt_cv_dlopen_self in
+-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+-  *) enable_dlopen_self=unknown ;;
+-  esac
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_prog_cxx_g=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-  case $lt_cv_dlopen_self_static in
+-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+-  *) enable_dlopen_self_static=unknown ;;
+-  esac
++ac_cv_prog_cxx_g=no
+ fi
+-
+-
+-if test &quot;$enable_shared&quot; = yes &amp;&amp; test &quot;$GCC&quot; = yes; then
+-  case $archive_cmds in
+-  *'~'*)
+-    # FIXME: we may have to deal with multi-command sequences.
+-    ;;
+-  '$CC '*)
+-    # Test whether the compiler implicitly links with -lc since on some
+-    # systems, -lgcc has to come before -lc. If gcc already passes -lc
+-    # to ld, don't add -lc before -lgcc.
+-    echo &quot;$as_me:$LINENO: checking whether -lc should be explicitly linked in&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether -lc should be explicitly linked in... $ECHO_C&quot; &gt;&amp;6
+-    if test &quot;${lt_cv_archive_cmds_need_lc+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cxx_g&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_prog_cxx_g&quot; &gt;&amp;6
++if test &quot;$ac_test_CXXFLAGS&quot; = set; then
++  CXXFLAGS=$ac_save_CXXFLAGS
++elif test $ac_cv_prog_cxx_g = yes; then
++  if test &quot;$GXX&quot; = yes; then
++    CXXFLAGS=&quot;-g -O2&quot;
++  else
++    CXXFLAGS=&quot;-g&quot;
++  fi
+ else
+-  $rm conftest*
+-    echo 'static int dummy;' &gt; conftest.$ac_ext
++  if test &quot;$GXX&quot; = yes; then
++    CXXFLAGS=&quot;-O2&quot;
++  else
++    CXXFLAGS=
++  fi
++fi
++for ac_declaration in \
++   '' \
++   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
++   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
++   'extern &quot;C&quot; void exit (int) throw ();' \
++   'extern &quot;C&quot; void exit (int);' \
++   'void exit (int);'
++do
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++#include &lt;stdlib.h&gt;
++int
++main ()
++{
++exit (42);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-    if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++continue
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++int
++main ()
++{
++exit (42);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; then
+-      soname=conftest
+-      lib=conftest
+-      libobjs=conftest.$ac_objext
+-      deplibs=
+-      wl=$lt_cv_prog_cc_wl
+-      compiler_flags=-v
+-      linker_flags=-v
+-      verstring=
+-      output_objdir=.
+-      libname=conftest
+-      save_allow_undefined_flag=$allow_undefined_flag
+-      allow_undefined_flag=
+-      if { (eval echo &quot;$as_me:$LINENO: \&quot;$archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1\&quot;&quot;) &gt;&amp;5
+-  (eval $archive_cmds 2\&gt;\&amp;1 \| grep \&quot; -lc \&quot; \&gt;/dev/null 2\&gt;\&amp;1) 2&gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_cxx_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }
+-      then
+-        lt_cv_archive_cmds_need_lc=no
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++rm -f conftest*
++if test -n &quot;$ac_declaration&quot;; then
++  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
++  echo $ac_declaration      &gt;&gt;confdefs.h
++  echo '#endif'             &gt;&gt;confdefs.h
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++depcc=&quot;$CXX&quot;  am_compiler_list=
++
++echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${am_cv_CXX_dependencies_compiler_type+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
++  # We make a subdir and do the tests there.  Otherwise we can end up
++  # making bogus files that we don't know about and never remove.  For
++  # instance it was reported that on HP-UX the gcc test will end up
++  # making a dummy file named `D' -- because `-MD' means `put the output
++  # in D'.
++  mkdir conftest.dir
++  # Copy depcomp to subdir because otherwise we won't find it if we're
++  # using a relative directory.
++  cp &quot;$am_depcomp&quot; conftest.dir
++  cd conftest.dir
++  # We will build objects and dependencies in a subdirectory because
++  # it helps to detect inapplicable dependency modes.  For instance
++  # both Tru64's cc and ICC support -MD to output dependencies as a
++  # side effect of compilation, but ICC will put the dependencies in
++  # the current directory while Tru64 will put them in the object
++  # directory.
++  mkdir sub
++
++  am_cv_CXX_dependencies_compiler_type=none
++  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
++     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
++  fi
++  for depmode in $am_compiler_list; do
++    # Setup a source with many dependencies, because some compilers
++    # like to wrap large dependency lists on column 80 (with \), and
++    # we should not choose a depcomp mode which is confused by this.
++    #
++    # We need to recreate these files for each test, as the compiler may
++    # overwrite some of them when testing with obscure command lines.
++    # This happens at least with the AIX C compiler.
++    : &gt; sub/conftest.c
++    for i in 1 2 3 4 5 6; do
++      echo '#include &quot;conftst'$i'.h&quot;' &gt;&gt; sub/conftest.c
++      # Using `: &gt; sub/conftst$i.h' creates only sub/conftst1.h with
++      # Solaris 8's {/usr,}/bin/sh.
++      touch sub/conftst$i.h
++    done
++    echo &quot;${am__include} ${am__quote}sub/conftest.Po${am__quote}&quot; &gt; confmf
++
++    case $depmode in
++    nosideeffect)
++      # after this tag, mechanisms are not by side-effect, so they'll
++      # only be used when explicitly requested
++      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
++        continue
+       else
+-        lt_cv_archive_cmds_need_lc=yes
++        break
++      fi
++      ;;
++    none) break ;;
++    esac
++    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
++    # mode.  It turns out that the SunPro C++ compiler does not properly
++    # handle `-M -o', and we need to detect this.
++    if depmode=$depmode \
++       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
++       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
++       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
++         &gt;/dev/null 2&gt;conftest.err &amp;&amp;
++       grep sub/conftst6.h sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       grep sub/conftest.${OBJEXT-o} sub/conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
++       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
++      # icc doesn't choke on unknown options, it will just issue warnings
++      # or remarks (even with -Werror).  So we grep stderr for any message
++      # that says an option was ignored or not supported.
++      # When given -MP, icc 7.0 and 7.1 complain thusly:
++      #   icc: Command line warning: ignoring option '-M'; no argument required
++      # The diagnosis changed in icc 8.0:
++      #   icc: Command line remark: option '-MP' not supported
++      if (grep 'ignoring option' conftest.err ||
++          grep 'not supported' conftest.err) &gt;/dev/null 2&gt;&amp;1; then :; else
++        am_cv_CXX_dependencies_compiler_type=$depmode
++        break
+       fi
+-      allow_undefined_flag=$save_allow_undefined_flag
+-    else
+-      cat conftest.err 1&gt;&amp;5
+     fi
+-fi
+-
+-    echo &quot;$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$lt_cv_archive_cmds_need_lc&quot; &gt;&amp;6
+-    ;;
+-  esac
+-fi
+-need_lc=${lt_cv_archive_cmds_need_lc-yes}
++  done

+-# The second clause should only fire when bootstrapping the
+-# libtool distribution, otherwise you forgot to ship ltmain.sh
+-# with your package, and you will get complaints that there are
+-# no rules to generate ltmain.sh.
+-if test -f &quot;$ltmain&quot;; then
+-  :
++  cd ..
++  rm -rf conftest.dir
+ else
+-  # If there is no Makefile yet, we rely on a make rule to execute
+-  # `config.status --recheck' to rerun these tests and create the
+-  # libtool script then.
+-  test -f Makefile &amp;&amp; make &quot;$ltmain&quot;
++  am_cv_CXX_dependencies_compiler_type=none
+ fi

+-if test -f &quot;$ltmain&quot;; then
+-  trap &quot;$rm \&quot;${ofile}T\&quot;; exit 1&quot; 1 2 15
+-  $rm -f &quot;${ofile}T&quot;
+-
+-  echo creating $ofile
+-
+-  # Now quote all the things that may contain metacharacters while being
+-  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+-  # variables and quote the copies for generation of the libtool script.
+-  for var in echo old_CC old_CFLAGS \
+-    AR AR_FLAGS CC LD LN_S NM SHELL \
+-    reload_flag reload_cmds wl \
+-    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+-    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
+-    library_names_spec soname_spec \
+-    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+-    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
+-    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
+-    old_striplib striplib file_magic_cmd export_symbols_cmds \
+-    deplibs_check_method allow_undefined_flag no_undefined_flag \
+-    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
+-    global_symbol_to_c_name_address \
+-    hardcode_libdir_flag_spec hardcode_libdir_separator  \
+-    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+-    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+-
+-    case $var in
+-    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+-    old_postinstall_cmds | old_postuninstall_cmds | \
+-    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+-    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
+-    postinstall_cmds | postuninstall_cmds | \
+-    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+-      # Double-quote double-evaled strings.
+-      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+-      ;;
+-    *)
+-      eval &quot;lt_$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+-      ;;
+-    esac
+-  done
++fi
++echo &quot;$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;6
++CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

+-  cat &lt;&lt;__EOF__ &gt; &quot;${ofile}T&quot;
+-#! $SHELL

+-# `$echo &quot;$ofile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+-#
+-# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+-# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+-#
+-# This program is free software; you can redistribute it and/or modify
+-# it under the terms of the GNU General Public License as published by
+-# the Free Software Foundation; either version 2 of the License, or
+-# (at your option) any later version.
+-#
+-# This program is distributed in the hope that it will be useful, but
+-# WITHOUT ANY WARRANTY; without even the implied warranty of
+-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+-# General Public License for more details.
+-#
+-# You should have received a copy of the GNU General Public License
+-# along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-#
+-# As a special exception to the GNU General Public License, if you
+-# distribute this file as part of a program that contains a
+-# configuration script generated by Autoconf, you may include it under
+-# the same distribution terms that you use for the rest of that program.

+-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+-Xsed=&quot;sed -e s/^X//&quot;
++if
++  test &quot;x$enable_dependency_tracking&quot; != xno \
++  &amp;&amp; test &quot;$am_cv_CXX_dependencies_compiler_type&quot; = gcc3; then
++  am__fastdepCXX_TRUE=
++  am__fastdepCXX_FALSE='#'
++else
++  am__fastdepCXX_TRUE='#'
++  am__fastdepCXX_FALSE=
++fi

+-# The HP-UX ksh and POSIX shell print the target directory to stdout
+-# if CDPATH is set.
+-if test &quot;X\${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi

+-# ### BEGIN LIBTOOL CONFIG

+-# Libtool was configured on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
++if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot run test program while cross compiling
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-# Shell to use when invoking shell scripts.
+-SHELL=$lt_SHELL
++#include &lt;unistd.h&gt;
++main()
++{
++#if defined(__GNUC__) &amp;&amp; \
++    ! (__GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 95))
++    return 1;
++#endif
++  return 0;
++}

+-# Whether or not to build shared libraries.
+-build_libtool_libs=$enable_shared
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Whether or not to build static libraries.
+-build_old_libs=$enable_static
++( exit $ac_status )
++echo &quot;need at least gcc 2.95 to compile correctly&quot;
++exit 1
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi

+-# Whether or not to add -lc for building shared libraries.
+-build_libtool_need_lc=$need_lc
++# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
++# for constant arguments.  Useless!
++echo &quot;$as_me:$LINENO: checking for working alloca.h&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for working alloca.h... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_working_alloca_h+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;alloca.h&gt;
++int
++main ()
++{
++char *p = (char *) alloca (2 * sizeof (int));
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_working_alloca_h=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Whether or not to optimize for fast installation.
+-fast_install=$enable_fast_install
++ac_cv_working_alloca_h=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_working_alloca_h&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_working_alloca_h&quot; &gt;&amp;6
++if test $ac_cv_working_alloca_h = yes; then

+-# The host system.
+-host_alias=$host_alias
+-host=$host
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_ALLOCA_H 1
++_ACEOF

+-# An echo program that does not interpret backslashes.
+-echo=$lt_echo
++fi

+-# The archiver.
+-AR=$lt_AR
+-AR_FLAGS=$lt_AR_FLAGS
++echo &quot;$as_me:$LINENO: checking for alloca&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for alloca... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_alloca_works+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifdef __GNUC__
++# define alloca __builtin_alloca
++#else
++# ifdef _MSC_VER
++#  include &lt;malloc.h&gt;
++#  define alloca _alloca
++# else
++#  if HAVE_ALLOCA_H
++#   include &lt;alloca.h&gt;
++#  else
++#   ifdef _AIX
++ #pragma alloca
++#   else
++#    ifndef alloca /* predefined by HP cc +Olibcalls */
++char *alloca ();
++#    endif
++#   endif
++#  endif
++# endif
++#endif

+-# The default C compiler.
+-CC=$lt_CC
++int
++main ()
++{
++char *p = (char *) alloca (1);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_func_alloca_works=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Is the compiler the GNU C compiler?
+-with_gcc=$GCC
++ac_cv_func_alloca_works=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_alloca_works&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_alloca_works&quot; &gt;&amp;6

+-# The linker used to build libraries.
+-LD=$lt_LD
++if test $ac_cv_func_alloca_works = yes; then

+-# Whether we need hard or soft links.
+-LN_S=$lt_LN_S
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_ALLOCA 1
++_ACEOF

+-# A BSD-compatible nm program.
+-NM=$lt_NM
++else
++  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
++# that cause trouble.  Some versions do not even contain alloca or
++# contain a buggy version.  If you still want to use their alloca,
++# use ar to extract alloca.o from them instead of compiling alloca.c.

+-# A symbol stripping program
+-STRIP=$STRIP
++ALLOCA=alloca.$ac_objext

+-# Used to examine libraries when file_magic_cmd begins &quot;file&quot;
+-MAGIC_CMD=$MAGIC_CMD
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define C_ALLOCA 1
++_ACEOF

+-# Used on cygwin: DLL creation program.
+-DLLTOOL=&quot;$DLLTOOL&quot;

+-# Used on cygwin: object dumper.
+-OBJDUMP=&quot;$OBJDUMP&quot;
++echo &quot;$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether \`alloca.c' needs Cray hooks... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_os_cray+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#if defined(CRAY) &amp;&amp; ! defined(CRAY2)
++webecray
++#else
++wenotbecray
++#endif

+-# Used on cygwin: assembler.
+-AS=&quot;$AS&quot;
++_ACEOF
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;webecray&quot; &gt;/dev/null 2&gt;&amp;1; then
++  ac_cv_os_cray=yes
++else
++  ac_cv_os_cray=no
++fi
++rm -f conftest*

+-# The name of the directory that contains temporary libtool files.
+-objdir=$objdir
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_os_cray&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_os_cray&quot; &gt;&amp;6
++if test $ac_cv_os_cray = yes; then
++  for ac_func in _getb67 GETB67 getb67; do
++    as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
++echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func

+-# How to create reloadable object files.
+-reload_flag=$lt_reload_flag
+-reload_cmds=$lt_reload_cmds
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */

+-# How to pass a linker flag through the compiler.
+-wl=$lt_wl
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif

+-# Object file suffix (normally &quot;o&quot;).
+-objext=&quot;$ac_objext&quot;
++#undef $ac_func

+-# Old archive suffix (normally &quot;a&quot;).
+-libext=&quot;$libext&quot;
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif

+-# Executable file suffix (normally &quot;&quot;).
+-exeext=&quot;$exeext&quot;
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  eval &quot;$as_ac_var=yes&quot;
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Additional compiler flags for building library objects.
+-pic_flag=$lt_pic_flag
+-pic_mode=$pic_mode
++eval &quot;$as_ac_var=no&quot;
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
++if test `eval echo '${'$as_ac_var'}'` = yes; then

+-# Does compiler simultaneously support -c and -o options?
+-compiler_c_o=$lt_compiler_c_o
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define CRAY_STACKSEG_END $ac_func
++_ACEOF

+-# Can we write directly to a .lo ?
+-compiler_o_lo=$lt_compiler_o_lo
++    break
++fi

+-# Must we lock files when doing compilation ?
+-need_locks=$lt_need_locks
++  done
++fi

+-# Do we need the lib prefix for modules?
+-need_lib_prefix=$need_lib_prefix
++echo &quot;$as_me:$LINENO: checking stack direction for C alloca&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking stack direction for C alloca... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_c_stack_direction+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test &quot;$cross_compiling&quot; = yes; then
++  ac_cv_c_stack_direction=0
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++int
++find_stack_direction ()
++{
++  static char *addr = 0;
++  auto char dummy;
++  if (addr == 0)
++    {
++      addr = &amp;dummy;
++      return find_stack_direction ();
++    }
++  else
++    return (&amp;dummy &gt; addr) ? 1 : -1;
++}

+-# Do we need a version for libraries?
+-need_version=$need_version
++int
++main ()
++{
++  exit (find_stack_direction () &lt; 0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_c_stack_direction=1
++else
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Whether dlopen is supported.
+-dlopen_support=$enable_dlopen
++( exit $ac_status )
++ac_cv_c_stack_direction=-1
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_c_stack_direction&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_c_stack_direction&quot; &gt;&amp;6

+-# Whether dlopen of programs is supported.
+-dlopen_self=$enable_dlopen_self
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define STACK_DIRECTION $ac_cv_c_stack_direction
++_ACEOF

+-# Whether dlopen of statically linked programs is supported.
+-dlopen_self_static=$enable_dlopen_self_static

+-# Compiler flag to prevent dynamic linking.
+-link_static_flag=$lt_link_static_flag
++fi

+-# Compiler flag to turn off builtin functions.
+-no_builtin_flag=$lt_no_builtin_flag

+-# Compiler flag to allow reflexive dlopens.
+-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
++echo &quot;$as_me:$LINENO: checking for getopt_long in -lc&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for getopt_long in -lc... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_c_getopt_long+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-lc  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-# Compiler flag to generate shared objects directly from archives.
+-whole_archive_flag_spec=$lt_whole_archive_flag_spec
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char getopt_long ();
++int
++main ()
++{
++getopt_long ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_c_getopt_long=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Compiler flag to generate thread-safe objects.
+-thread_safe_flag_spec=$lt_thread_safe_flag_spec
++ac_cv_lib_c_getopt_long=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_c_getopt_long&quot; &gt;&amp;6
++if test $ac_cv_lib_c_getopt_long = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_GETOPT_LONG 1
++_ACEOF

+-# Library versioning type.
+-version_type=$version_type
++fi

+-# Format of library name prefix.
+-libname_spec=$lt_libname_spec

+-# List of archive names.  First name is the real one, the rest are links.
+-# The last name is the one that the linker finds with -lNAME.
+-library_names_spec=$lt_library_names_spec
++echo &quot;$as_me:$LINENO: checking for alarm in -lc&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for alarm in -lc... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_lib_c_alarm+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS=&quot;-lc  $LIBS&quot;
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-# The coded name of the library, if different from the real name.
+-soname_spec=$lt_soname_spec
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char alarm ();
++int
++main ()
++{
++alarm ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_c_alarm=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Commands used to build and install an old-style archive.
+-RANLIB=$lt_RANLIB
+-old_archive_cmds=$lt_old_archive_cmds
+-old_postinstall_cmds=$lt_old_postinstall_cmds
+-old_postuninstall_cmds=$lt_old_postuninstall_cmds
++ac_cv_lib_c_alarm=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_alarm&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_lib_c_alarm&quot; &gt;&amp;6
++if test $ac_cv_lib_c_alarm = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_ALARM 1
++_ACEOF

+-# Create an old-style archive from a shared archive.
+-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
++fi

+-# Create a temporary old-style archive to link instead of a shared archive.
+-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

+-# Commands used to build and install a shared archive.
+-archive_cmds=$lt_archive_cmds
+-archive_expsym_cmds=$lt_archive_expsym_cmds
+-postinstall_cmds=$lt_postinstall_cmds
+-postuninstall_cmds=$lt_postuninstall_cmds

+-# Commands to strip libraries.
+-old_striplib=$lt_old_striplib
+-striplib=$lt_striplib
++for ac_header in netinet/in.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++else
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Method to check whether dependent libraries are shared objects.
+-deplibs_check_method=$lt_deplibs_check_method
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-# Command to use when deplibs_check_method == file_magic.
+-file_magic_cmd=$lt_file_magic_cmd
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Flag that allows shared libraries with undefined symbols to be built.
+-allow_undefined_flag=$lt_allow_undefined_flag
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+-# Flag that forces no undefined symbols.
+-no_undefined_flag=$lt_no_undefined_flag
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6

+-# Commands used to finish a libtool library installation in a directory.
+-finish_cmds=$lt_finish_cmds
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF

+-# Same as above, but a single script fragment to be evaled but not shown.
+-finish_eval=$lt_finish_eval
++fi

+-# Take the output of nm and produce a listing of raw symbols and C names.
+-global_symbol_pipe=$lt_global_symbol_pipe
++done

+-# Transform the output of nm in a proper C declaration
+-global_symbol_to_cdecl=$lt_global_symbol_to_cdecl

+-# Transform the output of nm in a C name address pair
+-global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address

+-# This is the shared library runtime path variable.
+-runpath_var=$runpath_var
++for ac_header in string.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++else
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# This is the shared library path variable.
+-shlibpath_var=$shlibpath_var
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-# Is shlibpath searched before the hard-coded library search path?
+-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# How to hardcode a shared library path into an executable.
+-hardcode_action=$hardcode_action
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+-# Whether we should hardcode library paths into libraries.
+-hardcode_into_libs=$hardcode_into_libs
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6

+-# Flag to hardcode \$libdir into a binary during linking.
+-# This must work even if \$libdir does not exist.
+-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF

+-# Whether we need a single -rpath flag with a separated argument.
+-hardcode_libdir_separator=$lt_hardcode_libdir_separator
++fi

+-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+-# resulting binary.
+-hardcode_direct=$hardcode_direct
++done

+-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+-# resulting binary.
+-hardcode_minus_L=$hardcode_minus_L

+-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+-# the resulting binary.
+-hardcode_shlibpath_var=$hardcode_shlibpath_var

+-# Variables whose values should be saved in libtool wrapper scripts and
+-# restored at relink time.
+-variables_saved_for_relink=&quot;$variables_saved_for_relink&quot;
++for ac_header in libintl.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++else
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Whether libtool must link a program against all its dependency libraries.
+-link_all_deplibs=$link_all_deplibs
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-# Compile-time system search path for libraries
+-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Run-time system search path for libraries
+-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+-# Fix the shell variable \$srcfile for the compiler.
+-fix_srcfile_path=&quot;$fix_srcfile_path&quot;
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6

+-# Set to yes if exported symbols are required.
+-always_export_symbols=$always_export_symbols
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF

+-# The commands to list exported symbols.
+-export_symbols_cmds=$lt_export_symbols_cmds
++fi

+-# The commands to extract the exported symbol list from a shared archive.
+-extract_expsyms_cmds=$lt_extract_expsyms_cmds
++done

+-# Symbols that should not be listed in the preloaded symbols.
+-exclude_expsyms=$lt_exclude_expsyms

+-# Symbols that must always be exported.
+-include_expsyms=$lt_include_expsyms
++echo &quot;$as_me:$LINENO: checking for an ANSI C-conforming const&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for an ANSI C-conforming const... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_c_const+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-# ### END LIBTOOL CONFIG
++int
++main ()
++{
++/* FIXME: Include the comments suggested by Paul. */
++#ifndef __cplusplus
++  /* Ultrix mips cc rejects this.  */
++  typedef int charset[2];
++  const charset x;
++  /* SunOS 4.1.1 cc rejects this.  */
++  char const *const *ccp;
++  char **p;
++  /* NEC SVR4.0.2 mips cc rejects this.  */
++  struct point {int x, y;};
++  static struct point const zero = {0,0};
++  /* AIX XL C 1.02.0.0 rejects this.
++     It does not let you subtract one const X* pointer from another in
++     an arm of an if-expression whose if-part is not a constant
++     expression */
++  const char *g = &quot;string&quot;;
++  ccp = &amp;g + (g ? g-g : 0);
++  /* HPUX 7.0 cc rejects these. */
++  ++ccp;
++  p = (char**) ccp;
++  ccp = (char const *const *) p;
++  { /* SCO 3.2v4 cc rejects this.  */
++    char *t;
++    char const *s = 0 ? (char *) 0 : (char const *) 0;

+-__EOF__
++    *t++ = 0;
++  }
++  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
++    int x[] = {25, 17};
++    const int *foo = &amp;x[0];
++    ++foo;
++  }
++  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
++    typedef const int *iptr;
++    iptr p = 0;
++    ++p;
++  }
++  { /* AIX XL C 1.02.0.0 rejects this saying
++       &quot;k.c&quot;, line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
++    struct s { int j; const int *ap[3]; };
++    struct s *b; b-&gt;j = 5;
++  }
++  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
++    const int foo = 10;
++  }
++#endif

+-  case $host_os in
+-  aix3*)
+-    cat &lt;&lt;\EOF &gt;&gt; &quot;${ofile}T&quot;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_c_const=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# AIX sometimes has problems with the GCC collect2 program.  For some
+-# reason, if we set the COLLECT_NAMES environment variable, the problems
+-# vanish in a puff of smoke.
+-if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+-  COLLECT_NAMES=
+-  export COLLECT_NAMES
++ac_cv_c_const=no
+ fi
+-EOF
+-    ;;
+-  esac
+-
+-  case $host_os in
+-  cygwin* | mingw* | pw32* | os2*)
+-    cat &lt;&lt;'EOF' &gt;&gt; &quot;${ofile}T&quot;
+-      # This is a source program that is used to create dlls on Windows
+-      # Don't remove nor modify the starting and closing comments
+-# /* ltdll.c starts here */
+-# #define WIN32_LEAN_AND_MEAN
+-# #include &lt;windows.h&gt;
+-# #undef WIN32_LEAN_AND_MEAN
+-# #include &lt;stdio.h&gt;
+-#
+-# #ifndef __CYGWIN__
+-# #  ifdef __CYGWIN32__
+-# #    define __CYGWIN__ __CYGWIN32__
+-# #  endif
+-# #endif
+-#
+-# #ifdef __cplusplus
+-# extern &quot;C&quot; {
+-# #endif
+-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+-# #ifdef __cplusplus
+-# }
+-# #endif
+-#
+-# #ifdef __CYGWIN__
+-# #include &lt;cygwin/cygwin_dll.h&gt;
+-# DECLARE_CYGWIN_DLL( DllMain );
+-# #endif
+-# HINSTANCE __hDllInstance_base;
+-#
+-# BOOL APIENTRY
+-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+-# {
+-#   __hDllInstance_base = hInst;
+-#   return TRUE;
+-# }
+-# /* ltdll.c ends here */
+-        # This is a source program that is used to create import libraries
+-        # on Windows for dlls which lack them. Don't remove nor modify the
+-        # starting and closing comments
+-# /* impgen.c starts here */
+-# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
+-#
+-#  This file is part of GNU libtool.
+-#
+-#  This program is free software; you can redistribute it and/or modify
+-#  it under the terms of the GNU General Public License as published by
+-#  the Free Software Foundation; either version 2 of the License, or
+-#  (at your option) any later version.
+-#
+-#  This program is distributed in the hope that it will be useful,
+-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-#  GNU General Public License for more details.
+-#
+-#  You should have received a copy of the GNU General Public License
+-#  along with this program; if not, write to the Free Software
+-#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-#  */
+-#
+-# #include &lt;stdio.h&gt;                /* for printf() */
+-# #include &lt;unistd.h&gt;                /* for open(), lseek(), read() */
+-# #include &lt;fcntl.h&gt;                /* for O_RDONLY, O_BINARY */
+-# #include &lt;string.h&gt;                /* for strdup() */
+-#
+-# /* O_BINARY isn't required (or even defined sometimes) under Unix */
+-# #ifndef O_BINARY
+-# #define O_BINARY 0
+-# #endif
+-#
+-# static unsigned int
+-# pe_get16 (fd, offset)
+-#      int fd;
+-#      int offset;
+-# {
+-#   unsigned char b[2];
+-#   lseek (fd, offset, SEEK_SET);
+-#   read (fd, b, 2);
+-#   return b[0] + (b[1]&lt;&lt;8);
+-# }
+-#
+-# static unsigned int
+-# pe_get32 (fd, offset)
+-#     int fd;
+-#     int offset;
+-# {
+-#   unsigned char b[4];
+-#   lseek (fd, offset, SEEK_SET);
+-#   read (fd, b, 4);
+-#   return b[0] + (b[1]&lt;&lt;8) + (b[2]&lt;&lt;16) + (b[3]&lt;&lt;24);
+-# }
+-#
+-# static unsigned int
+-# pe_as32 (ptr)
+-#      void *ptr;
+-# {
+-#   unsigned char *b = ptr;
+-#   return b[0] + (b[1]&lt;&lt;8) + (b[2]&lt;&lt;16) + (b[3]&lt;&lt;24);
+-# }
+-#
+-# int
+-# main (argc, argv)
+-#     int argc;
+-#     char *argv[];
+-# {
+-#     int dll;
+-#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
+-#     unsigned long export_rva, export_size, nsections, secptr, expptr;
+-#     unsigned long name_rvas, nexp;
+-#     unsigned char *expdata, *erva;
+-#     char *filename, *dll_name;
+-#
+-#     filename = argv[1];
+-#
+-#     dll = open(filename, O_RDONLY|O_BINARY);
+-#     if (dll &lt; 1)
+-#         return 1;
+-#
+-#     dll_name = filename;
+-#
+-#     for (i=0; filename[i]; i++)
+-#         if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
+-#             dll_name = filename + i +1;
+-#
+-#     pe_header_offset = pe_get32 (dll, 0x3c);
+-#     opthdr_ofs = pe_header_offset + 4 + 20;
+-#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
+-#
+-#     if (num_entries &lt; 1) /* no exports */
+-#         return 1;
+-#
+-#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
+-#     export_size = pe_get32 (dll, opthdr_ofs + 100);
+-#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
+-#     secptr = (pe_header_offset + 4 + 20 +
+-#               pe_get16 (dll, pe_header_offset + 4 + 16));
+-#
+-#     expptr = 0;
+-#     for (i = 0; i &lt; nsections; i++)
+-#     {
+-#         char sname[8];
+-#         unsigned long secptr1 = secptr + 40 * i;
+-#         unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
+-#         unsigned long vsize = pe_get32 (dll, secptr1 + 16);
+-#         unsigned long fptr = pe_get32 (dll, secptr1 + 20);
+-#         lseek(dll, secptr1, SEEK_SET);
+-#         read(dll, sname, 8);
+-#         if (vaddr &lt;= export_rva &amp;&amp; vaddr+vsize &gt; export_rva)
+-#         {
+-#             expptr = fptr + (export_rva - vaddr);
+-#             if (export_rva + export_size &gt; vaddr + vsize)
+-#                 export_size = vsize - (export_rva - vaddr);
+-#             break;
+-#         }
+-#     }
+-#
+-#     expdata = (unsigned char*)malloc(export_size);
+-#     lseek (dll, expptr, SEEK_SET);
+-#     read (dll, expdata, export_size);
+-#     erva = expdata - export_rva;
+-#
+-#     nexp = pe_as32 (expdata+24);
+-#     name_rvas = pe_as32 (expdata+32);
+-#
+-#     printf (&quot;EXPORTS\n&quot;);
+-#     for (i = 0; i&lt;nexp; i++)
+-#     {
+-#         unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
+-#         printf (&quot;\t%s @ %ld ;\n&quot;, erva+name_rva, 1+ i);
+-#     }
+-#
+-#     return 0;
+-# }
+-# /* impgen.c ends here */
+-
+-EOF
+-    ;;
+-  esac
+-
+-  # We use sed instead of cat because bash on DJGPP gets confused if
+-  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+-  # text mode, it properly converts lines to CR/LF.  This bash problem
+-  # is reportedly fixed, but why not run on old versions too?
+-  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;${ofile}T&quot; || (rm -f &quot;${ofile}T&quot;; exit 1)
+-
+-  mv -f &quot;${ofile}T&quot; &quot;$ofile&quot; || \
+-    (rm -f &quot;$ofile&quot; &amp;&amp; cp &quot;${ofile}T&quot; &quot;$ofile&quot; &amp;&amp; rm -f &quot;${ofile}T&quot;)
+-  chmod +x &quot;$ofile&quot;
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_c_const&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_c_const&quot; &gt;&amp;6
++if test $ac_cv_c_const = no; then

++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define const
++_ACEOF

++fi


++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;

+-# This can be used to rebuild libtool when needed
+-LIBTOOL_DEPS=&quot;$ac_aux_dir/ltmain.sh&quot;
+-
+-# Always use our own libtool.
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+-
+-# Prevent multiple expansion
++_ACEOF
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;vsnprintf&quot; &gt;/dev/null 2&gt;&amp;1; then
++  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_VSNPRINTF 1
++_ACEOF

++fi
++rm -f conftest*


+-ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+-echo &quot;$as_me:$LINENO: checking how to run the C preprocessor&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking how to run the C preprocessor... $ECHO_C&quot; &gt;&amp;6
+-# On Suns, sometimes $CPP names a directory.
+-if test -n &quot;$CPP&quot; &amp;&amp; test -d &quot;$CPP&quot;; then
+-  CPP=
+-fi
+-if test -z &quot;$CPP&quot;; then
+-  if test &quot;${ac_cv_prog_CPP+set}&quot; = set; then
++echo &quot;$as_me:$LINENO: checking for unsigned short int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for unsigned short int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_unsigned_short_int+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-      # Double quotes because CPP needs to be expanded
+-    for CPP in &quot;$CC -E&quot; &quot;$CC -E -traditional-cpp&quot; &quot;/lib/cpp&quot;
+-    do
+-      ac_preproc_ok=false
+-for ac_c_preproc_warn_flag in '' yes
+-do
+-  # Use a header file that comes with gcc, so configuring glibc
+-  # with a fresh cross-compiler works.
+-  # On the NeXT, cc -E runs the code through the compiler's parser,
+-  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;assert.h&gt;
+-                     Syntax error
++/* confdefs.h.  */
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++if ((unsigned short int *) 0)
++  return 0;
++if (sizeof (unsigned short int))
++  return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  :
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_type_unsigned_short_int=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  # Broken: fails on valid input.
+-continue
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_unsigned_short_int=no
+ fi
+-rm -f conftest.err conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_unsigned_short_int&quot; &gt;&amp;6

+-  # OK, works on sane cases.  Now check whether non-existent headers
+-  # can be detected and how.
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;ac_nonexistent.h&gt;
++echo &quot;$as_me:$LINENO: checking size of unsigned short int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking size of unsigned short int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_sizeof_unsigned_short_int+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  if test &quot;$ac_cv_type_unsigned_short_int&quot; = yes; then
++  # The cast to unsigned long works around a bug in the HP C Compiler
++  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
++  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
++  # This bug is HP SR number 8606223364.
++  if test &quot;$cross_compiling&quot; = yes; then
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= 0)];
++test_array [0] = 0
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  # Broken: success on invalid input.
+-continue
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
++test_array [0] = 0
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  # Passes both tests.
+-ac_preproc_ok=:
+-break
+-fi
+-rm -f conftest.err conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-done
+-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+-rm -f conftest.err conftest.$ac_ext
+-if $ac_preproc_ok; then
+-  break
++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-    done
+-    ac_cv_prog_CPP=$CPP
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt; 0)];
++test_array [0] = 0

+-fi
+-  CPP=$ac_cv_prog_CPP
+-else
+-  ac_cv_prog_CPP=$CPP
+-fi
+-echo &quot;$as_me:$LINENO: result: $CPP&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$CPP&quot; &gt;&amp;6
+-ac_preproc_ok=false
+-for ac_c_preproc_warn_flag in '' yes
+-do
+-  # Use a header file that comes with gcc, so configuring glibc
+-  # with a fresh cross-compiler works.
+-  # On the NeXT, cc -E runs the code through the compiler's parser,
+-  # not just through cpp. &quot;Syntax error&quot; is here to catch this case.
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;assert.h&gt;
+-                     Syntax error
++  ;
++  return 0;
++}
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  :
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  # Broken: fails on valid input.
+-continue
+-fi
+-rm -f conftest.err conftest.$ac_ext
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= $ac_mid)];
++test_array [0] = 0

+-  # OK, works on sane cases.  Now check whether non-existent headers
+-  # can be detected and how.
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;ac_nonexistent.h&gt;
++  ;
++  return 0;
++}
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  # Broken: success on invalid input.
+-continue
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  # Passes both tests.
+-ac_preproc_ok=:
+-break
+-fi
+-rm -f conftest.err conftest.$ac_ext
+-
+-done
+-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+-rm -f conftest.err conftest.$ac_ext
+-if $ac_preproc_ok; then
+-  :
+-else
+-  { { echo &quot;$as_me:$LINENO: error: C preprocessor \&quot;$CPP\&quot; fails sanity check&quot; &gt;&amp;5
+-echo &quot;$as_me: error: C preprocessor \&quot;$CPP\&quot; fails sanity check&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-
+-ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+-
+-ac_ext=cc
+-ac_cpp='$CXXCPP $CPPFLAGS'
+-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+-if test -n &quot;$ac_tool_prefix&quot;; then
+-  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+-  do
+-    # Extract the first word of &quot;$ac_tool_prefix$ac_prog&quot;, so it can be a program name with args.
+-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_CXX+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  if test -n &quot;$CXX&quot;; then
+-  ac_cv_prog_CXX=&quot;$CXX&quot; # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_CXX=&quot;$ac_tool_prefix$ac_prog&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-fi
+-CXX=$ac_cv_prog_CXX
+-if test -n &quot;$CXX&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $CXX&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$CXX&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
+-
+-    test -n &quot;$CXX&quot; &amp;&amp; break
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+   done
+-fi
+-if test -z &quot;$CXX&quot;; then
+-  ac_ct_CXX=$CXX
+-  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
+-do
+-  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_ac_ct_CXX+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  if test -n &quot;$ac_ct_CXX&quot;; then
+-  ac_cv_prog_ac_ct_CXX=&quot;$ac_ct_CXX&quot; # Let the user override the test.
+ else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_ac_ct_CXX=&quot;$ac_prog&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo= ac_hi=
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+-if test -n &quot;$ac_ct_CXX&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $ac_ct_CXX&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_ct_CXX&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
+-
+-  test -n &quot;$ac_ct_CXX&quot; &amp;&amp; break
+-done
+-test -n &quot;$ac_ct_CXX&quot; || ac_ct_CXX=&quot;g++&quot;
+-
+-  CXX=$ac_ct_CXX
+-fi
+-
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
++test_array [0] = 0

+-# Provide some information about the compiler.
+-echo &quot;$as_me:$LINENO:&quot; \
+-     &quot;checking for C++ compiler version&quot; &gt;&amp;5
+-ac_compiler=`set X $ac_compile; echo $2`
+-{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler --version &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compiler --version &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }
+-{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -v &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compiler -v &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }
+-{ (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compiler -V &lt;/dev/null &gt;&amp;5\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compiler -V &lt;/dev/null &gt;&amp;5) 2&gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-echo &quot;$as_me:$LINENO: checking whether we are using the GNU C++ compiler&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether we are using the GNU C++ compiler... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_cxx_compiler_gnu+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++ac_lo=`expr '(' $ac_mid ')' + 1`
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
++'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; } ;;
++esac
++else
++  if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++long longval () { return (long) (sizeof (unsigned short int)); }
++unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
+ int
+ main ()
+ {
+-#ifndef __GNUC__
+-       choke me
+-#endif
++
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if (((long) (sizeof (unsigned short int))) &lt; 0)
++    {
++      long i = longval ();
++      if (i != ((long) (sizeof (unsigned short int))))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != ((long) (sizeof (unsigned short int))))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);

+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_compiler_gnu=yes
++  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_compiler_gnu=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++( exit $ac_status )
++{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_cxx_compiler_gnu&quot; &gt;&amp;6
+-GXX=`test $ac_compiler_gnu = yes &amp;&amp; echo yes`
+-ac_test_CXXFLAGS=${CXXFLAGS+set}
+-ac_save_CXXFLAGS=$CXXFLAGS
+-CXXFLAGS=&quot;-g&quot;
+-echo &quot;$as_me:$LINENO: checking whether $CXX accepts -g&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether $CXX accepts -g... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_cxx_g+set}&quot; = set; then
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++rm -f conftest.val
++else
++  ac_cv_sizeof_unsigned_short_int=0
++fi
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;6
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
++_ACEOF
++
++
++echo &quot;$as_me:$LINENO: checking for unsigned long int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for unsigned long int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_unsigned_long_int+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-
++if ((unsigned long int *) 0)
++  return 0;
++if (sizeof (unsigned long int))
++  return 0;
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_prog_cxx_g=yes
++  ac_cv_type_unsigned_long_int=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_prog_cxx_g=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_unsigned_long_int=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cxx_g&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_prog_cxx_g&quot; &gt;&amp;6
+-if test &quot;$ac_test_CXXFLAGS&quot; = set; then
+-  CXXFLAGS=$ac_save_CXXFLAGS
+-elif test $ac_cv_prog_cxx_g = yes; then
+-  if test &quot;$GXX&quot; = yes; then
+-    CXXFLAGS=&quot;-g -O2&quot;
+-  else
+-    CXXFLAGS=&quot;-g&quot;
+-  fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_int&quot; &gt;&amp;6
++
++echo &quot;$as_me:$LINENO: checking size of unsigned long int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking size of unsigned long int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_sizeof_unsigned_long_int+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test &quot;$GXX&quot; = yes; then
+-    CXXFLAGS=&quot;-O2&quot;
+-  else
+-    CXXFLAGS=
+-  fi
+-fi
+-for ac_declaration in \
+-   ''\
+-   '#include &lt;stdlib.h&gt;' \
+-   'extern &quot;C&quot; void std::exit (int) throw (); using std::exit;' \
+-   'extern &quot;C&quot; void std::exit (int); using std::exit;' \
+-   'extern &quot;C&quot; void exit (int) throw ();' \
+-   'extern &quot;C&quot; void exit (int);' \
+-   'void exit (int);'
+-do
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;stdlib.h&gt;
+-$ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  if test &quot;$ac_cv_type_unsigned_long_int&quot; = yes; then
++  # The cast to unsigned long works around a bug in the HP C Compiler
++  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
++  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
++  # This bug is HP SR number 8606223364.
++  if test &quot;$cross_compiling&quot; = yes; then
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-exit (42);
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= 0)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  :
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-continue
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-exit (42);
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  break
++  ac_hi=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-done
+-rm -f conftest*
+-if test -n &quot;$ac_declaration&quot;; then
+-  echo '#ifdef __cplusplus' &gt;&gt;confdefs.h
+-  echo $ac_declaration      &gt;&gt;confdefs.h
+-  echo '#endif'             &gt;&gt;confdefs.h
+-fi
+-
+-ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS &gt;&amp;5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+-
+-depcc=&quot;$CXX&quot;  am_compiler_list=
+-
+-echo &quot;$as_me:$LINENO: checking dependency style of $depcc&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking dependency style of $depcc... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${am_cv_CXX_dependencies_compiler_type+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  if test -z &quot;$AMDEP_TRUE&quot; &amp;&amp; test -f &quot;$am_depcomp&quot;; then
+-  # We make a subdir and do the tests there.  Otherwise we can end up
+-  # making bogus files that we don't know about and never remove.  For
+-  # instance it was reported that on HP-UX the gcc test will end up
+-  # making a dummy file named `D' -- because `-MD' means `put the output
+-  # in D'.
+-  mkdir conftest.dir
+-  # Copy depcomp to subdir because otherwise we won't find it if we're
+-  # using a relative directory.
+-  cp &quot;$am_depcomp&quot; conftest.dir
+-  cd conftest.dir
+-
+-  am_cv_CXX_dependencies_compiler_type=none
+-  if test &quot;$am_compiler_list&quot; = &quot;&quot;; then
+-     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' &lt; ./depcomp`
+-  fi
+-  for depmode in $am_compiler_list; do
+-    # We need to recreate these files for each test, as the compiler may
+-    # overwrite some of them when testing with obscure command lines.
+-    # This happens at least with the AIX C compiler.
+-    echo '#include &quot;conftest.h&quot;' &gt; conftest.c
+-    echo 'int i;' &gt; conftest.h
+-    echo &quot;${am__include} ${am__quote}conftest.Po${am__quote}&quot; &gt; confmf
+-
+-    case $depmode in
+-    nosideeffect)
+-      # after this tag, mechanisms are not by side-effect, so they'll
+-      # only be used when explicitly requested
+-      if test &quot;x$enable_dependency_tracking&quot; = xyes; then
+-        continue
+-      else
+-        break
+-      fi
+-      ;;
+-    none) break ;;
+-    esac
+-    # We check with `-c' and `-o' for the sake of the &quot;dashmstdout&quot;
+-    # mode.  It turns out that the SunPro C++ compiler does not properly
+-    # handle `-M -o', and we need to detect this.
+-    if depmode=$depmode \
+-       source=conftest.c object=conftest.o \
+-       depfile=conftest.Po tmpdepfile=conftest.TPo \
+-       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       grep conftest.h conftest.Po &gt; /dev/null 2&gt;&amp;1 &amp;&amp;
+-       ${MAKE-make} -s -f confmf &gt; /dev/null 2&gt;&amp;1; then
+-      am_cv_CXX_dependencies_compiler_type=$depmode
+-      break
+-    fi
+-  done
+-
+-  cd ..
+-  rm -rf conftest.dir
+-else
+-  am_cv_CXX_dependencies_compiler_type=none
+-fi
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
+ fi
+-echo &quot;$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$am_cv_CXX_dependencies_compiler_type&quot; &gt;&amp;6
+-CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
+-
+-
+-
+-if test &quot;$cross_compiling&quot; = yes; then
+-  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot run test program while cross compiling&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#include &lt;unistd.h&gt;
+-main()
+-{
+-#if defined(__GNUC__) &amp;&amp; \
+-    ! (__GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt;= 95))
+-    return 1;
+-#endif
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt; 0)];
++test_array [0] = 0
++
++  ;
+   return 0;
+ }
+-
+ _ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  :
+-else
+-  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+-echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-( exit $ac_status )
+-echo &quot;need at least gcc 2.95 to compile correctly&quot;
+-exit 1
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-
+-# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+-# for constant arguments.  Useless!
+-echo &quot;$as_me:$LINENO: checking for working alloca.h&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for working alloca.h... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_working_alloca_h+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;alloca.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-char *p = (char *) alloca (2 * sizeof (int));
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_working_alloca_h=yes
++  ac_lo=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_working_alloca_h=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_working_alloca_h&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_working_alloca_h&quot; &gt;&amp;6
+-if test $ac_cv_working_alloca_h = yes; then
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_ALLOCA_H 1
+-_ACEOF
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-
+-echo &quot;$as_me:$LINENO: checking for alloca&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for alloca... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_func_alloca_works+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#ifdef __GNUC__
+-# define alloca __builtin_alloca
+-#else
+-# ifdef _MSC_VER
+-#  include &lt;malloc.h&gt;
+-#  define alloca _alloca
+-# else
+-#  if HAVE_ALLOCA_H
+-#   include &lt;alloca.h&gt;
+-#  else
+-#   ifdef _AIX
+- #pragma alloca
+-#   else
+-#    ifndef alloca /* predefined by HP cc +Olibcalls */
+-char *alloca ();
+-#    endif
+-#   endif
+-#  endif
+-# endif
+-#endif
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++ac_lo= ac_hi=
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-char *p = (char *) alloca (1);
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_func_alloca_works=yes
++  ac_hi=$ac_mid
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_func_alloca_works=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_func_alloca_works&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_func_alloca_works&quot; &gt;&amp;6
+-
+-if test $ac_cv_func_alloca_works = yes; then
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_ALLOCA 1
+-_ACEOF
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr '(' $ac_mid ')' + 1`
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
++'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; } ;;
++esac
+ else
+-  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+-# that cause trouble.  Some versions do not even contain alloca or
+-# contain a buggy version.  If you still want to use their alloca,
+-# use ar to extract alloca.o from them instead of compiling alloca.c.
+-
+-ALLOCA=alloca.$ac_objext
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define C_ALLOCA 1
+-_ACEOF
+-
+-
+-echo &quot;$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether \`alloca.c' needs Cray hooks... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_os_cray+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#if defined(CRAY) &amp;&amp; ! defined(CRAY2)
+-webecray
+-#else
+-wenotbecray
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++long longval () { return (long) (sizeof (unsigned long int)); }
++unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
++int
++main ()
++{
++
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if (((long) (sizeof (unsigned long int))) &lt; 0)
++    {
++      long i = longval ();
++      if (i != ((long) (sizeof (unsigned long int))))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != ((long) (sizeof (unsigned long int))))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);

++  ;
++  return 0;
++}
+ _ACEOF
+-if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+-  egrep &quot;webecray&quot; &gt;/dev/null 2&gt;&amp;1; then
+-  ac_cv_os_cray=yes
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
+ else
+-  ac_cv_os_cray=no
+-fi
+-rm -f conftest*
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++( exit $ac_status )
++{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_os_cray&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_os_cray&quot; &gt;&amp;6
+-if test $ac_cv_os_cray = yes; then
+-  for ac_func in _getb67 GETB67 getb67; do
+-    as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+-echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++rm -f conftest.val
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char $ac_func (); below.  */
+-#include &lt;assert.h&gt;
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char $ac_func ();
+-char (*f) ();
++  ac_cv_sizeof_unsigned_long_int=0
++fi
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;6
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
++_ACEOF

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++
++echo &quot;$as_me:$LINENO: checking for unsigned int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for unsigned int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_unsigned_int+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+-choke me
+-#else
+-f = $ac_func;
+-#endif
+-
++if ((unsigned int *) 0)
++  return 0;
++if (sizeof (unsigned int))
++  return 0;
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  eval &quot;$as_ac_var=yes&quot;
++  ac_cv_type_unsigned_int=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-eval &quot;$as_ac_var=no&quot;
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+-if test `eval echo '${'$as_ac_var'}'` = yes; then
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define CRAY_STACKSEG_END $ac_func
+-_ACEOF
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-    break
++ac_cv_type_unsigned_int=no
+ fi
+-
+-  done
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_unsigned_int&quot; &gt;&amp;6

+-echo &quot;$as_me:$LINENO: checking stack direction for C alloca&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking stack direction for C alloca... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_c_stack_direction+set}&quot; = set; then
++echo &quot;$as_me:$LINENO: checking size of unsigned int&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking size of unsigned int... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_sizeof_unsigned_int+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
++  if test &quot;$ac_cv_type_unsigned_int&quot; = yes; then
++  # The cast to unsigned long works around a bug in the HP C Compiler
++  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
++  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
++  # This bug is HP SR number 8606223364.
+   if test &quot;$cross_compiling&quot; = yes; then
+-  ac_cv_c_stack_direction=0
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+-find_stack_direction ()
++main ()
+ {
+-  static char *addr = 0;
+-  auto char dummy;
+-  if (addr == 0)
+-    {
+-      addr = &amp;dummy;
+-      return find_stack_direction ();
+-    }
+-  else
+-    return (&amp;dummy &gt; addr) ? 1 : -1;
+-}
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= 0)];
++test_array [0] = 0

++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-  exit (find_stack_direction () &lt; 0);
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
++test_array [0] = 0
++
++  ;
++  return 0;
+ }
+ _ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_c_stack_direction=1
++  ac_hi=$ac_mid; break
+ else
+-  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+-echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-( exit $ac_status )
+-ac_cv_c_stack_direction=-1
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_c_stack_direction&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_c_stack_direction&quot; &gt;&amp;6
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define STACK_DIRECTION $ac_cv_c_stack_direction
+-_ACEOF
+-
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
+ fi
+-
+-
+-echo &quot;$as_me:$LINENO: checking for getopt_long in -lc&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for getopt_long in -lc... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_c_getopt_long+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-lc  $LIBS&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt; 0)];
++test_array [0] = 0

+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char getopt_long ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-getopt_long ();
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_lib_c_getopt_long=yes
++  ac_lo=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_c_getopt_long=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_c_getopt_long&quot; &gt;&amp;6
+-if test $ac_cv_lib_c_getopt_long = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_GETOPT_LONG 1
+-_ACEOF
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-
+-
+-echo &quot;$as_me:$LINENO: checking for alarm in -lc&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for alarm in -lc... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_c_alarm+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-lc  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char alarm ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++ac_lo= ac_hi=
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
+ int
+ main ()
+ {
+-alarm ();
++static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_lib_c_alarm=yes
++  ac_hi=$ac_mid
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_c_alarm=no
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_c_alarm&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_c_alarm&quot; &gt;&amp;6
+-if test $ac_cv_lib_c_alarm = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_ALARM 1
+-_ACEOF
+-
+-fi
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-
+-
+-for ac_header in netinet/in.h
+-do
+-as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++ac_lo=`expr '(' $ac_mid ')' + 1`
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
++'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; } ;;
++esac
+ else
+-  # Is the header compilable?
+-echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+-#include &lt;$ac_header&gt;
++long longval () { return (long) (sizeof (unsigned int)); }
++unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
++int
++main ()
++{
++
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if (((long) (sizeof (unsigned int))) &lt; 0)
++    {
++      long i = longval ();
++      if (i != ((long) (sizeof (unsigned int))))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != ((long) (sizeof (unsigned int))))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);
++
++  ;
++  return 0;
++}
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_header_compiler=yes
++  ac_cv_sizeof_unsigned_int=`cat conftest.val`
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_header_compiler=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# Is the header present?
+-echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;$ac_header&gt;
++( exit $ac_status )
++{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
++See \`config.log' for more details.&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77
++See \`config.log' for more details.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++rm -f conftest.val
++else
++  ac_cv_sizeof_unsigned_int=0
++fi
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_int&quot; &gt;&amp;6
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+-  ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err &gt;&amp;5
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
++
++
++
++GSM_VERSION=&quot;1:4:0&quot;
++
++
++LINGUAS=&quot;de&quot;
++ALL_LINGUAS=$LINGUAS
++
++
++        MKINSTALLDIRS=
++  if test -n &quot;$ac_aux_dir&quot;; then
++    case &quot;$ac_aux_dir&quot; in
++      /*) MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot; ;;
++      *) MKINSTALLDIRS=&quot;\$(top_builddir)/$ac_aux_dir/mkinstalldirs&quot; ;;
++    esac
+   fi
++  if test -z &quot;$MKINSTALLDIRS&quot;; then
++    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
++  fi
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether NLS is requested&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether NLS is requested... $ECHO_C&quot; &gt;&amp;6
++    # Check whether --enable-nls or --disable-nls was given.
++if test &quot;${enable_nls+set}&quot; = set; then
++  enableval=&quot;$enable_nls&quot;
++  USE_NLS=$enableval
+ else
+-  ac_cpp_err=yes
++  USE_NLS=yes
++fi;
++  echo &quot;$as_me:$LINENO: result: $USE_NLS&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$USE_NLS&quot; &gt;&amp;6
++
++
++
++
++
++
++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
+ fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  ac_header_preproc=yes
++
++# Find out how to test for executable files. Don't use a zero-byte file,
++# as systems may use methods other than mode bits to determine executability.
++cat &gt;conf$$.file &lt;&lt;_ASEOF
++#! /bin/sh
++exit 0
++_ASEOF
++chmod +x conf$$.file
++if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
++  ac_executable_p=&quot;test -x&quot;
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_header_preproc=no
++  ac_executable_p=&quot;test -f&quot;
+ fi
+-rm -f conftest.err conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++rm -f conf$$.file

+-# So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-esac
+-echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++# Extract the first word of &quot;msgfmt&quot;, so it can be a program name with args.
++set dummy msgfmt; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_path_MSGFMT+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
++  case &quot;$MSGFMT&quot; in
++  [\\/]* | ?:[\\/]*)
++    ac_cv_path_MSGFMT=&quot;$MSGFMT&quot; # Let the user override the test with a path.
++    ;;
++  *)
++    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++    for ac_dir in $PATH; do
++      IFS=&quot;$ac_save_IFS&quot;
++      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++      for ac_exec_ext in '' $ac_executable_extensions; do
++        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
++          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
++          if $ac_dir/$ac_word --statistics /dev/null &gt;&amp;5 2&gt;&amp;1 &amp;&amp;
++     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++            ac_cv_path_MSGFMT=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
++            break 2
++          fi
++        fi
++      done
++    done
++    IFS=&quot;$ac_save_IFS&quot;
++  test -z &quot;$ac_cv_path_MSGFMT&quot; &amp;&amp; ac_cv_path_MSGFMT=&quot;:&quot;
++    ;;
++esac
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++MSGFMT=&quot;$ac_cv_path_MSGFMT&quot;
++if test &quot;$MSGFMT&quot; != &quot;:&quot;; then
++  echo &quot;$as_me:$LINENO: result: $MSGFMT&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$MSGFMT&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  # Extract the first word of &quot;gmsgfmt&quot;, so it can be a program name with args.
++set dummy gmsgfmt; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_path_GMSGFMT+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  case $GMSGFMT in
++  [\\/]* | ?:[\\/]*)
++  ac_cv_path_GMSGFMT=&quot;$GMSGFMT&quot; # Let the user override the test with a path.
++  ;;
++  *)
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_path_GMSGFMT=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

++  test -z &quot;$ac_cv_path_GMSGFMT&quot; &amp;&amp; ac_cv_path_GMSGFMT=&quot;$MSGFMT&quot;
++  ;;
++esac
+ fi
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+-_ACEOF
++GMSGFMT=$ac_cv_path_GMSGFMT

++if test -n &quot;$GMSGFMT&quot;; then
++  echo &quot;$as_me:$LINENO: result: $GMSGFMT&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$GMSGFMT&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi

+-done


++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
++fi

+-for ac_header in string.h
+-do
+-as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++# Find out how to test for executable files. Don't use a zero-byte file,
++# as systems may use methods other than mode bits to determine executability.
++cat &gt;conf$$.file &lt;&lt;_ASEOF
++#! /bin/sh
++exit 0
++_ASEOF
++chmod +x conf$$.file
++if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
++  ac_executable_p=&quot;test -x&quot;
++else
++  ac_executable_p=&quot;test -f&quot;
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++rm -f conf$$.file
++
++# Extract the first word of &quot;xgettext&quot;, so it can be a program name with args.
++set dummy xgettext; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_path_XGETTEXT+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  # Is the header compilable?
+-echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#include &lt;$ac_header&gt;
+-_ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_header_compiler=yes
++  case &quot;$XGETTEXT&quot; in
++  [\\/]* | ?:[\\/]*)
++    ac_cv_path_XGETTEXT=&quot;$XGETTEXT&quot; # Let the user override the test with a path.
++    ;;
++  *)
++    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++    for ac_dir in $PATH; do
++      IFS=&quot;$ac_save_IFS&quot;
++      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++      for ac_exec_ext in '' $ac_executable_extensions; do
++        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
++          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
++          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;&amp;5 2&gt;&amp;1 &amp;&amp;
++     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++            ac_cv_path_XGETTEXT=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
++            break 2
++          fi
++        fi
++      done
++    done
++    IFS=&quot;$ac_save_IFS&quot;
++  test -z &quot;$ac_cv_path_XGETTEXT&quot; &amp;&amp; ac_cv_path_XGETTEXT=&quot;:&quot;
++    ;;
++esac
++fi
++XGETTEXT=&quot;$ac_cv_path_XGETTEXT&quot;
++if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
++  echo &quot;$as_me:$LINENO: result: $XGETTEXT&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$XGETTEXT&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_header_compiler=no
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-# Is the header present?
+-echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;$ac_header&gt;
+-_ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+-  ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err &gt;&amp;5
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
++    rm -f messages.po
++
++
++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
+   else
+-    ac_cpp_err=
++    PATH_SEPARATOR=:
+   fi
+-else
+-  ac_cpp_err=yes
++  rm -f conf$$.sh
+ fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  ac_header_preproc=yes
++
++# Find out how to test for executable files. Don't use a zero-byte file,
++# as systems may use methods other than mode bits to determine executability.
++cat &gt;conf$$.file &lt;&lt;_ASEOF
++#! /bin/sh
++exit 0
++_ASEOF
++chmod +x conf$$.file
++if test -x conf$$.file &gt;/dev/null 2&gt;&amp;1; then
++  ac_executable_p=&quot;test -x&quot;
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_header_preproc=no
++  ac_executable_p=&quot;test -f&quot;
+ fi
+-rm -f conftest.err conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++rm -f conf$$.file

+-# So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-esac
+-echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++# Extract the first word of &quot;msgmerge&quot;, so it can be a program name with args.
++set dummy msgmerge; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_path_MSGMERGE+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
++  case &quot;$MSGMERGE&quot; in
++  [\\/]* | ?:[\\/]*)
++    ac_cv_path_MSGMERGE=&quot;$MSGMERGE&quot; # Let the user override the test with a path.
++    ;;
++  *)
++    ac_save_IFS=&quot;$IFS&quot;; IFS=$PATH_SEPARATOR
++    for ac_dir in $PATH; do
++      IFS=&quot;$ac_save_IFS&quot;
++      test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
++      for ac_exec_ext in '' $ac_executable_extensions; do
++        if $ac_executable_p &quot;$ac_dir/$ac_word$ac_exec_ext&quot;; then
++          echo &quot;$as_me: trying $ac_dir/$ac_word...&quot; &gt;&amp;5
++          if $ac_dir/$ac_word --update -q /dev/null /dev/null &gt;&amp;5 2&gt;&amp;1; then
++            ac_cv_path_MSGMERGE=&quot;$ac_dir/$ac_word$ac_exec_ext&quot;
++            break 2
++          fi
++        fi
++      done
++    done
++    IFS=&quot;$ac_save_IFS&quot;
++  test -z &quot;$ac_cv_path_MSGMERGE&quot; &amp;&amp; ac_cv_path_MSGMERGE=&quot;:&quot;
++    ;;
++esac
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+-
++MSGMERGE=&quot;$ac_cv_path_MSGMERGE&quot;
++if test &quot;$MSGMERGE&quot; != &quot;:&quot;; then
++  echo &quot;$as_me:$LINENO: result: $MSGMERGE&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$MSGMERGE&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+-_ACEOF

+-fi

+-done
++      if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
++            if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++      : ;
++    else
++      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
++      echo &quot;$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;5
++echo &quot;${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;6
++      GMSGFMT=&quot;:&quot;
++    fi
++  fi
++
++      if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
++            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
++       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
++      : ;
++    else
++      echo &quot;$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;5
++echo &quot;${ECHO_T}found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;6
++      XGETTEXT=&quot;:&quot;
++    fi
++        rm -f messages.po
++  fi

++            ac_config_commands=&quot;$ac_config_commands default-1&quot;


+-for ac_header in libintl.h
+-do
+-as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++
++    echo &quot;$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether we are using the GNU C Library 2 or newer... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_gnu_library_2+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+ else
+-  # Is the header compilable?
+-echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#include &lt;$ac_header&gt;
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_header_compiler=yes
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#include &lt;features.h&gt;
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ &gt;= 2)
++  Lucky GNU user
++ #endif
++#endif
++
++_ACEOF
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;Lucky GNU user&quot; &gt;/dev/null 2&gt;&amp;1; then
++  ac_cv_gnu_library_2=yes
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_header_compiler=no
++  ac_cv_gnu_library_2=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
++rm -f conftest*

+-# Is the header present?
+-echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;$ac_header&gt;
+-_ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+-  ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err &gt;&amp;5
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
++
++
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_gnu_library_2&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_gnu_library_2&quot; &gt;&amp;6
++
++    GLIBC2=&quot;$ac_cv_gnu_library_2&quot;
++
++
++if test -n &quot;$ac_tool_prefix&quot;; then
++  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  ac_cpp_err=yes
++  if test -n &quot;$RANLIB&quot;; then
++  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done
++
+ fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  ac_header_preproc=yes
++fi
++RANLIB=$ac_cv_prog_RANLIB
++if test -n &quot;$RANLIB&quot;; then
++  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_header_preproc=no
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi
+-rm -f conftest.err conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+-# So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-esac
+-echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++fi
++if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
++  ac_ct_RANLIB=$RANLIB
++  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
++set dummy ranlib; ac_word=$2
++echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++  if test -n &quot;$ac_ct_RANLIB&quot;; then
++  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
++    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
++    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
++    break 2
++  fi
++done
++done

++  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
+ fi
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+-_ACEOF
+-
++fi
++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
++if test -n &quot;$ac_ct_RANLIB&quot;; then
++  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
++else
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+ fi

+-done
+-
++  RANLIB=$ac_ct_RANLIB
++else
++  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
++fi

+-echo &quot;$as_me:$LINENO: checking for $CC option to accept ANSI C&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $CC option to accept ANSI C... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_cc_stdc+set}&quot; = set; then
++echo &quot;$as_me:$LINENO: checking for library containing strerror&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for library containing strerror... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_search_strerror+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  ac_cv_prog_cc_stdc=no
+-ac_save_CC=$CC
++  ac_func_search_save_LIBS=$LIBS
++ac_cv_search_strerror=no
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;stdarg.h&gt;
+-#include &lt;stdio.h&gt;
+-#include &lt;sys/types.h&gt;
+-#include &lt;sys/stat.h&gt;
+-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+-struct buf { int x; };
+-FILE * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+-     char **p;
+-     int i;
+-{
+-  return p[i];
+-}
+-static char *f (char * (*g) (char **, int), char **p, ...)
+-{
+-  char *s;
+-  va_list v;
+-  va_start (v,p);
+-  s = g (p, va_arg (v,int));
+-  va_end (v);
+-  return s;
+-}
+-int test (int i, double x);
+-struct s1 {int (*f) (int a);};
+-struct s2 {int (*f) (double a);};
+-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+-int argc;
+-char **argv;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
+ #endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char strerror ();
+ int
+ main ()
+ {
+-return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
++strerror ();
+   ;
+   return 0;
+ }
+ _ACEOF
+-# Don't try gcc -ansi; that turns off useful extensions and
+-# breaks some systems' header files.
+-# AIX                        -qlanglvl=ansi
+-# Ultrix and OSF/1        -std1
+-# HP-UX 10.20 and later        -Ae
+-# HP-UX older versions        -Aa -D_HPUX_SOURCE
+-# SVR4                        -Xc -D__EXTENSIONS__
+-for ac_arg in &quot;&quot; -qlanglvl=ansi -std1 -Ae &quot;-Aa -D_HPUX_SOURCE&quot; &quot;-Xc -D__EXTENSIONS__&quot;
+-do
+-  CC=&quot;$ac_save_CC $ac_arg&quot;
+-  rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_prog_cc_stdc=$ac_arg
+-break
++  ac_cv_search_strerror=&quot;none required&quot;
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-fi
+-rm -f conftest.$ac_objext
+-done
+-rm -f conftest.$ac_ext conftest.$ac_objext
+-CC=$ac_save_CC
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+ fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++if test &quot;$ac_cv_search_strerror&quot; = no; then
++  for ac_lib in cposix; do
++    LIBS=&quot;-l$ac_lib  $ac_func_search_save_LIBS&quot;
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-case &quot;x$ac_cv_prog_cc_stdc&quot; in
+-  x|xno)
+-    echo &quot;$as_me:$LINENO: result: none needed&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}none needed&quot; &gt;&amp;6 ;;
+-  *)
+-    echo &quot;$as_me:$LINENO: result: $ac_cv_prog_cc_stdc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_prog_cc_stdc&quot; &gt;&amp;6
+-    CC=&quot;$CC $ac_cv_prog_cc_stdc&quot; ;;
+-esac
+-
+-echo &quot;$as_me:$LINENO: checking for an ANSI C-conforming const&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for an ANSI C-conforming const... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_c_const+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
+ #endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char strerror ();
+ int
+ main ()
+ {
+-/* FIXME: Include the comments suggested by Paul. */
+-#ifndef __cplusplus
+-  /* Ultrix mips cc rejects this.  */
+-  typedef int charset[2];
+-  const charset x;
+-  /* SunOS 4.1.1 cc rejects this.  */
+-  char const *const *ccp;
+-  char **p;
+-  /* NEC SVR4.0.2 mips cc rejects this.  */
+-  struct point {int x, y;};
+-  static struct point const zero = {0,0};
+-  /* AIX XL C 1.02.0.0 rejects this.
+-     It does not let you subtract one const X* pointer from another in
+-     an arm of an if-expression whose if-part is not a constant
+-     expression */
+-  const char *g = &quot;string&quot;;
+-  ccp = &amp;g + (g ? g-g : 0);
+-  /* HPUX 7.0 cc rejects these. */
+-  ++ccp;
+-  p = (char**) ccp;
+-  ccp = (char const *const *) p;
+-  { /* SCO 3.2v4 cc rejects this.  */
+-    char *t;
+-    char const *s = 0 ? (char *) 0 : (char const *) 0;
+-
+-    *t++ = 0;
+-  }
+-  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
+-    int x[] = {25, 17};
+-    const int *foo = &amp;x[0];
+-    ++foo;
+-  }
+-  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+-    typedef const int *iptr;
+-    iptr p = 0;
+-    ++p;
+-  }
+-  { /* AIX XL C 1.02.0.0 rejects this saying
+-       &quot;k.c&quot;, line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+-    struct s { int j; const int *ap[3]; };
+-    struct s *b; b-&gt;j = 5;
+-  }
+-  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+-    const int foo = 10;
+-  }
+-#endif
++strerror ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_search_strerror=&quot;-l$ac_lib&quot;
++break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++  done
++fi
++LIBS=$ac_func_search_save_LIBS
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_search_strerror&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_search_strerror&quot; &gt;&amp;6
++if test &quot;$ac_cv_search_strerror&quot; != no; then
++  test &quot;$ac_cv_search_strerror&quot; = &quot;none required&quot; || LIBS=&quot;$ac_cv_search_strerror $LIBS&quot;
++
++fi
++
++
++  echo &quot;$as_me:$LINENO: checking for signed&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for signed... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${bh_cv_c_signed+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

++int
++main ()
++{
++signed char x;
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_c_const=yes
++  bh_cv_c_signed=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_c_const=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++bh_cv_c_signed=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_c_const&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_c_const&quot; &gt;&amp;6
+-if test $ac_cv_c_const = no; then
++echo &quot;$as_me:$LINENO: result: $bh_cv_c_signed&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$bh_cv_c_signed&quot; &gt;&amp;6
++  if test $bh_cv_c_signed = no; then

+ cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define const
++#define signed
+ _ACEOF

+-fi
+-
+-
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;stdio.h&gt;
++  fi

++echo &quot;$as_me:$LINENO: checking for inline&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for inline... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_c_inline+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  ac_cv_c_inline=no
++for ac_kw in inline __inline__ __inline; do
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+-  egrep &quot;vsnprintf&quot; &gt;/dev/null 2&gt;&amp;1; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_VSNPRINTF 1
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#ifndef __cplusplus
++typedef int foo_t;
++static $ac_kw foo_t static_foo () {return 0; }
++$ac_kw foo_t foo () {return 0; }
++#endif
++
+ _ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_c_inline=$ac_kw; break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+ fi
+-rm -f conftest*
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_c_inline&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_c_inline&quot; &gt;&amp;6


+-echo &quot;$as_me:$LINENO: checking for unsigned short int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for unsigned short int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_unsigned_short_int+set}&quot; = set; then
++case $ac_cv_c_inline in
++  inline | yes) ;;
++  *)
++    case $ac_cv_c_inline in
++      no) ac_val=;;
++      *) ac_val=$ac_cv_c_inline;;
++    esac
++    cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#ifndef __cplusplus
++#define inline $ac_val
++#endif
++_ACEOF
++    ;;
++esac
++
++echo &quot;$as_me:$LINENO: checking for off_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for off_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_off_t+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+-if ((unsigned short int *) 0)
++if ((off_t *) 0)
+   return 0;
+-if (sizeof (unsigned short int))
++if (sizeof (off_t))
+   return 0;
+   ;
+   return 0;
+@@ -9066,136 +23441,198 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_type_unsigned_short_int=yes
++  ac_cv_type_off_t=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_unsigned_short_int=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_off_t=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_unsigned_short_int&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_off_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_off_t&quot; &gt;&amp;6
++if test $ac_cv_type_off_t = yes; then
++  :
++else

+-echo &quot;$as_me:$LINENO: checking size of unsigned short int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking size of unsigned short int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_sizeof_unsigned_short_int+set}&quot; = set; then
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define off_t long
++_ACEOF
++
++fi
++
++echo &quot;$as_me:$LINENO: checking for size_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for size_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_size_t+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test &quot;$ac_cv_type_unsigned_short_int&quot; = yes; then
+-  # The cast to unsigned long works around a bug in the HP C Compiler
+-  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+-  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+-  # This bug is HP SR number 8606223364.
+-  if test &quot;$cross_compiling&quot; = yes; then
+-  # Depending upon the size, compute the lo and hi bounds.
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= 0)];
+-test_array [0] = 0
+-
++if ((size_t *) 0)
++  return 0;
++if (sizeof (size_t))
++  return 0;
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_lo=0 ac_mid=0
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  ac_cv_type_size_t=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_size_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_size_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_size_t&quot; &gt;&amp;6
++if test $ac_cv_type_size_t = yes; then
++  :
++else
++
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define size_t unsigned
++_ACEOF
++
++fi
++
++
++  echo &quot;$as_me:$LINENO: checking for long long&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for long long... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_long_long+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++long long ll = 1LL; int i = 63;
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
+-test_array [0] = 0
+-
++long long llmax = (long long) -1;
++     return ll &lt;&lt; i | ll &gt;&gt; i | llmax / ll | llmax % ll;
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid; break
++  ac_cv_type_long_long=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr $ac_mid + 1`
+-                    if test $ac_lo -le $ac_mid; then
+-                      ac_lo= ac_hi=
+-                      break
+-                    fi
+-                    ac_mid=`expr 2 '*' $ac_mid + 1`
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_long_long=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_long_long&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_long_long&quot; &gt;&amp;6
++  if test $ac_cv_type_long_long = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_LONG_LONG 1
++_ACEOF
++
++  fi
++
++
++  echo &quot;$as_me:$LINENO: checking for long double&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for long double... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_c_long_double+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  if test &quot;$GCC&quot; = yes; then
++       gt_cv_c_long_double=yes
++     else
++       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
++         long double foo = 0.0;
++         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
++         int array [2*(sizeof(long double) &gt;= sizeof(double)) - 1];
++
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt; 0)];
+-test_array [0] = 0

+   ;
+   return 0;
+@@ -9203,33 +23640,62 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=-1 ac_mid=-1
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  gt_cv_c_long_double=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_c_long_double=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++     fi
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_c_long_double&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_c_long_double&quot; &gt;&amp;6
++  if test $gt_cv_c_long_double = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_LONG_DOUBLE 1
++_ACEOF
++
++  fi
++
++
++  echo &quot;$as_me:$LINENO: checking for wchar_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for wchar_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_c_wchar_t+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++       wchar_t foo = (wchar_t)'\0';
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &gt;= $ac_mid)];
+-test_array [0] = 0

+   ;
+   return 0;
+@@ -9237,55 +23703,61 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_lo=$ac_mid; break
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_hi=`expr '(' $ac_mid ')' - 1`
+-                       if test $ac_mid -le $ac_hi; then
+-                         ac_lo= ac_hi=
+-                         break
+-                       fi
+-                       ac_mid=`expr 2 '*' $ac_mid`
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++  gt_cv_c_wchar_t=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo= ac_hi=
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_c_wchar_t=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-# Binary search between lo and hi bounds.
+-while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+-  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++echo &quot;$as_me:$LINENO: result: $gt_cv_c_wchar_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_c_wchar_t&quot; &gt;&amp;6
++  if test $gt_cv_c_wchar_t = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_WCHAR_T 1
++_ACEOF
++
++  fi
++
++
++  echo &quot;$as_me:$LINENO: checking for wint_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for wint_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_c_wint_t+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;wchar.h&gt;
++       wint_t foo = (wchar_t)'\0';
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) &lt;= $ac_mid)];
+-test_array [0] = 0

+   ;
+   return 0;
+@@ -9293,437 +23765,717 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid
++  gt_cv_c_wint_t=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr '(' $ac_mid ')' + 1`
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_c_wint_t=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-done
+-case $ac_lo in
+-?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
+-'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; } ;;
+-esac
+-else
+-  if test &quot;$cross_compiling&quot; = yes; then
+-  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot run test program while cross compiling&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_c_wint_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_c_wint_t&quot; &gt;&amp;6
++  if test $gt_cv_c_wint_t = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_WINT_T 1
++_ACEOF
++
++  fi
++
++
++  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gl_cv_header_inttypes_h+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-long longval () { return (long) (sizeof (unsigned short int)); }
+-unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
+-#include &lt;stdio.h&gt;
+-#include &lt;stdlib.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;sys/types.h&gt;
++#include &lt;inttypes.h&gt;
+ int
+ main ()
+ {
+-
+-  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+-  if (! f)
+-    exit (1);
+-  if (((long) (sizeof (unsigned short int))) &lt; 0)
+-    {
+-      long i = longval ();
+-      if (i != ((long) (sizeof (unsigned short int))))
+-        exit (1);
+-      fprintf (f, &quot;%ld\n&quot;, i);
+-    }
+-  else
+-    {
+-      unsigned long i = ulongval ();
+-      if (i != ((long) (sizeof (unsigned short int))))
+-        exit (1);
+-      fprintf (f, &quot;%lu\n&quot;, i);
+-    }
+-  exit (ferror (f) || fclose (f) != 0);
+-
++uintmax_t i = (uintmax_t) -1;
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
+-else
+-  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+-echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-( exit $ac_status )
+-{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned short int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-fi
+-rm -f conftest.val
++  gl_cv_header_inttypes_h=yes
+ else
+-  ac_cv_sizeof_unsigned_short_int=0
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gl_cv_header_inttypes_h=no
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_short_int&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $gl_cv_header_inttypes_h&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gl_cv_header_inttypes_h&quot; &gt;&amp;6
++  if test $gl_cv_header_inttypes_h = yes; then
++
+ cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
++#define HAVE_INTTYPES_H_WITH_UINTMAX 1
+ _ACEOF

++  fi

+-echo &quot;$as_me:$LINENO: checking for unsigned long int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for unsigned long int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_unsigned_long_int+set}&quot; = set; then
++
++  echo &quot;$as_me:$LINENO: checking for stdint.h&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for stdint.h... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gl_cv_header_stdint_h+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;sys/types.h&gt;
++#include &lt;stdint.h&gt;
+ int
+ main ()
+ {
+-if ((unsigned long int *) 0)
+-  return 0;
+-if (sizeof (unsigned long int))
+-  return 0;
++uintmax_t i = (uintmax_t) -1;
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_type_unsigned_long_int=yes
++  gl_cv_header_stdint_h=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_unsigned_long_int=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gl_cv_header_stdint_h=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_int&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $gl_cv_header_stdint_h&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gl_cv_header_stdint_h&quot; &gt;&amp;6
++  if test $gl_cv_header_stdint_h = yes; then

+-echo &quot;$as_me:$LINENO: checking size of unsigned long int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking size of unsigned long int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_sizeof_unsigned_long_int+set}&quot; = set; then
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_STDINT_H_WITH_UINTMAX 1
++_ACEOF
++
++  fi
++
++
++
++
++  echo &quot;$as_me:$LINENO: checking for intmax_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for intmax_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_c_intmax_t+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test &quot;$ac_cv_type_unsigned_long_int&quot; = yes; then
+-  # The cast to unsigned long works around a bug in the HP C Compiler
+-  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+-  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+-  # This bug is HP SR number 8606223364.
+-  if test &quot;$cross_compiling&quot; = yes; then
+-  # Depending upon the size, compute the lo and hi bounds.
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#include &lt;stddef.h&gt;
++#include &lt;stdlib.h&gt;
++#if HAVE_STDINT_H_WITH_UINTMAX
++#include &lt;stdint.h&gt;
++#endif
++#if HAVE_INTTYPES_H_WITH_UINTMAX
++#include &lt;inttypes.h&gt;
+ #endif
++
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= 0)];
+-test_array [0] = 0
+-
++intmax_t x = -1;
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_lo=0 ac_mid=0
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++  gt_cv_c_intmax_t=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_c_intmax_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_c_intmax_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_c_intmax_t&quot; &gt;&amp;6
++  if test $gt_cv_c_intmax_t = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_INTMAX_T 1
++_ACEOF
++
++  fi
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether printf() supports POSIX/XSI format strings... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_func_printf_posix+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++
++      if test &quot;$cross_compiling&quot; = yes; then
++
++        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
++  notposix
+ #endif
+-int
+-main ()
+-{
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
+-test_array [0] = 0

+-  ;
+-  return 0;
++_ACEOF
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;notposix&quot; &gt;/dev/null 2&gt;&amp;1; then
++  gt_cv_func_printf_posix=&quot;guessing no&quot;
++else
++  gt_cv_func_printf_posix=&quot;guessing yes&quot;
++fi
++rm -f conftest*
++
++
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#include &lt;stdio.h&gt;
++#include &lt;string.h&gt;
++/* The string &quot;%2$d %1$d&quot;, with dollar characters protected from the shell's
++   dollar expansion (possibly an autoconf bug).  */
++static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
++static char buf[100];
++int main ()
++{
++  sprintf (buf, format, 33, 55);
++  return (strcmp (buf, &quot;55 33&quot;) != 0);
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid; break
++  gt_cv_func_printf_posix=yes
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr $ac_mid + 1`
+-                    if test $ac_lo -le $ac_mid; then
+-                      ac_lo= ac_hi=
+-                      break
+-                    fi
+-                    ac_mid=`expr 2 '*' $ac_mid + 1`
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++( exit $ac_status )
++gt_cv_func_printf_posix=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_func_printf_posix&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_func_printf_posix&quot; &gt;&amp;6
++  case $gt_cv_func_printf_posix in
++    *yes)
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_POSIX_PRINTF 1
++_ACEOF
++
++      ;;
++  esac
++
++
++
++for ac_header in stdlib.h unistd.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+ cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt; 0)];
+-test_array [0] = 0
+-
+-  ;
+-  return 0;
+-}
++#include &lt;$ac_header&gt;
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_hi=-1 ac_mid=-1
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &gt;= $ac_mid)];
+-test_array [0] = 0
+-
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_lo=$ac_mid; break
++  ac_header_compiler=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_hi=`expr '(' $ac_mid ')' - 1`
+-                       if test $ac_mid -le $ac_hi; then
+-                         ac_lo= ac_hi=
+-                         break
+-                       fi
+-                       ac_mid=`expr 2 '*' $ac_mid`
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_header_compiler=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
++
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo= ac_hi=
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-# Binary search between lo and hi bounds.
+-while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+-  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_func in getpagesize
++do
++as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
++echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
++
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) &lt;= $ac_mid)];
+-test_array [0] = 0
+-
++return f != $ac_func;
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid
++  eval &quot;$as_ac_var=yes&quot;
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr '(' $ac_mid ')' + 1`
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++eval &quot;$as_ac_var=no&quot;
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
++_ACEOF
++
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+ done
+-case $ac_lo in
+-?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
+-'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; } ;;
+-esac
++
++echo &quot;$as_me:$LINENO: checking for working mmap&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for working mmap... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_func_mmap_fixed_mapped+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   if test &quot;$cross_compiling&quot; = yes; then
+-  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot run test program while cross compiling&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
++  ac_cv_func_mmap_fixed_mapped=no
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ $ac_includes_default
+-long longval () { return (long) (sizeof (unsigned long int)); }
+-unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
+-#include &lt;stdio.h&gt;
+-#include &lt;stdlib.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* malloc might have been renamed as rpl_malloc. */
++#undef malloc
++
++/* Thanks to Mike Haertel and Jim Avera for this test.
++   Here is a matrix of mmap possibilities:
++        mmap private not fixed
++        mmap private fixed at somewhere currently unmapped
++        mmap private fixed at somewhere already mapped
++        mmap shared not fixed
++        mmap shared fixed at somewhere currently unmapped
++        mmap shared fixed at somewhere already mapped
++   For private mappings, we should verify that changes cannot be read()
++   back from the file, nor mmap's back from the file at a different
++   address.  (There have been systems where private was not correctly
++   implemented like the infamous i386 svr4.0, and systems where the
++   VM page cache was not coherent with the file system buffer cache
++   like early versions of FreeBSD and possibly contemporary NetBSD.)
++   For shared mappings, we should conversely verify that changes get
++   propagated back to all the places they're supposed to be.
++
++   Grep wants private fixed already mapped.
++   The main things grep needs to know about mmap are:
++   * does it exist and is it safe to write into the mmap'd area
++   * how to use it (BSD variants)  */
++
++#include &lt;fcntl.h&gt;
++#include &lt;sys/mman.h&gt;
++
++#if !STDC_HEADERS &amp;&amp; !HAVE_STDLIB_H
++char *malloc ();
+ #endif
++
++/* This mess was copied from the GNU getpagesize.h.  */
++#if !HAVE_GETPAGESIZE
++/* Assume that all systems that can run configure have sys/param.h.  */
++# if !HAVE_SYS_PARAM_H
++#  define HAVE_SYS_PARAM_H 1
++# endif
++
++# ifdef _SC_PAGESIZE
++#  define getpagesize() sysconf(_SC_PAGESIZE)
++# else /* no _SC_PAGESIZE */
++#  if HAVE_SYS_PARAM_H
++#   include &lt;sys/param.h&gt;
++#   ifdef EXEC_PAGESIZE
++#    define getpagesize() EXEC_PAGESIZE
++#   else /* no EXEC_PAGESIZE */
++#    ifdef NBPG
++#     define getpagesize() NBPG * CLSIZE
++#     ifndef CLSIZE
++#      define CLSIZE 1
++#     endif /* no CLSIZE */
++#    else /* no NBPG */
++#     ifdef NBPC
++#      define getpagesize() NBPC
++#     else /* no NBPC */
++#      ifdef PAGESIZE
++#       define getpagesize() PAGESIZE
++#      endif /* PAGESIZE */
++#     endif /* no NBPC */
++#    endif /* no NBPG */
++#   endif /* no EXEC_PAGESIZE */
++#  else /* no HAVE_SYS_PARAM_H */
++#   define getpagesize() 8192        /* punt totally */
++#  endif /* no HAVE_SYS_PARAM_H */
++# endif /* no _SC_PAGESIZE */
++
++#endif /* no HAVE_GETPAGESIZE */
++
+ int
+ main ()
+ {
++  char *data, *data2, *data3;
++  int i, pagesize;
++  int fd;

+-  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+-  if (! f)
++  pagesize = getpagesize ();
++
++  /* First, make a file with some known garbage in it. */
++  data = (char *) malloc (pagesize);
++  if (!data)
+     exit (1);
+-  if (((long) (sizeof (unsigned long int))) &lt; 0)
+-    {
+-      long i = longval ();
+-      if (i != ((long) (sizeof (unsigned long int))))
+-        exit (1);
+-      fprintf (f, &quot;%ld\n&quot;, i);
+-    }
+-  else
+-    {
+-      unsigned long i = ulongval ();
+-      if (i != ((long) (sizeof (unsigned long int))))
+-        exit (1);
+-      fprintf (f, &quot;%lu\n&quot;, i);
+-    }
+-  exit (ferror (f) || fclose (f) != 0);
++  for (i = 0; i &lt; pagesize; ++i)
++    *(data + i) = rand ();
++  umask (0);
++  fd = creat (&quot;conftest.mmap&quot;, 0600);
++  if (fd &lt; 0)
++    exit (1);
++  if (write (fd, data, pagesize) != pagesize)
++    exit (1);
++  close (fd);

+-  ;
+-  return 0;
++  /* Next, try to mmap the file at a fixed address which already has
++     something else allocated at it.  If we can, also make sure that
++     we see the same garbage.  */
++  fd = open (&quot;conftest.mmap&quot;, O_RDWR);
++  if (fd &lt; 0)
++    exit (1);
++  data2 = (char *) malloc (2 * pagesize);
++  if (!data2)
++    exit (1);
++  data2 += (pagesize - ((long) data2 &amp; (pagesize - 1))) &amp; (pagesize - 1);
++  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
++                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
++    exit (1);
++  for (i = 0; i &lt; pagesize; ++i)
++    if (*(data + i) != *(data2 + i))
++      exit (1);
++
++  /* Finally, make sure that changes to the mapped area do not
++     percolate back to the file as seen by read().  (This is a bug on
++     some variants of i386 svr4.0.)  */
++  for (i = 0; i &lt; pagesize; ++i)
++    *(data2 + i) = *(data2 + i) + 1;
++  data3 = (char *) malloc (pagesize);
++  if (!data3)
++    exit (1);
++  if (read (fd, data3, pagesize) != pagesize)
++    exit (1);
++  for (i = 0; i &lt; pagesize; ++i)
++    if (*(data + i) != *(data3 + i))
++      exit (1);
++  close (fd);
++  exit (0);
+ }
+ _ACEOF
+ rm -f conftest$ac_exeext
+@@ -9737,279 +24489,268 @@
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
++  ac_cv_func_mmap_fixed_mapped=yes
+ else
+   echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+ echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ( exit $ac_status )
+-{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned long int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
++ac_cv_func_mmap_fixed_mapped=no
+ fi
+-rm -f conftest.val
+-else
+-  ac_cv_sizeof_unsigned_long_int=0
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_long_int&quot; &gt;&amp;6
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
++echo &quot;$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;6
++if test $ac_cv_func_mmap_fixed_mapped = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_MMAP 1
+ _ACEOF

++fi
++rm -f conftest.mmap

+-echo &quot;$as_me:$LINENO: checking for unsigned int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for unsigned int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_unsigned_int+set}&quot; = set; then
++
++    echo &quot;$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_gnu_library_2_1+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#include &lt;features.h&gt;
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
++  Lucky GNU user
++ #endif
+ #endif
+-int
+-main ()
+-{
+-if ((unsigned int *) 0)
+-  return 0;
+-if (sizeof (unsigned int))
+-  return 0;
+-  ;
+-  return 0;
+-}
++
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_type_unsigned_int=yes
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;Lucky GNU user&quot; &gt;/dev/null 2&gt;&amp;1; then
++  ac_cv_gnu_library_2_1=yes
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_unsigned_int=no
++  ac_cv_gnu_library_2_1=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest*
++
++
++
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_unsigned_int&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $ac_cv_gnu_library_2_1&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_gnu_library_2_1&quot; &gt;&amp;6

+-echo &quot;$as_me:$LINENO: checking size of unsigned int&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking size of unsigned int... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_sizeof_unsigned_int+set}&quot; = set; then
++    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
++
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether integer division by zero raises SIGFPE&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether integer division by zero raises SIGFPE... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_int_divbyzero_sigfpe+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  if test &quot;$ac_cv_type_unsigned_int&quot; = yes; then
+-  # The cast to unsigned long works around a bug in the HP C Compiler
+-  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+-  # declarations like `int a3[[(sizeof (unsigned char)) &gt;= 0]];'.
+-  # This bug is HP SR number 8606223364.
+-  if test &quot;$cross_compiling&quot; = yes; then
+-  # Depending upon the size, compute the lo and hi bounds.
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= 0)];
+-test_array [0] = 0

+-  ;
+-  return 0;
+-}
++      if test &quot;$cross_compiling&quot; = yes; then
++
++          # Guess based on the CPU.
++          case &quot;$host_cpu&quot; in
++            alpha* | i3456786 | m68k | s390*)
++              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
++            *)
++              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
++          esac
++
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_lo=0 ac_mid=0
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++
++#include &lt;stdlib.h&gt;
++#include &lt;signal.h&gt;
++
++static void
++#ifdef __cplusplus
++sigfpe_handler (int sig)
++#else
++sigfpe_handler (sig) int sig;
+ #endif
+-int
+-main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
+-test_array [0] = 0
++  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
++  exit (sig != SIGFPE);
++}

+-  ;
+-  return 0;
++int x = 1;
++int y = 0;
++int z;
++int nan;
++
++int main ()
++{
++  signal (SIGFPE, sigfpe_handler);
++/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
++#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
++  signal (SIGTRAP, sigfpe_handler);
++#endif
++/* Linux/SPARC yields signal SIGILL.  */
++#if defined (__sparc__) &amp;&amp; defined (__linux__)
++  signal (SIGILL, sigfpe_handler);
++#endif
++
++  z = x / y;
++  nan = y / y;
++  exit (1);
+ }
++
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid; break
++  gt_cv_int_divbyzero_sigfpe=yes
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr $ac_mid + 1`
+-                    if test $ac_lo -le $ac_mid; then
+-                      ac_lo= ac_hi=
+-                      break
+-                    fi
+-                    ac_mid=`expr 2 '*' $ac_mid + 1`
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++( exit $ac_status )
++gt_cv_int_divbyzero_sigfpe=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;6
++  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
++    *yes) value=1;;
++    *) value=0;;
++  esac
++
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define INTDIV0_RAISES_SIGFPE $value
++_ACEOF
++
++
++
++  echo &quot;$as_me:$LINENO: checking for unsigned long long&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for unsigned long long... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_unsigned_long_long+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++unsigned long long ull = 1ULL; int i = 63;
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt; 0)];
+-test_array [0] = 0
+-
++unsigned long long ullmax = (unsigned long long) -1;
++     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_hi=-1 ac_mid=-1
+-  while :; do
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &gt;= $ac_mid)];
+-test_array [0] = 0
+-
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_lo=$ac_mid; break
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_hi=`expr '(' $ac_mid ')' - 1`
+-                       if test $ac_mid -le $ac_hi; then
+-                         ac_lo= ac_hi=
+-                         break
+-                       fi
+-                       ac_mid=`expr 2 '*' $ac_mid`
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-  done
++  ac_cv_type_unsigned_long_long=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo= ac_hi=
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_unsigned_long_long=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-# Binary search between lo and hi bounds.
+-while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
+-  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_long&quot; &gt;&amp;6
++  if test $ac_cv_type_unsigned_long_long = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_UNSIGNED_LONG_LONG 1
++_ACEOF
++
++  fi
++
++
++
++
++  if test $gl_cv_header_inttypes_h = no &amp;&amp; test $gl_cv_header_stdint_h = no; then
++
++    test $ac_cv_type_unsigned_long_long = yes \
++      &amp;&amp; ac_type='unsigned long long' \
++      || ac_type='unsigned long'
++
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define uintmax_t $ac_type
++_ACEOF
++
++  else
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_UINTMAX_T 1
++_ACEOF
++
++  fi
++
++
++  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_header_inttypes_h+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;sys/types.h&gt;
++#include &lt;inttypes.h&gt;
+ int
+ main ()
+ {
+-static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) &lt;= $ac_mid)];
+-test_array [0] = 0

+   ;
+   return 0;
+@@ -10017,1079 +24758,1229 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_hi=$ac_mid
++  gt_cv_header_inttypes_h=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_lo=`expr '(' $ac_mid ')' + 1`
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_header_inttypes_h=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-done
+-case $ac_lo in
+-?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
+-'') { { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; } ;;
+-esac
+-else
+-  if test &quot;$cross_compiling&quot; = yes; then
+-  { { echo &quot;$as_me:$LINENO: error: cannot run test program while cross compiling&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot run test program while cross compiling&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_header_inttypes_h&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_header_inttypes_h&quot; &gt;&amp;6
++  if test $gt_cv_header_inttypes_h = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_INTTYPES_H 1
++_ACEOF
++
++  fi
++
++
++
++  if test $gt_cv_header_inttypes_h = yes; then
++    echo &quot;$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_inttypes_pri_broken+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-long longval () { return (long) (sizeof (unsigned int)); }
+-unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
+-#include &lt;stdio.h&gt;
+-#include &lt;stdlib.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{

+-  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
+-  if (! f)
+-    exit (1);
+-  if (((long) (sizeof (unsigned int))) &lt; 0)
+-    {
+-      long i = longval ();
+-      if (i != ((long) (sizeof (unsigned int))))
+-        exit (1);
+-      fprintf (f, &quot;%ld\n&quot;, i);
+-    }
+-  else
+-    {
+-      unsigned long i = ulongval ();
+-      if (i != ((long) (sizeof (unsigned int))))
+-        exit (1);
+-      fprintf (f, &quot;%lu\n&quot;, i);
+-    }
+-  exit (ferror (f) || fclose (f) != 0);
++        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;inttypes.h&gt;
++#ifdef PRId32
++char *p = PRId32;
++#endif
++
++int
++main ()
++{

+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_sizeof_unsigned_int=`cat conftest.val`
+-else
+-  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+-echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-( exit $ac_status )
+-{ { echo &quot;$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot compute sizeof (unsigned int), 77&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-fi
+-rm -f conftest.val
++  gt_cv_inttypes_pri_broken=no
+ else
+-  ac_cv_sizeof_unsigned_int=0
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_inttypes_pri_broken=yes
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_sizeof_unsigned_int&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_inttypes_pri_broken&quot; &gt;&amp;6
++  fi
++  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
++
+ cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
++#define PRI_MACROS_BROKEN 1
+ _ACEOF

+-
+-
+-GSM_VERSION=&quot;1:4:0&quot;
+-
+-
+-LINGUAS=&quot;de&quot;
+-ALL_LINGUAS=$LINGUAS
+-
+-        MKINSTALLDIRS=
+-  if test -n &quot;$ac_aux_dir&quot;; then
+-    MKINSTALLDIRS=&quot;$ac_aux_dir/mkinstalldirs&quot;
+-  fi
+-  if test -z &quot;$MKINSTALLDIRS&quot;; then
+-    MKINSTALLDIRS=&quot;\$(top_srcdir)/mkinstalldirs&quot;
+   fi



+-
+-
+-        # Extract the first word of &quot;msgfmt&quot;, so it can be a program name with args.
+-set dummy msgfmt; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_path_MSGFMT+set}&quot; = set; then
++for ac_header in stdint.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  case &quot;$MSGFMT&quot; in
+-  /*)
+-  ac_cv_path_MSGFMT=&quot;$MSGFMT&quot; # Let the user override the test with a path.
+-  ;;
+-  *)
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
+-  for ac_dir in $PATH; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      if $ac_dir/$ac_word --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-     (if $ac_dir/$ac_word --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-        ac_cv_path_MSGFMT=&quot;$ac_dir/$ac_word&quot;
+-        break
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  test -z &quot;$ac_cv_path_MSGFMT&quot; &amp;&amp; ac_cv_path_MSGFMT=&quot;:&quot;
+-  ;;
+-esac
+ fi
+-MSGFMT=&quot;$ac_cv_path_MSGFMT&quot;
+-if test &quot;$MSGFMT&quot; != &quot;:&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $MSGFMT&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$MSGFMT&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
+-
+-  # Extract the first word of &quot;gmsgfmt&quot;, so it can be a program name with args.
+-set dummy gmsgfmt; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_path_GMSGFMT+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
+ else
+-  case $GMSGFMT in
+-  [\\/]* | ?:[\\/]*)
+-  ac_cv_path_GMSGFMT=&quot;$GMSGFMT&quot; # Let the user override the test with a path.
+-  ;;
+-  *)
+-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_path_GMSGFMT=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-  test -z &quot;$ac_cv_path_GMSGFMT&quot; &amp;&amp; ac_cv_path_GMSGFMT=&quot;$MSGFMT&quot;
+-  ;;
+-esac
++ac_header_compiler=no
+ fi
+-GMSGFMT=$ac_cv_path_GMSGFMT
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-if test -n &quot;$GMSGFMT&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $GMSGFMT&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$GMSGFMT&quot; &gt;&amp;6
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  ac_cpp_err=yes
+ fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6

+-        # Extract the first word of &quot;xgettext&quot;, so it can be a program name with args.
+-set dummy xgettext; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_path_XGETTEXT+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  case &quot;$XGETTEXT&quot; in
+-  /*)
+-  ac_cv_path_XGETTEXT=&quot;$XGETTEXT&quot; # Let the user override the test with a path.
+-  ;;
+-  *)
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
+-  for ac_dir in $PATH; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-        ac_cv_path_XGETTEXT=&quot;$ac_dir/$ac_word&quot;
+-        break
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  test -z &quot;$ac_cv_path_XGETTEXT&quot; &amp;&amp; ac_cv_path_XGETTEXT=&quot;:&quot;
+-  ;;
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
+ esac
+-fi
+-XGETTEXT=&quot;$ac_cv_path_XGETTEXT&quot;
+-if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $XGETTEXT&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$XGETTEXT&quot; &gt;&amp;6
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+ fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6

+-    rm -f messages.po
+-
+-    # Extract the first word of &quot;msgmerge&quot;, so it can be a program name with args.
+-set dummy msgmerge; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_path_MSGMERGE+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  case &quot;$MSGMERGE&quot; in
+-  /*)
+-  ac_cv_path_MSGMERGE=&quot;$MSGMERGE&quot; # Let the user override the test with a path.
+-  ;;
+-  *)
+-  IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
+-  for ac_dir in $PATH; do
+-    test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      if $ac_dir/$ac_word --update -q /dev/null /dev/null &gt;/dev/null 2&gt;&amp;1; then
+-        ac_cv_path_MSGMERGE=&quot;$ac_dir/$ac_word&quot;
+-        break
+-      fi
+-    fi
+-  done
+-  IFS=&quot;$ac_save_ifs&quot;
+-  test -z &quot;$ac_cv_path_MSGMERGE&quot; &amp;&amp; ac_cv_path_MSGMERGE=&quot;:&quot;
+-  ;;
+-esac
+ fi
+-MSGMERGE=&quot;$ac_cv_path_MSGMERGE&quot;
+-if test &quot;$MSGMERGE&quot; != &quot;:&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $MSGMERGE&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$MSGMERGE&quot; &gt;&amp;6
+-else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF
++
+ fi

++done

+-      if test &quot;$GMSGFMT&quot; != &quot;:&quot;; then
+-            if $GMSGFMT --statistics /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       (if $GMSGFMT --statistics /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-      : ;
+-    else
+-      GMSGFMT=`echo &quot;$GMSGFMT&quot; | sed -e 's,^.*/,,'`
+-      echo &quot;$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it&quot; &gt;&amp;6
+-      GMSGFMT=&quot;:&quot;
+-    fi
+-  fi
++    echo &quot;$as_me:$LINENO: checking for SIZE_MAX&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for SIZE_MAX... $ECHO_C&quot; &gt;&amp;6
++  result=
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+-      if test &quot;$XGETTEXT&quot; != &quot;:&quot;; then
+-            if $XGETTEXT --omit-header --copyright-holder= /dev/null &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+-       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2&gt;&amp;1 &gt;/dev/null | grep usage &gt;/dev/null; then exit 1; else exit 0; fi); then
+-      : ;
+-    else
+-      echo &quot;$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}found xgettext program is not GNU xgettext; ignore it&quot; &gt;&amp;6
+-      XGETTEXT=&quot;:&quot;
+-    fi
+-        rm -f messages.po
+-  fi
++#include &lt;limits.h&gt;
++#if HAVE_STDINT_H
++#include &lt;stdint.h&gt;
++#endif
++#ifdef SIZE_MAX
++Found it
++#endif

+-  ac_config_commands=&quot;$ac_config_commands default-1&quot;
++_ACEOF
++if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
++  $EGREP &quot;Found it&quot; &gt;/dev/null 2&gt;&amp;1; then
++  result=yes
++fi
++rm -f conftest*

++  if test -z &quot;$result&quot;; then
++                    if test &quot;$cross_compiling&quot; = yes; then
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 / 10) &gt;= 0)];
++test_array [0] = 0

+-if test -n &quot;$ac_tool_prefix&quot;; then
+-  # Extract the first word of &quot;${ac_tool_prefix}ranlib&quot;, so it can be a program name with args.
+-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_RANLIB+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  if test -n &quot;$RANLIB&quot;; then
+-  ac_cv_prog_RANLIB=&quot;$RANLIB&quot; # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_RANLIB=&quot;${ac_tool_prefix}ranlib&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt;= $ac_mid)];
++test_array [0] = 0

+-fi
+-fi
+-RANLIB=$ac_cv_prog_RANLIB
+-if test -n &quot;$RANLIB&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $RANLIB&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$RANLIB&quot; &gt;&amp;6
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid; break
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
+ fi
+-if test -z &quot;$ac_cv_prog_RANLIB&quot;; then
+-  ac_ct_RANLIB=$RANLIB
+-  # Extract the first word of &quot;ranlib&quot;, so it can be a program name with args.
+-set dummy ranlib; ac_word=$2
+-echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_word... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_prog_ac_ct_RANLIB+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  if test -n &quot;$ac_ct_RANLIB&quot;; then
+-  ac_cv_prog_ac_ct_RANLIB=&quot;$ac_ct_RANLIB&quot; # Let the user override the test.
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt; 0)];
++test_array [0] = 0
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 / 10) &gt;= $ac_mid)];
++test_array [0] = 0
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=$ac_mid; break
+ else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+-  IFS=$as_save_IFS
+-  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+-  for ac_exec_ext in '' $ac_executable_extensions; do
+-  if $as_executable_p &quot;$as_dir/$ac_word$ac_exec_ext&quot;; then
+-    ac_cv_prog_ac_ct_RANLIB=&quot;ranlib&quot;
+-    echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+-    break 2
+-  fi
+-done
+-done
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-  test -z &quot;$ac_cv_prog_ac_ct_RANLIB&quot; &amp;&amp; ac_cv_prog_ac_ct_RANLIB=&quot;:&quot;
+-fi
++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+-if test -n &quot;$ac_ct_RANLIB&quot;; then
+-  echo &quot;$as_me:$LINENO: result: $ac_ct_RANLIB&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_ct_RANLIB&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
+-fi
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-  RANLIB=$ac_ct_RANLIB
+-else
+-  RANLIB=&quot;$ac_cv_prog_RANLIB&quot;
++ac_lo= ac_hi=
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 / 10) &lt;= $ac_mid)];
++test_array [0] = 0

+-
+-        echo &quot;$as_me:$LINENO: checking for strerror in -lcposix&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for strerror in -lcposix... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_lib_cposix_strerror+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid
+ else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS=&quot;-lcposix  $LIBS&quot;
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char strerror ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++ac_lo=`expr '(' $ac_mid ')' + 1`
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) res_hi=$ac_lo;;
++'') result=? ;;
++esac
++else
++  if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++long longval () { return ~(size_t)0 / 10; }
++unsigned long ulongval () { return ~(size_t)0 / 10; }
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
+ int
+ main ()
+ {
+-strerror ();
++
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if ((~(size_t)0 / 10) &lt; 0)
++    {
++      long i = longval ();
++      if (i != (~(size_t)0 / 10))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != (~(size_t)0 / 10))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);
++
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
++rm -f conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+   (eval $ac_link) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_lib_cposix_strerror=yes
++  res_hi=`cat conftest.val`
+ else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_lib_cposix_strerror=no
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++( exit $ac_status )
++result=?
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_lib_cposix_strerror&quot; &gt;&amp;6
+-if test $ac_cv_lib_cposix_strerror = yes; then
+-  LIBS=&quot;$LIBS -lcposix&quot;
+ fi
++rm -f conftest.val
++    if test &quot;$cross_compiling&quot; = yes; then
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 % 10) &gt;= 0)];
++test_array [0] = 0

+-
+-
+-echo &quot;$as_me:$LINENO: checking for inline&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for inline... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_c_inline+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  ac_cv_c_inline=no
+-for ac_kw in inline __inline__ __inline; do
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#ifndef __cplusplus
+-static $ac_kw int static_foo () {return 0; }
+-$ac_kw int foo () {return 0; }
+-#endif
+-
++  ;
++  return 0;
++}
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_c_inline=$ac_kw; break
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-done
+-
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_c_inline&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_c_inline&quot; &gt;&amp;6
+-case $ac_cv_c_inline in
+-  inline | yes) ;;
+-  no)
+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define inline
+-_ACEOF
+- ;;
+-  *)  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define inline $ac_cv_c_inline
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+- ;;
+-esac
+-
+-echo &quot;$as_me:$LINENO: checking for off_t&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for off_t... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_off_t+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
+ int
+ main ()
+ {
+-if ((off_t *) 0)
+-  return 0;
+-if (sizeof (off_t))
+-  return 0;
++static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt;= $ac_mid)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_type_off_t=yes
++  ac_hi=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_off_t=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_off_t&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_off_t&quot; &gt;&amp;6
+-if test $ac_cv_type_off_t = yes; then
+-  :
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define off_t long
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-
+-fi
+-
+-echo &quot;$as_me:$LINENO: checking for size_t&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for size_t... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_size_t+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
+ int
+ main ()
+ {
+-if ((size_t *) 0)
+-  return 0;
+-if (sizeof (size_t))
+-  return 0;
++static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt; 0)];
++test_array [0] = 0
++
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_type_size_t=yes
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_size_t=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_size_t&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_size_t&quot; &gt;&amp;6
+-if test $ac_cv_type_size_t = yes; then
+-  :
+-else
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define size_t unsigned
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((~(size_t)0 % 10) &gt;= $ac_mid)];
++test_array [0] = 0

+-fi
+-
+-
+-
+-for ac_header in stdlib.h unistd.h
+-do
+-as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+-else
+-  # Is the header compilable?
+-echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#include &lt;$ac_header&gt;
++  ;
++  return 0;
++}
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_header_compiler=yes
+-else
+-  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_header_compiler=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
+-
+-# Is the header present?
+-echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;$ac_header&gt;
+-_ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  ac_header_preproc=yes
++  (exit $ac_status); }; }; then
++  ac_lo=$ac_mid; break
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_header_preproc=no
+-fi
+-rm -f conftest.err conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-# So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-esac
+-echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo= ac_hi=
+ fi
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+-_ACEOF
+-
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-
+-done
+-
+-
+-for ac_func in getpagesize
+-do
+-as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+-echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char $ac_func (); below.  */
+-#include &lt;assert.h&gt;
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
+ int
+ main ()
+ {
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+-choke me
+-#else
+-f = $ac_func;
+-#endif
++static int test_array [1 - 2 * !((~(size_t)0 % 10) &lt;= $ac_mid)];
++test_array [0] = 0

+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  eval &quot;$as_ac_var=yes&quot;
++  ac_hi=$ac_mid
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-eval &quot;$as_ac_var=no&quot;
+-fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+-if test `eval echo '${'$as_ac_var'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
+-_ACEOF
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr '(' $ac_mid ')' + 1`
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+-
+-echo &quot;$as_me:$LINENO: checking for working mmap&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for working mmap... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_func_mmap_fixed_mapped+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++case $ac_lo in
++?*) res_lo=$ac_lo;;
++'') result=? ;;
++esac
+ else
+   if test &quot;$cross_compiling&quot; = yes; then
+-  ac_cv_func_mmap_fixed_mapped=no
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-/* malloc might have been renamed as rpl_malloc. */
+-#undef malloc
+-
+-/* Thanks to Mike Haertel and Jim Avera for this test.
+-   Here is a matrix of mmap possibilities:
+-        mmap private not fixed
+-        mmap private fixed at somewhere currently unmapped
+-        mmap private fixed at somewhere already mapped
+-        mmap shared not fixed
+-        mmap shared fixed at somewhere currently unmapped
+-        mmap shared fixed at somewhere already mapped
+-   For private mappings, we should verify that changes cannot be read()
+-   back from the file, nor mmap's back from the file at a different
+-   address.  (There have been systems where private was not correctly
+-   implemented like the infamous i386 svr4.0, and systems where the
+-   VM page cache was not coherent with the file system buffer cache
+-   like early versions of FreeBSD and possibly contemporary NetBSD.)
+-   For shared mappings, we should conversely verify that changes get
+-   propagated back to all the places they're supposed to be.
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++long longval () { return ~(size_t)0 % 10; }
++unsigned long ulongval () { return ~(size_t)0 % 10; }
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
++int
++main ()
++{

+-   Grep wants private fixed already mapped.
+-   The main things grep needs to know about mmap are:
+-   * does it exist and is it safe to write into the mmap'd area
+-   * how to use it (BSD variants)  */
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if ((~(size_t)0 % 10) &lt; 0)
++    {
++      long i = longval ();
++      if (i != (~(size_t)0 % 10))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != (~(size_t)0 % 10))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);

+-#include &lt;fcntl.h&gt;
+-#include &lt;sys/mman.h&gt;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  res_lo=`cat conftest.val`
++else
++  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
++echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#if !STDC_HEADERS &amp;&amp; !HAVE_STDLIB_H
+-char *malloc ();
+-#endif
++( exit $ac_status )
++result=?
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++rm -f conftest.val
++    if test &quot;$cross_compiling&quot; = yes; then
++  # Depending upon the size, compute the lo and hi bounds.
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &gt;= 0)];
++test_array [0] = 0

+-/* This mess was copied from the GNU getpagesize.h.  */
+-#if !HAVE_GETPAGESIZE
+-/* Assume that all systems that can run configure have sys/param.h.  */
+-# if !HAVE_SYS_PARAM_H
+-#  define HAVE_SYS_PARAM_H 1
+-# endif
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=0 ac_mid=0
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt;= $ac_mid)];
++test_array [0] = 0

+-# ifdef _SC_PAGESIZE
+-#  define getpagesize() sysconf(_SC_PAGESIZE)
+-# else /* no _SC_PAGESIZE */
+-#  if HAVE_SYS_PARAM_H
+-#   include &lt;sys/param.h&gt;
+-#   ifdef EXEC_PAGESIZE
+-#    define getpagesize() EXEC_PAGESIZE
+-#   else /* no EXEC_PAGESIZE */
+-#    ifdef NBPG
+-#     define getpagesize() NBPG * CLSIZE
+-#     ifndef CLSIZE
+-#      define CLSIZE 1
+-#     endif /* no CLSIZE */
+-#    else /* no NBPG */
+-#     ifdef NBPC
+-#      define getpagesize() NBPC
+-#     else /* no NBPC */
+-#      ifdef PAGESIZE
+-#       define getpagesize() PAGESIZE
+-#      endif /* PAGESIZE */
+-#     endif /* no NBPC */
+-#    endif /* no NBPG */
+-#   endif /* no EXEC_PAGESIZE */
+-#  else /* no HAVE_SYS_PARAM_H */
+-#   define getpagesize() 8192        /* punt totally */
+-#  endif /* no HAVE_SYS_PARAM_H */
+-# endif /* no _SC_PAGESIZE */
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid; break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#endif /* no HAVE_GETPAGESIZE */
++ac_lo=`expr $ac_mid + 1`
++                    if test $ac_lo -le $ac_mid; then
++                      ac_lo= ac_hi=
++                      break
++                    fi
++                    ac_mid=`expr 2 '*' $ac_mid + 1`
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
+ int
+ main ()
+ {
+-  char *data, *data2, *data3;
+-  int i, pagesize;
+-  int fd;
+-
+-  pagesize = getpagesize ();
+-
+-  /* First, make a file with some known garbage in it. */
+-  data = (char *) malloc (pagesize);
+-  if (!data)
+-    exit (1);
+-  for (i = 0; i &lt; pagesize; ++i)
+-    *(data + i) = rand ();
+-  umask (0);
+-  fd = creat (&quot;conftest.mmap&quot;, 0600);
+-  if (fd &lt; 0)
+-    exit (1);
+-  if (write (fd, data, pagesize) != pagesize)
+-    exit (1);
+-  close (fd);
+-
+-  /* Next, try to mmap the file at a fixed address which already has
+-     something else allocated at it.  If we can, also make sure that
+-     we see the same garbage.  */
+-  fd = open (&quot;conftest.mmap&quot;, O_RDWR);
+-  if (fd &lt; 0)
+-    exit (1);
+-  data2 = (char *) malloc (2 * pagesize);
+-  if (!data2)
+-    exit (1);
+-  data2 += (pagesize - ((int) data2 &amp; (pagesize - 1))) &amp; (pagesize - 1);
+-  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
+-                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
+-    exit (1);
+-  for (i = 0; i &lt; pagesize; ++i)
+-    if (*(data + i) != *(data2 + i))
+-      exit (1);
++static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt; 0)];
++test_array [0] = 0

+-  /* Finally, make sure that changes to the mapped area do not
+-     percolate back to the file as seen by read().  (This is a bug on
+-     some variants of i386 svr4.0.)  */
+-  for (i = 0; i &lt; pagesize; ++i)
+-    *(data2 + i) = *(data2 + i) + 1;
+-  data3 = (char *) malloc (pagesize);
+-  if (!data3)
+-    exit (1);
+-  if (read (fd, data3, pagesize) != pagesize)
+-    exit (1);
+-  for (i = 0; i &lt; pagesize; ++i)
+-    if (*(data + i) != *(data3 + i))
+-      exit (1);
+-  close (fd);
+-  exit (0);
++  ;
++  return 0;
+ }
+ _ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_cv_func_mmap_fixed_mapped=yes
+-else
+-  echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+-echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-( exit $ac_status )
+-ac_cv_func_mmap_fixed_mapped=no
+-fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_func_mmap_fixed_mapped&quot; &gt;&amp;6
+-if test $ac_cv_func_mmap_fixed_mapped = yes; then
++  ac_hi=-1 ac_mid=-1
++  while :; do
++    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &gt;= $ac_mid)];
++test_array [0] = 0

+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_MMAP 1
++  ;
++  return 0;
++}
+ _ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_lo=$ac_mid; break
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_hi=`expr '(' $ac_mid ')' - 1`
++                       if test $ac_mid -le $ac_hi; then
++                         ac_lo= ac_hi=
++                         break
++                       fi
++                       ac_mid=`expr 2 '*' $ac_mid`
+ fi
+-rm -f conftest.mmap
+-
+-
+-    echo &quot;$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_gnu_library_2_1+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  done
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

+-#include &lt;features.h&gt;
+-#ifdef __GNU_LIBRARY__
+- #if (__GLIBC__ == 2 &amp;&amp; __GLIBC_MINOR__ &gt;= 1) || (__GLIBC__ &gt; 2)
+-  Lucky GNU user
+- #endif
+-#endif
++ac_lo= ac_hi=
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++# Binary search between lo and hi bounds.
++while test &quot;x$ac_lo&quot; != &quot;x$ac_hi&quot;; do
++  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++int
++main ()
++{
++static int test_array [1 - 2 * !((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt;= $ac_mid)];
++test_array [0] = 0

++  ;
++  return 0;
++}
+ _ACEOF
+-if (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;&amp;5 |
+-  egrep &quot;Lucky GNU user&quot; &gt;/dev/null 2&gt;&amp;1; then
+-  ac_cv_gnu_library_2_1=yes
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_hi=$ac_mid
+ else
+-  ac_cv_gnu_library_2_1=no
+-fi
+-rm -f conftest*
+-
+-
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_lo=`expr '(' $ac_mid ')' + 1`
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_gnu_library_2_1&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_gnu_library_2_1&quot; &gt;&amp;6
+-
+-    GLIBC21=&quot;$ac_cv_gnu_library_2_1&quot;
+-
+-
+-
+-
+-  echo &quot;$as_me:$LINENO: checking whether integer division by zero raises SIGFPE&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether integer division by zero raises SIGFPE... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${gt_cv_int_divbyzero_sigfpe+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++case $ac_lo in
++?*) fits_in_uint=$ac_lo;;
++'') result=? ;;
++esac
+ else
+-
+-      if test &quot;$cross_compiling&quot; = yes; then
+-
+-          # Guess based on the CPU.
+-          case &quot;$host_cpu&quot; in
+-            alpha* | i3456786 | m68k | s390*)
+-              gt_cv_int_divbyzero_sigfpe=&quot;guessing yes&quot;;;
+-            *)
+-              gt_cv_int_divbyzero_sigfpe=&quot;guessing no&quot;;;
+-          esac
+-
++  if test &quot;$cross_compiling&quot; = yes; then
++  { { echo &quot;$as_me:$LINENO: error: internal error: not reached in cross-compile&quot; &gt;&amp;5
++echo &quot;$as_me: error: internal error: not reached in cross-compile&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++long longval () { return sizeof (size_t) &lt;= sizeof (unsigned int); }
++unsigned long ulongval () { return sizeof (size_t) &lt;= sizeof (unsigned int); }
++#include &lt;stdio.h&gt;
+ #include &lt;stdlib.h&gt;
+-#include &lt;signal.h&gt;
+-
+-static void
+-#ifdef __cplusplus
+-sigfpe_handler (int sig)
+-#else
+-sigfpe_handler (sig) int sig;
+-#endif
++int
++main ()
+ {
+-  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
+-  exit (sig != SIGFPE);
+-}
+-
+-int x = 1;
+-int y = 0;
+-int z;
+-int nan;

+-int main ()
+-{
+-  signal (SIGFPE, sigfpe_handler);
+-/* IRIX and AIX (when &quot;xlc -qcheck&quot; is used) yield signal SIGTRAP.  */
+-#if (defined (__sgi) || defined (_AIX)) &amp;&amp; defined (SIGTRAP)
+-  signal (SIGTRAP, sigfpe_handler);
+-#endif
+-/* Linux/SPARC yields signal SIGILL.  */
+-#if defined (__sparc__) &amp;&amp; defined (__linux__)
+-  signal (SIGILL, sigfpe_handler);
+-#endif
++  FILE *f = fopen (&quot;conftest.val&quot;, &quot;w&quot;);
++  if (! f)
++    exit (1);
++  if ((sizeof (size_t) &lt;= sizeof (unsigned int)) &lt; 0)
++    {
++      long i = longval ();
++      if (i != (sizeof (size_t) &lt;= sizeof (unsigned int)))
++        exit (1);
++      fprintf (f, &quot;%ld\n&quot;, i);
++    }
++  else
++    {
++      unsigned long i = ulongval ();
++      if (i != (sizeof (size_t) &lt;= sizeof (unsigned int)))
++        exit (1);
++      fprintf (f, &quot;%lu\n&quot;, i);
++    }
++  exit (ferror (f) || fclose (f) != 0);

+-  z = x / y;
+-  nan = y / y;
+-  exit (1);
++  ;
++  return 0;
+ }
+-
+ _ACEOF
+ rm -f conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+@@ -11102,329 +25993,378 @@
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  gt_cv_int_divbyzero_sigfpe=yes
++  fits_in_uint=`cat conftest.val`
+ else
+   echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
+ echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ ( exit $ac_status )
+-gt_cv_int_divbyzero_sigfpe=no
++result=?
+ fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+-
+ fi
+-echo &quot;$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$gt_cv_int_divbyzero_sigfpe&quot; &gt;&amp;6
+-  case &quot;$gt_cv_int_divbyzero_sigfpe&quot; in
+-    *yes) value=1;;
+-    *) value=0;;
+-  esac
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define INTDIV0_RAISES_SIGFPE $value
+-_ACEOF
+-
+-
++rm -f conftest.val
++    if test &quot;$fits_in_uint&quot; = 1; then
++                  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stddef.h&gt;
++        extern size_t foo;
++        extern unsigned long foo;

+-  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${jm_ac_cv_header_inttypes_h+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;sys/types.h&gt;
+-#include &lt;inttypes.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+-uintmax_t i = (uintmax_t) -1;
++
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  jm_ac_cv_header_inttypes_h=yes
++  fits_in_uint=0
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-jm_ac_cv_header_inttypes_h=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-echo &quot;$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$jm_ac_cv_header_inttypes_h&quot; &gt;&amp;6
+-  if test $jm_ac_cv_header_inttypes_h = yes; then
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++    fi
++    if test -z &quot;$result&quot;; then
++      if test &quot;$fits_in_uint&quot; = 1; then
++        result=&quot;$res_hi$res_lo&quot;U
++      else
++        result=&quot;$res_hi$res_lo&quot;UL
++      fi
++    else
++            result='~(size_t)0'
++    fi
++  fi
++  echo &quot;$as_me:$LINENO: result: $result&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$result&quot; &gt;&amp;6
++  if test &quot;$result&quot; != yes; then

+ cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define HAVE_INTTYPES_H_WITH_UINTMAX 1
++#define SIZE_MAX $result
+ _ACEOF

+   fi


+-  echo &quot;$as_me:$LINENO: checking for stdint.h&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for stdint.h... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${jm_ac_cv_header_stdint_h+set}&quot; = set; then
++
++
++
++for ac_header in stdint.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+ else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;sys/types.h&gt;
+-#include &lt;stdint.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-uintmax_t i = (uintmax_t) -1;
+-  ;
+-  return 0;
+-}
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  jm_ac_cv_header_stdint_h=yes
++  ac_header_compiler=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-jm_ac_cv_header_stdint_h=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_header_compiler=no
+ fi
+-echo &quot;$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$jm_ac_cv_header_stdint_h&quot; &gt;&amp;6
+-  if test $jm_ac_cv_header_stdint_h = yes; then
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6

+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define HAVE_STDINT_H_WITH_UINTMAX 1
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
+ _ACEOF
+-
+-  fi
+-
+-
+-  echo &quot;$as_me:$LINENO: checking for unsigned long long&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for unsigned long long... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${ac_cv_type_unsigned_long_long+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-unsigned long long ull = 1; int i = 63;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+-unsigned long long ullmax = (unsigned long long) -1;
+-     return ull &lt;&lt; i | ull &gt;&gt; i | ullmax / ull | ullmax % ull;
+-  ;
+-  return 0;
+-}
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
+-  ac_status=$?
+-  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_try) 2&gt;&amp;5
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); }; }; then
+-  ac_cv_type_unsigned_long_long=yes
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_cv_type_unsigned_long_long=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  ac_header_preproc=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
+ fi
+-echo &quot;$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_cv_type_unsigned_long_long&quot; &gt;&amp;6
+-  if test $ac_cv_type_unsigned_long_long = yes; then
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6

+-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+-#define HAVE_UNSIGNED_LONG_LONG 1
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
+ _ACEOF

+-  fi
+-
+-
+-
+-
+-  if test $jm_ac_cv_header_inttypes_h = no &amp;&amp; test $jm_ac_cv_header_stdint_h = no; then
+-
+-    test $ac_cv_type_unsigned_long_long = yes \
+-      &amp;&amp; ac_type='unsigned long long' \
+-      || ac_type='unsigned long'
++fi

+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define uintmax_t $ac_type
+-_ACEOF
++done

+-  fi


+-  echo &quot;$as_me:$LINENO: checking for inttypes.h&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for inttypes.h... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${gt_cv_header_inttypes_h+set}&quot; = set; then
++    echo &quot;$as_me:$LINENO: checking for CFPreferencesCopyAppValue&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for CFPreferencesCopyAppValue... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_func_CFPreferencesCopyAppValue+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-
+-    cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;sys/types.h&gt;
+-#include &lt;inttypes.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;CFPreferences.h&gt;
+ int
+ main ()
+ {
+-
++CFPreferencesCopyAppValue(NULL, NULL)
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  gt_cv_header_inttypes_h=yes
++  gt_cv_func_CFPreferencesCopyAppValue=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-gt_cv_header_inttypes_h=no
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++gt_cv_func_CFPreferencesCopyAppValue=no
+ fi
+-echo &quot;$as_me:$LINENO: result: $gt_cv_header_inttypes_h&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$gt_cv_header_inttypes_h&quot; &gt;&amp;6
+-  if test $gt_cv_header_inttypes_h = yes; then
+-
+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define HAVE_INTTYPES_H 1
+-_ACEOF
+-
+-  fi
+-
+-
+-
+-  if test $gt_cv_header_inttypes_h = yes; then
+-    echo &quot;$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${gt_cv_inttypes_pri_broken+set}&quot; = set; then
+-  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-else
+-
+-        cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;inttypes.h&gt;
+-#ifdef PRId32
+-char *p = PRId32;
+-#endif
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;6
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
++_ACEOF
++
++  fi
++    echo &quot;$as_me:$LINENO: checking for CFLocaleCopyCurrent&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for CFLocaleCopyCurrent... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_func_CFLocaleCopyCurrent+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;CFLocale.h&gt;
+ int
+ main ()
+ {
+-
++CFLocaleCopyCurrent();
+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  gt_cv_inttypes_pri_broken=no
++  gt_cv_func_CFLocaleCopyCurrent=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-gt_cv_inttypes_pri_broken=yes
+-fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++gt_cv_func_CFLocaleCopyCurrent=no
+ fi
+-echo &quot;$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$gt_cv_inttypes_pri_broken&quot; &gt;&amp;6
+-  fi
+-  if test &quot;$gt_cv_inttypes_pri_broken&quot; = yes; then
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;6
++  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then

+-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define PRI_MACROS_BROKEN 1
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_CFLOCALECOPYCURRENT 1
+ _ACEOF

+   fi
++  INTL_MACOSX_LIBS=
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
++    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
++  fi
++


+       if test &quot;X$prefix&quot; = &quot;XNONE&quot;; then
+@@ -11450,6 +26390,19 @@
+ else
+   with_gnu_ld=no
+ fi;
++# Prepare PATH_SEPARATOR.
++# The user is always right.
++if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
++fi
+ ac_prog=ld
+ if test &quot;$GCC&quot; = yes; then
+   # Check if gcc -print-prog-name=ld gives a path.
+@@ -11501,11 +26454,12 @@
+       # Check to see if the program is GNU ld.  I'd rather use --version,
+       # but apparently some GNU ld's only accept -v.
+       # Break only if it was the GNU/non-GNU ld that we prefer.
+-      if &quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break
+-      else
+-        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break
+-      fi
++      case `&quot;$acl_cv_path_LD&quot; -v 2&gt;&amp;1 &lt; /dev/null` in
++      *GNU* | *'with BFD'*)
++        test &quot;$with_gnu_ld&quot; != no &amp;&amp; break ;;
++      *)
++        test &quot;$with_gnu_ld&quot; != yes &amp;&amp; break ;;
++      esac
+     fi
+   done
+   IFS=&quot;$ac_save_ifs&quot;
+@@ -11531,11 +26485,12 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+-if $LD -v 2&gt;&amp;1 &lt;/dev/null | egrep '(GNU|with BFD)' 1&gt;&amp;5; then
+-  acl_cv_prog_gnu_ld=yes
+-else
+-  acl_cv_prog_gnu_ld=no
+-fi
++case `$LD -v 2&gt;&amp;1 &lt;/dev/null` in
++*GNU* | *'with BFD'*)
++  acl_cv_prog_gnu_ld=yes ;;
++*)
++  acl_cv_prog_gnu_ld=no ;;
++esac
+ fi
+ echo &quot;$as_me:$LINENO: result: $acl_cv_prog_gnu_ld&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$acl_cv_prog_gnu_ld&quot; &gt;&amp;6
+@@ -11543,6 +26498,7 @@



++
+                                                 echo &quot;$as_me:$LINENO: checking for shared library run path origin&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for shared library run path origin... $ECHO_C&quot; &gt;&amp;6
+ if test &quot;${acl_cv_rpath+set}&quot; = set; then
+@@ -11565,8 +26521,6 @@
+   hardcode_libdir_separator=&quot;$acl_cv_hardcode_libdir_separator&quot;
+   hardcode_direct=&quot;$acl_cv_hardcode_direct&quot;
+   hardcode_minus_L=&quot;$acl_cv_hardcode_minus_L&quot;
+-  sys_lib_search_path_spec=&quot;$acl_cv_sys_lib_search_path_spec&quot;
+-  sys_lib_dlsearch_path_spec=&quot;$acl_cv_sys_lib_dlsearch_path_spec&quot;
+     # Check whether --enable-rpath or --disable-rpath was given.
+ if test &quot;${enable_rpath+set}&quot; = set; then
+   enableval=&quot;$enable_rpath&quot;
+@@ -11790,7 +26744,7 @@
+                 if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                   if test -n &quot;$GCC&quot;; then
+                     case $host_os in
+-                      linux*) haveit=yes;;
++                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                     esac
+                   fi
+                 fi
+@@ -11834,7 +26788,7 @@
+                       if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                         if test -n &quot;$GCC&quot;; then
+                           case $host_os in
+-                            linux*) haveit=yes;;
++                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                           esac
+                         fi
+                       fi
+@@ -11964,223 +26918,722 @@



++  echo &quot;$as_me:$LINENO: checking for ptrdiff_t&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for ptrdiff_t... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_type_ptrdiff_t+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++if ((ptrdiff_t *) 0)
++  return 0;
++if (sizeof (ptrdiff_t))
++  return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_type_ptrdiff_t=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_type_ptrdiff_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_type_ptrdiff_t&quot; &gt;&amp;6
++if test $ac_cv_type_ptrdiff_t = yes; then
++  :
++else
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define ptrdiff_t long
++_ACEOF
++
++
++fi
++
++
++
++
++
++
++
++
++
++
++
++for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
++stdlib.h string.h unistd.h sys/param.h
++do
++as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++else
++  # Is the header compilable?
++echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include &lt;$ac_header&gt;
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
++
++# Is the header present?
++echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
++cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;$ac_header&gt;
++_ACEOF
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
++  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &gt;/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z &quot;$ac_cpp_err&quot;; then
++  ac_header_preproc=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
++    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
++echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
++    (
++      cat &lt;&lt;\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
++    ;;
++esac
++echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
++mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
++strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
++__fsetlocking
++do
++as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
++echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
++if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
++   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
++    &lt;limits.h&gt; exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include &lt;limits.h&gt;
++#else
++# include &lt;assert.h&gt;
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  eval &quot;$as_ac_var=yes&quot;
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++eval &quot;$as_ac_var=no&quot;
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
++echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether _snprintf is declared&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether _snprintf is declared... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_have_decl__snprintf+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;
++int
++main ()
++{
++
++#ifndef _snprintf
++  char *p = (char *) _snprintf;
++#endif

++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_have_decl__snprintf=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_cv_have_decl__snprintf=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl__snprintf&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_have_decl__snprintf&quot; &gt;&amp;6
++  if test $ac_cv_have_decl__snprintf = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi

++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_DECL__SNPRINTF $gt_value
++_ACEOF



+-for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
+-stdlib.h string.h unistd.h sys/param.h
+-do
+-as_ac_Header=`echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
+-  echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking whether _snwprintf is declared&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether _snwprintf is declared... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_have_decl__snwprintf+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
+ else
+-  # Is the header compilable?
+-echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header usability... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-$ac_includes_default
+-#include &lt;$ac_header&gt;
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;
++int
++main ()
++{
++
++#ifndef _snwprintf
++  char *p = (char *) _snwprintf;
++#endif
++
++  ;
++  return 0;
++}
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  ac_header_compiler=yes
++  ac_cv_have_decl__snwprintf=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-ac_header_compiler=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_have_decl__snwprintf=no
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_compiler&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_have_decl__snwprintf&quot; &gt;&amp;6
++  if test $ac_cv_have_decl__snwprintf = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi

+-# Is the header present?
+-echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking $ac_header presence... $ECHO_C&quot; &gt;&amp;6
+-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-#include &lt;$ac_header&gt;
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_DECL__SNWPRINTF $gt_value
+ _ACEOF
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_cpp conftest.$ac_ext\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_cpp conftest.$ac_ext) 2&gt;conftest.er1
++
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether feof_unlocked is declared&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether feof_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_have_decl_feof_unlocked+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;
++int
++main ()
++{
++
++#ifndef feof_unlocked
++  char *p = (char *) feof_unlocked;
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
+-  egrep -v '^ *\+' conftest.er1 &gt;conftest.err
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
+   rm -f conftest.er1
+   cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+-  (exit $ac_status); } &gt;/dev/null; then
+-  if test -s conftest.err; then
+-    ac_cpp_err=$ac_c_preproc_warn_flag
+-  else
+-    ac_cpp_err=
+-  fi
+-else
+-  ac_cpp_err=yes
+-fi
+-if test -z &quot;$ac_cpp_err&quot;; then
+-  ac_header_preproc=yes
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_have_decl_feof_unlocked=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-  cat conftest.$ac_ext &gt;&amp;5
+-  ac_header_preproc=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_have_decl_feof_unlocked=no
+ fi
+-rm -f conftest.err conftest.$ac_ext
+-echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_header_preproc&quot; &gt;&amp;6
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_have_decl_feof_unlocked&quot; &gt;&amp;6
++  if test $ac_cv_have_decl_feof_unlocked = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi

+-# So?  What about this header?
+-case $ac_header_compiler:$ac_header_preproc in
+-  yes:no )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-  no:yes )
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: check for missing prerequisite headers?&quot; &gt;&amp;2;}
+-    { echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
+-echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;};;
+-esac
+-echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_header... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_Header+set}\&quot; = set&quot;; then
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_DECL_FEOF_UNLOCKED $gt_value
++_ACEOF
++
++
++
++  echo &quot;$as_me:$LINENO: checking whether fgets_unlocked is declared&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether fgets_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_have_decl_fgets_unlocked+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+-  eval &quot;$as_ac_Header=$ac_header_preproc&quot;
+-fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_Header'}'`&quot; &gt;&amp;6
++  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;
++int
++main ()
++{

+-fi
+-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
++#ifndef fgets_unlocked
++  char *p = (char *) fgets_unlocked;
++#endif
++
++  ;
++  return 0;
++}
+ _ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  ac_cv_have_decl_fgets_unlocked=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5

++ac_cv_have_decl_fgets_unlocked=no
+ fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_have_decl_fgets_unlocked&quot; &gt;&amp;6
++  if test $ac_cv_have_decl_fgets_unlocked = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi

+-done
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_DECL_FGETS_UNLOCKED $gt_value
++_ACEOF



+-for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
+-geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
+-strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
+-do
+-as_ac_var=`echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
+-echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking for $ac_func... $ECHO_C&quot; &gt;&amp;6
+-if eval &quot;test \&quot;\${$as_ac_var+set}\&quot; = set&quot;; then
++  echo &quot;$as_me:$LINENO: checking whether getc_unlocked is declared&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether getc_unlocked is declared... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${ac_cv_have_decl_getc_unlocked+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char $ac_func (); below.  */
+-#include &lt;assert.h&gt;
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern &quot;C&quot;
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;stdio.h&gt;
+ int
+ main ()
+ {
+-/* The GNU C library defines this for functions which it implements
+-    to always fail with ENOSYS.  Some functions are actually named
+-    something starting with __ and the normal name is an alias.  */
+-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+-choke me
+-#else
+-f = $ac_func;
++
++#ifndef getc_unlocked
++  char *p = (char *) getc_unlocked;
+ #endif

+   ;
+   return 0;
+ }
+ _ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++rm -f conftest.$ac_objext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  eval &quot;$as_ac_var=yes&quot;
++  ac_cv_have_decl_getc_unlocked=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-eval &quot;$as_ac_var=no&quot;
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++ac_cv_have_decl_getc_unlocked=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}`eval echo '${'$as_ac_var'}'`&quot; &gt;&amp;6
+-if test `eval echo '${'$as_ac_var'}'` = yes; then
+-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
+-#define `echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
++echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_cv_have_decl_getc_unlocked&quot; &gt;&amp;6
++  if test $ac_cv_have_decl_getc_unlocked = yes; then
++    gt_value=1
++  else
++    gt_value=0
++  fi
++
++cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
++#define HAVE_DECL_GETC_UNLOCKED $gt_value
+ _ACEOF

+-fi
+-done
++
++
++  case $gt_cv_func_printf_posix in
++    *yes) HAVE_POSIX_PRINTF=1 ;;
++    *) HAVE_POSIX_PRINTF=0 ;;
++  esac
++
++  if test &quot;$ac_cv_func_asprintf&quot; = yes; then
++    HAVE_ASPRINTF=1
++  else
++    HAVE_ASPRINTF=0
++  fi
++
++  if test &quot;$ac_cv_func_snprintf&quot; = yes; then
++    HAVE_SNPRINTF=1
++  else
++    HAVE_SNPRINTF=0
++  fi
++
++  if test &quot;$ac_cv_func_wprintf&quot; = yes; then
++    HAVE_WPRINTF=1
++  else
++    HAVE_WPRINTF=0
++  fi



+@@ -12222,16 +27675,13 @@
+     am_cv_func_iconv=&quot;no, consider installing GNU libiconv&quot;
+     am_cv_lib_iconv=no
+     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;stdlib.h&gt;
+ #include &lt;iconv.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -12244,11 +27694,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -12257,23 +27716,22 @@
+   am_cv_func_iconv=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+     if test &quot;$am_cv_func_iconv&quot; != yes; then
+       am_save_LIBS=&quot;$LIBS&quot;
+       LIBS=&quot;$LIBS $LIBICONV&quot;
+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;stdlib.h&gt;
+ #include &lt;iconv.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -12286,11 +27744,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -12300,9 +27767,11 @@
+         am_cv_func_iconv=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+       LIBS=&quot;$am_save_LIBS&quot;
+     fi

+@@ -12337,8 +27806,11 @@
+ else

+       cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */

+ #include &lt;stdlib.h&gt;
+ #include &lt;iconv.h&gt;
+@@ -12352,12 +27824,6 @@
+ size_t iconv();
+ #endif

+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -12368,11 +27834,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_compile\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_compile) 2&gt;&amp;5
++  (eval $ac_compile) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest.$ac_objext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest.$ac_objext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -12381,10 +27856,11 @@
+   am_cv_proto_iconv_arg1=&quot;&quot;
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ am_cv_proto_iconv_arg1=&quot;const&quot;
+ fi
+-rm -f conftest.$ac_objext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+       am_cv_proto_iconv=&quot;extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);&quot;
+ fi

+@@ -12407,15 +27883,12 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;langinfo.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -12426,11 +27899,20 @@
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -12439,10 +27921,12 @@
+   am_cv_langinfo_codeset=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ am_cv_langinfo_codeset=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext

+ fi
+ echo &quot;$as_me:$LINENO: result: $am_cv_langinfo_codeset&quot; &gt;&amp;5
+@@ -12459,19 +27943,16 @@

+   echo &quot;$as_me:$LINENO: checking for LC_MESSAGES&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking for LC_MESSAGES... $ECHO_C&quot; &gt;&amp;6
+-if test &quot;${am_cv_val_LC_MESSAGES+set}&quot; = set; then
++if test &quot;${gt_cv_val_LC_MESSAGES+set}&quot; = set; then
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;locale.h&gt;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -12482,27 +27963,38 @@
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); }; }; then
+-  am_cv_val_LC_MESSAGES=yes
++  gt_cv_val_LC_MESSAGES=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
+-am_cv_val_LC_MESSAGES=no
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_val_LC_MESSAGES=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+ fi
+-echo &quot;$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$am_cv_val_LC_MESSAGES&quot; &gt;&amp;6
+-  if test $am_cv_val_LC_MESSAGES = yes; then
++echo &quot;$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_val_LC_MESSAGES&quot; &gt;&amp;6
++  if test $gt_cv_val_LC_MESSAGES = yes; then

+ cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
+ #define HAVE_LC_MESSAGES 1
+@@ -12512,6 +28004,10 @@

+   fi

++  if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
++    CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++  fi
++
+                       for ac_prog in bison
+ do
+   # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
+@@ -12545,46 +28041,187 @@
+   echo &quot;$as_me:$LINENO: result: $INTLBISON&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$INTLBISON&quot; &gt;&amp;6
+ else
+-  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++  echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
++echo &quot;${ECHO_T}no&quot; &gt;&amp;6
++fi
++
++  test -n &quot;$INTLBISON&quot; &amp;&amp; break
++done
++
++  if test -z &quot;$INTLBISON&quot;; then
++    ac_verc_fail=yes
++  else
++        echo &quot;$as_me:$LINENO: checking version of bison&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking version of bison... $ECHO_C&quot; &gt;&amp;6
++    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
++    case $ac_prog_version in
++      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
++      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
++         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
++      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
++    esac
++    echo &quot;$as_me:$LINENO: result: $ac_prog_version&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$ac_prog_version&quot; &gt;&amp;6
++  fi
++  if test $ac_verc_fail = yes; then
++    INTLBISON=:
++  fi
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++    echo &quot;$as_me:$LINENO: checking for CFPreferencesCopyAppValue&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for CFPreferencesCopyAppValue... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_func_CFPreferencesCopyAppValue+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;CFPreferences.h&gt;
++int
++main ()
++{
++CFPreferencesCopyAppValue(NULL, NULL)
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  gt_cv_func_CFPreferencesCopyAppValue=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_func_CFPreferencesCopyAppValue=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue&quot; &gt;&amp;6
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
++
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
++_ACEOF
++
++  fi
++    echo &quot;$as_me:$LINENO: checking for CFLocaleCopyCurrent&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking for CFLocaleCopyCurrent... $ECHO_C&quot; &gt;&amp;6
++if test &quot;${gt_cv_func_CFLocaleCopyCurrent+set}&quot; = set; then
++  echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
++else
++  gt_save_CPPFLAGS=&quot;$CPPFLAGS&quot;
++     CPPFLAGS=&quot;$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers&quot;
++     gt_save_LIBS=&quot;$LIBS&quot;
++     LIBS=&quot;$LIBS -framework CoreFoundation&quot;
++     cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
++#include &lt;CFLocale.h&gt;
++int
++main ()
++{
++CFLocaleCopyCurrent();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); } &amp;&amp;
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; }; then
++  gt_cv_func_CFLocaleCopyCurrent=yes
++else
++  echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
++gt_cv_func_CFLocaleCopyCurrent=no
+ fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++     CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
++     LIBS=&quot;$gt_save_LIBS&quot;
++fi
++echo &quot;$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent&quot; &gt;&amp;6
++  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then

+-  test -n &quot;$INTLBISON&quot; &amp;&amp; break
+-done
++cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
++#define HAVE_CFLOCALECOPYCURRENT 1
++_ACEOF

+-  if test -z &quot;$INTLBISON&quot;; then
+-    ac_verc_fail=yes
+-  else
+-        echo &quot;$as_me:$LINENO: checking version of bison&quot; &gt;&amp;5
+-echo $ECHO_N &quot;checking version of bison... $ECHO_C&quot; &gt;&amp;6
+-    ac_prog_version=`$INTLBISON --version 2&gt;&amp;1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+-    case $ac_prog_version in
+-      '') ac_prog_version=&quot;v. ?.??, bad&quot;; ac_verc_fail=yes;;
+-      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+-         ac_prog_version=&quot;$ac_prog_version, ok&quot;; ac_verc_fail=no;;
+-      *) ac_prog_version=&quot;$ac_prog_version, bad&quot;; ac_verc_fail=yes;;
+-    esac
+-    echo &quot;$as_me:$LINENO: result: $ac_prog_version&quot; &gt;&amp;5
+-echo &quot;${ECHO_T}$ac_prog_version&quot; &gt;&amp;6
+   fi
+-  if test $ac_verc_fail = yes; then
+-    INTLBISON=:
++  INTL_MACOSX_LIBS=
++  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
++    INTL_MACOSX_LIBS=&quot;-Wl,-framework -Wl,CoreFoundation&quot;
+   fi




+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+   echo &quot;$as_me:$LINENO: checking whether NLS is requested&quot; &gt;&amp;5
+ echo $ECHO_N &quot;checking whether NLS is requested... $ECHO_C&quot; &gt;&amp;6
+     # Check whether --enable-nls or --disable-nls was given.
+@@ -12599,6 +28236,7 @@



++
+     BUILD_INCLUDED_LIBINTL=no
+     USE_INCLUDED_LIBINTL=no

+@@ -12636,33 +28274,39 @@
+   echo $ECHO_N &quot;(cached) $ECHO_C&quot; &gt;&amp;6
+ else
+   cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;libintl.h&gt;
+ extern int _nl_msg_cat_cntr;
+ extern int *_nl_domain_bindings;
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+ bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_domain_bindings
++return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_domain_bindings
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -12671,10 +28315,12 @@
+   gt_cv_func_gnugettext1_libc=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ gt_cv_func_gnugettext1_libc=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+ fi
+ echo &quot;$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc&quot; &gt;&amp;5
+ echo &quot;${ECHO_T}$gt_cv_func_gnugettext1_libc&quot; &gt;&amp;6
+@@ -12892,7 +28538,7 @@
+                 if test &quot;X$additional_includedir&quot; = &quot;X/usr/local/include&quot;; then
+                   if test -n &quot;$GCC&quot;; then
+                     case $host_os in
+-                      linux*) haveit=yes;;
++                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                     esac
+                   fi
+                 fi
+@@ -12936,7 +28582,7 @@
+                       if test &quot;X$additional_libdir&quot; = &quot;X/usr/local/lib&quot;; then
+                         if test -n &quot;$GCC&quot;; then
+                           case $host_os in
+-                            linux*) haveit=yes;;
++                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+                           esac
+                         fi
+                       fi
+@@ -13069,37 +28715,43 @@
+             gt_save_LIBS=&quot;$LIBS&quot;
+             LIBS=&quot;$LIBS $LIBINTL&quot;
+                         cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;libintl.h&gt;
+ extern int _nl_msg_cat_cntr;
+ extern
+ #ifdef __cplusplus
+ &quot;C&quot;
+ #endif
+-const char *_nl_expand_alias ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++const char *_nl_expand_alias (const char *);
+ int
+ main ()
+ {
+ bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
++return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -13108,44 +28760,52 @@
+   gt_cv_func_gnugettext1_libintl=yes
+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ gt_cv_func_gnugettext1_libintl=no
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+                         if test &quot;$gt_cv_func_gnugettext1_libintl&quot; != yes &amp;&amp; test -n &quot;$LIBICONV&quot;; then
+               LIBS=&quot;$LIBS $LIBICONV&quot;
+               cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
+-#line $LINENO &quot;configure&quot;
+-#include &quot;confdefs.h&quot;
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h &gt;&gt;conftest.$ac_ext
++cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
++/* end confdefs.h.  */
+ #include &lt;libintl.h&gt;
+ extern int _nl_msg_cat_cntr;
+ extern
+ #ifdef __cplusplus
+ &quot;C&quot;
+ #endif
+-const char *_nl_expand_alias ();
+-#ifdef F77_DUMMY_MAIN
+-#  ifdef __cplusplus
+-     extern &quot;C&quot;
+-#  endif
+-   int F77_DUMMY_MAIN() { return 1; }
+-#endif
++const char *_nl_expand_alias (const char *);
+ int
+ main ()
+ {
+ bindtextdomain (&quot;&quot;, &quot;&quot;);
+-return (int) gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
++return * gettext (&quot;&quot;) + _nl_msg_cat_cntr + *_nl_expand_alias (&quot;&quot;)
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_link\&quot;&quot;) &gt;&amp;5
+-  (eval $ac_link) 2&gt;&amp;5
++  (eval $ac_link) 2&gt;conftest.er1
+   ac_status=$?
++  grep -v '^ *+' conftest.er1 &gt;conftest.err
++  rm -f conftest.er1
++  cat conftest.err &gt;&amp;5
+   echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
+   (exit $ac_status); } &amp;&amp;
+-         { ac_try='test -s conftest$ac_exeext'
++         { ac_try='test -z &quot;$ac_c_werror_flag&quot;                         || test ! -s conftest.err'
++  { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
++  (eval $ac_try) 2&gt;&amp;5
++  ac_status=$?
++  echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
++  (exit $ac_status); }; } &amp;&amp;
++         { ac_try='test -s conftest$ac_exeext'
+   { (eval echo &quot;$as_me:$LINENO: \&quot;$ac_try\&quot;&quot;) &gt;&amp;5
+   (eval $ac_try) 2&gt;&amp;5
+   ac_status=$?
+@@ -13157,9 +28817,11 @@

+ else
+   echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
+-cat conftest.$ac_ext &gt;&amp;5
++sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
++
+ fi
+-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
+             fi
+             CPPFLAGS=&quot;$gt_save_CPPFLAGS&quot;
+             LIBS=&quot;$gt_save_LIBS&quot;
+@@ -13170,7 +28832,8 @@

+                                         if test &quot;$gt_cv_func_gnugettext1_libc&quot; = &quot;yes&quot; \
+            || { test &quot;$gt_cv_func_gnugettext1_libintl&quot; = &quot;yes&quot; \
+-                &amp;&amp; test &quot;$PACKAGE&quot; != gettext; }; then
++                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-runtime \
++                &amp;&amp; test &quot;$PACKAGE&quot; != gettext-tools; }; then
+           gt_use_preinstalled_gnugettext=yes
+         else
+                     LIBINTL=
+@@ -13185,20 +28848,28 @@
+       fi

+       if test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+-                INTLOBJS=&quot;\$(GETTOBJS)&quot;
+-        BUILD_INCLUDED_LIBINTL=yes
++                BUILD_INCLUDED_LIBINTL=yes
+         USE_INCLUDED_LIBINTL=yes
+         LIBINTL=&quot;\${top_builddir}/intl/libintl.a $LIBICONV&quot;
+         LTLIBINTL=&quot;\${top_builddir}/intl/libintl.a $LTLIBICONV&quot;
+         LIBS=`echo &quot; $LIBS &quot; | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+       fi

++      CATOBJEXT=
+       if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+          || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
+                 CATOBJEXT=.gmo
+       fi


++    if test -n &quot;$INTL_MACOSX_LIBS&quot;; then
++      if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
++         || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then
++                LIBINTL=&quot;$LIBINTL $INTL_MACOSX_LIBS&quot;
++        LTLIBINTL=&quot;$LTLIBINTL $INTL_MACOSX_LIBS&quot;
++      fi
++    fi
++
+     if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot; \
+        || test &quot;$nls_cv_use_gnu_gettext&quot; = &quot;yes&quot;; then

+@@ -13211,6 +28882,26 @@
+     fi
+   fi

++  echo &quot;$as_me:$LINENO: checking whether to use NLS&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking whether to use NLS... $ECHO_C&quot; &gt;&amp;6
++  echo &quot;$as_me:$LINENO: result: $USE_NLS&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$USE_NLS&quot; &gt;&amp;6
++  if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then
++    echo &quot;$as_me:$LINENO: checking where the gettext function comes from&quot; &gt;&amp;5
++echo $ECHO_N &quot;checking where the gettext function comes from... $ECHO_C&quot; &gt;&amp;6
++    if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
++      if test &quot;$gt_cv_func_gnugettext1_libintl&quot; = &quot;yes&quot;; then
++        gt_source=&quot;external libintl&quot;
++      else
++        gt_source=&quot;libc&quot;
++      fi
++    else
++      gt_source=&quot;included intl directory&quot;
++    fi
++    echo &quot;$as_me:$LINENO: result: $gt_source&quot; &gt;&amp;5
++echo &quot;${ECHO_T}$gt_source&quot; &gt;&amp;6
++  fi
++
+   if test &quot;$USE_NLS&quot; = &quot;yes&quot;; then

+     if test &quot;$gt_use_preinstalled_gnugettext&quot; = &quot;yes&quot;; then
+@@ -13260,7 +28951,7 @@
+   fi


+-            if test &quot;$PACKAGE&quot; = gettext; then
++            if test &quot;$PACKAGE&quot; = gettext-runtime || test &quot;$PACKAGE&quot; = gettext-tools; then
+       BUILD_INCLUDED_LIBINTL=yes
+     fi

+@@ -13268,7 +28959,6 @@



+-
+         nls_cv_header_intl=
+     nls_cv_header_libgt=

+@@ -13281,6 +28971,12 @@
+         GENCAT=gencat


++        INTLOBJS=
++    if test &quot;$USE_INCLUDED_LIBINTL&quot; = yes; then
++      INTLOBJS=&quot;\$(GETTOBJS)&quot;
++    fi
++
++
+         INTL_LIBTOOL_SUFFIX_PREFIX=


+@@ -13318,8 +29014,8 @@
+ fi


+-ac_config_files=&quot;$ac_config_files Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in ext/Makefile&quot;
+-ac_config_commands=&quot;$ac_config_commands default&quot;
++                                                                                                    ac_config_files=&quot;$ac_config_files Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in ext/Makefile&quot;
++          ac_config_commands=&quot;$ac_config_commands default&quot;
+ cat &gt;confcache &lt;&lt;\_ACEOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+@@ -13330,7 +29026,7 @@
+ # config.status only pays attention to the cache file if you give it
+ # the --recheck option to rerun configure.
+ #
+-# `ac_cv_env_foo' variables (set or unset) will be overriden when
++# `ac_cv_env_foo' variables (set or unset) will be overridden when
+ # loading this file, other *unset* `ac_cv_foo' will be assigned the
+ # following values.

+@@ -13348,13 +29044,13 @@
+       # `set' does not quote correctly, so add quotes (double-quote
+       # substitution turns \\\\ into \\, and sed turns \\ into \).
+       sed -n \
+-        &quot;s/'/'\\\\''/g;
+-              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p&quot;
++        &quot;s/'/'\\\\''/g;
++          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p&quot;
+       ;;
+     *)
+       # `set' quotes correctly as required by POSIX, so do not add quotes.
+       sed -n \
+-        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
++        &quot;s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p&quot;
+       ;;
+     esac;
+ } |
+@@ -13365,7 +29061,7 @@
+      t end
+      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+      : end' &gt;&gt;confcache
+-if cmp -s $cache_file confcache; then :; else
++if diff $cache_file confcache &gt;/dev/null 2&gt;&amp;1; then :; else
+   if test -w $cache_file; then
+     test &quot;x$cache_file&quot; != &quot;x/dev/null&quot; &amp;&amp; echo &quot;updating cache $cache_file&quot;
+     cat confcache &gt;$cache_file
+@@ -13384,18 +29080,33 @@
+ # trailing colons and then remove the whole line if VPATH becomes empty
+ # (actually we leave an empty line to preserve line numbers).
+ if test &quot;x$srcdir&quot; = x.; then
+-  ac_vpsub='/^[         ]*VPATH[         ]*=/{
++  ac_vpsub='/^[         ]*VPATH[         ]*=/{
+ s/:*\$(srcdir):*/:/;
+ s/:*\${srcdir}:*/:/;
+ s/:*@srcdir@:*/:/;
+-s/^\([^=]*=[         ]*\):*/\1/;
++s/^\([^=]*=[         ]*\):*/\1/;
+ s/:*$//;
+-s/^[^=]*=[         ]*$//;
++s/^[^=]*=[         ]*$//;
+ }'
+ fi

+ DEFS=-DHAVE_CONFIG_H

++ac_libobjs=
++ac_ltlibobjs=
++for ac_i in : $LIBOBJS; do test &quot;x$ac_i&quot; = x: &amp;&amp; continue
++  # 1. Remove the extension, and $U if already installed.
++  ac_i=`echo &quot;$ac_i&quot; |
++         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
++  # 2. Add them.
++  ac_libobjs=&quot;$ac_libobjs $ac_i\$U.$ac_objext&quot;
++  ac_ltlibobjs=&quot;$ac_ltlibobjs $ac_i&quot;'$U.lo'
++done
++LIBOBJS=$ac_libobjs
++
++LTLIBOBJS=$ac_ltlibobjs
++
++
+ if test -z &quot;${AMDEP_TRUE}&quot; &amp;&amp; test -z &quot;${AMDEP_FALSE}&quot;; then
+   { { echo &quot;$as_me:$LINENO: error: conditional \&quot;AMDEP\&quot; was never defined.
+ Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+@@ -13403,6 +29114,27 @@
+ Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+ fi
++if test -z &quot;${am__fastdepCC_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCC_FALSE}&quot;; then
++  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCC\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
++echo &quot;$as_me: error: conditional \&quot;am__fastdepCC\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++fi
++if test -z &quot;${am__fastdepCXX_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCXX_FALSE}&quot;; then
++  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
++echo &quot;$as_me: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++fi
++if test -z &quot;${am__fastdepCXX_TRUE}&quot; &amp;&amp; test -z &quot;${am__fastdepCXX_FALSE}&quot;; then
++  { { echo &quot;$as_me:$LINENO: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
++echo &quot;$as_me: error: conditional \&quot;am__fastdepCXX\&quot; was never defined.
++Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }
++fi
+ if test -z &quot;${COMPILE_INTL_TRUE}&quot; &amp;&amp; test -z &quot;${COMPILE_INTL_FALSE}&quot;; then
+   { { echo &quot;$as_me:$LINENO: error: conditional \&quot;COMPILE_INTL\&quot; was never defined.
+ Usually this means the macro was only invoked conditionally.&quot; &gt;&amp;5
+@@ -13424,11 +29156,12 @@
+ # configure, is in config.log if it exists.

+ debug=false
++ac_cs_recheck=false
++ac_cs_silent=false
+ SHELL=\${CONFIG_SHELL-$SHELL}
+ _ACEOF

+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
+-
+ ## --------------------- ##
+ ## M4sh Initialization.  ##
+ ## --------------------- ##
+@@ -13437,46 +29170,57 @@
+ if test -n &quot;${ZSH_VERSION+set}&quot; &amp;&amp; (emulate sh) &gt;/dev/null 2&gt;&amp;1; then
+   emulate sh
+   NULLCMD=:
++  # Zsh 3.x and 4.x performs word splitting on ${1+&quot;$@&quot;}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+&quot;$@&quot;}'='&quot;$@&quot;'
+ elif test -n &quot;${BASH_VERSION+set}&quot; &amp;&amp; (set -o posix) &gt;/dev/null 2&gt;&amp;1; then
+   set -o posix
+ fi
++DUALCASE=1; export DUALCASE # for MKS sh

+-# NLS nuisances.
+ # Support unset when possible.
+-if (FOO=FOO; unset FOO) &gt;/dev/null 2&gt;&amp;1; then
++if ( (MAIL=60; unset MAIL) || exit) &gt;/dev/null 2&gt;&amp;1; then
+   as_unset=unset
+ else
+   as_unset=false
+ fi

+-(set +x; test -n &quot;`(LANG=C; export LANG) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LANG || test &quot;${LANG+set}&quot; != set; } ||
+-      { LANG=C; export LANG; }
+-(set +x; test -n &quot;`(LC_ALL=C; export LC_ALL) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_ALL || test &quot;${LC_ALL+set}&quot; != set; } ||
+-      { LC_ALL=C; export LC_ALL; }
+-(set +x; test -n &quot;`(LC_TIME=C; export LC_TIME) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_TIME || test &quot;${LC_TIME+set}&quot; != set; } ||
+-      { LC_TIME=C; export LC_TIME; }
+-(set +x; test -n &quot;`(LC_CTYPE=C; export LC_CTYPE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_CTYPE || test &quot;${LC_CTYPE+set}&quot; != set; } ||
+-      { LC_CTYPE=C; export LC_CTYPE; }
+-(set +x; test -n &quot;`(LANGUAGE=C; export LANGUAGE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LANGUAGE || test &quot;${LANGUAGE+set}&quot; != set; } ||
+-      { LANGUAGE=C; export LANGUAGE; }
+-(set +x; test -n &quot;`(LC_COLLATE=C; export LC_COLLATE) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_COLLATE || test &quot;${LC_COLLATE+set}&quot; != set; } ||
+-      { LC_COLLATE=C; export LC_COLLATE; }
+-(set +x; test -n &quot;`(LC_NUMERIC=C; export LC_NUMERIC) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_NUMERIC || test &quot;${LC_NUMERIC+set}&quot; != set; } ||
+-      { LC_NUMERIC=C; export LC_NUMERIC; }
+-(set +x; test -n &quot;`(LC_MESSAGES=C; export LC_MESSAGES) 2&gt;&amp;1`&quot;) &amp;&amp;
+-    { $as_unset LC_MESSAGES || test &quot;${LC_MESSAGES+set}&quot; != set; } ||
+-      { LC_MESSAGES=C; export LC_MESSAGES; }
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='&gt; '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++  LC_TELEPHONE LC_TIME
++do
++  if (set +x; test -z &quot;`(eval $as_var=C; export $as_var) 2&gt;&amp;1`&quot;); then
++    eval $as_var=C; export $as_var
++  else
++    $as_unset $as_var
++  fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' &gt;/dev/null 2&gt;&amp;1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++if (basename /) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test &quot;X`basename / 2&gt;&amp;1`&quot; = &quot;X/&quot;; then
++  as_basename=basename
++else
++  as_basename=false
++fi


+ # Name of the executable.
+-as_me=`(basename &quot;$0&quot;) 2&gt;/dev/null ||
++as_me=`$as_basename &quot;$0&quot; ||
+ $as_expr X/&quot;$0&quot; : '.*/\([^/][^/]*\)/*$' \| \
+          X&quot;$0&quot; : 'X\(//\)$' \| \
+          X&quot;$0&quot; : 'X\(/\)$' \| \
+@@ -13487,6 +29231,7 @@
+             /^X\/\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`

++
+ # PATH needs CR, and LINENO needs CR and PATH.
+ # Avoid depending upon Character Ranges.
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+@@ -13497,15 +29242,15 @@

+ # The user is always right.
+ if test &quot;${PATH_SEPARATOR+set}&quot; != set; then
+-  echo &quot;#! /bin/sh&quot; &gt;conftest.sh
+-  echo  &quot;exit 0&quot;   &gt;&gt;conftest.sh
+-  chmod +x conftest.sh
+-  if (PATH=&quot;.;.&quot;; conftest.sh) &gt;/dev/null 2&gt;&amp;1; then
++  echo &quot;#! /bin/sh&quot; &gt;conf$$.sh
++  echo  &quot;exit 0&quot;   &gt;&gt;conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH=&quot;/nonexistent;.&quot;; conf$$.sh) &gt;/dev/null 2&gt;&amp;1; then
+     PATH_SEPARATOR=';'
+   else
+     PATH_SEPARATOR=:
+   fi
+-  rm -f conftest.sh
++  rm -f conf$$.sh
+ fi


+@@ -13554,6 +29299,8 @@
+   as_lineno_3=`(expr $as_lineno_1 + 1) 2&gt;/dev/null`
+   test &quot;x$as_lineno_1&quot; != &quot;x$as_lineno_2&quot; &amp;&amp;
+   test &quot;x$as_lineno_3&quot;  = &quot;x$as_lineno_2&quot; ') 2&gt;/dev/null; then
++             $as_unset BASH_ENV || test &quot;${BASH_ENV+set}&quot; != set || { BASH_ENV=; export BASH_ENV; }
++             $as_unset ENV || test &quot;${ENV+set}&quot; != set || { ENV=; export ENV; }
+              CONFIG_SHELL=$as_dir/$as_base
+              export CONFIG_SHELL
+              exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; ${1+&quot;$@&quot;}
+@@ -13627,13 +29374,20 @@
+ fi
+ rm -f conf$$ conf$$.exe conf$$.file

++if mkdir -p . 2&gt;/dev/null; then
++  as_mkdir_p=:
++else
++  test -d ./-p &amp;&amp; rmdir ./-p
++  as_mkdir_p=false
++fi
++
+ as_executable_p=&quot;test -f&quot;

+ # Sed expression to map a string onto a valid CPP name.
+-as_tr_cpp=&quot;sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g&quot;
++as_tr_cpp=&quot;eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'&quot;

+ # Sed expression to map a string onto a valid variable name.
+-as_tr_sh=&quot;sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g&quot;
++as_tr_sh=&quot;eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'&quot;


+ # IFS
+@@ -13643,7 +29397,7 @@
+ IFS=&quot;         $as_nl&quot;

+ # CDPATH.
+-$as_unset CDPATH || test &quot;${CDPATH+set}&quot; != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
++$as_unset CDPATH

+ exec 6&gt;&amp;1

+@@ -13660,7 +29414,7 @@
+ cat &gt;&amp;5 &lt;&lt;_CSEOF

+ This file was extended by $as_me, which was
+-generated by GNU Autoconf 2.53.  Invocation command line was
++generated by GNU Autoconf 2.59.  Invocation command line was

+   CONFIG_FILES    = $CONFIG_FILES
+   CONFIG_HEADERS  = $CONFIG_HEADERS
+@@ -13700,12 +29454,13 @@

+   -h, --help       print this help, then exit
+   -V, --version    print version number, then exit
++  -q, --quiet      do not print progress messages
+   -d, --debug      don't remove temporary files
+       --recheck    update $as_me by reconfiguring in the same conditions
+   --file=FILE[:TEMPLATE]
+-                   instantiate the configuration file FILE
++                   instantiate the configuration file FILE
+   --header=FILE[:TEMPLATE]
+-                   instantiate the configuration header FILE
++                   instantiate the configuration header FILE

+ Configuration files:
+ $config_files
+@@ -13722,11 +29477,10 @@
+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+ ac_cs_version=&quot;\\
+ config.status
+-configured by $0, generated by GNU Autoconf 2.53,
++configured by $0, generated by GNU Autoconf 2.59,
+   with options \\&quot;`echo &quot;$ac_configure_args&quot; | sed 's/[\\&quot;&quot;\`\$]/\\\\&amp;/g'`\\&quot;

+-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+-Free Software Foundation, Inc.
++Copyright (C) 2003 Free Software Foundation, Inc.
+ This config.status script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it.&quot;
+ srcdir=$srcdir
+@@ -13743,25 +29497,25 @@
+   --*=*)
+     ac_option=`expr &quot;x$1&quot; : 'x\([^=]*\)='`
+     ac_optarg=`expr &quot;x$1&quot; : 'x[^=]*=\(.*\)'`
+-    shift
+-    set dummy &quot;$ac_option&quot; &quot;$ac_optarg&quot; ${1+&quot;$@&quot;}
+-    shift
++    ac_shift=:
++    ;;
++  -*)
++    ac_option=$1
++    ac_optarg=$2
++    ac_shift=shift
+     ;;
+-  -*);;
+   *) # This is not an option, so the user has probably given explicit
+      # arguments.
++     ac_option=$1
+      ac_need_defaults=false;;
+   esac

+-  case $1 in
++  case $ac_option in
+   # Handling of the options.
+ _ACEOF
+-cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+-  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+-    echo &quot;running $SHELL $0 &quot; $ac_configure_args &quot; --no-create --no-recursion&quot;
+-    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
+-_ACEOF
+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF
++  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++    ac_cs_recheck=: ;;
+   --version | --vers* | -V )
+     echo &quot;$ac_cs_version&quot;; exit 0 ;;
+   --he | --h)
+@@ -13776,13 +29530,16 @@
+   --debug | --d* | -d )
+     debug=: ;;
+   --file | --fil | --fi | --f )
+-    shift
+-    CONFIG_FILES=&quot;$CONFIG_FILES $1&quot;
++    $ac_shift
++    CONFIG_FILES=&quot;$CONFIG_FILES $ac_optarg&quot;
+     ac_need_defaults=false;;
+   --header | --heade | --head | --hea )
+-    shift
+-    CONFIG_HEADERS=&quot;$CONFIG_HEADERS $1&quot;
++    $ac_shift
++    CONFIG_HEADERS=&quot;$CONFIG_HEADERS $ac_optarg&quot;
+     ac_need_defaults=false;;
++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
++    ac_cs_silent=: ;;

+   # This is an error.
+   -*) { { echo &quot;$as_me:$LINENO: error: unrecognized option: $1
+@@ -13797,6 +29554,20 @@
+   shift
+ done

++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++  exec 6&gt;/dev/null
++  ac_configure_extra_args=&quot;$ac_configure_extra_args --silent&quot;
++fi
++
++_ACEOF
++cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
++if \$ac_cs_recheck; then
++  echo &quot;running $SHELL $0 &quot; $ac_configure_args \$ac_configure_extra_args &quot; --no-create --no-recursion&quot; &gt;&amp;6
++  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++fi
++
+ _ACEOF

+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+@@ -13805,10 +29576,10 @@
+ #

+ AMDEP_TRUE=&quot;$AMDEP_TRUE&quot; ac_aux_dir=&quot;$ac_aux_dir&quot;
+-# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
+-    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
++# Capture the value of obsolete ALL_LINGUAS because we need it to compute
++    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
+     # from automake.
+-    eval 'ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
++    eval 'OBSOLETE_ALL_LINGUAS''=&quot;$ALL_LINGUAS&quot;'
+     # Capture the value of LINGUAS because we need it to compute CATALOGS.
+     LINGUAS=&quot;${LINGUAS-%UNSET%}&quot;

+@@ -13852,6 +29623,9 @@
+   test &quot;${CONFIG_COMMANDS+set}&quot; = set || CONFIG_COMMANDS=$config_commands
+ fi

++# Have a temporary directory for convenience.  Make it in the build tree
++# simply because there is no reason to put it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
+ # Create a temporary directory, and hook for its removal unless debugging.
+ $debug ||
+ {
+@@ -13860,17 +29634,17 @@
+ }

+ # Create a (secure) tmp directory for tmp files.
+-: ${TMPDIR=/tmp}
++
+ {
+-  tmp=`(umask 077 &amp;&amp; mktemp -d -q &quot;$TMPDIR/csXXXXXX&quot;) 2&gt;/dev/null` &amp;&amp;
++  tmp=`(umask 077 &amp;&amp; mktemp -d -q &quot;./confstatXXXXXX&quot;) 2&gt;/dev/null` &amp;&amp;
+   test -n &quot;$tmp&quot; &amp;&amp; test -d &quot;$tmp&quot;
+ }  ||
+ {
+-  tmp=$TMPDIR/cs$$-$RANDOM
++  tmp=./confstat$$-$RANDOM
+   (umask 077 &amp;&amp; mkdir $tmp)
+ } ||
+ {
+-   echo &quot;$me: cannot create a temporary directory in $TMPDIR&quot; &gt;&amp;2
++   echo &quot;$me: cannot create a temporary directory in .&quot; &gt;&amp;2
+    { (exit 1); exit 1; }
+ }

+@@ -13928,6 +29702,7 @@
+ s,@ac_ct_CC@,$ac_ct_CC,;t t
+ s,@EXEEXT@,$EXEEXT,;t t
+ s,@OBJEXT@,$OBJEXT,;t t
++s,@CYGPATH_W@,$CYGPATH_W,;t t
+ s,@PACKAGE@,$PACKAGE,;t t
+ s,@VERSION@,$VERSION,;t t
+ s,@ACLOCAL@,$ACLOCAL,;t t
+@@ -13935,13 +29710,17 @@
+ s,@AUTOMAKE@,$AUTOMAKE,;t t
+ s,@AUTOHEADER@,$AUTOHEADER,;t t
+ s,@MAKEINFO@,$MAKEINFO,;t t
+-s,@AMTAR@,$AMTAR,;t t
+ s,@install_sh@,$install_sh,;t t
+ s,@STRIP@,$STRIP,;t t
+ s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
+ s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
++s,@mkdir_p@,$mkdir_p,;t t
+ s,@AWK@,$AWK,;t t
+ s,@SET_MAKE@,$SET_MAKE,;t t
++s,@am__leading_dot@,$am__leading_dot,;t t
++s,@AMTAR@,$AMTAR,;t t
++s,@am__tar@,$am__tar,;t t
++s,@am__untar@,$am__untar,;t t
+ s,@DEPDIR@,$DEPDIR,;t t
+ s,@am__include@,$am__include,;t t
+ s,@am__quote@,$am__quote,;t t
+@@ -13949,6 +29728,8 @@
+ s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
+ s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
+ s,@CCDEPMODE@,$CCDEPMODE,;t t
++s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
++s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
+ s,@build@,$build,;t t
+ s,@build_cpu@,$build_cpu,;t t
+ s,@build_vendor@,$build_vendor,;t t
+@@ -13957,35 +29738,50 @@
+ s,@host_cpu@,$host_cpu,;t t
+ s,@host_vendor@,$host_vendor,;t t
+ s,@host_os@,$host_os,;t t
++s,@EGREP@,$EGREP,;t t
+ s,@LN_S@,$LN_S,;t t
+ s,@ECHO@,$ECHO,;t t
++s,@AR@,$AR,;t t
++s,@ac_ct_AR@,$ac_ct_AR,;t t
+ s,@RANLIB@,$RANLIB,;t t
+ s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+ s,@CPP@,$CPP,;t t
+-s,@LIBTOOL@,$LIBTOOL,;t t
+ s,@CXX@,$CXX,;t t
+ s,@CXXFLAGS@,$CXXFLAGS,;t t
+ s,@ac_ct_CXX@,$ac_ct_CXX,;t t
+ s,@CXXDEPMODE@,$CXXDEPMODE,;t t
++s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
++s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
++s,@CXXCPP@,$CXXCPP,;t t
++s,@F77@,$F77,;t t
++s,@FFLAGS@,$FFLAGS,;t t
++s,@ac_ct_F77@,$ac_ct_F77,;t t
++s,@LIBTOOL@,$LIBTOOL,;t t
+ s,@ALLOCA@,$ALLOCA,;t t
+ s,@GSM_VERSION@,$GSM_VERSION,;t t
+ s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
++s,@USE_NLS@,$USE_NLS,;t t
+ s,@MSGFMT@,$MSGFMT,;t t
+ s,@GMSGFMT@,$GMSGFMT,;t t
+ s,@XGETTEXT@,$XGETTEXT,;t t
+ s,@MSGMERGE@,$MSGMERGE,;t t
++s,@GLIBC2@,$GLIBC2,;t t
+ s,@GLIBC21@,$GLIBC21,;t t
++s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
++s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
++s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
++s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
++s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
+ s,@LIBICONV@,$LIBICONV,;t t
+ s,@LTLIBICONV@,$LTLIBICONV,;t t
+ s,@INTLBISON@,$INTLBISON,;t t
+-s,@USE_NLS@,$USE_NLS,;t t
+ s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
+ s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
+ s,@CATOBJEXT@,$CATOBJEXT,;t t
+-s,@INTLOBJS@,$INTLOBJS,;t t
+ s,@DATADIRNAME@,$DATADIRNAME,;t t
+ s,@INSTOBJEXT@,$INSTOBJEXT,;t t
+ s,@GENCAT@,$GENCAT,;t t
++s,@INTLOBJS@,$INTLOBJS,;t t
+ s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
+ s,@INTLLIBS@,$INTLLIBS,;t t
+ s,@LIBINTL@,$LIBINTL,;t t
+@@ -13993,6 +29789,8 @@
+ s,@POSUB@,$POSUB,;t t
+ s,@COMPILE_INTL_TRUE@,$COMPILE_INTL_TRUE,;t t
+ s,@COMPILE_INTL_FALSE@,$COMPILE_INTL_FALSE,;t t
++s,@LIBOBJS@,$LIBOBJS,;t t
++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+ CEOF

+ _ACEOF
+@@ -14022,9 +29820,9 @@
+       (echo ':t
+   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' &amp;&amp; cat $tmp/subs.frag) &gt;$tmp/subs-$ac_sed_frag.sed
+       if test -z &quot;$ac_sed_cmds&quot;; then
+-          ac_sed_cmds=&quot;sed -f $tmp/subs-$ac_sed_frag.sed&quot;
++        ac_sed_cmds=&quot;sed -f $tmp/subs-$ac_sed_frag.sed&quot;
+       else
+-          ac_sed_cmds=&quot;$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed&quot;
++        ac_sed_cmds=&quot;$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed&quot;
+       fi
+       ac_sed_frag=`expr $ac_sed_frag + 1`
+       ac_beg=$ac_end
+@@ -14042,46 +29840,51 @@
+   # Support &quot;outfile[:infile[:infile...]]&quot;, defaulting infile=&quot;outfile.in&quot;.
+   case $ac_file in
+   - | *:- | *:-:* ) # input from stdin
+-        cat &gt;$tmp/stdin
+-        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+-        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
++        cat &gt;$tmp/stdin
++        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
++        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+   *:* ) ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+-        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
++        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+   * )   ac_file_in=$ac_file.in ;;
+   esac

+   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+   ac_dir=`(dirname &quot;$ac_file&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$ac_file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
+-         X&quot;$ac_file&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
++         X&quot;$ac_file&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$ac_file&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+             /^X\(\/\/\)$/{ s//\1/; q; }
+             /^X\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`
+-  { case &quot;$ac_dir&quot; in
+-  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+-  *)                      as_incr_dir=.;;
+-esac
+-as_dummy=&quot;$ac_dir&quot;
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo &quot;$@&quot;`; do
+-  case $as_mkdir_dir in
+-    # Skip DOS drivespec
+-    ?:) as_incr_dir=$as_mkdir_dir ;;
+-    *)
+-      as_incr_dir=$as_incr_dir/$as_mkdir_dir
+-      test -d &quot;$as_incr_dir&quot; ||
+-        mkdir &quot;$as_incr_dir&quot; ||
+-        { { echo &quot;$as_me:$LINENO: error: cannot create \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot create \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-    ;;
+-  esac
+-done; }
++  { if $as_mkdir_p; then
++    mkdir -p &quot;$ac_dir&quot;
++  else
++    as_dir=&quot;$ac_dir&quot;
++    as_dirs=
++    while test ! -d &quot;$as_dir&quot;; do
++      as_dirs=&quot;$as_dir $as_dirs&quot;
++      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
++$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
++         X&quot;$as_dir&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
++echo X&quot;$as_dir&quot; |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++            /^X\(\/\/\)$/{ s//\1/; q; }
++            /^X\(\/\).*/{ s//\1/; q; }
++            s/.*/./; q'`
++    done
++    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
++  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }; }

+   ac_builddir=.

+@@ -14108,12 +29911,45 @@
+     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+     ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ esac
+-# Don't blindly perform a `cd &quot;$ac_dir&quot;/$ac_foo &amp;&amp; pwd` since $ac_foo can be
+-# absolute.
+-ac_abs_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_builddir &amp;&amp; pwd`
+-ac_abs_top_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_builddir &amp;&amp; pwd`
+-ac_abs_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_srcdir &amp;&amp; pwd`
+-ac_abs_top_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_srcdir &amp;&amp; pwd`
++
++# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir=&quot;$ac_dir&quot;;;
++*)
++  case &quot;$ac_dir&quot; in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
++  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac


+   case $INSTALL in
+@@ -14121,11 +29957,6 @@
+   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+   esac

+-  if test x&quot;$ac_file&quot; != x-; then
+-    { echo &quot;$as_me:$LINENO: creating $ac_file&quot; &gt;&amp;5
+-echo &quot;$as_me: creating $ac_file&quot; &gt;&amp;6;}
+-    rm -f &quot;$ac_file&quot;
+-  fi
+   # Let's still pretend it is `configure' which instantiates (i.e., don't
+   # use $as_me), people would be surprised to read:
+   #    /* config.h.  Generated by config.status.  */
+@@ -14135,7 +29966,7 @@
+     configure_input=&quot;$ac_file.  &quot;
+   fi
+   configure_input=$configure_input&quot;Generated from `echo $ac_file_in |
+-                                     sed 's,.*/,,'` by configure.&quot;
++                                     sed 's,.*/,,'` by configure.&quot;

+   # First look for the input files in the build tree, otherwise in the
+   # src tree.
+@@ -14144,26 +29975,32 @@
+       case $f in
+       -) echo $tmp/stdin ;;
+       [\\/$]*)
+-         # Absolute (can't be DOS-style, as IFS=:)
+-         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
++         # Absolute (can't be DOS-style, as IFS=:)
++         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+ echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+-         echo $f;;
++         echo &quot;$f&quot;;;
+       *) # Relative
+-         if test -f &quot;$f&quot;; then
+-           # Build tree
+-           echo $f
+-         elif test -f &quot;$srcdir/$f&quot;; then
+-           # Source tree
+-           echo $srcdir/$f
+-         else
+-           # /dev/null tree
+-           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
++         if test -f &quot;$f&quot;; then
++           # Build tree
++           echo &quot;$f&quot;
++         elif test -f &quot;$srcdir/$f&quot;; then
++           # Source tree
++           echo &quot;$srcdir/$f&quot;
++         else
++           # /dev/null tree
++           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+ echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+-         fi;;
++         fi;;
+       esac
+     done` || { (exit 1); exit 1; }
++
++  if test x&quot;$ac_file&quot; != x-; then
++    { echo &quot;$as_me:$LINENO: creating $ac_file&quot; &gt;&amp;5
++echo &quot;$as_me: creating $ac_file&quot; &gt;&amp;6;}
++    rm -f &quot;$ac_file&quot;
++  fi
+ _ACEOF
+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;_ACEOF
+   sed &quot;$ac_vpsub
+@@ -14203,12 +30040,12 @@
+ # NAME is the cpp macro being defined and VALUE is the value it is being given.
+ #
+ # ac_d sets the value in &quot;#define NAME VALUE&quot; lines.
+-ac_dA='s,^\([         ]*\)#\([         ]*define[         ][         ]*\)'
+-ac_dB='[         ].*$,\1#\2'
++ac_dA='s,^\([         ]*\)#\([         ]*define[         ][         ]*\)'
++ac_dB='[         ].*$,\1#\2'
+ ac_dC=' '
+ ac_dD=',;t'
+ # ac_u turns &quot;#undef NAME&quot; without trailing blanks into &quot;#define NAME VALUE&quot;.
+-ac_uA='s,^\([         ]*\)#\([         ]*\)undef\([         ][         ]*\)'
++ac_uA='s,^\([         ]*\)#\([         ]*\)undef\([         ][         ]*\)'
+ ac_uB='$,\1#\2define\3'
+ ac_uC=' '
+ ac_uD=',;t'
+@@ -14217,11 +30054,11 @@
+   # Support &quot;outfile[:infile[:infile...]]&quot;, defaulting infile=&quot;outfile.in&quot;.
+   case $ac_file in
+   - | *:- | *:-:* ) # input from stdin
+-        cat &gt;$tmp/stdin
+-        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+-        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
++        cat &gt;$tmp/stdin
++        ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
++        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+   *:* ) ac_file_in=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+-        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
++        ac_file=`echo &quot;$ac_file&quot; | sed 's,:.*,,'` ;;
+   * )   ac_file_in=$ac_file.in ;;
+   esac

+@@ -14235,28 +30072,29 @@
+       case $f in
+       -) echo $tmp/stdin ;;
+       [\\/$]*)
+-         # Absolute (can't be DOS-style, as IFS=:)
+-         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
++         # Absolute (can't be DOS-style, as IFS=:)
++         test -f &quot;$f&quot; || { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+ echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+-         echo $f;;
++         # Do quote $f, to prevent DOS paths from being IFS'd.
++         echo &quot;$f&quot;;;
+       *) # Relative
+-         if test -f &quot;$f&quot;; then
+-           # Build tree
+-           echo $f
+-         elif test -f &quot;$srcdir/$f&quot;; then
+-           # Source tree
+-           echo $srcdir/$f
+-         else
+-           # /dev/null tree
+-           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
++         if test -f &quot;$f&quot;; then
++           # Build tree
++           echo &quot;$f&quot;
++         elif test -f &quot;$srcdir/$f&quot;; then
++           # Source tree
++           echo &quot;$srcdir/$f&quot;
++         else
++           # /dev/null tree
++           { { echo &quot;$as_me:$LINENO: error: cannot find input file: $f&quot; &gt;&amp;5
+ echo &quot;$as_me: error: cannot find input file: $f&quot; &gt;&amp;2;}
+    { (exit 1); exit 1; }; }
+-         fi;;
++         fi;;
+       esac
+     done` || { (exit 1); exit 1; }
+   # Remove the trailing spaces.
+-  sed 's/[         ]*$//' $ac_file_inputs &gt;$tmp/in
++  sed 's/[         ]*$//' $ac_file_inputs &gt;$tmp/in

+ _ACEOF

+@@ -14279,9 +30117,9 @@
+ s,[\\$`],\\&amp;,g
+ t clear
+ : clear
+-s,^[         ]*#[         ]*define[         ][         ]*\([^         (][^         (]*\)\(([^)]*)\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
++s,^[         ]*#[         ]*define[         ][         ]*\([^         (][^         (]*\)\(([^)]*)\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+ t end
+-s,^[         ]*#[         ]*define[         ][         ]*\([^         ][^         ]*\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
++s,^[         ]*#[         ]*define[         ][         ]*\([^         ][^         ]*\)[         ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+ : end
+ _ACEOF
+ # If some macros were called several times there might be several times
+@@ -14295,13 +30133,13 @@
+ # example, in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ cat &gt;&gt;conftest.undefs &lt;&lt;\_ACEOF
+-s,^[         ]*#[         ]*undef[         ][         ]*[a-zA-Z_][a-zA-Z_0-9]*,/* &amp; */,
++s,^[         ]*#[         ]*undef[         ][         ]*[a-zA-Z_][a-zA-Z_0-9]*,/* &amp; */,
+ _ACEOF

+ # Break up conftest.defines because some shells have a limit on the size
+ # of here documents, and old seds have small limits too (100 cmds).
+ echo '  # Handle all the #define templates only if necessary.' &gt;&gt;$CONFIG_STATUS
+-echo '  if egrep &quot;^[         ]*#[         ]*define&quot; $tmp/in &gt;/dev/null; then' &gt;&gt;$CONFIG_STATUS
++echo '  if grep &quot;^[         ]*#[         ]*define&quot; $tmp/in &gt;/dev/null; then' &gt;&gt;$CONFIG_STATUS
+ echo '  # If there are no defines, we may have an empty if/fi' &gt;&gt;$CONFIG_STATUS
+ echo '  :' &gt;&gt;$CONFIG_STATUS
+ rm -f conftest.tail
+@@ -14310,7 +30148,7 @@
+   # Write a limited-size here document to $tmp/defines.sed.
+   echo '  cat &gt;$tmp/defines.sed &lt;&lt;CEOF' &gt;&gt;$CONFIG_STATUS
+   # Speed up: don't consider the non `#define' lines.
+-  echo '/^[         ]*#[         ]*define/!b' &gt;&gt;$CONFIG_STATUS
++  echo '/^[         ]*#[         ]*define/!b' &gt;&gt;$CONFIG_STATUS
+   # Work around the forget-to-reset-the-flag bug.
+   echo 't clr' &gt;&gt;$CONFIG_STATUS
+   echo ': clr' &gt;&gt;$CONFIG_STATUS
+@@ -14325,7 +30163,7 @@
+   mv conftest.tail conftest.defines
+ done
+ rm -f conftest.defines
+-echo '  fi # egrep' &gt;&gt;$CONFIG_STATUS
++echo '  fi # grep' &gt;&gt;$CONFIG_STATUS
+ echo &gt;&gt;$CONFIG_STATUS

+ # Break up conftest.undefs because some shells have a limit on the size
+@@ -14337,7 +30175,7 @@
+   # Write a limited-size here document to $tmp/undefs.sed.
+   echo '  cat &gt;$tmp/undefs.sed &lt;&lt;CEOF' &gt;&gt;$CONFIG_STATUS
+   # Speed up: don't consider the non `#undef'
+-  echo '/^[         ]*#[         ]*undef/!b' &gt;&gt;$CONFIG_STATUS
++  echo '/^[         ]*#[         ]*undef/!b' &gt;&gt;$CONFIG_STATUS
+   # Work around the forget-to-reset-the-flag bug.
+   echo 't clr' &gt;&gt;$CONFIG_STATUS
+   echo ': clr' &gt;&gt;$CONFIG_STATUS
+@@ -14365,41 +30203,46 @@
+   cat $tmp/in &gt;&gt;$tmp/config.h
+   rm -f $tmp/in
+   if test x&quot;$ac_file&quot; != x-; then
+-    if cmp -s $ac_file $tmp/config.h 2&gt;/dev/null; then
++    if diff $ac_file $tmp/config.h &gt;/dev/null 2&gt;&amp;1; then
+       { echo &quot;$as_me:$LINENO: $ac_file is unchanged&quot; &gt;&amp;5
+ echo &quot;$as_me: $ac_file is unchanged&quot; &gt;&amp;6;}
+     else
+       ac_dir=`(dirname &quot;$ac_file&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$ac_file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
+-         X&quot;$ac_file&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$ac_file&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$ac_file&quot; : 'X\(//\)$' \| \
++         X&quot;$ac_file&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$ac_file&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+             /^X\(\/\/\)$/{ s//\1/; q; }
+             /^X\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`
+-      { case &quot;$ac_dir&quot; in
+-  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+-  *)                      as_incr_dir=.;;
+-esac
+-as_dummy=&quot;$ac_dir&quot;
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo &quot;$@&quot;`; do
+-  case $as_mkdir_dir in
+-    # Skip DOS drivespec
+-    ?:) as_incr_dir=$as_mkdir_dir ;;
+-    *)
+-      as_incr_dir=$as_incr_dir/$as_mkdir_dir
+-      test -d &quot;$as_incr_dir&quot; ||
+-        mkdir &quot;$as_incr_dir&quot; ||
+-        { { echo &quot;$as_me:$LINENO: error: cannot create \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot create \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-    ;;
+-  esac
+-done; }
++      { if $as_mkdir_p; then
++    mkdir -p &quot;$ac_dir&quot;
++  else
++    as_dir=&quot;$ac_dir&quot;
++    as_dirs=
++    while test ! -d &quot;$as_dir&quot;; do
++      as_dirs=&quot;$as_dir $as_dirs&quot;
++      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
++$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
++         X&quot;$as_dir&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
++echo X&quot;$as_dir&quot; |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++            /^X\(\/\/\)$/{ s//\1/; q; }
++            /^X\(\/\).*/{ s//\1/; q; }
++            s/.*/./; q'`
++    done
++    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
++  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }; }

+       rm -f $ac_file
+       mv $tmp/config.h $ac_file
+@@ -14408,13 +30251,29 @@
+     cat $tmp/config.h
+     rm -f $tmp/config.h
+   fi
+-  # Run the commands associated with the file.
+-  case $ac_file in
+-    gsm_config.h ) # update the timestamp
+-echo 'timestamp for gsm_config.h' &gt;&quot;./stamp-h1&quot;
+- ;;
++# Compute $ac_file's index in $config_headers.
++_am_stamp_count=1
++for _am_header in $config_headers :; do
++  case $_am_header in
++    $ac_file | $ac_file:* )
++      break ;;
++    * )
++      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+   esac
+ done
++echo &quot;timestamp for $ac_file&quot; &gt;`(dirname $ac_file) 2&gt;/dev/null ||
++$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++         X$ac_file : 'X\(//\)[^/]' \| \
++         X$ac_file : 'X\(//\)$' \| \
++         X$ac_file : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
++echo X$ac_file |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++            /^X\(\/\/\)$/{ s//\1/; q; }
++            /^X\(\/\).*/{ s//\1/; q; }
++            s/.*/./; q'`/stamp-h$_am_stamp_count
++done
+ _ACEOF
+ cat &gt;&gt;$CONFIG_STATUS &lt;&lt;\_ACEOF

+@@ -14426,16 +30285,41 @@
+   ac_source=`echo &quot;$ac_file&quot; | sed 's,[^:]*:,,'`
+   ac_dir=`(dirname &quot;$ac_dest&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$ac_dest&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$ac_dest&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$ac_dest&quot; : 'X\(//\)$' \| \
+-         X&quot;$ac_dest&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$ac_dest&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$ac_dest&quot; : 'X\(//\)$' \| \
++         X&quot;$ac_dest&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$ac_dest&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+             /^X\(\/\/\)$/{ s//\1/; q; }
+             /^X\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`
++  { if $as_mkdir_p; then
++    mkdir -p &quot;$ac_dir&quot;
++  else
++    as_dir=&quot;$ac_dir&quot;
++    as_dirs=
++    while test ! -d &quot;$as_dir&quot;; do
++      as_dirs=&quot;$as_dir $as_dirs&quot;
++      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
++$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
++         X&quot;$as_dir&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
++echo X&quot;$as_dir&quot; |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++            /^X\(\/\/\)$/{ s//\1/; q; }
++            /^X\(\/\).*/{ s//\1/; q; }
++            s/.*/./; q'`
++    done
++    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
++  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot create directory \&quot;$ac_dir\&quot;&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }; }
++
+   ac_builddir=.

+ if test &quot;$ac_dir&quot; != .; then
+@@ -14461,12 +30345,45 @@
+     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+     ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ esac
+-# Don't blindly perform a `cd &quot;$ac_dir&quot;/$ac_foo &amp;&amp; pwd` since $ac_foo can be
+-# absolute.
+-ac_abs_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_builddir &amp;&amp; pwd`
+-ac_abs_top_builddir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_builddir &amp;&amp; pwd`
+-ac_abs_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_srcdir &amp;&amp; pwd`
+-ac_abs_top_srcdir=`cd &quot;$ac_dir&quot; &amp;&amp; cd $ac_top_srcdir &amp;&amp; pwd`
++
++# Do not use `cd foo &amp;&amp; pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir=&quot;$ac_dir&quot;;;
++*)
++  case &quot;$ac_dir&quot; in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir=&quot;$ac_dir&quot;;;
++  *) ac_abs_builddir=`pwd`/&quot;$ac_dir&quot;;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac


+   { echo &quot;$as_me:$LINENO: executing $ac_dest commands&quot; &gt;&amp;5
+@@ -14484,10 +30401,10 @@
+   if grep '^#.*generated by automake' $mf &gt; /dev/null 2&gt;&amp;1; then
+     dirpart=`(dirname &quot;$mf&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$mf&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$mf&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$mf&quot; : 'X\(//\)$' \| \
+-         X&quot;$mf&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$mf&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$mf&quot; : 'X\(//\)$' \| \
++         X&quot;$mf&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$mf&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+@@ -14497,61 +30414,60 @@
+   else
+     continue
+   fi
+-  grep '^DEP_FILES *= *[^ #]' &lt; &quot;$mf&quot; &gt; /dev/null || continue
+-  # Extract the definition of DEP_FILES from the Makefile without
+-  # running `make'.
+-  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' &lt; &quot;$mf&quot;`
++  # Extract the definition of DEPDIR, am__include, and am__quote
++  # from the Makefile without running `make'.
++  DEPDIR=`sed -n 's/^DEPDIR = //p' &lt; &quot;$mf&quot;`
+   test -z &quot;$DEPDIR&quot; &amp;&amp; continue
++  am__include=`sed -n 's/^am__include = //p' &lt; &quot;$mf&quot;`
++  test -z &quot;am__include&quot; &amp;&amp; continue
++  am__quote=`sed -n 's/^am__quote = //p' &lt; &quot;$mf&quot;`
+   # When using ansi2knr, U may be empty or an underscore; expand it
+-  U=`sed -n -e '/^U = / s///p' &lt; &quot;$mf&quot;`
+-  test -d &quot;$dirpart/$DEPDIR&quot; || mkdir &quot;$dirpart/$DEPDIR&quot;
+-  # We invoke sed twice because it is the simplest approach to
+-  # changing $(DEPDIR) to its actual value in the expansion.
+-  for file in `sed -n -e '
+-    /^DEP_FILES = .*\\\\$/ {
+-      s/^DEP_FILES = //
+-      :loop
+-        s/\\\\$//
+-        p
+-        n
+-        /\\\\$/ b loop
+-      p
+-    }
+-    /^DEP_FILES = / s/^DEP_FILES = //p' &lt; &quot;$mf&quot; | \
++  U=`sed -n 's/^U = //p' &lt; &quot;$mf&quot;`
++  # Find all dependency output files, they are included files with
++  # $(DEPDIR) in their names.  We invoke sed twice because it is the
++  # simplest approach to changing $(DEPDIR) to its actual value in the
++  # expansion.
++  for file in `sed -n &quot;
++    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote&quot;'$/\1/p' &lt;&quot;$mf&quot; | \
+        sed -e 's/\$(DEPDIR)/'&quot;$DEPDIR&quot;'/g' -e 's/\$U/'&quot;$U&quot;'/g'`; do
+     # Make sure the directory exists.
+     test -f &quot;$dirpart/$file&quot; &amp;&amp; continue
+     fdir=`(dirname &quot;$file&quot;) 2&gt;/dev/null ||
+ $as_expr X&quot;$file&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+-         X&quot;$file&quot; : 'X\(//\)[^/]' \| \
+-         X&quot;$file&quot; : 'X\(//\)$' \| \
+-         X&quot;$file&quot; : 'X\(/\)' \| \
+-         .     : '\(.\)' 2&gt;/dev/null ||
++         X&quot;$file&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$file&quot; : 'X\(//\)$' \| \
++         X&quot;$file&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
+ echo X&quot;$file&quot; |
+     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+             /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+             /^X\(\/\/\)$/{ s//\1/; q; }
+             /^X\(\/\).*/{ s//\1/; q; }
+             s/.*/./; q'`
+-    { case $dirpart/$fdir in
+-  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+-  *)                      as_incr_dir=.;;
+-esac
+-as_dummy=$dirpart/$fdir
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo &quot;$@&quot;`; do
+-  case $as_mkdir_dir in
+-    # Skip DOS drivespec
+-    ?:) as_incr_dir=$as_mkdir_dir ;;
+-    *)
+-      as_incr_dir=$as_incr_dir/$as_mkdir_dir
+-      test -d &quot;$as_incr_dir&quot; ||
+-        mkdir &quot;$as_incr_dir&quot; ||
+-        { { echo &quot;$as_me:$LINENO: error: cannot create $dirpart/$fdir&quot; &gt;&amp;5
+-echo &quot;$as_me: error: cannot create $dirpart/$fdir&quot; &gt;&amp;2;}
+-   { (exit 1); exit 1; }; }
+-    ;;
+-  esac
+-done; }
++    { if $as_mkdir_p; then
++    mkdir -p $dirpart/$fdir
++  else
++    as_dir=$dirpart/$fdir
++    as_dirs=
++    while test ! -d &quot;$as_dir&quot;; do
++      as_dirs=&quot;$as_dir $as_dirs&quot;
++      as_dir=`(dirname &quot;$as_dir&quot;) 2&gt;/dev/null ||
++$as_expr X&quot;$as_dir&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)[^/]' \| \
++         X&quot;$as_dir&quot; : 'X\(//\)$' \| \
++         X&quot;$as_dir&quot; : 'X\(/\)' \| \
++         .     : '\(.\)' 2&gt;/dev/null ||
++echo X&quot;$as_dir&quot; |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++            /^X\(\/\/\)$/{ s//\1/; q; }
++            /^X\(\/\).*/{ s//\1/; q; }
++            s/.*/./; q'`
++    done
++    test ! -n &quot;$as_dirs&quot; || mkdir $as_dirs
++  fi || { { echo &quot;$as_me:$LINENO: error: cannot create directory $dirpart/$fdir&quot; &gt;&amp;5
++echo &quot;$as_me: error: cannot create directory $dirpart/$fdir&quot; &gt;&amp;2;}
++   { (exit 1); exit 1; }; }; }

+     # echo &quot;creating $dirpart/$file&quot;
+     echo '# dummy' &gt; &quot;$dirpart/$file&quot;
+@@ -14578,35 +30494,51 @@
+           /*) top_srcdir=&quot;$ac_given_srcdir&quot; ;;
+           *)  top_srcdir=&quot;$ac_dots$ac_given_srcdir&quot; ;;
+         esac
++        # Treat a directory as a PO directory if and only if it has a
++        # POTFILES.in file. This allows packages to have multiple PO
++        # directories under different names or in different locations.
+         if test -f &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot;; then
+           rm -f &quot;$ac_dir/POTFILES&quot;
+           test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/POTFILES&quot; || echo &quot;creating $ac_dir/POTFILES&quot;
+           cat &quot;$ac_given_srcdir/$ac_dir/POTFILES.in&quot; | sed -e &quot;/^#/d&quot; -e &quot;/^[         ]*\$/d&quot; -e &quot;s,.*,     $top_srcdir/&amp; \\\\,&quot; | sed -e &quot;\$s/\(.*\) \\\\/\1/&quot; &gt; &quot;$ac_dir/POTFILES&quot;
+-          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
++          POMAKEFILEDEPS=&quot;POTFILES.in&quot;
++          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
+           # on $ac_dir but don't depend on user-specified configuration
+           # parameters.
+           if test -f &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;; then
+             # The LINGUAS file contains the set of available languages.
+-            if test -n &quot;$ALL_LINGUAS&quot;; then
++            if test -n &quot;$OBSOLETE_ALL_LINGUAS&quot;; then
+               test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: setting ALL_LINGUAS in configure.in is obsolete&quot; || echo &quot;setting ALL_LINGUAS in configure.in is obsolete&quot;
+             fi
+-            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
++            ALL_LINGUAS_=`sed -e &quot;/^#/d&quot; -e &quot;s/#.*//&quot; &quot;$ac_given_srcdir/$ac_dir/LINGUAS&quot;`
+             # Hide the ALL_LINGUAS assigment from automake.
+             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
++            POMAKEFILEDEPS=&quot;$POMAKEFILEDEPS LINGUAS&quot;
++          else
++            # The set of available languages was given in configure.in.
++            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
+           fi
++          # Compute POFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
++          # Compute UPDATEPOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
++          # Compute DUMMYPOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
++          # Compute GMOFILES
++          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
+           case &quot;$ac_given_srcdir&quot; in
+             .) srcdirpre= ;;
+             *) srcdirpre='$(srcdir)/' ;;
+           esac
+           POFILES=
+-          GMOFILES=
+           UPDATEPOFILES=
+           DUMMYPOFILES=
++          GMOFILES=
+           for lang in $ALL_LINGUAS; do
+             POFILES=&quot;$POFILES $srcdirpre$lang.po&quot;
+-            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+             UPDATEPOFILES=&quot;$UPDATEPOFILES $lang.po-update&quot;
+             DUMMYPOFILES=&quot;$DUMMYPOFILES $lang.nop&quot;
++            GMOFILES=&quot;$GMOFILES $srcdirpre$lang.gmo&quot;
+           done
+           # CATALOGS depends on both $ac_dir and the user's LINGUAS
+           # environment variable.
+@@ -14641,7 +30573,7 @@
+             done
+           fi
+           test -n &quot;$as_me&quot; &amp;&amp; echo &quot;$as_me: creating $ac_dir/Makefile&quot; || echo &quot;creating $ac_dir/Makefile&quot;
+-          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
++          sed -e &quot;/^POTFILES =/r $ac_dir/POTFILES&quot; -e &quot;/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars&quot; -e &quot;s|@POFILES@|$POFILES|g&quot; -e &quot;s|@UPDATEPOFILES@|$UPDATEPOFILES|g&quot; -e &quot;s|@DUMMYPOFILES@|$DUMMYPOFILES|g&quot; -e &quot;s|@GMOFILES@|$GMOFILES|g&quot; -e &quot;s|@CATALOGS@|$CATALOGS|g&quot; -e &quot;s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g&quot; &quot;$ac_dir/Makefile.in&quot; &gt; &quot;$ac_dir/Makefile&quot;
+           for f in &quot;$ac_given_srcdir/$ac_dir&quot;/Rules-*; do
+             if test -f &quot;$f&quot;; then
+               case &quot;$f&quot; in
+@@ -14677,8 +30609,11 @@
+ # need to make the FD available again.
+ if test &quot;$no_create&quot; != yes; then
+   ac_cs_success=:
++  ac_config_status_args=
++  test &quot;$silent&quot; = yes &amp;&amp;
++    ac_config_status_args=&quot;$ac_config_status_args --quiet&quot;
+   exec 5&gt;/dev/null
+-  $SHELL $CONFIG_STATUS || ac_cs_success=false
++  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+   exec 5&gt;&gt;config.log
+   # Use ||, not &amp;&amp;, to avoid exiting from the if with $? = 1, which
+   # would make configure fail if this is the last instruction.
+--- gsmlib-1.10.orig/gsm_config.h.in
++++ gsmlib-1.10/gsm_config.h.in
+@@ -55,25 +55,50 @@
+ /* Define to 1 if you have the &lt;argz.h&gt; header file. */
+ #undef HAVE_ARGZ_H

++/* Define to 1 if you have the `asprintf' function. */
++#undef HAVE_ASPRINTF
++
++/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
++   CoreFoundation framework. */
++#undef HAVE_CFLOCALECOPYCURRENT
++
++/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
++   the CoreFoundation framework. */
++#undef HAVE_CFPREFERENCESCOPYAPPVALUE
++
+ /* Define if the GNU dcgettext() function is already present or preinstalled.
+    */
+ #undef HAVE_DCGETTEXT

++/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
++   don't. */
++#undef HAVE_DECL_FEOF_UNLOCKED
++
++/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
++   you don't. */
++#undef HAVE_DECL_FGETS_UNLOCKED
++
++/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
++   don't. */
++#undef HAVE_DECL_GETC_UNLOCKED
++
++/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
++   don't. */
++#undef HAVE_DECL__SNPRINTF
++
++/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
++   don't. */
++#undef HAVE_DECL__SNWPRINTF
++
+ /* Define to 1 if you have the &lt;dlfcn.h&gt; header file. */
+ #undef HAVE_DLFCN_H

+-/* Define to 1 if you have the `feof_unlocked' function. */
+-#undef HAVE_FEOF_UNLOCKED
+-
+-/* Define to 1 if you have the `fgets_unlocked' function. */
+-#undef HAVE_FGETS_UNLOCKED
++/* Define to 1 if you have the `fwprintf' function. */
++#undef HAVE_FWPRINTF

+ /* Define to 1 if you have the `getcwd' function. */
+ #undef HAVE_GETCWD

+-/* Define to 1 if you have the `getc_unlocked' function. */
+-#undef HAVE_GETC_UNLOCKED
+-
+ /* Define to 1 if you have the `getegid' function. */
+ #undef HAVE_GETEGID

+@@ -95,6 +120,9 @@
+ /* Define if you have the iconv() function. */
+ #undef HAVE_ICONV

++/* Define if you have the 'intmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;. */
++#undef HAVE_INTMAX_T
++
+ /* Define if &lt;inttypes.h&gt; exists and doesn't clash with &lt;sys/types.h&gt;. */
+ #undef HAVE_INTTYPES_H

+@@ -120,6 +148,12 @@
+ /* Define to 1 if you have the &lt;locale.h&gt; header file. */
+ #undef HAVE_LOCALE_H

++/* Define if you have the 'long double' type. */
++#undef HAVE_LONG_DOUBLE
++
++/* Define if you have the 'long long' type. */
++#undef HAVE_LONG_LONG
++
+ /* Define to 1 if you have the &lt;malloc.h&gt; header file. */
+ #undef HAVE_MALLOC_H

+@@ -141,6 +175,9 @@
+ /* Define to 1 if you have the &lt;nl_types.h&gt; header file. */
+ #undef HAVE_NL_TYPES_H

++/* Define if your printf() function supports format strings with positions. */
++#undef HAVE_POSIX_PRINTF
++
+ /* Define to 1 if you have the `putenv' function. */
+ #undef HAVE_PUTENV

+@@ -150,6 +187,9 @@
+ /* Define to 1 if you have the `setlocale' function. */
+ #undef HAVE_SETLOCALE

++/* Define to 1 if you have the `snprintf' function. */
++#undef HAVE_SNPRINTF
++
+ /* Define to 1 if you have the &lt;stddef.h&gt; header file. */
+ #undef HAVE_STDDEF_H

+@@ -193,12 +233,24 @@
+ /* Define to 1 if you have the `tsearch' function. */
+ #undef HAVE_TSEARCH

++/* Define if you have the 'uintmax_t' type in &lt;stdint.h&gt; or &lt;inttypes.h&gt;. */
++#undef HAVE_UINTMAX_T
++
+ /* Define to 1 if you have the &lt;unistd.h&gt; header file. */
+ #undef HAVE_UNISTD_H

+-/* Define if you have the unsigned long long type. */
++/* Define if you have the 'unsigned long long' type. */
+ #undef HAVE_UNSIGNED_LONG_LONG

++/* Define if you have the 'wchar_t' type. */
++#undef HAVE_WCHAR_T
++
++/* Define to 1 if you have the `wcslen' function. */
++#undef HAVE_WCSLEN
++
++/* Define if you have the 'wint_t' type. */
++#undef HAVE_WINT_T
++
+ /* Define to 1 if you have the `__argz_count' function. */
+ #undef HAVE___ARGZ_COUNT

+@@ -208,6 +260,9 @@
+ /* Define to 1 if you have the `__argz_stringify' function. */
+ #undef HAVE___ARGZ_STRINGIFY

++/* Define to 1 if you have the `__fsetlocking' function. */
++#undef HAVE___FSETLOCKING
++
+ /* Define as const if the declaration of iconv() needs const. */
+ #undef ICONV_CONST

+@@ -244,12 +299,16 @@
+ /* The size of a `unsigned short int', as computed by sizeof. */
+ #undef SIZEOF_UNSIGNED_SHORT_INT

++/* Define as the maximum value of type 'size_t', if the system doesn't define
++   it. */
++#undef SIZE_MAX
++
+ /* If using the C implementation of alloca, define if you know the
+    direction of stack growth for your system; otherwise it will be
+    automatically deduced at run-time.
+-        STACK_DIRECTION &gt; 0 =&gt; grows toward higher addresses
+-        STACK_DIRECTION &lt; 0 =&gt; grows toward lower addresses
+-        STACK_DIRECTION = 0 =&gt; direction of growth unknown */
++        STACK_DIRECTION &gt; 0 =&gt; grows toward higher addresses
++        STACK_DIRECTION &lt; 0 =&gt; grows toward lower addresses
++        STACK_DIRECTION = 0 =&gt; direction of growth unknown */
+ #undef STACK_DIRECTION

+ /* Define to 1 if you have the ANSI C header files. */
+@@ -261,16 +320,25 @@
+ /* Define to empty if `const' does not conform to ANSI C. */
+ #undef const

+-/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+-   if it is not supported. */
++/* Define to `__inline__' or `__inline' if that's what the C compiler
++   calls it, or to nothing if 'inline' is not supported under any name.  */
++#ifndef __cplusplus
+ #undef inline
++#endif

+ /* Define to `long' if &lt;sys/types.h&gt; does not define. */
+ #undef off_t

++/* Define as the type of the result of subtracting two pointers, if the system
++   doesn't define it. */
++#undef ptrdiff_t
++
++/* Define to empty if the C compiler doesn't support this keyword. */
++#undef signed
++
+ /* Define to `unsigned' if &lt;sys/types.h&gt; does not define. */
+ #undef size_t

+-/* Define to unsigned long or unsigned long long if &lt;inttypes.h&gt; and
+-   &lt;stdint.h&gt; don't define. */
++/* Define to unsigned long or unsigned long long if &lt;stdint.h&gt; and
++   &lt;inttypes.h&gt; don't define. */
+ #undef uintmax_t
+--- gsmlib-1.10.orig/gsmlib/gsm_me_ta.h
++++ gsmlib-1.10/gsmlib/gsm_me_ta.h
+@@ -291,8 +291,8 @@
+     // 3 disable phone receive RF circuits only
+     // 4 disable phone both transmit and receive RF circuits
+     // 5...127 implementation-defined
+-    int MeTa::getFunctionalityLevel() throw(GsmException);
+-    void MeTa::setFunctionalityLevel(int level) throw(GsmException);
++    int getFunctionalityLevel() throw(GsmException);
++    void setFunctionalityLevel(int level) throw(GsmException);

+     // return battery charge status (+CBC):
+     // 0 ME is powered by the battery
+@@ -386,13 +386,13 @@
+     void setCallWaitingLockStatus(FacilityClass cl,
+                                   bool lock)throw(GsmException);

+-    void MeTa::setCLIRPresentation(bool enable) throw(GsmException);
++    void setCLIRPresentation(bool enable) throw(GsmException);
+     //(+CLIR)
+     
+     // 0:according to the subscription of the CLIR service
+     // 1:CLIR invocation
+     // 2:CLIR suppression
+-    int MeTa::getCLIRPresentation() throw(GsmException);
++    int getCLIRPresentation() throw(GsmException);

+     friend class Phonebook;
+     friend class SMSStore;
+--- gsmlib-1.10.orig/gsmlib/gsm_map_key.h
++++ gsmlib-1.10/gsmlib/gsm_map_key.h
+@@ -27,6 +27,7 @@

+   template &lt;class SortedStore&gt; class MapKey
+   {
++  public:
+     SortedStore &amp;_myStore;   // my store
+     // different type keys
+     Address _addressKey;
+@@ -45,6 +46,7 @@
+     MapKey(SortedStore &amp;myStore, string key) :
+       _myStore(myStore), _strKey(key) {}

++/*
+     friend
+     bool operator&lt; 
+ #ifndef WIN32
+@@ -59,6 +61,7 @@
+ #endif
+                           (const MapKey&lt;SortedStore&gt; &amp;x,
+                        const MapKey&lt;SortedStore&gt; &amp;y);
++*/
+   };

+   // compare two keys
+@@ -72,7 +75,7 @@
+   // MapKey members
+   
+   template &lt;class SortedStore&gt;
+-    bool gsmlib::operator&lt;(const MapKey&lt;SortedStore&gt; &amp;x,
++    bool operator&lt;(const MapKey&lt;SortedStore&gt; &amp;x,
+                            const MapKey&lt;SortedStore&gt; &amp;y)
+     {
+       assert(&amp;x._myStore == &amp;y._myStore);
+@@ -97,7 +100,7 @@
+     }

+   template &lt;class SortedStore&gt;
+-    bool gsmlib::operator==(const MapKey&lt;SortedStore&gt; &amp;x,
++    bool operator==(const MapKey&lt;SortedStore&gt; &amp;x,
+                             const MapKey&lt;SortedStore&gt; &amp;y)
+     {
+       assert(&amp;x._myStore == &amp;y._myStore);
+--- gsmlib-1.10.orig/gsmlib/gsm_util.cc
++++ gsmlib-1.10/gsmlib/gsm_util.cc
+@@ -35,6 +35,7 @@
+ #define __USE_GNU
+ #define _GNU_SOURCE
+ #endif
++#include &lt;cstdlib&gt;
+ #include &lt;stdio.h&gt;
+ #include &lt;sys/stat.h&gt;

+--- gsmlib-1.10.orig/gsmlib/gsm_unix_serial.cc
++++ gsmlib-1.10/gsmlib/gsm_unix_serial.cc
+@@ -20,6 +20,7 @@
+ #include &lt;fcntl.h&gt;
+ #include &lt;iostream&gt;
+ #include &lt;strstream&gt;
++#include &lt;cassert&gt;
+ #include &lt;errno.h&gt;
+ #include &lt;stdio.h&gt;
+ #include &lt;unistd.h&gt;
+@@ -131,7 +132,7 @@
+     {
+       int res = read(_fd, &amp;c, 1);
+       if (res != 1)
+-        return -1;
++        throwModemException(_(&quot;end of file when reading from TA&quot;));
+       else
+         readDone = true;
+       break;
+@@ -178,11 +179,15 @@

+   // switch off non-blocking mode
+   int fdFlags;
+-  if ((fdFlags = fcntl(_fd, F_GETFL)) == -1)
++  if ((fdFlags = fcntl(_fd, F_GETFL)) == -1) {
++    close(_fd);
+     throwModemException(_(&quot;getting file status flags failed&quot;));
++  }
+   fdFlags &amp;= ~O_NONBLOCK;
+-  if (fcntl(_fd, F_SETFL, fdFlags) == -1)
++  if (fcntl(_fd, F_SETFL, fdFlags) == -1) {
++    close(_fd);
+     throwModemException(_(&quot;switching of non-blocking mode failed&quot;));
++  }

+   long int saveTimeoutVal = _timeoutVal;
+   _timeoutVal = 3;
+@@ -194,17 +199,22 @@

+     // toggle DTR to reset modem
+     int mctl = TIOCM_DTR;
+-    if (ioctl(_fd, TIOCMBIC, &amp;mctl) &lt; 0)
++    if (ioctl(_fd, TIOCMBIC, &amp;mctl) &lt; 0) {
++      close(_fd);
+       throwModemException(_(&quot;clearing DTR failed&quot;));
++    }
+     // the waiting time for DTR toggling is increased with each loop
+     usleep(holdoff[initTries]);
+-    if (ioctl(_fd, TIOCMBIS, &amp;mctl) &lt; 0)
++    if (ioctl(_fd, TIOCMBIS, &amp;mctl) &lt; 0) {
++      close(_fd);
+       throwModemException(_(&quot;setting DTR failed&quot;));
+-  
++    }
+     // get line modes
+-    if (tcgetattr(_fd, &amp;t) &lt; 0)
++    if (tcgetattr(_fd, &amp;t) &lt; 0) {
++      close(_fd);
+       throwModemException(stringPrintf(_(&quot;tcgetattr device '%s'&quot;),
+                                        device.c_str()));
++    }

+     // set line speed
+     cfsetispeed(&amp;t, lineSpeed);
+@@ -229,9 +239,11 @@
+     t.c_cc[VSUSP] = 0;

+     // write back
+-    if(tcsetattr (_fd, TCSANOW, &amp;t) &lt; 0)
++    if(tcsetattr (_fd, TCSANOW, &amp;t) &lt; 0) {
++      close(_fd);
+       throwModemException(stringPrintf(_(&quot;tcsetattr device '%s'&quot;),
+                                        device.c_str()));
++    }
+     // the waiting time for writing to the ME/TA is increased with each loop
+     usleep(holdoff[initTries]);

+@@ -279,11 +291,14 @@
+     catch (GsmException &amp;e)
+     {
+       _timeoutVal = saveTimeoutVal;
+-      if (initTries == 0)
++      if (initTries == 0) {
++        close(_fd);
+         throw e;
++      }
+     }
+   }
+   // no response after 3 tries
++  close(_fd);
+   throw GsmException(stringPrintf(_(&quot;reset modem failed '%s'&quot;),
+                                   device.c_str()), OtherError);
+ }
+--- gsmlib-1.10.orig/gsmlib/gsm_me_ta.cc
++++ gsmlib-1.10/gsmlib/gsm_me_ta.cc
+@@ -19,6 +19,8 @@
+ #include &lt;gsmlib/gsm_parser.h&gt;
+ #include &lt;gsmlib/gsm_sysdep.h&gt;

++#include &lt;cstdlib&gt;
++
+ using namespace std;
+ using namespace gsmlib;

+--- gsmlib-1.10.orig/gsmlib/gsm_sms_codec.cc
++++ gsmlib-1.10/gsmlib/gsm_sms_codec.cc
+@@ -23,6 +23,7 @@
+ #ifdef HAVE_STRING_H
+ #include &lt;string.h&gt;
+ #endif
++#include &lt;climits&gt;
+ #include &lt;string&gt;
+ using namespace std;
+ using namespace gsmlib;
+--- gsmlib-1.10.orig/apps/gsmsmsd.cc
++++ gsmlib-1.10/apps/gsmsmsd.cc
+@@ -26,6 +26,7 @@
+ #include &lt;gsmlib/gsm_unix_serial.h&gt;
+ #include &lt;unistd.h&gt;
+ #include &lt;dirent.h&gt;
++#include &lt;syslog.h&gt;
+ #endif
+ #if defined(HAVE_GETOPT_LONG) || defined(WIN32)
+ #include &lt;getopt.h&gt;
+@@ -53,6 +54,12 @@
+   {&quot;store&quot;, required_argument, (int*)NULL, 't'},
+   {&quot;device&quot;, required_argument, (int*)NULL, 'd'},
+   {&quot;spool&quot;, required_argument, (int*)NULL, 's'},
++  {&quot;sent&quot;, required_argument, (int*)NULL, 'S'},
++  {&quot;failed&quot;, required_argument, (int*)NULL, 'F'},
++  {&quot;priorities&quot;, required_argument, (int*)NULL, 'P'},
++#ifndef WIN32
++  {&quot;syslog&quot;, no_argument, (int*)NULL, 'L'},
++#endif
+   {&quot;sca&quot;, required_argument, (int*)NULL, 'C'},
+   {&quot;flush&quot;, no_argument, (int*)NULL, 'f'},
+   {&quot;concatenate&quot;, required_argument, (int*)NULL, 'c'},
+@@ -178,9 +185,21 @@

+ bool requestStatusReport = false;

+-void sendSMS(string spoolDir, Ref&lt;GsmAt&gt; at)
++void sendSMS(string spoolDirBase, string sentDirBase, string failedDirBase,
++             unsigned int priority, bool enableSyslog, Ref&lt;GsmAt&gt; at)
+ {
+-  if (spoolDir != &quot;&quot;)
++  string spoolDir = spoolDirBase;
++  string sentDir = sentDirBase;
++  string failedDir = failedDirBase;
++  if ( priority &gt;= 1 )
++  {
++    spoolDir = spoolDirBase + stringPrintf(_(&quot;%d&quot;),priority);
++    sentDir = sentDirBase + stringPrintf(_(&quot;%d&quot;),priority);
++    failedDir = failedDirBase + stringPrintf(_(&quot;%d&quot;),priority);
++  }
++  if ( priority &gt; 1 )
++    sendSMS(spoolDirBase, sentDirBase, failedDirBase, priority-1, enableSyslog, at);
++  if (spoolDirBase != &quot;&quot;)
+   {
+     // look into spoolDir for any outgoing SMS that should be sent
+ #ifdef WIN32
+@@ -211,6 +230,8 @@
+           strcmp(entry-&gt;d_name, &quot;..&quot;) != 0)
+ #endif
+       {
++        if ( priority &gt; 1 )
++          sendSMS(spoolDirBase, sentDirBase, failedDirBase, priority-1, enableSyslog, at);
+         // read in file
+         // the first line is interpreted as the phone number
+         // the rest is the message
+@@ -221,11 +242,30 @@
+ #endif
+         ifstream ifs(filename.c_str());
+         if (! ifs)
++#ifndef WIN32
++          if (enableSyslog)
++          {
++            syslog(LOG_WARNING, &quot;Could not open SMS spool file %s&quot;,
++                   filename.c_str());
++            if (failedDirBase != &quot;&quot;) {
++              string failedfilename = failedDir + &quot;/&quot; + entry-&gt;d_name;
++              rename(filename.c_str(),failedfilename.c_str());
++            }
++            continue;
++          }
++          else
++#endif
+           throw GsmException(
+             stringPrintf(_(&quot;count not open SMS spool file %s&quot;),
+                          filename.c_str()), ParameterError);
+         char phoneBuf[1001];
+         ifs.getline(phoneBuf, 1000);
++        for(int i=0;i&lt;1000;i++)
++          if(phoneBuf[i]=='\t' || phoneBuf[i]==0)
++          { // ignore everything after a &lt;TAB&gt; in the phone number
++            phoneBuf[i]=0;
++            break;
++          }
+         string text;
+         while (! ifs.eof())
+         {
+@@ -252,17 +292,51 @@
+         submitSMS-&gt;setStatusReportRequest(requestStatusReport);
+         Address destAddr(phoneNumber);
+         submitSMS-&gt;setDestinationAddress(destAddr);
+-        if (concatenatedMessageId == -1)
+-          me-&gt;sendSMSs(submitSMS, text, true);
+-        else
++        try
++        {
++          if (concatenatedMessageId == -1)
++            me-&gt;sendSMSs(submitSMS, text, true);
++          else
++          {
++            // maximum for concatenatedMessageId is 255
++            if (concatenatedMessageId &gt; 256)
++              concatenatedMessageId = 0;
++            me-&gt;sendSMSs(submitSMS, text, false, concatenatedMessageId++);
++          }
++#ifndef WIN32
++          if (enableSyslog)
++            syslog(LOG_NOTICE, &quot;Sent SMS to %s from file %s&quot;, phoneBuf, filename.c_str());
++#endif
++          if (sentDirBase != &quot;&quot;) {
++#ifdef WIN32
++          string sentfilename = sentDir + &quot;\\&quot; + fileInfo.name;
++#else
++          string sentfilename = sentDir + &quot;/&quot; + entry-&gt;d_name;
++#endif
++            rename(filename.c_str(),sentfilename.c_str());
++          } else {
++            unlink(filename.c_str());
++          }
++        }
++        catch (GsmException &amp;me)
+         {
+-          // maximum for concatenatedMessageId is 255
+-          if (concatenatedMessageId &gt; 256)
+-            concatenatedMessageId = 0;
+-          me-&gt;sendSMSs(submitSMS, text, false, concatenatedMessageId++);
++#ifndef WIN32
++          if (enableSyslog)
++            syslog(LOG_WARNING, &quot;Failed sending SMS to %s from file %s: %s&quot;, phoneBuf,
++                   filename.c_str(), me.what());
++          else
++#endif
++            cerr &lt;&lt; &quot;Failed sending SMS to &quot; &lt;&lt; phoneBuf &lt;&lt; &quot; from &quot;
++                 &lt;&lt; filename &lt;&lt; &quot;: &quot; &lt;&lt; me.what() &lt;&lt; endl;
++          if (failedDirBase != &quot;&quot;) {
++#ifdef WIN32
++            string failedfilename = failedDir + &quot;\\&quot; + fileInfo.name;
++#else
++            string failedfilename = failedDir + &quot;/&quot; + entry-&gt;d_name;
++#endif
++            rename(filename.c_str(),failedfilename.c_str());
++          }
+         }
+-        
+-        unlink(filename.c_str());
+ #ifdef WIN32
+       }
+       moreFiles = _findnext(fileHandle, &amp;fileInfo) == 0; 
+@@ -276,10 +350,18 @@
+   }
+ }

++#ifndef WIN32
++void syslogExit(int exitcode, int *dummy)
++{
++  syslog(LOG_NOTICE, &quot;exited (exit %d)&quot;,exitcode);
++}
++#endif
++
+ // *** main program

+ int main(int argc, char *argv[])
+ {
++  bool enableSyslog = false;
+   try
+   {
+     string device = &quot;/dev/mobilephone&quot;;
+@@ -291,13 +373,16 @@
+     bool flushSMS = false;
+     bool onlyReceptionIndication = true;
+     string spoolDir;
++    string sentDir = &quot;&quot;;
++    string failedDir = &quot;&quot;;
++    unsigned int priorities = 0;
+     string initString = DEFAULT_INIT_STRING;
+     bool swHandshake = false;
+     string concatenatedMessageIdStr;

+     int opt;
+     int dummy;
+-    while((opt = getopt_long(argc, argv, &quot;c:C:I:t:fd:a:b:hvs:XDr&quot;,
++    while((opt = getopt_long(argc, argv, &quot;c:C:I:t:fd:a:b:hvs:S:F:P:LXDr&quot;,
+                              longOpts, &amp;dummy)) != -1)
+       switch (opt)
+       {
+@@ -328,6 +413,15 @@
+       case 's':
+         spoolDir = optarg;
+         break;
++      case 'S':
++        sentDir = optarg;
++        break;
++      case 'F':
++        failedDir = optarg;
++        break;
++      case 'P':
++        priorities = abs(atoi(optarg));
++        break;
+       case 'f':
+         flushSMS = true;
+         break;
+@@ -360,11 +454,21 @@
+              &lt;&lt; _(&quot;  -d, --device      sets the device to connect to&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -D, --direct      enable direct routing of SMSs&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -f, --flush       flush SMS from store&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;  -F, --failed      directory to move failed SMS to,&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;                    if unset, the SMS will be deleted&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -h, --help        prints this message&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -I, --init        device AT init sequence&quot;) &lt;&lt; endl
++#ifndef WIN32
++             &lt;&lt; _(&quot;  -L, --syslog      log errors and information to syslog&quot;)
++             &lt;&lt; endl
++#endif
++             &lt;&lt; _(&quot;  -P, --priorities  number of priority levels to use,&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;                    (default: none)&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -r, --requeststat request SMS status report&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -s, --spool       spool directory for outgoing SMS&quot;)
+              &lt;&lt; endl
++             &lt;&lt; _(&quot;  -S, --sent        directory to move sent SMS to,&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;                    if unset, the SMS will be deleted&quot;) &lt;&lt; endl
+              &lt;&lt; _(&quot;  -t, --store       name of SMS store to use for flush\n&quot;
+                   &quot;                    and/or temporary SMS storage&quot;) &lt;&lt; endl
+              &lt;&lt; endl
+@@ -380,6 +484,14 @@
+              &lt;&lt; endl &lt;&lt; endl
+              &lt;&lt; _(&quot;  default is \&quot;sms cb stat\&quot;&quot;) &lt;&lt; endl &lt;&lt; endl
+              &lt;&lt; _(&quot;If no action is given, the SMS is printed to stdout&quot;)
++             &lt;&lt; endl &lt;&lt; endl
++             &lt;&lt; _(&quot;If -P is given, it activates the priority system and sets the&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;number or levels to use. For every level, there must be directories&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;named &lt;spool directory&gt;+&lt;priority level&gt;.&quot;) &lt;&lt; endl
++             &lt;&lt; _(&quot;For example \&quot;-P 2 -s queue -S send -F failed\&quot; needs the following&quot;) &lt;&lt;endl
++             &lt;&lt; _(&quot;directories: queue1/ queue2/ send1/ send2/ failed1/ failed2/&quot;) &lt;&lt;endl
++             &lt;&lt; _(&quot;Before sending one SMS from queue2, all pending SMS from queue1&quot;) &lt;&lt;endl
++             &lt;&lt; _(&quot;will be sent.&quot;) &lt;&lt;endl
+              &lt;&lt; endl &lt;&lt; endl;
+         exit(0);
+         break;
+@@ -577,7 +689,7 @@

+       // send spooled SMS
+       if (! terminateSent)
+-        sendSMS(spoolDir, me-&gt;getAt());
++        sendSMS(spoolDir, sentDir, failedDir, priorities, enableSyslog, me-&gt;getAt());
+     }
+   }
+   catch (GsmException &amp;ge)
+--- gsmlib-1.10.orig/doc/gsmctl.man
++++ gsmlib-1.10/doc/gsmctl.man
+@@ -1,6 +1,6 @@
+ .TH GSMCTL 8 &quot;##DATE##&quot; &quot;gsmctl v##VERSION##&quot;
+ .SH NAME
+-gsmctl \- GSM mobile phone control program
++gsmctl, gsmsiectl \- GSM mobile phone control program
+ .SH SYNOPSIS
+ .B gsmctl
+ .RB [\| \-b
+@@ -25,6 +25,30 @@
+ .RB  | \ \-\-operation
+ .IR operation \ |
+ .I parameters
++.PP
++.B gsmsiectl
++.RB [\| \-b
++.IR  baudrate \|]
++.RB [\| \-\-baudrate
++.IR baudrate\| ]
++.RB [ \|\-d
++.IR device\| ]
++.RB [ \|\-\-device
++.IR device\fP ]
++.RB [ \|\-h\| ]
++.RB [ \|\-\-help\| ]
++.RB [ \|\-I
++.IR &quot;init string&quot; \|]
++.RB [ \|\-\-init
++.IR &quot;init string&quot; \|]
++.RB [ \|\-v\| ]
++.RB [ \|\-\-version\| ]
++.RB [ \|\-X\| ]
++.RB [ \|\-\-xonxoff\| ]
++.BI \-o \ operation
++.RB  | \ \-\-operation
++.IR operation \ |
++.I parameters
+ .SH DESCRIPTION
+ .B gsmctl
+ can request information from or perform operations on an GSM mobile
+@@ -61,6 +85,12 @@
+ .B OPERATIONS
+ for more details.
+ .PP
++.B gsmsiectl
++is the same program with some extension for Siemens mobile phones.
++Some extra 
++.B OPERATIONS
++are available in this case.
++.PP
+ Error messages are printed to the standard error output.  If the
+ program terminates on error the error code 1 is returned.
+ .SH OPTIONS
+@@ -458,6 +488,33 @@
+ This is the reverse operation to \fBlock\fP. See above for a
+ description of the parameters.
+ .RE
++.PP
++.B Extra operators for gsmsiectl:
++.PP
++.B cset
++.RS 
++Charset info.
++.RE
++.PP
++.B pbook
++.RS 
++Phone book info.
++.RE
++.PP
++.B signal
++.RS 
++Signal tone info.
++.RE
++.PP
++.B ring
++.RS 
++Ringing tone info.
++.RE
++.PP
++.B binary
++.RS 
++Binary info.
++.RE
+ .SH EXAMPLES
+ The following invocation of 
+ .I gsmctl
+--- gsmlib-1.10.orig/scripts/config.guess
++++ gsmlib-1.10/scripts/config.guess
+@@ -1,9 +1,10 @@
+ #! /bin/sh
+ # Attempt to guess a canonical system name.
+-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+-#   Free Software Foundation, Inc.
++#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
++#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
++#   Inc.

+-timestamp='2001-09-04'
++timestamp='2007-03-06'

+ # This file is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+@@ -17,15 +18,18 @@
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
++# 02110-1301, USA.
+ #
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.

+-# Written by Per Bothner &lt;bothner@cygnus.com&gt;.
+-# Please send patches to &lt;config-patches@gnu.org&gt;.
++
++# Originally written by Per Bothner &lt;per@bothner.com&gt;.
++# Please send patches to &lt;config-patches@gnu.org&gt;.  Submit a context
++# diff and a properly formatted ChangeLog entry.
+ #
+ # This script attempts to guess a canonical system name similar to
+ # config.sub.  If it succeeds, it prints the system name on stdout, and
+@@ -52,7 +56,7 @@
+ GNU config.guess ($timestamp)

+ Originally written by Per Bothner.
+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Free Software Foundation, Inc.

+ This is free software; see the source for copying conditions.  There is NO
+@@ -65,11 +69,11 @@
+ while test $# -gt 0 ; do
+   case $1 in
+     --time-stamp | --time* | -t )
+-       echo &quot;$timestamp&quot; ; exit 0 ;;
++       echo &quot;$timestamp&quot; ; exit ;;
+     --version | -v )
+-       echo &quot;$version&quot; ; exit 0 ;;
++       echo &quot;$version&quot; ; exit ;;
+     --help | --h* | -h )
+-       echo &quot;$usage&quot;; exit 0 ;;
++       echo &quot;$usage&quot;; exit ;;
+     -- )     # Stop option processing
+        shift; break ;;
+     - )        # Use stdin as input.
+@@ -87,30 +91,42 @@
+   exit 1
+ fi

++trap 'exit 1' 1 2 15

+-dummy=dummy-$$
+-trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
++# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
++# compiler to aid in system detection is discouraged as it requires
++# temporary files to be created and, as you can see below, it is a
++# headache to deal with in a portable fashion.

+-# CC_FOR_BUILD -- compiler used by this script.
+ # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+ # use `HOST_CC' if defined, but it is deprecated.

+-set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
+- ,,)    echo &quot;int dummy(){}&quot; &gt; $dummy.c ;
+-        for c in cc gcc c89 ; do
+-          ($c $dummy.c -c -o $dummy.o) &gt;/dev/null 2&gt;&amp;1 ;
+-          if test $? = 0 ; then
++# Portable tmp directory creation inspired by the Autoconf team.
++
++set_cc_for_build='
++trap &quot;exitcode=\$?; (rm -f \$tmpfiles 2&gt;/dev/null; rmdir \$tmp 2&gt;/dev/null) &amp;&amp; exit \$exitcode&quot; 0 ;
++trap &quot;rm -f \$tmpfiles 2&gt;/dev/null; rmdir \$tmp 2&gt;/dev/null; exit 1&quot; 1 2 13 15 ;
++: ${TMPDIR=/tmp} ;
++ { tmp=`(umask 077 &amp;&amp; mktemp -d &quot;$TMPDIR/cgXXXXXX&quot;) 2&gt;/dev/null` &amp;&amp; test -n &quot;$tmp&quot; &amp;&amp; test -d &quot;$tmp&quot; ; } ||
++ { test -n &quot;$RANDOM&quot; &amp;&amp; tmp=$TMPDIR/cg$$-$RANDOM &amp;&amp; (umask 077 &amp;&amp; mkdir $tmp) ; } ||
++ { tmp=$TMPDIR/cg-$$ &amp;&amp; (umask 077 &amp;&amp; mkdir $tmp) &amp;&amp; echo &quot;Warning: creating insecure temp directory&quot; &gt;&amp;2 ; } ||
++ { echo &quot;$me: cannot create a temporary directory in $TMPDIR&quot; &gt;&amp;2 ; exit 1 ; } ;
++dummy=$tmp/dummy ;
++tmpfiles=&quot;$dummy.c $dummy.o $dummy.rel $dummy&quot; ;
++case $CC_FOR_BUILD,$HOST_CC,$CC in
++ ,,)    echo &quot;int x;&quot; &gt; $dummy.c ;
++        for c in cc gcc c89 c99 ; do
++          if ($c -c -o $dummy.o $dummy.c) &gt;/dev/null 2&gt;&amp;1 ; then
+              CC_FOR_BUILD=&quot;$c&quot;; break ;
+           fi ;
+         done ;
+-        rm -f $dummy.c $dummy.o $dummy.rel ;
+         if test x&quot;$CC_FOR_BUILD&quot; = x ; then
+           CC_FOR_BUILD=no_compiler_found ;
+         fi
+         ;
+  ,,*)   CC_FOR_BUILD=$CC ;;
+  ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
+-esac'
++esac ; set_cc_for_build= ;'

+ # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+ # (ghazi@noc.rutgers.edu 1994-08-24)
+@@ -127,29 +143,31 @@

+ case &quot;${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}&quot; in
+     *:NetBSD:*:*)
+-        # Netbsd (nbsd) targets should (where applicable) match one or
++        # NetBSD (nbsd) targets should (where applicable) match one or
+         # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+         # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
+         # switched to ELF, *-*-netbsd* would select the old
+         # object file format.  This provides both forward
+         # compatibility and a consistent mechanism for selecting the
+         # object file format.
+-        # Determine the machine/vendor (is the vendor relevant).
+-        case &quot;${UNAME_MACHINE}&quot; in
+-            amiga) machine=m68k-unknown ;;
+-            arm32) machine=arm-unknown ;;
+-            atari*) machine=m68k-atari ;;
+-            sun3*) machine=m68k-sun ;;
+-            mac68k) machine=m68k-apple ;;
+-            macppc) machine=powerpc-apple ;;
+-            hp3[0-9][05]) machine=m68k-hp ;;
+-            ibmrt|romp-ibm) machine=romp-ibm ;;
+-            *) machine=${UNAME_MACHINE}-unknown ;;
++        #
++        # Note: NetBSD doesn't particularly care about the vendor
++        # portion of the name.  We always set it to &quot;unknown&quot;.
++        sysctl=&quot;sysctl -n hw.machine_arch&quot;
++        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2&gt;/dev/null || \
++            /usr/sbin/$sysctl 2&gt;/dev/null || echo unknown)`
++        case &quot;${UNAME_MACHINE_ARCH}&quot; in
++            armeb) machine=armeb-unknown ;;
++            arm*) machine=arm-unknown ;;
++            sh3el) machine=shl-unknown ;;
++            sh3eb) machine=sh-unknown ;;
++            sh5el) machine=sh5le-unknown ;;
++            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+         esac
+         # The Operating System including object format, if it has switched
+         # to ELF recently, or will in the future.
+-        case &quot;${UNAME_MACHINE}&quot; in
+-            i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
++        case &quot;${UNAME_MACHINE_ARCH}&quot; in
++            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+                 eval $set_cc_for_build
+                 if echo __ELF__ | $CC_FOR_BUILD -E - 2&gt;/dev/null \
+                         | grep __ELF__ &gt;/dev/null
+@@ -166,120 +184,128 @@
+                 ;
+         esac
+         # The OS release
+-        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
++        # Debian GNU/NetBSD machines have a different userland, and
++        # thus, need a distinct triplet. However, they do not need
++        # kernel version information, so it can be replaced with a
++        # suitable tag, in the style of linux-gnu.
++        case &quot;${UNAME_VERSION}&quot; in
++            Debian*)
++                release='-gnu'
++                ;
++            *)
++                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
++                ;
++        esac
+         # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+         # contains redundant information, the shorter form:
+         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+         echo &quot;${machine}-${os}${release}&quot;
+-        exit 0 ;;
++        exit ;;
++    *:OpenBSD:*:*)
++        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
++        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
++        exit ;;
++    *:ekkoBSD:*:*)
++        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
++        exit ;;
++    *:SolidBSD:*:*)
++        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
++        exit ;;
++    macppc:MirBSD:*:*)
++        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
++        exit ;;
++    *:MirBSD:*:*)
++        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
++        exit ;;
+     alpha:OSF1:*:*)
+-        if test $UNAME_RELEASE = &quot;V4.0&quot;; then
++        case $UNAME_RELEASE in
++        *4.0)
+                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+-        fi
++                ;
++        *5.*)
++                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
++                ;
++        esac
++        # According to Compaq, /usr/sbin/psrinfo has been available on
++        # OSF/1 and Tru64 systems produced since 1995.  I hope that
++        # covers most systems running today.  This code pipes the CPU
++        # types through head -n 1, so we only detect the type of CPU 0.
++        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
++        case &quot;$ALPHA_CPU_TYPE&quot; in
++            &quot;EV4 (21064)&quot;)
++                UNAME_MACHINE=&quot;alpha&quot; ;;
++            &quot;EV4.5 (21064)&quot;)
++                UNAME_MACHINE=&quot;alpha&quot; ;;
++            &quot;LCA4 (21066/21068)&quot;)
++                UNAME_MACHINE=&quot;alpha&quot; ;;
++            &quot;EV5 (21164)&quot;)
++                UNAME_MACHINE=&quot;alphaev5&quot; ;;
++            &quot;EV5.6 (21164A)&quot;)
++                UNAME_MACHINE=&quot;alphaev56&quot; ;;
++            &quot;EV5.6 (21164PC)&quot;)
++                UNAME_MACHINE=&quot;alphapca56&quot; ;;
++            &quot;EV5.7 (21164PC)&quot;)
++                UNAME_MACHINE=&quot;alphapca57&quot; ;;
++            &quot;EV6 (21264)&quot;)
++                UNAME_MACHINE=&quot;alphaev6&quot; ;;
++            &quot;EV6.7 (21264A)&quot;)
++                UNAME_MACHINE=&quot;alphaev67&quot; ;;
++            &quot;EV6.8CB (21264C)&quot;)
++                UNAME_MACHINE=&quot;alphaev68&quot; ;;
++            &quot;EV6.8AL (21264B)&quot;)
++                UNAME_MACHINE=&quot;alphaev68&quot; ;;
++            &quot;EV6.8CX (21264D)&quot;)
++                UNAME_MACHINE=&quot;alphaev68&quot; ;;
++            &quot;EV6.9A (21264/EV69A)&quot;)
++                UNAME_MACHINE=&quot;alphaev69&quot; ;;
++            &quot;EV7 (21364)&quot;)
++                UNAME_MACHINE=&quot;alphaev7&quot; ;;
++            &quot;EV7.9 (21364A)&quot;)
++                UNAME_MACHINE=&quot;alphaev79&quot; ;;
++        esac
++        # A Pn.n version is a patched version.
+         # A Vn.n version is a released version.
+         # A Tn.n version is a released field test version.
+         # A Xn.n version is an unreleased experimental baselevel.
+         # 1.2 uses &quot;1.2&quot; for uname -r.
+-        cat &lt;&lt;EOF &gt;$dummy.s
+-        .data
+-\$Lformat:
+-        .byte 37,100,45,37,120,10,0        # &quot;%d-%x\n&quot;
+-
+-        .text
+-        .globl main
+-        .align 4
+-        .ent main
+-main:
+-        .frame \$30,16,\$26,0
+-        ldgp \$29,0(\$27)
+-        .prologue 1
+-        .long 0x47e03d80 # implver \$0
+-        lda \$2,-1
+-        .long 0x47e20c21 # amask \$2,\$1
+-        lda \$16,\$Lformat
+-        mov \$0,\$17
+-        not \$1,\$18
+-        jsr \$26,printf
+-        ldgp \$29,0(\$26)
+-        mov 0,\$16
+-        jsr \$26,exit
+-        .end main
+-EOF
+-        eval $set_cc_for_build
+-        $CC_FOR_BUILD $dummy.s -o $dummy 2&gt;/dev/null
+-        if test &quot;$?&quot; = 0 ; then
+-                case `./$dummy` in
+-                        0-0)
+-                                UNAME_MACHINE=&quot;alpha&quot;
+-                                ;
+-                        1-0)
+-                                UNAME_MACHINE=&quot;alphaev5&quot;
+-                                ;
+-                        1-1)
+-                                UNAME_MACHINE=&quot;alphaev56&quot;
+-                                ;
+-                        1-101)
+-                                UNAME_MACHINE=&quot;alphapca56&quot;
+-                                ;
+-                        2-303)
+-                                UNAME_MACHINE=&quot;alphaev6&quot;
+-                                ;
+-                        2-307)
+-                                UNAME_MACHINE=&quot;alphaev67&quot;
+-                                ;
+-                        2-1307)
+-                                UNAME_MACHINE=&quot;alphaev68&quot;
+-                                ;
+-                esac
+-        fi
+-        rm -f $dummy.s $dummy
+-        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+-        exit 0 ;;
++        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
++        exit ;;
+     Alpha\ *:Windows_NT*:*)
+         # How do we know it's Interix rather than the generic POSIX subsystem?
+         # Should we change UNAME_MACHINE based on the output of uname instead
+         # of the specific Alpha model?
+         echo alpha-pc-interix
+-        exit 0 ;;
++        exit ;;
+     21064:Windows_NT:50:3)
+         echo alpha-dec-winnt3.5
+-        exit 0 ;;
++        exit ;;
+     Amiga*:UNIX_System_V:4.0:*)
+         echo m68k-unknown-sysv4
+-        exit 0;;
+-    amiga:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:[Aa]miga[Oo][Ss]:*:*)
+         echo ${UNAME_MACHINE}-unknown-amigaos
+-        exit 0 ;;
+-    arc64:OpenBSD:*:*)
+-        echo mips64el-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    arc:OpenBSD:*:*)
+-        echo mipsel-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    hkmips:OpenBSD:*:*)
+-        echo mips-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    pmax:OpenBSD:*:*)
+-        echo mipsel-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    sgi:OpenBSD:*:*)
+-        echo mips-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    wgrisc:OpenBSD:*:*)
+-        echo mipsel-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
++    *:[Mm]orph[Oo][Ss]:*:*)
++        echo ${UNAME_MACHINE}-unknown-morphos
++        exit ;;
+     *:OS/390:*:*)
+         echo i370-ibm-openedition
+-        exit 0 ;;
++        exit ;;
++    *:z/VM:*:*)
++        echo s390-ibm-zvmoe
++        exit ;;
++    *:OS400:*:*)
++        echo powerpc-ibm-os400
++        exit ;;
+     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+         echo arm-acorn-riscix${UNAME_RELEASE}
+-        exit 0;;
++        exit ;;
++    arm:riscos:*:*|arm:RISCOS:*:*)
++        echo arm-unknown-riscos
++        exit ;;
+     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+         echo hppa1.1-hitachi-hiuxmpp
+-        exit 0;;
++        exit ;;
+     Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+         if test &quot;`(/bin/universe) 2&gt;/dev/null`&quot; = att ; then
+@@ -287,25 +313,32 @@
+         else
+                 echo pyramid-pyramid-bsd
+         fi
+-        exit 0 ;;
++        exit ;;
+     NILE*:*:*:dcosx)
+         echo pyramid-pyramid-svr4
+-        exit 0 ;;
++        exit ;;
++    DRS?6000:unix:4.0:6*)
++        echo sparc-icl-nx6
++        exit ;;
++    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
++        case `/usr/bin/uname -p` in
++            sparc) echo sparc-icl-nx7; exit ;;
++        esac ;;
+     sun4H:SunOS:5.*:*)
+         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+-        exit 0 ;;
++        exit ;;
+     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+-        exit 0 ;;
++        exit ;;
+     i86pc:SunOS:5.*:*)
+         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+-        exit 0 ;;
++        exit ;;
+     sun4*:SunOS:6*:*)
+         # According to config.sub, this is the proper way to canonicalize
+         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
+         # it's likely to be more like Solaris than SunOS4.
+         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+-        exit 0 ;;
++        exit ;;
+     sun4*:SunOS:*:*)
+         case &quot;`/usr/bin/arch -k`&quot; in
+             Series*|S4*)
+@@ -314,12 +347,12 @@
+         esac
+         # Japanese Language versions have a version number like `4.1.3-JL'.
+         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+-        exit 0 ;;
++        exit ;;
+     sun3*:SunOS:*:*)
+         echo m68k-sun-sunos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     sun*:*:4.2BSD:*)
+-        UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2&gt;/dev/null`
++        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2&gt;/dev/null`
+         test &quot;x${UNAME_RELEASE}&quot; = &quot;x&quot; &amp;&amp; UNAME_RELEASE=3
+         case &quot;`/bin/arch`&quot; in
+             sun3)
+@@ -329,16 +362,10 @@
+                 echo sparc-sun-sunos${UNAME_RELEASE}
+                 ;
+         esac
+-        exit 0 ;;
++        exit ;;
+     aushp:SunOS:*:*)
+         echo sparc-auspex-sunos${UNAME_RELEASE}
+-        exit 0 ;;
+-    sparc*:NetBSD:*)
+-        echo `uname -p`-unknown-netbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    atari*:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     # The situation for MiNT is a little confusing.  The machine name
+     # can be virtually everything (everything which is not
+     # &quot;atarist&quot; or &quot;atariste&quot; at least should have a processor
+@@ -349,49 +376,40 @@
+     # be no problem.
+     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+         echo m68k-atari-mint${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+         echo m68k-atari-mint${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+         echo m68k-atari-mint${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+         echo m68k-milan-mint${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+         echo m68k-hades-mint${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+         echo m68k-unknown-mint${UNAME_RELEASE}
+-        exit 0 ;;
+-    sun3*:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    mac68k:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    mvme68k:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
+-    mvme88k:OpenBSD:*:*)
+-        echo m88k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
++    m68k:machten:*:*)
++        echo m68k-apple-machten${UNAME_RELEASE}
++        exit ;;
+     powerpc:machten:*:*)
+         echo powerpc-apple-machten${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     RISC*:Mach:*:*)
+         echo mips-dec-mach_bsd4.3
+-        exit 0 ;;
++        exit ;;
+     RISC*:ULTRIX:*:*)
+         echo mips-dec-ultrix${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     VAX*:ULTRIX*:*:*)
+         echo vax-dec-ultrix${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     2020:CLIX:*:* | 2430:CLIX:*:*)
+         echo clipper-intergraph-clix${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     mips:*:*:UMIPS | mips:*:*:RISCos)
+         eval $set_cc_for_build
+         sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+@@ -415,27 +433,33 @@
+           exit (-1);
+         }
+ EOF
+-        $CC_FOR_BUILD $dummy.c -o $dummy \
+-          &amp;&amp; ./$dummy `echo &quot;${UNAME_RELEASE}&quot; | sed -n 's/\([0-9]*\).*/\1/p'` \
+-          &amp;&amp; rm -f $dummy.c $dummy &amp;&amp; exit 0
+-        rm -f $dummy.c $dummy
++        $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp;
++          dummyarg=`echo &quot;${UNAME_RELEASE}&quot; | sed -n 's/\([0-9]*\).*/\1/p'` &amp;&amp;
++          SYSTEM_NAME=`$dummy $dummyarg` &amp;&amp;
++            { echo &quot;$SYSTEM_NAME&quot;; exit; }
+         echo mips-mips-riscos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     Motorola:PowerMAX_OS:*:*)
+         echo powerpc-motorola-powermax
+-        exit 0 ;;
++        exit ;;
++    Motorola:*:4.3:PL8-*)
++        echo powerpc-harris-powermax
++        exit ;;
++    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
++        echo powerpc-harris-powermax
++        exit ;;
+     Night_Hawk:Power_UNIX:*:*)
+         echo powerpc-harris-powerunix
+-        exit 0 ;;
++        exit ;;
+     m88k:CX/UX:7*:*)
+         echo m88k-harris-cxux7
+-        exit 0 ;;
++        exit ;;
+     m88k:*:4*:R4*)
+         echo m88k-motorola-sysv4
+-        exit 0 ;;
++        exit ;;
+     m88k:*:3*:R3*)
+         echo m88k-motorola-sysv3
+-        exit 0 ;;
++        exit ;;
+     AViiON:dgux:*:*)
+         # DG/UX returns AViiON for all architectures
+         UNAME_PROCESSOR=`/usr/bin/uname -p`
+@@ -451,29 +475,29 @@
+         else
+             echo i586-dg-dgux${UNAME_RELEASE}
+         fi
+-         exit 0 ;;
++         exit ;;
+     M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
+         echo m88k-dolphin-sysv3
+-        exit 0 ;;
++        exit ;;
+     M88*:*:R3*:*)
+         # Delta 88k system running SVR3
+         echo m88k-motorola-sysv3
+-        exit 0 ;;
++        exit ;;
+     XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+         echo m88k-tektronix-sysv3
+-        exit 0 ;;
++        exit ;;
+     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+         echo m68k-tektronix-bsd
+-        exit 0 ;;
++        exit ;;
+     *:IRIX*:*:*)
+         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+-        exit 0 ;;
++        exit ;;
+     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+-        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
+-        exit 0 ;;              # Note that: echo &quot;'`uname -s`'&quot; gives 'AIX '
++        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
++        exit ;;               # Note that: echo &quot;'`uname -s`'&quot; gives 'AIX '
+     i*86:AIX:*:*)
+         echo i386-ibm-aix
+-        exit 0 ;;
++        exit ;;
+     ia64:AIX:*:*)
+         if [ -x /usr/bin/oslevel ] ; then
+                 IBM_REV=`/usr/bin/oslevel`
+@@ -481,7 +505,7 @@
+                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+         fi
+         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+-        exit 0 ;;
++        exit ;;
+     *:AIX:2:3)
+         if grep bos325 /usr/include/stdio.h &gt;/dev/null 2&gt;&amp;1; then
+                 eval $set_cc_for_build
+@@ -496,17 +520,20 @@
+                         exit(0);
+                         }
+ EOF
+-                $CC_FOR_BUILD $dummy.c -o $dummy &amp;&amp; ./$dummy &amp;&amp; rm -f $dummy.c $dummy &amp;&amp; exit 0
+-                rm -f $dummy.c $dummy
+-                echo rs6000-ibm-aix3.2.5
++                if $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp; SYSTEM_NAME=`$dummy`
++                then
++                        echo &quot;$SYSTEM_NAME&quot;
++                else
++                        echo rs6000-ibm-aix3.2.5
++                fi
+         elif grep bos324 /usr/include/stdio.h &gt;/dev/null 2&gt;&amp;1; then
+                 echo rs6000-ibm-aix3.2.4
+         else
+                 echo rs6000-ibm-aix3.2
+         fi
+-        exit 0 ;;
++        exit ;;
+     *:AIX:*:[45])
+-        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
++        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' &gt;/dev/null 2&gt;&amp;1; then
+                 IBM_ARCH=rs6000
+         else
+@@ -518,38 +545,36 @@
+                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+         fi
+         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+-        exit 0 ;;
++        exit ;;
+     *:AIX:*:*)
+         echo rs6000-ibm-aix
+-        exit 0 ;;
++        exit ;;
+     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+         echo romp-ibm-bsd4.4
+-        exit 0 ;;
++        exit ;;
+     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
+         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
+-        exit 0 ;;                           # report: romp-ibm BSD 4.3
++        exit ;;                             # report: romp-ibm BSD 4.3
+     *:BOSX:*:*)
+         echo rs6000-bull-bosx
+-        exit 0 ;;
++        exit ;;
+     DPX/2?00:B.O.S.:*:*)
+         echo m68k-bull-sysv3
+-        exit 0 ;;
++        exit ;;
+     9000/[34]??:4.3bsd:1.*:*)
+         echo m68k-hp-bsd
+-        exit 0 ;;
++        exit ;;
+     hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+         echo m68k-hp-bsd4.4
+-        exit 0 ;;
++        exit ;;
+     9000/[34678]??:HP-UX:*:*)
+         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+         case &quot;${UNAME_MACHINE}&quot; in
+             9000/31? )            HP_ARCH=m68000 ;;
+             9000/[34]?? )         HP_ARCH=m68k ;;
+             9000/[678][0-9][0-9])
+-              case &quot;${HPUX_REV}&quot; in
+-                11.[0-9][0-9])
+-                  if [ -x /usr/bin/getconf ]; then
+-                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2&gt;/dev/null`
++                if [ -x /usr/bin/getconf ]; then
++                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2&gt;/dev/null`
+                     sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2&gt;/dev/null`
+                     case &quot;${sc_cpu_version}&quot; in
+                       523) HP_ARCH=&quot;hppa1.0&quot; ;; # CPU_PA_RISC1_0
+@@ -558,13 +583,13 @@
+                         case &quot;${sc_kernel_bits}&quot; in
+                           32) HP_ARCH=&quot;hppa2.0n&quot; ;;
+                           64) HP_ARCH=&quot;hppa2.0w&quot; ;;
++                          '') HP_ARCH=&quot;hppa2.0&quot; ;;   # HP-UX 10.20
+                         esac ;;
+                     esac
+-                  fi ;;
+-              esac
+-              if [ &quot;${HP_ARCH}&quot; = &quot;&quot; ]; then
+-              eval $set_cc_for_build
+-              sed 's/^              //' &lt;&lt; EOF &gt;$dummy.c
++                fi
++                if [ &quot;${HP_ARCH}&quot; = &quot;&quot; ]; then
++                    eval $set_cc_for_build
++                    sed 's/^              //' &lt;&lt; EOF &gt;$dummy.c

+               #define _HPUX_SOURCE
+               #include &lt;stdlib.h&gt;
+@@ -597,17 +622,37 @@
+                   exit (0);
+               }
+ EOF
+-            (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2&gt;/dev/null ) &amp;&amp; HP_ARCH=`./$dummy`
+-            if test -z &quot;$HP_ARCH&quot;; then HP_ARCH=hppa; fi
+-            rm -f $dummy.c $dummy
+-        fi ;;
++                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2&gt;/dev/null) &amp;&amp; HP_ARCH=`$dummy`
++                    test -z &quot;$HP_ARCH&quot; &amp;&amp; HP_ARCH=hppa
++                fi ;;
+         esac
++        if [ ${HP_ARCH} = &quot;hppa2.0w&quot; ]
++        then
++            eval $set_cc_for_build
++
++            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
++            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
++            # generating 64-bit code.  GNU and HP use different nomenclature:
++            #
++            # $ CC_FOR_BUILD=cc ./config.guess
++            # =&gt; hppa2.0w-hp-hpux11.23
++            # $ CC_FOR_BUILD=&quot;cc +DA2.0w&quot; ./config.guess
++            # =&gt; hppa64-hp-hpux11.23
++
++            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2&gt;/dev/null) |
++                grep __LP64__ &gt;/dev/null
++            then
++                HP_ARCH=&quot;hppa2.0w&quot;
++            else
++                HP_ARCH=&quot;hppa64&quot;
++            fi
++        fi
+         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+-        exit 0 ;;
++        exit ;;
+     ia64:HP-UX:*:*)
+         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+         echo ia64-hp-hpux${HPUX_REV}
+-        exit 0 ;;
++        exit ;;
+     3050*:HI-UX:*:*)
+         eval $set_cc_for_build
+         sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
+@@ -635,158 +680,237 @@
+           exit (0);
+         }
+ EOF
+-        $CC_FOR_BUILD $dummy.c -o $dummy &amp;&amp; ./$dummy &amp;&amp; rm -f $dummy.c $dummy &amp;&amp; exit 0
+-        rm -f $dummy.c $dummy
++        $CC_FOR_BUILD -o $dummy $dummy.c &amp;&amp; SYSTEM_NAME=`$dummy` &amp;&amp;
++                { echo &quot;$SYSTEM_NAME&quot;; exit; }
+         echo unknown-hitachi-hiuxwe2
+-        exit 0 ;;
++        exit ;;
+     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+         echo hppa1.1-hp-bsd
+-        exit 0 ;;
++        exit ;;
+     9000/8??:4.3bsd:*:*)
+         echo hppa1.0-hp-bsd
+-        exit 0 ;;
++        exit ;;
+     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+         echo hppa1.0-hp-mpeix
+-        exit 0 ;;
++        exit ;;
+     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+         echo hppa1.1-hp-osf
+-        exit 0 ;;
++        exit ;;
+     hp8??:OSF1:*:*)
+         echo hppa1.0-hp-osf
+-        exit 0 ;;
++        exit ;;
+     i*86:OSF1:*:*)
+         if [ -x /usr/sbin/sysversion ] ; then
+             echo ${UNAME_MACHINE}-unknown-osf1mk
+         else
+             echo ${UNAME_MACHINE}-unknown-osf1
+         fi
+-        exit 0 ;;
++        exit ;;
+     parisc*:Lites*:*:*)
+         echo hppa1.1-hp-lites
+-        exit 0 ;;
+-    hppa*:OpenBSD:*:*)
+-        echo hppa-unknown-openbsd
+-        exit 0 ;;
++        exit ;;
+     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+         echo c1-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+         if getsysinfo -f scalar_acc
+         then echo c32-convex-bsd
+         else echo c2-convex-bsd
+         fi
+-        exit 0 ;;
++        exit ;;
+     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+         echo c34-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+         echo c38-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+         echo c4-convex-bsd
+-        exit 0 ;;
+-    CRAY*X-MP:*:*:*)
+-        echo xmp-cray-unicos
+-        exit 0 ;;
++        exit ;;
+     CRAY*Y-MP:*:*:*)
+         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
++        exit ;;
+     CRAY*[A-Z]90:*:*:*)
+         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+               -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
++        exit ;;
+     CRAY*TS:*:*:*)
+         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
+-    CRAY*T3D:*:*:*)
+-        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
++        exit ;;
+     CRAY*T3E:*:*:*)
+         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
++        exit ;;
+     CRAY*SV1:*:*:*)
+         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+-        exit 0 ;;
+-    CRAY-2:*:*:*)
+-        echo cray2-cray-unicos
+-        exit 0 ;;
++        exit ;;
++    *:UNICOS/mp:*:*)
++        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
++        exit ;;
+     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+         echo &quot;${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}&quot;
+-        exit 0 ;;
+-    hp300:OpenBSD:*:*)
+-        echo m68k-unknown-openbsd${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
++    5000:UNIX_System_V:4.*:*)
++        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
++        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
++        echo &quot;sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}&quot;
++        exit ;;
+     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     sparc*:BSD/OS:*:*)
+         echo sparc-unknown-bsdi${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:BSD/OS:*:*)
+         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:FreeBSD:*:*)
+-        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+-        exit 0 ;;
+-    *:OpenBSD:*:*)
+-        echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+-        exit 0 ;;
++        case ${UNAME_MACHINE} in
++            pc98)
++                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
++            amd64)
++                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
++            *)
++                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
++        esac
++        exit ;;
+     i*:CYGWIN*:*)
+         echo ${UNAME_MACHINE}-pc-cygwin
+-        exit 0 ;;
+-    i*:MINGW*:*)
++        exit ;;
++    *:MINGW*:*)
+         echo ${UNAME_MACHINE}-pc-mingw32
+-        exit 0 ;;
++        exit ;;
++    i*:windows32*:*)
++            # uname -m includes &quot;-pc&quot; on this system.
++            echo ${UNAME_MACHINE}-mingw32
++        exit ;;
+     i*:PW*:*)
+         echo ${UNAME_MACHINE}-pc-pw32
+-        exit 0 ;;
++        exit ;;
++    *:Interix*:[3456]*)
++            case ${UNAME_MACHINE} in
++            x86) 
++                echo i586-pc-interix${UNAME_RELEASE}
++                exit ;;
++            EM64T | authenticamd)
++                echo x86_64-unknown-interix${UNAME_RELEASE}
++                exit ;;
++        esac ;;
++    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
++        echo i${UNAME_MACHINE}-pc-mks
++        exit ;;
+     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+         # How do we know it's Interix rather than the generic POSIX subsystem?
+         # It also conflicts with pre-2.0 versions of AT&amp;T UWIN. Should we
+         # UNAME_MACHINE based on the output of uname instead of i386?
+-        echo i386-pc-interix
+-        exit 0 ;;
++        echo i586-pc-interix
++        exit ;;
+     i*:UWIN*:*)
+         echo ${UNAME_MACHINE}-pc-uwin
+-        exit 0 ;;
++        exit ;;
++    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
++        echo x86_64-unknown-cygwin
++        exit ;;
+     p*:CYGWIN*:*)
+         echo powerpcle-unknown-cygwin
+-        exit 0 ;;
++        exit ;;
+     prep*:SunOS:5.*:*)
+         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+-        exit 0 ;;
++        exit ;;
+     *:GNU:*:*)
++        # the GNU system
+         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+-        exit 0 ;;
++        exit ;;
++    *:GNU/*:*:*)
++        # other systems with GNU libc and userland
++        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
++        exit ;;
+     i*86:Minix:*:*)
+         echo ${UNAME_MACHINE}-pc-minix
+-        exit 0 ;;
++        exit ;;
+     arm*:Linux:*:*)
+         echo ${UNAME_MACHINE}-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
++    avr32*:Linux:*:*)
++        echo ${UNAME_MACHINE}-unknown-linux-gnu
++        exit ;;
++    cris:Linux:*:*)
++        echo cris-axis-linux-gnu
++        exit ;;
++    crisv32:Linux:*:*)
++        echo crisv32-axis-linux-gnu
++        exit ;;
++    frv:Linux:*:*)
++            echo frv-unknown-linux-gnu
++        exit ;;
+     ia64:Linux:*:*)
+-        echo ${UNAME_MACHINE}-unknown-linux
+-        exit 0 ;;
++        echo ${UNAME_MACHINE}-unknown-linux-gnu
++        exit ;;
++    m32r*:Linux:*:*)
++        echo ${UNAME_MACHINE}-unknown-linux-gnu
++        exit ;;
+     m68*:Linux:*:*)
+         echo ${UNAME_MACHINE}-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
+     mips:Linux:*:*)
+-        case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' &lt; /proc/cpuinfo` in
+-          big)    echo mips-unknown-linux-gnu &amp;&amp; exit 0 ;;
+-          little) echo mipsel-unknown-linux-gnu &amp;&amp; exit 0 ;;
+-        esac
++        eval $set_cc_for_build
++        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
++        #undef CPU
++        #undef mips
++        #undef mipsel
++        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
++        CPU=mipsel
++        #else
++        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
++        CPU=mips
++        #else
++        CPU=
++        #endif
++        #endif
++EOF
++        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
++            /^CPU/{
++                s: ::g
++                p
++            }'`&quot;
++        test x&quot;${CPU}&quot; != x &amp;&amp; { echo &quot;${CPU}-unknown-linux-gnu&quot;; exit; }
++        ;
++    mips64:Linux:*:*)
++        eval $set_cc_for_build
++        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
++        #undef CPU
++        #undef mips64
++        #undef mips64el
++        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
++        CPU=mips64el
++        #else
++        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
++        CPU=mips64
++        #else
++        CPU=
++        #endif
++        #endif
++EOF
++        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
++            /^CPU/{
++                s: ::g
++                p
++            }'`&quot;
++        test x&quot;${CPU}&quot; != x &amp;&amp; { echo &quot;${CPU}-unknown-linux-gnu&quot;; exit; }
+         ;
++    or32:Linux:*:*)
++        echo or32-unknown-linux-gnu
++        exit ;;
+     ppc:Linux:*:*)
+         echo powerpc-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
+     ppc64:Linux:*:*)
+         echo powerpc64-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
+     alpha:Linux:*:*)
+         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' &lt; /proc/cpuinfo` in
+           EV5)   UNAME_MACHINE=alphaev5 ;;
+@@ -800,7 +924,7 @@
+         objdump --private-headers /bin/sh | grep ld.so.1 &gt;/dev/null
+         if test &quot;$?&quot; = 0 ; then LIBC=&quot;libc1&quot; ; else LIBC=&quot;&quot; ; fi
+         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+-        exit 0 ;;
++        exit ;;
+     parisc:Linux:*:* | hppa:Linux:*:*)
+         # Look for CPU level
+         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2&gt;/dev/null | cut -d' ' -f2` in
+@@ -808,27 +932,37 @@
+           PA8*) echo hppa2.0-unknown-linux-gnu ;;
+           *)    echo hppa-unknown-linux-gnu ;;
+         esac
+-        exit 0 ;;
++        exit ;;
+     parisc64:Linux:*:* | hppa64:Linux:*:*)
+         echo hppa64-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
+     s390:Linux:*:* | s390x:Linux:*:*)
+         echo ${UNAME_MACHINE}-ibm-linux
+-        exit 0 ;;
++        exit ;;
++    sh64*:Linux:*:*)
++            echo ${UNAME_MACHINE}-unknown-linux-gnu
++        exit ;;
+     sh*:Linux:*:*)
+         echo ${UNAME_MACHINE}-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
+     sparc:Linux:*:* | sparc64:Linux:*:*)
+         echo ${UNAME_MACHINE}-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
++    vax:Linux:*:*)
++        echo ${UNAME_MACHINE}-dec-linux-gnu
++        exit ;;
+     x86_64:Linux:*:*)
+         echo x86_64-unknown-linux-gnu
+-        exit 0 ;;
++        exit ;;
++    xtensa:Linux:*:*)
++            echo xtensa-unknown-linux-gnu
++        exit ;;
+     i*86:Linux:*:*)
+         # The BFD linker knows what the default object file format is, so
+         # first see if it will tell us. cd to the root directory to prevent
+         # problems with other programs or directories called `ld' in the path.
+-        ld_supported_targets=`cd /; ld --help 2&gt;&amp;1 \
++        # Set LC_ALL=C to ensure ld outputs messages in English.
++        ld_supported_targets=`cd /; LC_ALL=C ld --help 2&gt;&amp;1 \
+                          | sed -ne '/supported targets:/!d
+                                     s/[         ][         ]*/ /g
+                                     s/.*supported targets: *//
+@@ -840,52 +974,58 @@
+                 ;
+           a.out-i386-linux)
+                 echo &quot;${UNAME_MACHINE}-pc-linux-gnuaout&quot;
+-                exit 0 ;;                
++                exit ;;
+           coff-i386)
+                 echo &quot;${UNAME_MACHINE}-pc-linux-gnucoff&quot;
+-                exit 0 ;;
++                exit ;;
+           &quot;&quot;)
+                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
+                 # one that does not give us useful --help.
+                 echo &quot;${UNAME_MACHINE}-pc-linux-gnuoldld&quot;
+-                exit 0 ;;
++                exit ;;
+         esac
+         # Determine whether the default compiler is a.out or elf
+         eval $set_cc_for_build
+-        cat &gt;$dummy.c &lt;&lt;EOF
+-#include &lt;features.h&gt;
+-#ifdef __cplusplus
+-#include &lt;stdio.h&gt;  /* for printf() prototype */
+-        int main (int argc, char *argv[]) {
+-#else
+-        int main (argc, argv) int argc; char *argv[]; {
+-#endif
+-#ifdef __ELF__
+-# ifdef __GLIBC__
+-#  if __GLIBC__ &gt;= 2
+-    printf (&quot;%s-pc-linux-gnu\n&quot;, argv[1]);
+-#  else
+-    printf (&quot;%s-pc-linux-gnulibc1\n&quot;, argv[1]);
+-#  endif
+-# else
+-   printf (&quot;%s-pc-linux-gnulibc1\n&quot;, argv[1]);
+-# endif
+-#else
+-  printf (&quot;%s-pc-linux-gnuaout\n&quot;, argv[1]);
+-#endif
+-  return 0;
+-}
++        sed 's/^        //' &lt;&lt; EOF &gt;$dummy.c
++        #include &lt;features.h&gt;
++        #ifdef __ELF__
++        # ifdef __GLIBC__
++        #  if __GLIBC__ &gt;= 2
++        LIBC=gnu
++        #  else
++        LIBC=gnulibc1
++        #  endif
++        # else
++        LIBC=gnulibc1
++        # endif
++        #else
++        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
++        LIBC=gnu
++        #else
++        LIBC=gnuaout
++        #endif
++        #endif
++        #ifdef __dietlibc__
++        LIBC=dietlibc
++        #endif
+ EOF
+-        $CC_FOR_BUILD $dummy.c -o $dummy 2&gt;/dev/null &amp;&amp; ./$dummy &quot;${UNAME_MACHINE}&quot; &amp;&amp; rm -f $dummy.c $dummy &amp;&amp; exit 0
+-        rm -f $dummy.c $dummy
+-        test x&quot;${TENTATIVE}&quot; != x &amp;&amp; echo &quot;${TENTATIVE}&quot; &amp;&amp; exit 0
++        eval &quot;`$CC_FOR_BUILD -E $dummy.c 2&gt;/dev/null | sed -n '
++            /^LIBC/{
++                s: ::g
++                p
++            }'`&quot;
++        test x&quot;${LIBC}&quot; != x &amp;&amp; {
++                echo &quot;${UNAME_MACHINE}-pc-linux-${LIBC}&quot;
++                exit
++        }
++        test x&quot;${TENTATIVE}&quot; != x &amp;&amp; { echo &quot;${TENTATIVE}&quot;; exit; }
+         ;
+     i*86:DYNIX/ptx:4*:*)
+         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+         # earlier versions are messed up and put the nodename in both
+         # sysname and nodename.
+         echo i386-sequent-sysv4
+-        exit 0 ;;
++        exit ;;
+     i*86:UNIX_SV:4.2MP:2.*)
+         # Unixware is an offshoot of SVR4, but it has its own version
+         # number series starting with 2...
+@@ -893,7 +1033,27 @@
+         # I just have to hope.  -- rms.
+         # Use sysv4.2uw... so that sysv4* matches it.
+         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+-        exit 0 ;;
++        exit ;;
++    i*86:OS/2:*:*)
++        # If we were able to find `uname', then EMX Unix compatibility
++        # is probably installed.
++        echo ${UNAME_MACHINE}-pc-os2-emx
++        exit ;;
++    i*86:XTS-300:*:STOP)
++        echo ${UNAME_MACHINE}-unknown-stop
++        exit ;;
++    i*86:atheos:*:*)
++        echo ${UNAME_MACHINE}-unknown-atheos
++        exit ;;
++    i*86:syllable:*:*)
++        echo ${UNAME_MACHINE}-pc-syllable
++        exit ;;
++    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
++        echo i386-unknown-lynxos${UNAME_RELEASE}
++        exit ;;
++    i*86:*DOS:*:*)
++        echo ${UNAME_MACHINE}-pc-msdosdjgpp
++        exit ;;
+     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+         if grep Novell /usr/include/link.h &gt;/dev/null 2&gt;/dev/null; then
+@@ -901,99 +1061,100 @@
+         else
+                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+         fi
+-        exit 0 ;;
+-    i*86:*:5:[78]*)
++        exit ;;
++    i*86:*:5:[678]*)
++            # UnixWare 7.x, OpenUNIX and OpenServer 6.
+         case `/bin/uname -X | grep &quot;^Machine&quot;` in
+             *486*)             UNAME_MACHINE=i486 ;;
+             *Pentium)             UNAME_MACHINE=i586 ;;
+             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+         esac
+         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+-        exit 0 ;;
++        exit ;;
+     i*86:*:3.2:*)
+         if test -f /usr/options/cb.name; then
+                 UNAME_REL=`sed -n 's/.*Version //p' &lt;/usr/options/cb.name`
+                 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+         elif /bin/uname -X 2&gt;/dev/null &gt;/dev/null ; then
+-                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
+-                (/bin/uname -X|egrep i80486 &gt;/dev/null) &amp;&amp; UNAME_MACHINE=i486
+-                (/bin/uname -X|egrep '^Machine.*Pentium' &gt;/dev/null) \
++                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
++                (/bin/uname -X|grep i80486 &gt;/dev/null) &amp;&amp; UNAME_MACHINE=i486
++                (/bin/uname -X|grep '^Machine.*Pentium' &gt;/dev/null) \
+                         &amp;&amp; UNAME_MACHINE=i586
+-                (/bin/uname -X|egrep '^Machine.*Pent ?II' &gt;/dev/null) \
++                (/bin/uname -X|grep '^Machine.*Pent *II' &gt;/dev/null) \
+                         &amp;&amp; UNAME_MACHINE=i686
+-                (/bin/uname -X|egrep '^Machine.*Pentium Pro' &gt;/dev/null) \
++                (/bin/uname -X|grep '^Machine.*Pentium Pro' &gt;/dev/null) \
+                         &amp;&amp; UNAME_MACHINE=i686
+                 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+         else
+                 echo ${UNAME_MACHINE}-pc-sysv32
+         fi
+-        exit 0 ;;
+-    i*86:*DOS:*:*)
+-        echo ${UNAME_MACHINE}-pc-msdosdjgpp
+-        exit 0 ;;
++        exit ;;
+     pc:*:*:*)
+         # Left here for compatibility:
+         # uname -m prints for DJGPP always 'pc', but it prints nothing about
+         # the processor, so we play safe by assuming i386.
+         echo i386-pc-msdosdjgpp
+-        exit 0 ;;
++        exit ;;
+     Intel:Mach:3*:*)
+         echo i386-pc-mach3
+-        exit 0 ;;
++        exit ;;
+     paragon:*:*:*)
+         echo i860-intel-osf1
+-        exit 0 ;;
++        exit ;;
+     i860:*:4.*:*) # i860-SVR4
+         if grep Stardent /usr/include/sys/uadmin.h &gt;/dev/null 2&gt;&amp;1 ; then
+           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+         else # Add other i860-SVR4 vendors below as they are discovered.
+           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
+         fi
+-        exit 0 ;;
++        exit ;;
+     mini*:CTIX:SYS*5:*)
+         # &quot;miniframe&quot;
+         echo m68010-convergent-sysv
+-        exit 0 ;;
+-    M68*:*:R3V[567]*:*)
+-        test -r /sysV68 &amp;&amp; echo 'm68k-motorola-sysv' &amp;&amp; exit 0 ;;
+-    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
++        exit ;;
++    mc68k:UNIX:SYSTEM5:3.51m)
++        echo m68k-convergent-sysv
++        exit ;;
++    M680?0:D-NIX:5.3:*)
++        echo m68k-diab-dnix
++        exit ;;
++    M68*:*:R3V[5678]*:*)
++        test -r /sysV68 &amp;&amp; { echo 'm68k-motorola-sysv'; exit; } ;;
++    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+         OS_REL=''
+         test -r /etc/.relid \
+         &amp;&amp; OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' &lt; /etc/.relid`
+         /bin/uname -p 2&gt;/dev/null | grep 86 &gt;/dev/null \
+-          &amp;&amp; echo i486-ncr-sysv4.3${OS_REL} &amp;&amp; exit 0
++          &amp;&amp; { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+         /bin/uname -p 2&gt;/dev/null | /bin/grep entium &gt;/dev/null \
+-          &amp;&amp; echo i586-ncr-sysv4.3${OS_REL} &amp;&amp; exit 0 ;;
++          &amp;&amp; { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+         /bin/uname -p 2&gt;/dev/null | grep 86 &gt;/dev/null \
+-          &amp;&amp; echo i486-ncr-sysv4 &amp;&amp; exit 0 ;;
++          &amp;&amp; { echo i486-ncr-sysv4; exit; } ;;
+     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+         echo m68k-unknown-lynxos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     mc68030:UNIX_System_V:4.*:*)
+         echo m68k-atari-sysv4
+-        exit 0 ;;
+-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+-        echo i386-unknown-lynxos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     TSUNAMI:LynxOS:2.*:*)
+         echo sparc-unknown-lynxos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     rs6000:LynxOS:2.*:*)
+         echo rs6000-unknown-lynxos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+         echo powerpc-unknown-lynxos${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     SM[BE]S:UNIX_SV:*:*)
+         echo mips-dde-sysv${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     RM*:ReliantUNIX-*:*:*)
+         echo mips-sni-sysv4
+-        exit 0 ;;
++        exit ;;
+     RM*:SINIX-*:*:*)
+         echo mips-sni-sysv4
+-        exit 0 ;;
++        exit ;;
+     *:SINIX-*:*:*)
+         if uname -p 2&gt;/dev/null &gt;/dev/null ; then
+                 UNAME_MACHINE=`(uname -p) 2&gt;/dev/null`
+@@ -1001,82 +1162,107 @@
+         else
+                 echo ns32k-sni-sysv
+         fi
+-        exit 0 ;;
++        exit ;;
+     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+                       # says &lt;Richard.M.Bartel@ccMail.Census.GOV&gt;
+         echo i586-unisys-sysv4
+-        exit 0 ;;
++        exit ;;
+     *:UNIX_System_V:4*:FTX*)
+         # From Gerald Hewes &lt;hewes@openmarket.com&gt;.
+         # How about differentiating between stratus architectures? -djm
+         echo hppa1.1-stratus-sysv4
+-        exit 0 ;;
++        exit ;;
+     *:*:*:FTX*)
+         # From seanf@swdc.stratus.com.
+         echo i860-stratus-sysv4
+-        exit 0 ;;
++        exit ;;
++    i*86:VOS:*:*)
++        # From Paul.Green@stratus.com.
++        echo ${UNAME_MACHINE}-stratus-vos
++        exit ;;
+     *:VOS:*:*)
+         # From Paul.Green@stratus.com.
+         echo hppa1.1-stratus-vos
+-        exit 0 ;;
++        exit ;;
+     mc68*:A/UX:*:*)
+         echo m68k-apple-aux${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     news*:NEWS-OS:6*:*)
+         echo mips-sony-newsos6
+-        exit 0 ;;
++        exit ;;
+     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+         if [ -d /usr/nec ]; then
+                 echo mips-nec-sysv${UNAME_RELEASE}
+         else
+                 echo mips-unknown-sysv${UNAME_RELEASE}
+         fi
+-        exit 0 ;;
++        exit ;;
+     BeBox:BeOS:*:*)        # BeOS running on hardware made by Be, PPC only.
+         echo powerpc-be-beos
+-        exit 0 ;;
++        exit ;;
+     BeMac:BeOS:*:*)        # BeOS running on Mac or Mac clone, PPC only.
+         echo powerpc-apple-beos
+-        exit 0 ;;
++        exit ;;
+     BePC:BeOS:*:*)        # BeOS running on Intel PC compatible.
+         echo i586-pc-beos
+-        exit 0 ;;
++        exit ;;
+     SX-4:SUPER-UX:*:*)
+         echo sx4-nec-superux${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     SX-5:SUPER-UX:*:*)
+         echo sx5-nec-superux${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
++    SX-6:SUPER-UX:*:*)
++        echo sx6-nec-superux${UNAME_RELEASE}
++        exit ;;
++    SX-7:SUPER-UX:*:*)
++        echo sx7-nec-superux${UNAME_RELEASE}
++        exit ;;
++    SX-8:SUPER-UX:*:*)
++        echo sx8-nec-superux${UNAME_RELEASE}
++        exit ;;
++    SX-8R:SUPER-UX:*:*)
++        echo sx8r-nec-superux${UNAME_RELEASE}
++        exit ;;
+     Power*:Rhapsody:*:*)
+         echo powerpc-apple-rhapsody${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:Rhapsody:*:*)
+         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:Darwin:*:*)
+-        echo `uname -p`-apple-darwin${UNAME_RELEASE}
+-        exit 0 ;;
++        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
++        case $UNAME_PROCESSOR in
++            unknown) UNAME_PROCESSOR=powerpc ;;
++        esac
++        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
++        exit ;;
+     *:procnto*:*:* | *:QNX:[0123456789]*:*)
+-        if test &quot;${UNAME_MACHINE}&quot; = &quot;x86pc&quot;; then
++        UNAME_PROCESSOR=`uname -p`
++        if test &quot;$UNAME_PROCESSOR&quot; = &quot;x86&quot;; then
++                UNAME_PROCESSOR=i386
+                 UNAME_MACHINE=pc
+         fi
+-        echo `uname -p`-${UNAME_MACHINE}-nto-qnx
+-        exit 0 ;;
++        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
++        exit ;;
+     *:QNX:*:4*)
+         echo i386-pc-qnx
+-        exit 0 ;;
+-    NSR-[KW]:NONSTOP_KERNEL:*:*)
++        exit ;;
++    NSE-?:NONSTOP_KERNEL:*:*)
++        echo nse-tandem-nsk${UNAME_RELEASE}
++        exit ;;
++    NSR-?:NONSTOP_KERNEL:*:*)
+         echo nsr-tandem-nsk${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:NonStop-UX:*:*)
+         echo mips-compaq-nonstopux
+-        exit 0 ;;
++        exit ;;
+     BS2000:POSIX*:*:*)
+         echo bs2000-siemens-sysv
+-        exit 0 ;;
++        exit ;;
+     DS/*:UNIX_System_V:*:*)
+         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+-        exit 0 ;;
++        exit ;;
+     *:Plan9:*:*)
+         # &quot;uname -m&quot; is not consistent, so use $cputype instead. 386
+         # is converted to i386 for consistency with other x86
+@@ -1087,36 +1273,47 @@
+             UNAME_MACHINE=&quot;$cputype&quot;
+         fi
+         echo ${UNAME_MACHINE}-unknown-plan9
+-        exit 0 ;;
+-    i*86:OS/2:*:*)
+-        # If we were able to find `uname', then EMX Unix compatibility
+-        # is probably installed.
+-        echo ${UNAME_MACHINE}-pc-os2-emx
+-        exit 0 ;;
++        exit ;;
+     *:TOPS-10:*:*)
+         echo pdp10-unknown-tops10
+-        exit 0 ;;
++        exit ;;
+     *:TENEX:*:*)
+         echo pdp10-unknown-tenex
+-        exit 0 ;;
++        exit ;;
+     KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+         echo pdp10-dec-tops20
+-        exit 0 ;;
++        exit ;;
+     XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+         echo pdp10-xkl-tops20
+-        exit 0 ;;
++        exit ;;
+     *:TOPS-20:*:*)
+         echo pdp10-unknown-tops20
+-        exit 0 ;;
++        exit ;;
+     *:ITS:*:*)
+         echo pdp10-unknown-its
+-        exit 0 ;;
+-    i*86:XTS-300:*:STOP)
+-        echo ${UNAME_MACHINE}-unknown-stop
+-        exit 0 ;;
+-    i*86:atheos:*:*)
+-        echo ${UNAME_MACHINE}-unknown-atheos
+-        exit 0 ;;
++        exit ;;
++    SEI:*:*:SEIUX)
++        echo mips-sei-seiux${UNAME_RELEASE}
++        exit ;;
++    *:DragonFly:*:*)
++        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
++        exit ;;
++    *:*VMS:*:*)
++            UNAME_MACHINE=`(uname -p) 2&gt;/dev/null`
++        case &quot;${UNAME_MACHINE}&quot; in
++            A*) echo alpha-dec-vms ; exit ;;
++            I*) echo ia64-dec-vms ; exit ;;
++            V*) echo vax-dec-vms ; exit ;;
++        esac ;;
++    *:XENIX:*:SysV)
++        echo i386-pc-xenix
++        exit ;;
++    i*86:skyos:*:*)
++        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
++        exit ;;
++    i*86:rdos:*:*)
++        echo ${UNAME_MACHINE}-pc-rdos
++        exit ;;
+ esac

+ #echo '(No uname command or uname output not recognized.)' 1&gt;&amp;2
+@@ -1148,7 +1345,7 @@
+ #endif

+ #if defined (__arm) &amp;&amp; defined (__acorn) &amp;&amp; defined (__unix)
+-  printf (&quot;arm-acorn-riscix&quot;); exit (0);
++  printf (&quot;arm-acorn-riscix\n&quot;); exit (0);
+ #endif

+ #if defined (hp300) &amp;&amp; !defined (hpux)
+@@ -1237,12 +1434,12 @@
+ }
+ EOF

+-$CC_FOR_BUILD $dummy.c -o $dummy 2&gt;/dev/null &amp;&amp; ./$dummy &amp;&amp; rm -f $dummy.c $dummy &amp;&amp; exit 0
+-rm -f $dummy.c $dummy
++$CC_FOR_BUILD -o $dummy $dummy.c 2&gt;/dev/null &amp;&amp; SYSTEM_NAME=`$dummy` &amp;&amp;
++        { echo &quot;$SYSTEM_NAME&quot;; exit; }

+ # Apollos put the system type in the environment.

+-test -d /usr/apollo &amp;&amp; { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
++test -d /usr/apollo &amp;&amp; { echo ${ISP}-apollo-${SYSTYPE}; exit; }

+ # Convex versions that predate uname can use getsysinfo(1)

+@@ -1251,22 +1448,22 @@
+     case `getsysinfo -f cpu_type` in
+     c1*)
+         echo c1-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     c2*)
+         if getsysinfo -f scalar_acc
+         then echo c32-convex-bsd
+         else echo c2-convex-bsd
+         fi
+-        exit 0 ;;
++        exit ;;
+     c34*)
+         echo c34-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     c38*)
+         echo c38-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     c4*)
+         echo c4-convex-bsd
+-        exit 0 ;;
++        exit ;;
+     esac
+ fi

+@@ -1277,7 +1474,9 @@
+ the operating system you are using. It is advised that you
+ download the most up to date version of the config scripts from

+-    ftp://ftp.gnu.org/pub/gnu/config/
++  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
++and
++  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

+ If the version you run ($0) is already up to date, please
+ send the following data and any information you think might be
+--- gsmlib-1.10.orig/scripts/config.sub
++++ gsmlib-1.10/scripts/config.sub
+@@ -1,9 +1,10 @@
+ #! /bin/sh
+ # Configuration validation subroutine script.
+-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+-#   Free Software Foundation, Inc.
++#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
++#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
++#   Inc.

+-timestamp='2001-09-07'
++timestamp='2007-01-18'

+ # This file is (in principle) common to ALL GNU software.
+ # The presence of a machine in this file suggests that SOME GNU software
+@@ -21,15 +22,17 @@
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330,
+-# Boston, MA 02111-1307, USA.
+-
++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
++# 02110-1301, USA.
++#
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.

+-# Please send patches to &lt;config-patches@gnu.org&gt;.
++
++# Please send patches to &lt;config-patches@gnu.org&gt;.  Submit a context
++# diff and a properly formatted ChangeLog entry.
+ #
+ # Configuration subroutine to validate and canonicalize a configuration type.
+ # Supply the specified configuration type as an argument.
+@@ -69,7 +72,7 @@
+ version=&quot;\
+ GNU config.sub ($timestamp)

+-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Free Software Foundation, Inc.

+ This is free software; see the source for copying conditions.  There is NO
+@@ -82,11 +85,11 @@
+ while test $# -gt 0 ; do
+   case $1 in
+     --time-stamp | --time* | -t )
+-       echo &quot;$timestamp&quot; ; exit 0 ;;
++       echo &quot;$timestamp&quot; ; exit ;;
+     --version | -v )
+-       echo &quot;$version&quot; ; exit 0 ;;
++       echo &quot;$version&quot; ; exit ;;
+     --help | --h* | -h )
+-       echo &quot;$usage&quot;; exit 0 ;;
++       echo &quot;$usage&quot;; exit ;;
+     -- )     # Stop option processing
+        shift; break ;;
+     - )        # Use stdin as input.
+@@ -98,7 +101,7 @@
+     *local*)
+        # First pass through any local machine types.
+        echo $1
+-       exit 0;;
++       exit ;;

+     * )
+        break ;;
+@@ -117,7 +120,9 @@
+ # Here we must recognize all the valid KERNEL-OS combinations.
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+-  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
++  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
++  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
++  storm-chaos* | os2-emx* | rtmk-nova*)
+     os=-$maybe_os
+     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+     ;;
+@@ -143,7 +148,7 @@
+         -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+         -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+         -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+-        -apple | -axis)
++        -apple | -axis | -knuth | -cray)
+                 os=
+                 basic_machine=$1
+                 ;
+@@ -168,6 +173,10 @@
+         -hiux*)
+                 os=-hiuxwe2
+                 ;
++        -sco6)
++                os=-sco5v6
++                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
++                ;
+         -sco5)
+                 os=-sco3.2v5
+                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+@@ -184,6 +193,10 @@
+                 # Don't forget version if it is 3.2v4 or newer.
+                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+                 ;
++        -sco5v6*)
++                # Don't forget version if it is 3.2v4 or newer.
++                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
++                ;
+         -sco*)
+                 os=-sco3.2v2
+                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+@@ -226,32 +239,53 @@
+         1750a | 580 \
+         | a29k \
+         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+-        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
++        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
++        | am33_2.0 \
++        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
++        | bfin \
+         | c4x | clipper \
+-        | d10v | d30v | dsp16xx \
+-        | fr30 \
++        | d10v | d30v | dlx | dsp16xx \
++        | fido | fr30 | frv \
+         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+         | i370 | i860 | i960 | ia64 \
+-        | m32r | m68000 | m68k | m88k | mcore \
+-        | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
+-        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
+-        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
+-        | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
+-        | mipsisa32 \
++        | ip2k | iq2000 \
++        | m32c | m32r | m32rle | m68000 | m68k | m88k \
++        | maxq | mb | microblaze | mcore | mep \
++        | mips | mipsbe | mipseb | mipsel | mipsle \
++        | mips16 \
++        | mips64 | mips64el \
++        | mips64vr | mips64vrel \
++        | mips64orion | mips64orionel \
++        | mips64vr4100 | mips64vr4100el \
++        | mips64vr4300 | mips64vr4300el \
++        | mips64vr5000 | mips64vr5000el \
++        | mips64vr5900 | mips64vr5900el \
++        | mipsisa32 | mipsisa32el \
++        | mipsisa32r2 | mipsisa32r2el \
++        | mipsisa64 | mipsisa64el \
++        | mipsisa64r2 | mipsisa64r2el \
++        | mipsisa64sb1 | mipsisa64sb1el \
++        | mipsisa64sr71k | mipsisa64sr71kel \
++        | mipstx39 | mipstx39el \
+         | mn10200 | mn10300 \
++        | mt \
++        | msp430 \
++        | nios | nios2 \
+         | ns16k | ns32k \
+-        | openrisc \
++        | or32 \
+         | pdp10 | pdp11 | pj | pjl \
+         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+         | pyramid \
+-        | s390 | s390x \
+-        | sh | sh[34] | sh[34]eb | shbe | shle \
+-        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
+-        | stormy16 | strongarm \
+-        | tahoe | thumb | tic80 | tron \
+-        | v850 \
++        | score \
++        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
++        | sh64 | sh64le \
++        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
++        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
++        | spu | strongarm \
++        | tahoe | thumb | tic4x | tic80 | tron \
++        | v850 | v850e \
+         | we32k \
+-        | x86 | xscale \
++        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+         | z8k)
+                 basic_machine=$basic_machine-unknown
+                 ;
+@@ -262,6 +296,9 @@
+                 ;
+         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+                 ;
++        ms1)
++                basic_machine=mt-unknown
++                ;

+         # We use `pc' rather than `unknown'
+         # because (1) that's what they normally are, and
+@@ -278,38 +315,61 @@
+         580-* \
+         | a29k-* \
+         | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+-        | alphapca5[67]-* | arc-* \
+-        | arm-*  | armbe-* | armle-* | armv*-* \
+-        | bs2000-* \
+-        | c[123]* | c30-* | [cjt]90-* | c54x-* \
+-        | clipper-* | cray2-* | cydra-* \
+-        | d10v-* | d30v-* \
++        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
++        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
++        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
++        | avr-* | avr32-* \
++        | bfin-* | bs2000-* \
++        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
++        | clipper-* | craynv-* | cydra-* \
++        | d10v-* | d30v-* | dlx-* \
+         | elxsi-* \
+-        | f30[01]-* | f700-* | fr30-* | fx80-* \
++        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+         | h8300-* | h8500-* \
+         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+         | i*86-* | i860-* | i960-* | ia64-* \
+-        | m32r-* \
+-        | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
+-        | m88110-* | m88k-* | mcore-* \
+-        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
+-        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
+-        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
+-        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
++        | ip2k-* | iq2000-* \
++        | m32c-* | m32r-* | m32rle-* \
++        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
++        | m88110-* | m88k-* | maxq-* | mcore-* \
++        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
++        | mips16-* \
++        | mips64-* | mips64el-* \
++        | mips64vr-* | mips64vrel-* \
++        | mips64orion-* | mips64orionel-* \
++        | mips64vr4100-* | mips64vr4100el-* \
++        | mips64vr4300-* | mips64vr4300el-* \
++        | mips64vr5000-* | mips64vr5000el-* \
++        | mips64vr5900-* | mips64vr5900el-* \
++        | mipsisa32-* | mipsisa32el-* \
++        | mipsisa32r2-* | mipsisa32r2el-* \
++        | mipsisa64-* | mipsisa64el-* \
++        | mipsisa64r2-* | mipsisa64r2el-* \
++        | mipsisa64sb1-* | mipsisa64sb1el-* \
++        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
++        | mipstx39-* | mipstx39el-* \
++        | mmix-* \
++        | mt-* \
++        | msp430-* \
++        | nios-* | nios2-* \
+         | none-* | np1-* | ns16k-* | ns32k-* \
+         | orion-* \
+         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+         | pyramid-* \
+         | romp-* | rs6000-* \
+-        | s390-* | s390x-* \
+-        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
+-        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
+-        | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
+-        | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
+-        | v850-* | vax-* \
++        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
++        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
++        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
++        | sparclite-* \
++        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
++        | tahoe-* | thumb-* \
++        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
++        | tron-* \
++        | v850-* | v850e-* | vax-* \
+         | we32k-* \
+-        | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
++        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
++        | xstormy16-* | xtensa-* \
+         | ymp-* \
+         | z8k-*)
+                 ;
+@@ -329,6 +389,9 @@
+                 basic_machine=a29k-amd
+                 os=-udi
+                 ;
++            abacus)
++                basic_machine=abacus-unknown
++                ;
+         adobe68k)
+                 basic_machine=m68010-adobe
+                 os=-scout
+@@ -343,6 +406,12 @@
+                 basic_machine=a29k-none
+                 os=-bsd
+                 ;
++        amd64)
++                basic_machine=x86_64-pc
++                ;
++        amd64-*)
++                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
++                ;
+         amdahl)
+                 basic_machine=580-amdahl
+                 os=-sysv
+@@ -374,6 +443,10 @@
+                 basic_machine=ns32k-sequent
+                 os=-dynix
+                 ;
++        c90)
++                basic_machine=c90-cray
++                os=-unicos
++                ;
+         convex-c1)
+                 basic_machine=c1-convex
+                 os=-bsd
+@@ -394,30 +467,45 @@
+                 basic_machine=c38-convex
+                 os=-bsd
+                 ;
+-        cray | ymp)
+-                basic_machine=ymp-cray
++        cray | j90)
++                basic_machine=j90-cray
+                 os=-unicos
+                 ;
+-        cray2)
+-                basic_machine=cray2-cray
+-                os=-unicos
++        craynv)
++                basic_machine=craynv-cray
++                os=-unicosmp
+                 ;
+-        [cjt]90)
+-                basic_machine=${basic_machine}-cray
+-                os=-unicos
++        cr16c)
++                basic_machine=cr16c-unknown
++                os=-elf
+                 ;
+         crds | unos)
+                 basic_machine=m68k-crds
+                 ;
++        crisv32 | crisv32-* | etraxfs*)
++                basic_machine=crisv32-axis
++                ;
+         cris | cris-* | etrax*)
+                 basic_machine=cris-axis
+                 ;
++        crx)
++                basic_machine=crx-unknown
++                os=-elf
++                ;
+         da30 | da30-*)
+                 basic_machine=m68k-da30
+                 ;
+         decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+                 basic_machine=mips-dec
+                 ;
++        decsystem10* | dec10*)
++                basic_machine=pdp10-dec
++                os=-tops10
++                ;
++        decsystem20* | dec20*)
++                basic_machine=pdp10-dec
++                os=-tops20
++                ;
+         delta | 3300 | motorola-3300 | motorola-delta \
+               | 3300-motorola | delta-motorola)
+                 basic_machine=m68k-motorola
+@@ -426,6 +514,10 @@
+                 basic_machine=m88k-motorola
+                 os=-sysv3
+                 ;
++        djgpp)
++                basic_machine=i586-pc
++                os=-msdosdjgpp
++                ;
+         dpx20 | dpx20-*)
+                 basic_machine=rs6000-bull
+                 os=-bosx
+@@ -598,32 +690,27 @@
+                 basic_machine=m68k-atari
+                 os=-mint
+                 ;
+-        mipsel*-linux*)
+-                basic_machine=mipsel-unknown
+-                os=-linux-gnu
+-                ;
+-        mips*-linux*)
+-                basic_machine=mips-unknown
+-                os=-linux-gnu
+-                ;
+         mips3*-*)
+                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+                 ;
+         mips3*)
+                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+                 ;
+-        mmix*)
+-                basic_machine=mmix-knuth
+-                os=-mmixware
+-                ;
+         monitor)
+                 basic_machine=m68k-rom68k
+                 os=-coff
+                 ;
++        morphos)
++                basic_machine=powerpc-unknown
++                os=-morphos
++                ;
+         msdos)
+                 basic_machine=i386-pc
+                 os=-msdos
+                 ;
++        ms1-*)
++                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
++                ;
+         mvs)
+                 basic_machine=i370-ibm
+                 os=-mvs
+@@ -699,6 +786,13 @@
+                 basic_machine=hppa1.1-oki
+                 os=-proelf
+                 ;
++        openrisc | openrisc-*)
++                basic_machine=or32-unknown
++                ;
++        os400)
++                basic_machine=powerpc-ibm
++                os=-os400
++                ;
+         OSE68000 | ose68000)
+                 basic_machine=m68000-ericsson
+                 os=-ose
+@@ -721,49 +815,61 @@
+         pbb)
+                 basic_machine=m68k-tti
+                 ;
+-        pc532 | pc532-*)
++        pc532 | pc532-*)
+                 basic_machine=ns32k-pc532
+                 ;
+-        pentium | p5 | k5 | k6 | nexgen)
++        pc98)
++                basic_machine=i386-pc
++                ;
++        pc98-*)
++                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
++                ;
++        pentium | p5 | k5 | k6 | nexgen | viac3)
+                 basic_machine=i586-pc
+                 ;
+-        pentiumpro | p6 | 6x86 | athlon)
++        pentiumpro | p6 | 6x86 | athlon | athlon_*)
+                 basic_machine=i686-pc
+                 ;
+-        pentiumii | pentium2)
++        pentiumii | pentium2 | pentiumiii | pentium3)
+                 basic_machine=i686-pc
+                 ;
+-        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
++        pentium4)
++                basic_machine=i786-pc
++                ;
++        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+                 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+         pentiumpro-* | p6-* | 6x86-* | athlon-*)
+                 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+-        pentiumii-* | pentium2-*)
++        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+                 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
++        pentium4-*)
++                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
++                ;
+         pn)
+                 basic_machine=pn-gould
+                 ;
+         power)        basic_machine=power-ibm
+                 ;
+         ppc)        basic_machine=powerpc-unknown
+-                ;;
++                ;
+         ppc-*)        basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+         ppcle | powerpclittle | ppc-le | powerpc-little)
+                 basic_machine=powerpcle-unknown
+-                ;;
++                ;
+         ppcle-* | powerpclittle-*)
+                 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+         ppc64)        basic_machine=powerpc64-unknown
+-                ;;
++                ;
+         ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+         ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+                 basic_machine=powerpc64le-unknown
+-                ;;
++                ;
+         ppc64le-* | powerpc64little-*)
+                 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+                 ;
+@@ -774,6 +880,10 @@
+                 basic_machine=i586-unknown
+                 os=-pw32
+                 ;
++        rdos)
++                basic_machine=i386-pc
++                os=-rdos
++                ;
+         rom68k)
+                 basic_machine=m68k-rom68k
+                 os=-coff
+@@ -784,10 +894,30 @@
+         rtpc | rtpc-*)
+                 basic_machine=romp-ibm
+                 ;
++        s390 | s390-*)
++                basic_machine=s390-ibm
++                ;
++        s390x | s390x-*)
++                basic_machine=s390x-ibm
++                ;
+         sa29200)
+                 basic_machine=a29k-amd
+                 os=-udi
+                 ;
++        sb1)
++                basic_machine=mipsisa64sb1-unknown
++                ;
++        sb1el)
++                basic_machine=mipsisa64sb1el-unknown
++                ;
++        sde)
++                basic_machine=mipsisa32-sde
++                os=-elf
++                ;
++        sei)
++                basic_machine=mips-sei
++                os=-seiux
++                ;
+         sequent)
+                 basic_machine=i386-sequent
+                 ;
+@@ -795,7 +925,13 @@
+                 basic_machine=sh-hitachi
+                 os=-hms
+                 ;
+-        sparclite-wrs)
++        sh5el)
++                basic_machine=sh5le-unknown
++                ;
++        sh64)
++                basic_machine=sh64-unknown
++                ;
++        sparclite-wrs | simso-wrs)
+                 basic_machine=sparclite-wrs
+                 os=-vxworks
+                 ;
+@@ -862,22 +998,42 @@
+                 os=-dynix
+                 ;
+         t3e)
+-                basic_machine=t3e-cray
++                basic_machine=alphaev5-cray
++                os=-unicos
++                ;
++        t90)
++                basic_machine=t90-cray
+                 os=-unicos
+                 ;
+         tic54x | c54x*)
+                 basic_machine=tic54x-unknown
+                 os=-coff
+                 ;
++        tic55x | c55x*)
++                basic_machine=tic55x-unknown
++                os=-coff
++                ;
++        tic6x | c6x*)
++                basic_machine=tic6x-unknown
++                os=-coff
++                ;
+         tx39)
+                 basic_machine=mipstx39-unknown
+                 ;
+         tx39el)
+                 basic_machine=mipstx39el-unknown
+                 ;
++        toad1)
++                basic_machine=pdp10-xkl
++                os=-tops20
++                ;
+         tower | tower-32)
+                 basic_machine=m68k-ncr
+                 ;
++        tpf)
++                basic_machine=s390x-ibm
++                os=-tpf
++                ;
+         udi29k)
+                 basic_machine=a29k-amd
+                 os=-udi
+@@ -899,8 +1055,8 @@
+                 os=-vms
+                 ;
+         vpp*|vx|vx-*)
+-               basic_machine=f301-fujitsu
+-               ;;
++                basic_machine=f301-fujitsu
++                ;
+         vxworks960)
+                 basic_machine=i960-wrs
+                 os=-vxworks
+@@ -921,17 +1077,17 @@
+                 basic_machine=hppa1.1-winbond
+                 os=-proelf
+                 ;
+-        windows32)
+-                basic_machine=i386-pc
+-                os=-windows32-msvcrt
+-                ;
+-        xmp)
+-                basic_machine=xmp-cray
+-                os=-unicos
++        xbox)
++                basic_machine=i686-pc
++                os=-mingw32
+                 ;
+-        xps | xps100)
++        xps | xps100)
+                 basic_machine=xps100-honeywell
+                 ;
++        ymp)
++                basic_machine=ymp-cray
++                os=-unicos
++                ;
+         z8k-*-coff)
+                 basic_machine=z8k-unknown
+                 os=-sim
+@@ -952,16 +1108,12 @@
+         op60c)
+                 basic_machine=hppa1.1-oki
+                 ;
+-        mips)
+-                if [ x$os = x-linux-gnu ]; then
+-                        basic_machine=mips-unknown
+-                else
+-                        basic_machine=mips-mips
+-                fi
+-                ;
+         romp)
+                 basic_machine=romp-ibm
+                 ;
++        mmix)
++                basic_machine=mmix-knuth
++                ;
+         rs6000)
+                 basic_machine=rs6000-ibm
+                 ;
+@@ -978,13 +1130,13 @@
+         we32k)
+                 basic_machine=we32k-att
+                 ;
+-        sh3 | sh4 | sh3eb | sh4eb)
++        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
+                 basic_machine=sh-unknown
+                 ;
+-        sparc | sparcv9 | sparcv9b)
++        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+                 basic_machine=sparc-sun
+                 ;
+-        cydra)
++        cydra)
+                 basic_machine=cydra-cydrome
+                 ;
+         orion)
+@@ -999,10 +1151,6 @@
+         pmac | pmac-mpw)
+                 basic_machine=powerpc-apple
+                 ;
+-        c4x*)
+-                basic_machine=c4x-none
+-                os=-coff
+-                ;
+         *-unknown)
+                 # Make sure to match an already-canonicalized machine name.
+                 ;
+@@ -1058,17 +1206,23 @@
+               | -aos* \
+               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+-              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+-              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
++              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
++              | -openbsd* | -solidbsd* \
++              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
++              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+               | -chorusos* | -chorusrdb* \
+               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+-              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+-              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
++              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
++              | -uxpv* | -beos* | -mpeix* | -udk* \
++              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+-              | -os2* | -vos*)
++              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
++              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
++              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
++              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
+         # Remember, each alternative MUST END IN *, to match a version number.
+                 ;
+         -qnx*)
+@@ -1080,16 +1234,21 @@
+                         ;
+                 esac
+                 ;
++        -nto-qnx*)
++                ;
+         -nto*)
+-                os=-nto-qnx
++                os=`echo $os | sed -e 's|nto|nto-qnx|'`
+                 ;
+         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+-              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
++              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+                 ;
+         -mac*)
+                 os=`echo $os | sed -e 's|mac|macos|'`
+                 ;
++        -linux-dietlibc)
++                os=-linux-dietlibc
++                ;
+         -linux*)
+                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
+                 ;
+@@ -1102,6 +1261,9 @@
+         -opened*)
+                 os=-openedition
+                 ;
++        -os400*)
++                os=-os400
++                ;
+         -wince*)
+                 os=-wince
+                 ;
+@@ -1120,14 +1282,23 @@
+         -acis*)
+                 os=-aos
+                 ;
++        -atheos*)
++                os=-atheos
++                ;
++        -syllable*)
++                os=-syllable
++                ;
+         -386bsd)
+                 os=-bsd
+                 ;
+         -ctix* | -uts*)
+                 os=-sysv
+                 ;
++        -nova*)
++                os=-rtmk-nova
++                ;
+         -ns2 )
+-                os=-nextstep2
++                os=-nextstep2
+                 ;
+         -nsk*)
+                 os=-nsk
+@@ -1139,6 +1310,9 @@
+         -sinix*)
+                 os=-sysv4
+                 ;
++        -tpf*)
++                os=-tpf
++                ;
+         -triton*)
+                 os=-sysv3
+                 ;
+@@ -1166,8 +1340,17 @@
+         -xenix)
+                 os=-xenix
+                 ;
+-        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+-                os=-mint
++        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
++                os=-mint
++                ;
++        -aros*)
++                os=-aros
++                ;
++        -kaos*)
++                os=-kaos
++                ;
++        -zvmoe)
++                os=-zvmoe
+                 ;
+         -none)
+                 ;
+@@ -1191,6 +1374,12 @@
+ # system, and we'll never get to this point.

+ case $basic_machine in
++        score-*)
++                os=-elf
++                ;
++        spu-*)
++                os=-elf
++                ;
+         *-acorn)
+                 os=-riscix1.2
+                 ;
+@@ -1200,10 +1389,14 @@
+         arm*-semi)
+                 os=-aout
+                 ;
++        c4x-* | tic4x-*)
++                os=-coff
++                ;
++        # This must come before the *-dec entry.
+         pdp10-*)
+                 os=-tops20
+                 ;
+-        pdp11-*)
++        pdp11-*)
+                 os=-none
+                 ;
+         *-dec | vax-*)
+@@ -1224,12 +1417,18 @@
+         m68*-cisco)
+                 os=-aout
+                 ;
++        mep-*)
++                os=-elf
++                ;
+         mips*-cisco)
+                 os=-elf
+                 ;
+         mips*-*)
+                 os=-elf
+                 ;
++        or32-*)
++                os=-coff
++                ;
+         *-tti)        # must be before sparc entry or we get the wrong os.
+                 os=-sysv3
+                 ;
+@@ -1239,9 +1438,15 @@
+         *-be)
+                 os=-beos
+                 ;
++        *-haiku)
++                os=-haiku
++                ;
+         *-ibm)
+                 os=-aix
+                 ;
++            *-knuth)
++                os=-mmixware
++                ;
+         *-wec)
+                 os=-proelf
+                 ;
+@@ -1293,19 +1498,19 @@
+         *-next)
+                 os=-nextstep3
+                 ;
+-        *-gould)
++        *-gould)
+                 os=-sysv
+                 ;
+-        *-highlevel)
++        *-highlevel)
+                 os=-bsd
+                 ;
+         *-encore)
+                 os=-bsd
+                 ;
+-        *-sgi)
++        *-sgi)
+                 os=-irix
+                 ;
+-        *-siemens)
++        *-siemens)
+                 os=-sysv4
+                 ;
+         *-masscomp)
+@@ -1374,10 +1579,16 @@
+                         -mvs* | -opened*)
+                                 vendor=ibm
+                                 ;
++                        -os400*)
++                                vendor=ibm
++                                ;
+                         -ptx*)
+                                 vendor=sequent
+                                 ;
+-                        -vxsim* | -vxworks*)
++                        -tpf*)
++                                vendor=ibm
++                                ;
++                        -vxsim* | -vxworks* | -windiss*)
+                                 vendor=wrs
+                                 ;
+                         -aux*)
+@@ -1401,7 +1612,7 @@
+ esac

+ echo $basic_machine$os
+-exit 0
++exit

+ # Local variables:
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
+--- gsmlib-1.10.orig/scripts/ltconfig
++++ gsmlib-1.10/scripts/ltconfig
+@@ -1,8 +1,8 @@
+ #! /bin/sh

+ # ltconfig - Create a system-specific libtool.
+-# Copyright (C) 1996-1998 Free Software Foundation, Inc.
+-# Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
++# Copyright (C) 1996-1999 Free Software Foundation, Inc.
++# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+ #
+ # This file is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+@@ -32,12 +32,8 @@
+   # Discard the --no-reexec flag, and continue.
+   shift
+ elif test &quot;X$1&quot; = X--fallback-echo; then
+-  # used as fallback echo
+-  shift
+-  cat &lt;&lt;EOF
+-$*
+-EOF
+-  exit 0
++  # Avoid inline document here, it may be left over
++  :
+ elif test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t'; then
+   # Yippee, $echo works!
+   :
+@@ -46,11 +42,30 @@
+   exec &quot;$SHELL&quot; &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+ fi

++if test &quot;X$1&quot; = X--fallback-echo; then
++  # used as fallback echo
++  shift
++  cat &lt;&lt;EOF
++$*
++EOF
++  exit 0
++fi
++
++# Find the correct PATH separator.  Usually this is `:', but
++# DJGPP uses `;' like DOS.
++if test &quot;X${PATH_SEPARATOR+set}&quot; != Xset; then
++  UNAME=${UNAME-`uname 2&gt;/dev/null`}
++  case X$UNAME in
++    *-DOS) PATH_SEPARATOR=';' ;;
++    *)     PATH_SEPARATOR=':' ;;
++  esac
++fi
++
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
+ # if CDPATH is set.
+-if test &quot;${CDPATH+set}&quot; = set; then CDPATH=; export CDPATH; fi
++if test &quot;X${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi

+-if test &quot;X${echo_test_string+set}&quot; != &quot;Xset&quot;; then
++if test &quot;X${echo_test_string+set}&quot; != Xset; then
+   # find a string as large as possible, as long as the shell can cope with it
+   for cmd in 'sed 50q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 2q &quot;$0&quot;' 'echo test'; do
+     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+@@ -70,9 +85,9 @@
+   #
+   # So, first we look for a working echo in the user's PATH.

+-  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
++  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+   for dir in $PATH /usr/ucb; do
+-    if test -f $dir/echo &amp;&amp;
++    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &amp;&amp;
+        test &quot;X`($dir/echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+        test &quot;X`($dir/echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+       echo=&quot;$dir/echo&quot;
+@@ -87,7 +102,8 @@
+        test &quot;X`(print -r &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+       # This shell has a builtin print -r that does the trick.
+       echo='print -r'
+-    elif test -f /bin/ksh &amp;&amp; test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
++    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &amp;&amp;
++         test &quot;X$CONFIG_SHELL&quot; != X/bin/ksh; then
+       # If we have ksh, try running ltconfig again with it.
+       ORIGINAL_CONFIG_SHELL=&quot;${CONFIG_SHELL-/bin/sh}&quot;
+       export ORIGINAL_CONFIG_SHELL
+@@ -96,10 +112,10 @@
+       exec &quot;$CONFIG_SHELL&quot; &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
+     else
+       # Try using printf.
+-      echo='printf %s\n'
++      echo='printf &quot;%s\n&quot;'
+       if test &quot;X`($echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+-         test &quot;X`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+-        # Cool, printf works
++         test &quot;X`($echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
++        # Cool, printf works
+         :
+       elif test &quot;X`(&quot;$ORIGINAL_CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+            test &quot;X`(&quot;$ORIGINAL_CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+@@ -110,9 +126,9 @@
+         echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+       elif test &quot;X`(&quot;$CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo '\t') 2&gt;/dev/null`&quot; = 'X\t' &amp;&amp;
+            test &quot;X`(&quot;$CONFIG_SHELL&quot; &quot;$0&quot; --fallback-echo &quot;$echo_test_string&quot;) 2&gt;/dev/null`&quot; = X&quot;$echo_test_string&quot;; then
+-        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
++        echo=&quot;$CONFIG_SHELL $0 --fallback-echo&quot;
+       else
+-        # maybe with a smaller string...
++        # maybe with a smaller string...
+         prev=:

+         for cmd in 'echo test' 'sed 2q &quot;$0&quot;' 'sed 10q &quot;$0&quot;' 'sed 20q &quot;$0&quot;' 'sed 50q &quot;$0&quot;'; do
+@@ -143,15 +159,20 @@
+ # Same as above, but do not quote variable references.
+ double_quote_subst='s/\([\\&quot;\\`\\\\]\)/\\\1/g'

++# Sed substitution to delay expansion of an escaped shell variable in a
++# double_quote_subst'ed string.
++delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
++
+ # The name of this program.
+ progname=`$echo &quot;X$0&quot; | $Xsed -e 's%^.*/%%'`

+ # Constants:
+ PROGRAM=ltconfig
+ PACKAGE=libtool
+-VERSION=1.2d
+-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1&gt;&amp;5'
+-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1&gt;&amp;5'
++VERSION=1.3.5
++TIMESTAMP=&quot; (1.385.2.206 2000/05/27 11:12:27)&quot;
++ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1&gt;&amp;5'
++ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1&gt;&amp;5'
+ rm=&quot;rm -f&quot;

+ help=&quot;Try \`$progname --help' for more information.&quot;
+@@ -160,8 +181,12 @@
+ default_ofile=libtool
+ can_build_shared=yes
+ enable_shared=yes
+-# All known linkers require a `.a' archive for static linking.
++# All known linkers require a `.a' archive for static linking (except M$VC,
++# which needs '.lib').
+ enable_static=yes
++enable_fast_install=yes
++enable_dlopen=unknown
++enable_win32_dll=no
+ ltmain=
+ silent=
+ srcdir=
+@@ -174,18 +199,24 @@
+ with_gcc=no
+ with_gnu_ld=no
+ need_locks=yes
++ac_ext=c
+ objext=o
+ libext=a
++exeext=
++cache_file=

+ old_AR=&quot;$AR&quot;
+ old_CC=&quot;$CC&quot;
+ old_CFLAGS=&quot;$CFLAGS&quot;
+ old_CPPFLAGS=&quot;$CPPFLAGS&quot;
++old_LDFLAGS=&quot;$LDFLAGS&quot;
+ old_LD=&quot;$LD&quot;
+ old_LN_S=&quot;$LN_S&quot;
++old_LIBS=&quot;$LIBS&quot;
+ old_NM=&quot;$NM&quot;
+ old_RANLIB=&quot;$RANLIB&quot;
+ old_DLLTOOL=&quot;$DLLTOOL&quot;
++old_OBJDUMP=&quot;$OBJDUMP&quot;
+ old_AS=&quot;$AS&quot;

+ # Parse the command line options.
+@@ -214,6 +245,9 @@
+     --debug                enable verbose shell tracing
+     --disable-shared       do not build shared libraries
+     --disable-static       do not build static libraries
++    --disable-fast-install do not optimize for fast installation
++    --enable-dlopen        enable dlopen support
++    --enable-win32-dll     enable building dlls on win32 hosts
+     --help                 display this help and exit
+     --no-verify            do not verify that HOST is a valid host type
+ -o, --output=FILE          specify the output file [default=$default_ofile]
+@@ -224,6 +258,7 @@
+     --with-gcc             assume that the GNU C compiler will be used
+     --with-gnu-ld          assume that the C compiler uses the GNU linker
+     --disable-lock         disable file locking
++    --cache-file=FILE      configure cache file

+ LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
+ that provides basic libtool functionality.
+@@ -242,6 +277,12 @@

+   --disable-static) enable_static=no ;;

++  --disable-fast-install) enable_fast_install=no ;;
++
++  --enable-dlopen) enable_dlopen=yes ;;
++
++  --enable-win32-dll) enable_win32_dll=yes ;;
++
+   --quiet | --silent) silent=yes ;;

+   --srcdir) prev=srcdir ;;
+@@ -252,13 +293,15 @@
+   --output | -o) prev=ofile ;;
+   --output=*) ofile=&quot;$optarg&quot; ;;

+-  --version) echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION&quot;; exit 0 ;;
++  --version) echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP&quot;; exit 0 ;;

+   --with-gcc) with_gcc=yes ;;
+   --with-gnu-ld) with_gnu_ld=yes ;;

+   --disable-lock) need_locks=no ;;

++  --cache-file=*) cache_file=&quot;$optarg&quot; ;;
++
+   -*)
+     echo &quot;$progname: unrecognized option \`$option'&quot; 1&gt;&amp;2
+     echo &quot;$help&quot; 1&gt;&amp;2
+@@ -326,8 +369,13 @@
+ # Only set LANG and LC_ALL to C if already set.
+ # These must not be set unconditionally because not all systems understand
+ # e.g. LANG=C (notably SCO).
+-if test &quot;${LC_ALL+set}&quot; = set; then LC_ALL=C; export LC_ALL; fi
+-if test &quot;${LANG+set}&quot;   = set; then LANG=C;   export LANG;   fi
++if test &quot;X${LC_ALL+set}&quot; = Xset; then LC_ALL=C; export LC_ALL; fi
++if test &quot;X${LANG+set}&quot;   = Xset; then LANG=C;   export LANG;   fi
++
++if test -n &quot;$cache_file&quot; &amp;&amp; test -r &quot;$cache_file&quot;; then
++  echo &quot;loading cache $cache_file within ltconfig&quot;
++  . $cache_file
++fi

+ if (echo &quot;testing\c&quot;; echo 1,2,3) | grep c &gt;/dev/null; then
+   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+@@ -343,7 +391,7 @@

+ if test -z &quot;$srcdir&quot;; then
+   # Assume the source directory is the same one as the path to LTMAIN.
+-  srcdir=`$echo &quot;$ltmain&quot; | $Xsed -e 's%/[^/]*$%%'`
++  srcdir=`$echo &quot;X$ltmain&quot; | $Xsed -e 's%/[^/]*$%%'`
+   test &quot;$srcdir&quot; = &quot;$ltmain&quot; &amp;&amp; srcdir=.
+ fi

+@@ -414,7 +462,7 @@
+   # AIX sometimes has problems with the GCC collect2 program.  For some
+   # reason, if we set the COLLECT_NAMES environment variable, the problems
+   # vanish in a puff of smoke.
+-  if test &quot;${COLLECT_NAMES+set}&quot; != set; then
++  if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+     COLLECT_NAMES=
+     export COLLECT_NAMES
+   fi
+@@ -429,15 +477,18 @@
+ # Set a sane default for `AR'.
+ test -z &quot;$AR&quot; &amp;&amp; AR=ar

++# Set a sane default for `OBJDUMP'.
++test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
++
+ # If RANLIB is not set, then run the test.
+ if test &quot;${RANLIB+set}&quot; != &quot;set&quot;; then
+   result=no

+   echo $ac_n &quot;checking for ranlib... $ac_c&quot; 1&gt;&amp;6
+-  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
++  IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+   for dir in $PATH; do
+     test -z &quot;$dir&quot; &amp;&amp; dir=.
+-    if test -f $dir/ranlib; then
++    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
+       RANLIB=&quot;ranlib&quot;
+       result=&quot;ranlib&quot;
+       break
+@@ -453,8 +504,9 @@
+   old_postinstall_cmds=&quot;\$RANLIB \$oldlib~$old_postinstall_cmds&quot;
+ fi

+-# Set sane defaults for `DLLTOOL' and `AS', used on cygwin32.
++# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
+ test -z &quot;$DLLTOOL&quot; &amp;&amp; DLLTOOL=dlltool
++test -z &quot;$OBJDUMP&quot; &amp;&amp; OBJDUMP=objdump
+ test -z &quot;$AS&quot; &amp;&amp; AS=as

+ # Check to see if we are using GCC.
+@@ -462,11 +514,10 @@
+   # If CC is not set, then try to find GCC or a usable CC.
+   if test -z &quot;$CC&quot;; then
+     echo $ac_n &quot;checking for gcc... $ac_c&quot; 1&gt;&amp;6
+-    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
++    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+     for dir in $PATH; do
+-      IFS=&quot;$save_ifs&quot;
+       test -z &quot;$dir&quot; &amp;&amp; dir=.
+-      if test -f $dir/gcc; then
++      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
+         CC=&quot;gcc&quot;
+         break
+       fi
+@@ -483,11 +534,11 @@
+   # Not &quot;gcc&quot;, so try &quot;cc&quot;, rejecting &quot;/usr/ucb/cc&quot;.
+   if test -z &quot;$CC&quot;; then
+     echo $ac_n &quot;checking for cc... $ac_c&quot; 1&gt;&amp;6
+-    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
++    IFS=&quot;${IFS=         }&quot;; save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+     cc_rejected=no
+     for dir in $PATH; do
+       test -z &quot;$dir&quot; &amp;&amp; dir=.
+-      if test -f $dir/cc; then
++      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
+         if test &quot;$dir/cc&quot; = &quot;/usr/ucb/cc&quot;; then
+           cc_rejected=yes
+           continue
+@@ -527,7 +578,7 @@
+   # Now see if the compiler is really GCC.
+   with_gcc=no
+   echo $ac_n &quot;checking whether we are using GNU C... $ac_c&quot; 1&gt;&amp;6
+-  echo &quot;$progname:530: checking whether we are using GNU C&quot; &gt;&amp;5
++  echo &quot;$progname:581: checking whether we are using GNU C&quot; &gt;&amp;5

+   $rm conftest.c
+   cat &gt; conftest.c &lt;&lt;EOF
+@@ -535,7 +586,7 @@
+   yes;
+ #endif
+ EOF
+-  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:538: \&quot;$ac_try\&quot;) 1&gt;&amp;5; (eval $ac_try) 2&gt;&amp;5; }; } | egrep yes &gt;/dev/null 2&gt;&amp;1; then
++  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \&quot;$ac_try\&quot;) 1&gt;&amp;5; (eval $ac_try) 2&gt;&amp;5; }; } | egrep yes &gt;/dev/null 2&gt;&amp;1; then
+     with_gcc=yes
+   fi
+   $rm conftest.c
+@@ -549,8 +600,8 @@
+ echo $ac_n &quot;checking for object suffix... $ac_c&quot; 1&gt;&amp;6
+ $rm conftest*
+ echo 'int i = 1;' &gt; conftest.c
+-echo &quot;$progname:552: checking for object suffix&quot; &gt;&amp; 5
+-if { (eval echo $progname:553: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; }; then
++echo &quot;$progname:603: checking for object suffix&quot; &gt;&amp; 5
++if { (eval echo $progname:604: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; }; then
+   # Append any warnings to the config.log.
+   cat conftest.err 1&gt;&amp;5

+@@ -568,6 +619,38 @@
+ $rm conftest*
+ echo &quot;$ac_t$objext&quot; 1&gt;&amp;6

++echo $ac_n &quot;checking for executable suffix... $ac_c&quot; 1&gt;&amp;6
++if eval &quot;test \&quot;`echo '$''{'ac_cv_exeext'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  ac_cv_exeext=&quot;no&quot;
++  $rm conftest*
++  echo 'main () { return 0; }' &gt; conftest.c
++  echo &quot;$progname:629: checking for executable suffix&quot; &gt;&amp; 5
++  if { (eval echo $progname:630: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;conftest.err; }; then
++    # Append any warnings to the config.log.
++    cat conftest.err 1&gt;&amp;5
++
++    for ac_file in conftest.*; do
++      case $ac_file in
++      *.c | *.err | *.$objext ) ;;
++      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
++      esac
++    done
++  else
++    cat conftest.err 1&gt;&amp;5
++    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++    cat conftest.c &gt;&amp;5
++  fi
++  $rm conftest*
++fi
++if test &quot;X$ac_cv_exeext&quot; = Xno; then
++  exeext=&quot;&quot;
++else
++  exeext=&quot;$ac_cv_exeext&quot;
++fi
++echo &quot;$ac_t$ac_cv_exeext&quot; 1&gt;&amp;6
++
+ echo $ac_n &quot;checking for $compiler option to produce PIC... $ac_c&quot; 1&gt;&amp;6
+ pic_flag=
+ special_shlib_compile_flags=
+@@ -580,10 +663,19 @@
+   link_static_flag='-static'

+   case &quot;$host_os&quot; in
+-  aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
++  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
+     # PIC is the default for these OSes.
+     ;;
+-  cygwin32* | mingw32* | os2*)
++  aix*)
++    # Below there is a dirty hack to force normal static linking with -ldl
++    # The problem is because libdl dynamically linked with both libc and
++    # libC (AIX C++ library), which obviously doesn't included in libraries
++    # list by gcc. This cause undefined symbols with -static flags.
++    # This hack allows C programs to be linked with &quot;-static -ldl&quot;, but
++    # we not sure about C++ programs.
++    link_static_flag=&quot;$link_static_flag ${wl}-lC&quot;
++    ;;
++  cygwin* | mingw* | os2*)
+     # We can build DLLs from non-PIC.
+     ;;
+   amigaos*)
+@@ -592,6 +684,11 @@
+     # like `-m68040'.
+     pic_flag='-m68020 -resident32 -malways-restore-a4'
+     ;;
++  sysv4*MP*)
++    if test -d /usr/nec; then
++       pic_flag=-Kconform_pic
++    fi
++    ;;
+   *)
+     pic_flag='-fPIC'
+     ;;
+@@ -617,11 +714,11 @@
+     # PIC (with -KPIC) is the default.
+     ;;

+-  cygwin32* | mingw32* | os2*)
++  cygwin* | mingw* | os2*)
+     # We can build DLLs from non-PIC.
+     ;;

+-  osf3* | osf4*)
++  osf3* | osf4* | osf5*)
+     # All OSF/1 code is PIC.
+     wl='-Wl,'
+     link_static_flag='-non_shared'
+@@ -645,7 +742,7 @@
+     wl='-Qoption ld '
+     ;;

+-  sysv4.2uw2* | sysv5*)
++  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+     pic_flag='-KPIC'
+     link_static_flag='-Bstatic'
+     wl='-Wl,'
+@@ -655,7 +752,12 @@
+     pic_flag='-pic'
+     link_static_flag='-Bstatic'
+     ;;
+-
++  sysv4*MP*)
++    if test -d /usr/nec ;then
++      pic_flag='-Kconform_pic'
++      link_static_flag='-Bstatic'
++    fi
++    ;;
+   *)
+     can_build_shared=no
+     ;;
+@@ -671,22 +773,30 @@
+   echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+   save_CFLAGS=&quot;$CFLAGS&quot;
+   CFLAGS=&quot;$CFLAGS $pic_flag -DPIC&quot;
+-  echo &quot;$progname:674: checking if $compiler PIC flag $pic_flag works&quot; &gt;&amp;5
+-  if { (eval echo $progname:675: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.$objext; then
++  echo &quot;$progname:776: checking if $compiler PIC flag $pic_flag works&quot; &gt;&amp;5
++  if { (eval echo $progname:777: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.$objext; then
+     # Append any warnings to the config.log.
+     cat conftest.err 1&gt;&amp;5
+-
+-    # On HP-UX, both CC and GCC only warn that PIC is supported... then they
+-    # create non-PIC objects.  So, if there were any warnings, we assume that
+-    # PIC is not supported.
+-    if test -s conftest.err; then
+-      echo &quot;$ac_t&quot;no 1&gt;&amp;6
+-      can_build_shared=no
+-      pic_flag=
+-    else
++    
++    case &quot;$host_os&quot; in
++    hpux9* | hpux10* | hpux11*)
++      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
++      # create non-PIC objects.  So, if there were any warnings, we assume that
++      # PIC is not supported.
++      if test -s conftest.err; then
++        echo &quot;$ac_t&quot;no 1&gt;&amp;6
++        can_build_shared=no
++        pic_flag=
++      else
++        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
++        pic_flag=&quot; $pic_flag&quot;
++      fi
++      ;;
++    *)
+       echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+       pic_flag=&quot; $pic_flag&quot;
+-    fi
++      ;;
++    esac
+   else
+     # Append any errors to the config.log.
+     cat conftest.err 1&gt;&amp;5
+@@ -702,16 +812,26 @@

+ # Check to see if options -o and -c are simultaneously supported by compiler
+ echo $ac_n &quot;checking if $compiler supports -c -o file.o... $ac_c&quot; 1&gt;&amp;6
++$rm -r conftest 2&gt;/dev/null
++mkdir conftest
++cd conftest
+ $rm conftest*
+ echo &quot;int some_variable = 0;&quot; &gt; conftest.c
++mkdir out
++# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
++# that will create temporary files in the current directory regardless of
++# the output directory.  Thus, making CWD read-only will cause this test
++# to fail, enabling locking or at least warning the user not to do parallel
++# builds.
++chmod -w .
+ save_CFLAGS=&quot;$CFLAGS&quot;
+-CFLAGS=&quot;$CFLAGS -c -o conftest2.o&quot;
+-echo &quot;$progname:709: checking if $compiler supports -c -o file.o&quot; &gt;&amp;5
+-if { (eval echo $progname:710: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest2.o; then
++CFLAGS=&quot;$CFLAGS -o out/conftest2.o&quot;
++echo &quot;$progname:829: checking if $compiler supports -c -o file.o&quot; &gt;&amp;5
++if { (eval echo $progname:830: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;out/conftest.err; } &amp;&amp; test -s out/conftest2.o; then

+   # The compiler can only warn and ignore the option if not recognized
+   # So say no if there are warnings
+-    if test -s conftest.err; then
++    if test -s out/conftest.err; then
+       echo &quot;$ac_t&quot;no 1&gt;&amp;6
+       compiler_c_o=no
+     else
+@@ -720,12 +840,17 @@
+     fi
+ else
+   # Append any errors to the config.log.
+-  cat conftest.err 1&gt;&amp;5
++  cat out/conftest.err 1&gt;&amp;5
+   compiler_c_o=no
+   echo &quot;$ac_t&quot;no 1&gt;&amp;6
+ fi
+ CFLAGS=&quot;$save_CFLAGS&quot;
+-$rm conftest*
++chmod u+w .
++$rm conftest* out/*
++rmdir out
++cd ..
++rmdir conftest
++$rm -r conftest 2&gt;/dev/null

+ if test x&quot;$compiler_c_o&quot; = x&quot;yes&quot;; then
+   # Check to see if we can write to a .lo
+@@ -734,8 +859,8 @@
+   echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+   save_CFLAGS=&quot;$CFLAGS&quot;
+   CFLAGS=&quot;$CFLAGS -c -o conftest.lo&quot;
+-  echo &quot;$progname:737: checking if $compiler supports -c -o file.lo&quot; &gt;&amp;5
+-if { (eval echo $progname:738: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.lo; then
++  echo &quot;$progname:862: checking if $compiler supports -c -o file.lo&quot; &gt;&amp;5
++if { (eval echo $progname:863: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.lo; then

+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+@@ -743,8 +868,8 @@
+         echo &quot;$ac_t&quot;no 1&gt;&amp;6
+         compiler_o_lo=no
+       else
+-        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+-        compiler_o_lo=yes
++        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
++        compiler_o_lo=yes
+       fi
+   else
+     # Append any errors to the config.log.
+@@ -786,17 +911,17 @@
+   echo &quot;int some_variable = 0;&quot; &gt; conftest.c
+   save_CFLAGS=&quot;$CFLAGS&quot;
+   CFLAGS=&quot;$CFLAGS -fno-rtti -fno-exceptions -c conftest.c&quot;
+-  echo &quot;$progname:789: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
+-  if { (eval echo $progname:790: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.o; then
++  echo &quot;$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions&quot; &gt;&amp;5
++  if { (eval echo $progname:915: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;conftest.err; } &amp;&amp; test -s conftest.o; then

+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+       if test -s conftest.err; then
+-        echo &quot;$ac_t&quot;no 1&gt;&amp;6
+-        compiler_rtti_exceptions=no
++        echo &quot;$ac_t&quot;no 1&gt;&amp;6
++        compiler_rtti_exceptions=no
+       else
+-        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
+-        compiler_rtti_exceptions=yes
++        echo &quot;$ac_t&quot;yes 1&gt;&amp;6
++        compiler_rtti_exceptions=yes
+       fi
+   else
+     # Append any errors to the config.log.
+@@ -830,8 +955,8 @@
+ echo 'main(){return(0);}' &gt; conftest.c
+ save_LDFLAGS=&quot;$LDFLAGS&quot;
+ LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
+-echo &quot;$progname:833: checking if $compiler static flag $link_static_flag works&quot; &gt;&amp;5
+-if { (eval echo $progname:834: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
++echo &quot;$progname:958: checking if $compiler static flag $link_static_flag works&quot; &gt;&amp;5
++if { (eval echo $progname:959: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
+   echo &quot;$ac_t$link_static_flag&quot; 1&gt;&amp;6
+ else
+   echo &quot;$ac_t&quot;none 1&gt;&amp;6
+@@ -843,9 +968,9 @@
+ if test -z &quot;$LN_S&quot;; then
+   # Check to see if we can use ln -s, or we need hard links.
+   echo $ac_n &quot;checking whether ln -s works... $ac_c&quot; 1&gt;&amp;6
+-  $rm conftestdata
+-  if ln -s X conftestdata 2&gt;/dev/null; then
+-    $rm conftestdata
++  $rm conftest.dat
++  if ln -s X conftest.dat 2&gt;/dev/null; then
++    $rm conftest.dat
+     LN_S=&quot;ln -s&quot;
+   else
+     LN_S=ln
+@@ -863,48 +988,18 @@
+   if test &quot;$with_gcc&quot; = yes; then
+     # Check if gcc -print-prog-name=ld gives a path.
+     echo $ac_n &quot;checking for ld used by GCC... $ac_c&quot; 1&gt;&amp;6
+-    echo &quot;$progname:866: checking for ld used by GCC&quot; &gt;&amp;5
++    echo &quot;$progname:991: checking for ld used by GCC&quot; &gt;&amp;5
+     ac_prog=`($CC -print-prog-name=ld) 2&gt;&amp;5`
+     case &quot;$ac_prog&quot; in
+     # Accept absolute paths.
+-    /* | [A-Za-z]:/*)
++    [\\/]* | [A-Za-z]:[\\/]*)
+       re_direlt='/[^/][^/]*/\.\./'
+-      sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%'
+-      # Canonicalize the path of ld
+-      while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+-        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+-      done
+-      case &quot;$host_os&quot; in
+-      cygwin*)
+-        # Convert to a UNC path for cygwin
+-        test -z &quot;$LD&quot; &amp;&amp; LD=`echo X$ac_prog | $Xsed -e &quot;$sub_uncdrive&quot;`
+-        ;
+-      *)
+-        test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+-        ;
+-      esac
+-      ;;
+-    ##
+-    ## FIXME:  The code fails later on if we try to use an $LD with
+-    ##         '\\' path separators.
+-    ##
+-    [A-Za-z]:[\\]*)
+-      re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)'
+-      sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%'
+-      sub_uncdir='s%\\%/%g'
+       # Canonicalize the path of ld
++      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+       while echo $ac_prog | grep &quot;$re_direlt&quot; &gt; /dev/null 2&gt;&amp;1; do
+-        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%\1%&quot;`
++        ac_prog=`echo $ac_prog| sed &quot;s%$re_direlt%/%&quot;`
+       done
+-      case &quot;$host_os&quot; in
+-      cygwin*)
+-        # Convert to a UNC path for cygwin
+-        test -z &quot;$LD&quot; &amp;&amp; LD=`echo X$ac_prog | $Xsed -e &quot;$sub_uncdrive&quot; -e &quot;$sub_uncdir&quot;`
+-        ;
+-      *)
+-        test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+-        ;
+-      esac
++      test -z &quot;$LD&quot; &amp;&amp; LD=&quot;$ac_prog&quot;
+       ;;
+     &quot;&quot;)
+       # If it fails, then pretend we are not using GCC.
+@@ -917,17 +1012,17 @@
+     esac
+   elif test &quot;$with_gnu_ld&quot; = yes; then
+     echo $ac_n &quot;checking for GNU ld... $ac_c&quot; 1&gt;&amp;6
+-    echo &quot;$progname:920: checking for GNU ld&quot; &gt;&amp;5
++    echo &quot;$progname:1015: checking for GNU ld&quot; &gt;&amp;5
+   else
+     echo $ac_n &quot;checking for non-GNU ld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
+-    echo &quot;$progname:923: checking for non-GNU ld&quot; &gt;&amp;5
++    echo &quot;$progname:1018: checking for non-GNU ld&quot; &gt;&amp;5
+   fi

+   if test -z &quot;$LD&quot;; then
+-    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
++    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
+     for ac_dir in $PATH; do
+       test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-      if test -f &quot;$ac_dir/$ac_prog&quot;; then
++      if test -f &quot;$ac_dir/$ac_prog&quot; || test -f &quot;$ac_dir/$ac_prog$ac_exeext&quot;; then
+         LD=&quot;$ac_dir/$ac_prog&quot;
+         # Check to see if the program is GNU ld.  I'd rather use --version,
+         # but apparently some GNU ld's only accept -v.
+@@ -969,130 +1064,208 @@

+ allow_undefined_flag=
+ no_undefined_flag=
++need_lib_prefix=unknown
++need_version=unknown
++# when you set need_version to no, make sure it does not cause -set_version
++# flags to be left without arguments
+ archive_cmds=
+-archive_sym_cmds=
++archive_expsym_cmds=
+ old_archive_from_new_cmds=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
++thread_safe_flag_spec=
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_separator=
+ hardcode_direct=no
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ runpath_var=
++always_export_symbols=no
++export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq &gt; $export_symbols'
++# include_expsyms should be a list of space-separated symbols to be *always*
++# included in the symbol list
++include_expsyms=
++# exclude_expsyms can be an egrep regular expression of symbols to exclude
++# it will be wrapped by ` (' and `)$', so one must not match beginning or
++# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
++# as well as any symbol that contains `d'.
++exclude_expsyms=&quot;_GLOBAL_OFFSET_TABLE_&quot;
++# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
++# platforms (ab)use it in PIC code, but their linkers get confused if
++# the symbol is explicitly referenced.  Since portable code cannot
++# rely on this symbol name, it's probably fine to never include it in
++# preloaded symbol tables.

+ case &quot;$host_os&quot; in
+-aix3* | aix4*)
+-  # On AIX, the GNU linker works like the native linker.
+-  with_gnu_ld=no
++cygwin* | mingw*)
++  # FIXME: the MSVC++ port hasn't been tested in a loooong time
++  # When not using gcc, we currently assume that we are using
++  # Microsoft Visual C++.
++  if test &quot;$with_gcc&quot; != yes; then
++    with_gnu_ld=no
++  fi
+   ;;
++
+ esac

+ ld_shlibs=yes
+ if test &quot;$with_gnu_ld&quot; = yes; then
++  # If archive_cmds runs LD, not CC, wlarc should be empty
++  wlarc='${wl}'

+   # See if GNU ld supports shared libraries.
+   case &quot;$host_os&quot; in
++  aix3* | aix4*)
++    # On AIX, the GNU linker is very broken
++    ld_shlibs=no
++    cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the GNU linker, at least up to release 2.9.1, is reported
++*** to be unable to reliably create shared libraries on AIX.
++*** Therefore, libtool is disabling shared libraries support.  If you
++*** really care for shared libraries, you may want to modify your PATH
++*** so that a non-GNU linker is found, and then restart.
++
++EOF
++    ;;
++
+   amigaos*)
+-    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib$libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
++    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
+     hardcode_libdir_flag_spec='-L$libdir'
+     hardcode_minus_L=yes
+-    ;;

+-  sunos4*)
+-    archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs$deplibs'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    hardcode_shlibpath_var=no
++    # Samuel A. Falvo II &lt;kc5tja@dolphin.openprojects.net&gt; reports
++    # that the semantics of dynamic libraries on AmigaOS, at least up
++    # to version 4, is to share data among multiple programs linked
++    # with the same dynamic library.  Since this doesn't match the
++    # behavior of shared libraries on other platforms, we can use
++    # them.
++    ld_shlibs=no
+     ;;

+-  cygwin32* | mingw32*)
+-    if test &quot;$with_gcc&quot; = yes; then
+-      # hardcode_libdir_flag_spec is actually meaningless, as there is
+-      # no search path for DLLs.
+-      hardcode_libdir_flag_spec='-L$libdir'
++  beos*)
++    if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+       allow_undefined_flag=unsupported
+-      # Very, very bogus.
+-      echo '
+-#define WIN32_LEAN_AND_MEAN
+-#include &lt;windows.h&gt;
+-#undef WIN32_LEAN_AND_MEAN
+-#include &lt;stdio.h&gt;
++      # Joseph Beckenbach &lt;jrb3@best.com&gt; says some releases of gcc
++      # support --undefined.  This deserves some investigation.  FIXME
++      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
++    else
++      ld_shlibs=no
++    fi
++    ;;

+-BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
++  cygwin* | mingw*)
++    # hardcode_libdir_flag_spec is actually meaningless, as there is
++    # no search path for DLLs.
++    hardcode_libdir_flag_spec='-L$libdir'
++    allow_undefined_flag=unsupported
++    always_export_symbols=yes

+-#include &lt;cygwin/cygwin_dll.h&gt;
+-DECLARE_CYGWIN_DLL( DllMain );
+-HINSTANCE __hDllInstance_base;
++    # Extract the symbol export list from an `--export-all' def file,
++    # then regenerate the def file from the symbol export list, so that
++    # the compiled dll only exports the symbol export list.
++    # Be careful not to strip the DATA tag left by newer dlltools.
++    export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $0 &gt; $objdir/$soname-ltdll.c~
++      test -f $objdir/$soname-ltdll.$objext || (cd $objdir &amp;&amp; $CC -c $soname-ltdll.c)~
++      $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
++      sed -e &quot;1,/EXPORTS/d&quot; -e &quot;s/ @ [0-9]*//&quot; -e &quot;s/ *;.*$//&quot; &lt; $objdir/$soname-def &gt; $export_symbols'
++
++    # If DATA tags from a recent dlltool are present, honour them!
++    archive_expsym_cmds='echo EXPORTS &gt; $objdir/$soname-def~
++      _lt_hint=1;
++      cat $export_symbols | while read symbol; do
++        set dummy \$symbol;
++        case \$# in
++          2) echo &quot;        \$2 @ \$_lt_hint ; &quot; &gt;&gt; $objdir/$soname-def;;
++          *) echo &quot;     \$2 @ \$_lt_hint \$3 ; &quot; &gt;&gt; $objdir/$soname-def;;
++        esac;
++        _lt_hint=`expr 1 + \$_lt_hint`;
++      done~
++      test -f $objdir/$soname-ltdll.c || sed -e &quot;/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }&quot; -e d &lt; $0 &gt; $objdir/$soname-ltdll.c~
++      test -f $objdir/$soname-ltdll.$objext || (cd $objdir &amp;&amp; $CC -c $soname-ltdll.c)~
++      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
++      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
++      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
++      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
++      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'

+-BOOL APIENTRY
+-DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+-{
+-  __hDllInstance_base = hInst;
+-  return TRUE;
+-}
+-' &gt; ltdll.c
+-      archive_cmds='$CC -c '&quot;`pwd`&quot;'/ltdll.c~echo EXPORTS &gt; $lib-def~
+-      $DLLTOOL --export-all --output-def $lib-def $libobjs ltdll.$objext~
+-      $CC -Wl,--base-file,$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 $libobjs ltdll.$objext~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC -Wl,--base-file,$soname-base $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $rm ltdll.$objext $soname-base $soname-exp'
+-      archive_sym_cmds='$CC -c '&quot;`pwd`&quot;'/ltdll.c~echo EXPORTS &gt; $lib-def~
+-      cat &quot;$export_symbols&quot; &gt;&gt; $lib-def~
+-      $CC -Wl,--base-file,$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 $libobjs ltdll.$objext~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC -Wl,--base-file,$soname-base $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $rm ltdll.$objext $soname-base $soname-exp'
+-      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $lib-def --output-lib $objdir/$libname.a~$rm $lib.exp'
+-   else
+-      # When not using gcc, we currently assume that we are using
+-      # Microsoft Visual C++.
+-      with_gnu_ld=no
+-      # hardcode_libdir_flag_spec is actually meaningless, as there is
+-      # no search path for DLLs.
+-      hardcode_libdir_flag_spec=' '
+-      allow_undefined_flag=unsupported
+-      # Tell ltmain to make .lib files, not .a files.
+-      libext=lib
+-      # FIXME: Setting linknames here is a bad hack.
+-      archive_cmds='$CC -o $lib$libobjs`echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+-      # The linker will automatically build a .lib file if we build a DLL.
+-      old_archive_from_new_cmds='true'
+-      # FIXME: Should let the user specify the lib program.
+-      old_archive_cmds='lib /OUT:$oldlib$oldobjs'
+-      fix_srcfile_path='`cygpath -w $srcfile`'
++      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' 
++    ;;
++
++  netbsd*)
++    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
++      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++    else
++      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
++      # can we support soname and/or expsyms with a.out? -oliva
+     fi
+     ;;

++  solaris* | sysv5*)
++    if $LD -v 2&gt;&amp;1 | egrep 'BFD 2\.8' &gt; /dev/null; then
++      ld_shlibs=no
++      cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: The releases 2.8.* of the GNU linker cannot reliably
++*** create shared libraries on Solaris systems.  Therefore, libtool
++*** is disabling shared libraries support.  We urge you to upgrade GNU
++*** binutils to release 2.9.1 or newer.  Another option is to modify
++*** your PATH or compiler configuration so that the native linker is
++*** used, and then restart.
++
++EOF
++    elif $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
++      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
++      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
++    else
++      ld_shlibs=no
++    fi
++    ;;      
++
++  sunos4*)
++    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
++    wlarc=
++    hardcode_direct=yes
++    hardcode_shlibpath_var=no
++    ;;
++
+   *)
+     if $LD --help 2&gt;&amp;1 | egrep ': supported targets:.* elf' &gt; /dev/null; then
+-      archive_cmds='$CC -shared ${wl}-soname $wl$soname -o $lib$libobjs$deplibs'
+-      archive_sym_cmds='$CC -shared ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib$libobjs$deplibs'
++      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
++      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+     else
+       ld_shlibs=no
+     fi
+     ;;
+   esac

+-  if test &quot;$ld_shlibs&quot; = yes &amp;&amp; test &quot;$with_gnu_ld&quot; = yes; then
++  if test &quot;$ld_shlibs&quot; = yes; then
+     runpath_var=LD_RUN_PATH
+     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+     export_dynamic_flag_spec='${wl}--export-dynamic'
+-    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
++    case $host_os in
++    cygwin* | mingw*)
++      # dlltool doesn't understand --whole-archive et. al.
++      whole_archive_flag_spec=
++      ;;
++    *)
++      # ancient GNU ld didn't support --whole-archive et. al.
++      if $LD --help 2&gt;&amp;1 | egrep 'no-whole-archive' &gt; /dev/null; then
++        whole_archive_flag_spec=&quot;$wlarc&quot;'--whole-archive$convenience '&quot;$wlarc&quot;'--no-whole-archive'
++      else
++        whole_archive_flag_spec=
++      fi
++      ;;
++    esac
+   fi
+ else
+   # PORTME fill in a description of your system's linker (not GNU ld)
+   case &quot;$host_os&quot; in
+   aix3*)
+     allow_undefined_flag=unsupported
+-    archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\' | sort | uniq' &gt; $lib.exp~
+-        $LD -o $objdir/$soname$libobjs$deplibs -bE:$lib.exp -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
+-    archive_sym_cmds='$LD -o $objdir/$soname$libobjs$deplibs -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
++    always_export_symbols=yes
++    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
+     # Note: this linker hardcodes the directories in LIBPATH if there
+     # are no directories specified by -L.
+     hardcode_minus_L=yes
+@@ -1104,80 +1277,67 @@
+     ;;

+   aix4*)
+-    allow_undefined_flag=unsupported
+-    archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\' | sort | uniq' &gt; $lib.exp        else cat $export_symbols &gt; $lib.exp~
+-            $CC -o $objdir/$soname$libobjs$deplibs ${wl}-bE:$lib.exp ${wl}-bM:SRE ${wl}-bnoentry~$AR cru $lib $objdir/$soname'
+-    archive_sym_cmds='$CC -o $objdir/$soname$libobjs$deplibs ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry~$AR cru $lib $objdir/$soname'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    ;;
++    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
++    hardcode_libdir_separator=':'
++    if test &quot;$with_gcc&quot; = yes; then
++      collect2name=`${CC} -print-prog-name=collect2`
++      if test -f &quot;$collect2name&quot; &amp;&amp; \
++         strings &quot;$collect2name&quot; | grep resolve_lib_name &gt;/dev/null
++      then
++        # We have reworked collect2
++        hardcode_direct=yes
++      else
++        # We have old collect2
++        hardcode_direct=unsupported
++        # It fails to find uninstalled libraries when the uninstalled
++        # path is not listed in the libpath.  Setting hardcode_minus_L
++        # to unsupported forces relinking
++        hardcode_minus_L=yes
++        hardcode_libdir_flag_spec='-L$libdir'
++        hardcode_libdir_separator=
++      fi
++      shared_flag='-shared'
++    else
++      shared_flag='${wl}-bM:SRE'
++      hardcode_direct=yes
++    fi
++    allow_undefined_flag=' ${wl}-berok'
++    archive_cmds=&quot;\$CC $shared_flag&quot;' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
++    archive_expsym_cmds=&quot;\$CC $shared_flag&quot;' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
++    case &quot;$host_os&quot; in aix4.[01]|aix4.[01].*)
++      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
++      always_export_symbols=yes ;;
++    esac
++   ;;

+   amigaos*)
+-    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib$libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
++    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo &quot;#define NAME $libname&quot; &gt; $objdir/a2ixlibrary.data~$echo &quot;#define LIBRARY_ID 1&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define VERSION $major&quot; &gt;&gt; $objdir/a2ixlibrary.data~$echo &quot;#define REVISION $revision&quot; &gt;&gt; $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir &amp;&amp; a2ixlibrary -32)'
+     hardcode_libdir_flag_spec='-L$libdir'
+     hardcode_minus_L=yes
++    # see comment about different semantics on the GNU ld section
++    ld_shlibs=no
+     ;;

+-  cygwin32* | mingw32*)
+-    if test &quot;$with_gcc&quot; = yes; then
+-      # hardcode_libdir_flag_spec is actually meaningless, as there is
+-      # no search path for DLLs.
+-      hardcode_libdir_flag_spec='-L$libdir'
+-      allow_undefined_flag=unsupported
+-      # Very, very bogus.
+-      echo '
+-#define WIN32_LEAN_AND_MEAN
+-#include &lt;windows.h&gt;
+-#undef WIN32_LEAN_AND_MEAN
+-#include &lt;stdio.h&gt;
+-
+-BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+-
+-#include &lt;cygwin/cygwin_dll.h&gt;
+-DECLARE_CYGWIN_DLL( DllMain );
+-HINSTANCE __hDllInstance_base;
++  cygwin* | mingw*)
++    # When not using gcc, we currently assume that we are using
++    # Microsoft Visual C++.
++    # hardcode_libdir_flag_spec is actually meaningless, as there is
++    # no search path for DLLs.
++    hardcode_libdir_flag_spec=' '
++    allow_undefined_flag=unsupported
++    # Tell ltmain to make .lib files, not .a files.
++    libext=lib
++    # FIXME: Setting linknames here is a bad hack.
++    archive_cmds='$CC -o $lib $libobjs $linkopts `echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
++    # The linker will automatically build a .lib file if we build a DLL.
++    old_archive_from_new_cmds='true'
++    # FIXME: Should let the user specify the lib program.
++    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
++    fix_srcfile_path='`cygpath -w $srcfile`'
++    ;;

+-BOOL APIENTRY
+-DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+-{
+-  __hDllInstance_base = hInst;
+-  return TRUE;
+-}
+-' &gt; ltdll.c
+-      archive_cmds='$CC -c '&quot;`pwd`&quot;'/ltdll.c~echo EXPORTS &gt; $lib-def~
+-      $DLLTOOL --export-all --output-def $lib-def $libobjs ltdll.$objext~
+-      $CC -Wl,--base-file,$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 $libobjs ltdll.$objext~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC -Wl,--base-file,$soname-base $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $rm ltdll.$objext $soname-base $soname-exp'
+-      archive_sym_cmds='$CC -c '&quot;`pwd`&quot;'/ltdll.c~echo EXPORTS &gt; $lib-def~
+-      cat &quot;$export_symbols&quot; &gt;&gt; $lib-def~
+-      $CC -Wl,--base-file,$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 $libobjs ltdll.$objext~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC -Wl,--base-file,$soname-base $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbol=_cygwin_dll_entry@12 --def $lib-def --base-file $soname-base --output-exp $soname-exp~
+-      $CC $soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $libobjs ltdll.$objext$deplibs~
+-      $rm ltdll.$objext $soname-base $soname-exp'
+-      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $lib-def --output-lib $objdir/$libname.a~$rm $lib.exp'
+-    else
+-      # When not using gcc, we currently assume that we are using
+-      # Microsoft Visual C++.
+-      # hardcode_libdir_flag_spec is actually meaningless, as there is
+-      # no search path for DLLs.
+-      hardcode_libdir_flag_spec=' '
+-      allow_undefined_flag=unsupported
+-      # Tell ltmain to make .lib files, not .a files.
+-      libext=lib
+-      # FIXME: Setting linknames here is a bad hack.
+-      archive_cmds='$CC -o $lib$libobjs`echo &quot;$deplibs&quot; | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+-      # The linker will automatically build a .lib file if we build a DLL.
+-      old_archive_from_new_cmds='true'
+-      # FIXME: Should let the user specify the lib program.
+-      old_archive_cmds='lib /OUT:$oldlib$oldobjs'
+-      fix_srcfile_path='`cygpath -w $srcfile`'
+-    fi
++  freebsd1*)
++    ld_shlibs=no
+     ;;

+   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+@@ -1185,65 +1345,64 @@
+   # does not break anything, and helps significantly (at the cost of a little
+   # extra space).
+   freebsd2.2*)
+-    archive_cmds='$LD -Bshareable -o $lib$libobjs$deplibs /usr/lib/c++rt0.o'
++    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_direct=yes
+-    hardcode_minus_L=yes
+     hardcode_shlibpath_var=no
+     ;;

+   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+   freebsd2*)
+-    archive_cmds='$LD -Bshareable -o $lib$libobjs$deplibs'
++    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+     hardcode_direct=yes
+     hardcode_minus_L=yes
+     hardcode_shlibpath_var=no
+     ;;

+-  # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+-  freebsd3*)
+-    archive_cmds='$CC -shared -o $lib$libobjs$deplibs'
++  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
++  freebsd*)
++    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_direct=yes
+-    hardcode_minus_L=no
+     hardcode_shlibpath_var=no
+     ;;

+-  hpux9*)
+-    archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs$deplibs~test $objdir/$soname = $lib || mv $objdir/$soname $lib'
+-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+-    hardcode_direct=yes
+-    hardcode_minus_L=yes
+-    export_dynamic_flag_spec='${wl}-E'
+-    ;;
+-
+-  hpux10* | hpux11*)
+-    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib$libobjs$deplibs'
++  hpux9* | hpux10* | hpux11*)
++    case &quot;$host_os&quot; in
++    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
++    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
++    esac
+     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
++    hardcode_libdir_separator=:
+     hardcode_direct=yes
+-    hardcode_minus_L=yes
++    hardcode_minus_L=yes # Not in the search PATH, but as the default
++                         # location of the library.
+     export_dynamic_flag_spec='${wl}-E'
+     ;;

+   irix5* | irix6*)
+     if test &quot;$with_gcc&quot; = yes; then
+-      archive_cmds='$CC -shared -o $lib ${wl}-soname ${wl}$soname ${wl}-set_version ${wl}$verstring$libobjs$deplibs'
++      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+     else
+-      archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
++      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+     fi
+     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++    hardcode_libdir_separator=:
+     ;;

+   netbsd*)
+-    # Tested with NetBSD 1.2 ld
+-    archive_cmds='$LD -Bshareable -o $lib$libobjs$deplibs'
+-    hardcode_libdir_flag_spec='-R$libdir'
++    if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
++    else
++      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
++    fi
++    hardcode_libdir_flag_spec='${wl}-R$libdir'
+     hardcode_direct=yes
+     hardcode_shlibpath_var=no
+     ;;

+   openbsd*)
+-    archive_cmds='$LD -Bshareable -o $lib$libobjs$deplibs'
++    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_direct=yes
+     hardcode_shlibpath_var=no
+@@ -1253,102 +1412,169 @@
+     hardcode_libdir_flag_spec='-L$libdir'
+     hardcode_minus_L=yes
+     allow_undefined_flag=unsupported
+-    archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $objdir/$libname.def~$echo DATA &gt;&gt; $objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $objdir/$libname.def~$echo EXPORTS &gt;&gt; $objdir/$libname.def~emxexp$libobjs &gt;&gt; $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib$libobjs$deplibs $objdir/$libname.def'
++    archive_cmds='$echo &quot;LIBRARY $libname INITINSTANCE&quot; &gt; $objdir/$libname.def~$echo &quot;DESCRIPTION \&quot;$libname\&quot;&quot; &gt;&gt; $objdir/$libname.def~$echo DATA &gt;&gt; $objdir/$libname.def~$echo &quot; SINGLE NONSHARED&quot; &gt;&gt; $objdir/$libname.def~$echo EXPORTS &gt;&gt; $objdir/$libname.def~emxexp $libobjs &gt;&gt; $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
+     old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
+     ;;

+-  osf3* | osf4*)
++  osf3*)
+     if test &quot;$with_gcc&quot; = yes; then
+       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+-      archive_cmds='$CC -shared${allow_undefined_flag} -o $lib ${wl}-soname ${wl}$soname ${wl}-set_version ${wl}$verstring$libobjs$deplibs'
++      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
+     else
+       allow_undefined_flag=' -expect_unresolved \*'
+-      archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
++      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
+     fi
+     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+     hardcode_libdir_separator=:
+     ;;

+-  sco3.2v5*)
+-    archive_cmds='$LD -G -o $lib$libobjs$deplibs'
++  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
++    if test &quot;$with_gcc&quot; = yes; then
++      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
++      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n &quot;$verstring&quot; &amp;&amp; echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
++    else
++      allow_undefined_flag=' -expect_unresolved \*'
++      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n &quot;$verstring&quot; &amp;&amp; echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
++    fi
++    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
++    hardcode_libdir_separator=:
++    ;;
++  rhapsody*)
++    archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
++    hardcode_libdir_flags_spec='-L$libdir'
+     hardcode_direct=yes
++    hardcode_shlibpath_var=no
++    ;;
++                                       
++  sco3.2v5*)
++    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
++    hardcode_shlibpath_var=no
++    runpath_var=LD_RUN_PATH
++    hardcode_runpath_var=yes
+     ;;

+   solaris*)
+     no_undefined_flag=' -z text'
+     # $CC -shared without GNU ld will not create a library from C++
+     # object files and a static libstdc++, better avoid it by now
+-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs$deplibs'
+-    archive_sym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~sed $export_symbols -e &quot;s/.*/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: * }&quot; &gt;&gt; $lib.exp~
+-                $LD -G${allow_undefined_flag} -M $export_symbols -h $soname -o $lib$libobjs$deplibs~$rm $lib.exp'
++    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
++    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_shlibpath_var=no
+-
+-    # Solaris 2 before 2.5 hardcodes -L paths.
+     case &quot;$host_os&quot; in
+-    solaris2.[0-4]*)
+-      hardcode_minus_L=yes
+-      ;;
++    solaris2.[0-5] | solaris2.[0-5].*) ;;
++    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
++      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+     esac
+     ;;

+   sunos4*)
+-    # Why do we need -Bstatic?  To avoid inter-library dependencies, maybe...
+-    if test &quot;$with_gcc&quot; = yes; then
+-      archive_cmds='$CC -shared ${wl}-Bstatic -o $lib$libobjs$deplibs'
+-    else
+-      archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs$deplibs'
+-    fi
++    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
+     hardcode_libdir_flag_spec='-L$libdir'
+     hardcode_direct=yes
+     hardcode_minus_L=yes
+     hardcode_shlibpath_var=no
+     ;;

++  sysv4)
++    if test &quot;x$host_vendor&quot; = xsequent; then
++      # Use $CC to link under sequent, because it throws in some extra .o 
++      # files that make .init and .fini sections work.
++      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
++    else
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
++    fi
++    runpath_var='LD_RUN_PATH'
++    hardcode_shlibpath_var=no
++    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
++    ;;  
++
++  sysv4.3*)
++    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
++    hardcode_shlibpath_var=no
++    export_dynamic_flag_spec='-Bexport'
++    ;;
++
++  sysv5*)
++    no_undefined_flag=' -z text'
++    # $CC -shared without GNU ld will not create a library from C++
++    # object files and a static libstdc++, better avoid it by now
++    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
++    archive_expsym_cmds='$echo &quot;{ global:&quot; &gt; $lib.exp~cat $export_symbols | sed -e &quot;s/\(.*\)/\1;/&quot; &gt;&gt; $lib.exp~$echo &quot;local: *; };&quot; &gt;&gt; $lib.exp~
++                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
++    hardcode_libdir_flag_spec=
++    hardcode_shlibpath_var=no
++    runpath_var='LD_RUN_PATH'
++    ;;
++
+   uts4*)
+-    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
++    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+     hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_direct=no
+-    hardcode_minus_L=no
+     hardcode_shlibpath_var=no
+     ;;

+   dgux*)
+-    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
++    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+     hardcode_libdir_flag_spec='-L$libdir'
+-    hardcode_direct=no
++    hardcode_shlibpath_var=no
++    ;;
++
++  sysv4*MP*)
++    if test -d /usr/nec; then
++      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
++      hardcode_shlibpath_var=no
++      runpath_var=LD_RUN_PATH
++      hardcode_runpath_var=yes
++      ld_shlibs=yes
++    fi
++    ;;
++
++  sysv4.2uw2*)
++    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
++    hardcode_direct=yes
+     hardcode_minus_L=no
+     hardcode_shlibpath_var=no
++    hardcode_runpath_var=yes
++    runpath_var=LD_RUN_PATH
++    ;;
++
++  unixware7*)
++    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
++    runpath_var='LD_RUN_PATH'
++    hardcode_shlibpath_var=no
+     ;;

+   *)
+     ld_shlibs=no
+-    can_build_shared=no
+     ;;
+   esac
+ fi
+ echo &quot;$ac_t$ld_shlibs&quot; 1&gt;&amp;6
++test &quot;$ld_shlibs&quot; = no &amp;&amp; can_build_shared=no

+ if test -z &quot;$NM&quot;; then
+   echo $ac_n &quot;checking for BSD-compatible nm... $ac_c&quot; 1&gt;&amp;6
+   case &quot;$NM&quot; in
+-  /* | [A-Za-z]:[/\\]*) ;; # Let the user override the test with a path.
++  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
+   *)
+-    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}:&quot;
+-    for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
++    IFS=&quot;${IFS=         }&quot;; ac_save_ifs=&quot;$IFS&quot;; IFS=&quot;${IFS}${PATH_SEPARATOR}&quot;
++    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
+       test -z &quot;$ac_dir&quot; &amp;&amp; ac_dir=.
+-      if test -f $ac_dir/nm; then
+-        # Check to see if the nm accepts a BSD-compat flag.
+-        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+-        #   nm: unknown option &quot;B&quot; ignored
+-        if ($ac_dir/nm -B /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+-          NM=&quot;$ac_dir/nm -B&quot;
+-        elif ($ac_dir/nm -p /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
+-          NM=&quot;$ac_dir/nm -p&quot;
++      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
++        # Check to see if the nm accepts a BSD-compat flag.
++        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
++        #   nm: unknown option &quot;B&quot; ignored
++        if ($ac_dir/nm -B /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
++          NM=&quot;$ac_dir/nm -B&quot;
++          break
++        elif ($ac_dir/nm -p /dev/null 2&gt;&amp;1 | sed '1q'; exit 0) | egrep /dev/null &gt;/dev/null; then
++          NM=&quot;$ac_dir/nm -p&quot;
++          break
+         else
+-          NM=&quot;$ac_dir/nm&quot;
++          NM=${NM=&quot;$ac_dir/nm&quot;} # keep the first match, but
++          continue # so that we can try to find one that supports BSD flags
+         fi
+-        break
+       fi
+     done
+     IFS=&quot;$ac_save_ifs&quot;
+@@ -1365,52 +1591,54 @@
+ # [They come from Ultrix.  What could be older than Ultrix?!! ;)]

+ # Character class describing NM global symbol codes.
+-symcode='[BCDEGRSTU]'
++symcode='[BCDEGRST]'

+ # Regexp to match symbols that can be accessed directly from C.
+ sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

+ # Transform the above into a raw symbol and a C symbol.
+-symxfrm='\1 \1'
++symxfrm='\1 \2\3 \3'
++
++# Transform an extracted symbol line into a proper C declaration
++global_symbol_to_cdecl=&quot;sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;

+ # Define system-specific variables.
+ case &quot;$host_os&quot; in
+ aix*)
+-  symcode='[BCDTU]'
++  symcode='[BCDT]'
++  ;;
++cygwin* | mingw*)
++  symcode='[ABCDGISTW]'
+   ;;
+-sunos* | cygwin32* | mingw32*)
+-  sympat='_\([_A-Za-z][_A-Za-z0-9]*\)'
+-  symxfrm='_\1 \1'
++hpux*) # Its linker distinguishes data from code symbols
++  global_symbol_to_cdecl=&quot;sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'&quot;
+   ;;
+ irix*)
+-  # Cannot use undefined symbols on IRIX because inlined functions mess us up.
+   symcode='[BCDEGRST]'
+   ;;
+ solaris*)
+-  symcode='[BDTU]'
++  symcode='[BDT]'
++  ;;
++sysv4)
++  symcode='[DFNSTU]'
+   ;;
+ esac

+ # If we're using GNU nm, then use its standard symbol codes.
+ if $NM -V 2&gt;&amp;1 | egrep '(GNU|with BFD)' &gt; /dev/null; then
+-  symcode='[ABCDGISTUW]'
++  symcode='[ABCDGISTW]'
+ fi

+-case &quot;$host_os&quot; in
+-cygwin32* | mingw32*)
+-  # We do not want undefined symbols on cygwin32.  The user must
+-  # arrange to define them via -l arguments.
+-  symcode='[ABCDGISTW]'
+-  ;;
+-esac
++# Try without a prefix undercore, then with it.
++for ac_symprfx in &quot;&quot; &quot;_&quot;; do

+-# Write the raw and C identifiers.
+-global_symbol_pipe=&quot;sed -n -e 's/^.* $symcode $sympat$/$symxfrm/p'&quot;
++  # Write the raw and C identifiers.
++  global_symbol_pipe=&quot;sed -n -e 's/^.*[         ]\($symcode\)[         ][         ]*\($ac_symprfx\)$sympat$/$symxfrm/p'&quot;

+-# Check to see that the pipe works correctly.
+-pipe_works=no
+-$rm conftest*
+-cat &gt; conftest.c &lt;&lt;EOF
++  # Check to see that the pipe works correctly.
++  pipe_works=no
++  $rm conftest*
++  cat &gt; conftest.c &lt;&lt;EOF
+ #ifdef __cplusplus
+ extern &quot;C&quot; {
+ #endif
+@@ -1422,93 +1650,100 @@
+ main(){nm_test_var='a';nm_test_func();return(0);}
+ EOF

+-echo &quot;$progname:1425: checking if global_symbol_pipe works&quot; &gt;&amp;5
+-if { (eval echo $progname:1426: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;&amp;5; } &amp;&amp; test -s conftest.$objext; then
+-  # Now try to grab the symbols.
+-  nlist=conftest.nm
+-  if { echo &quot;$progname:1429: eval \&quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist\&quot;&quot; &gt;&amp;5; eval &quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist 2&gt;&amp;5&quot;; } &amp;&amp; test -s &quot;$nlist&quot;; then
+-
+-    # Try sorting and uniquifying the output.
+-    if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
+-      mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
+-      wcout=`wc &quot;$nlist&quot; 2&gt;/dev/null`
+-      count=`$echo &quot;X$wcout&quot; | $Xsed -e 's/^[         ]*\([0-9][0-9]*\).*$/\1/'`
+-      (test &quot;$count&quot; -ge 0) 2&gt;/dev/null || count=-1
+-    else
+-      rm -f &quot;$nlist&quot;T
+-      count=-1
+-    fi
++  echo &quot;$progname:1653: checking if global_symbol_pipe works&quot; &gt;&amp;5
++  if { (eval echo $progname:1654: \&quot;$ac_compile\&quot;) 1&gt;&amp;5; (eval $ac_compile) 2&gt;&amp;5; } &amp;&amp; test -s conftest.$objext; then
++    # Now try to grab the symbols.
++    nlist=conftest.nm
++    if { echo &quot;$progname:1657: eval \&quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist\&quot;&quot; &gt;&amp;5; eval &quot;$NM conftest.$objext | $global_symbol_pipe &gt; $nlist 2&gt;&amp;5&quot;; } &amp;&amp; test -s &quot;$nlist&quot;; then
++
++      # Try sorting and uniquifying the output.
++      if sort &quot;$nlist&quot; | uniq &gt; &quot;$nlist&quot;T; then
++        mv -f &quot;$nlist&quot;T &quot;$nlist&quot;
++      else
++        rm -f &quot;$nlist&quot;T
++      fi

+-    # Make sure that we snagged all the symbols we need.
+-    if egrep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
+-      if egrep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
+-        cat &lt;&lt;EOF &gt; conftest.c
++      # Make sure that we snagged all the symbols we need.
++      if egrep ' nm_test_var$' &quot;$nlist&quot; &gt;/dev/null; then
++        if egrep ' nm_test_func$' &quot;$nlist&quot; &gt;/dev/null; then
++          cat &lt;&lt;EOF &gt; conftest.c
+ #ifdef __cplusplus
+ extern &quot;C&quot; {
+ #endif

+ EOF
+-        # Now generate the symbol file.
+-        sed 's/^.* \(.*\)$/extern char \1;/' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c
++          # Now generate the symbol file.
++          eval &quot;$global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c'

+-        cat &lt;&lt;EOF &gt;&gt; conftest.c
++          cat &lt;&lt;EOF &gt;&gt; conftest.c
+ #if defined (__STDC__) &amp;&amp; __STDC__
+-# define __ptr_t void *
++# define lt_ptr_t void *
+ #else
+-# define __ptr_t char *
++# define lt_ptr_t char *
++# define const
+ #endif

+-/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
+-int dld_preloaded_symbol_count = $count;
+-
+ /* The mapping between symbol names and symbols. */
+-struct {
+-  char *name;
+-  __ptr_t address;
++const struct {
++  const char *name;
++  lt_ptr_t address;
+ }
+-dld_preloaded_symbols[] =
++lt_preloaded_symbols[] =
+ {
+ EOF
+-        sed 's/^\(.*\) \(.*\)$/  {&quot;\1&quot;, (__ptr_t) \&amp;\2},/' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c
+-        cat &lt;&lt;\EOF &gt;&gt; conftest.c
+-  {0, (__ptr_t) 0}
++          sed 's/^. \(.*\) \(.*\)$/  {&quot;\2&quot;, (lt_ptr_t) \&amp;\2},/' &lt; &quot;$nlist&quot; &gt;&gt; conftest.c
++          cat &lt;&lt;\EOF &gt;&gt; conftest.c
++  {0, (lt_ptr_t) 0}
+ };

+ #ifdef __cplusplus
+ }
+ #endif
+ EOF
+-        # Now try linking the two files.
+-        mv conftest.$objext conftestm.$objext
+-        save_LIBS=&quot;$LIBS&quot;
+-        save_CFLAGS=&quot;$CFLAGS&quot;
+-        LIBS=&quot;conftestm.$objext&quot;
+-        CFLAGS=&quot;$CFLAGS$no_builtin_flag&quot;
+-        if { (eval echo $progname:1487: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
+-          pipe_works=yes
+-        else
+-          echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+-          cat conftest.c &gt;&amp;5
+-        fi
+-        LIBS=&quot;$save_LIBS&quot;
++          # Now try linking the two files.
++          mv conftest.$objext conftstm.$objext
++          save_LIBS=&quot;$LIBS&quot;
++          save_CFLAGS=&quot;$CFLAGS&quot;
++          LIBS=&quot;conftstm.$objext&quot;
++          CFLAGS=&quot;$CFLAGS$no_builtin_flag&quot;
++          if { (eval echo $progname:1709: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest; then
++            pipe_works=yes
++          else
++            echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++            cat conftest.c &gt;&amp;5
++          fi
++          LIBS=&quot;$save_LIBS&quot;
++        else
++          echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
++        fi
+       else
+-        echo &quot;cannot find nm_test_func in $nlist&quot; &gt;&amp;5
++        echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
+       fi
+     else
+-      echo &quot;cannot find nm_test_var in $nlist&quot; &gt;&amp;5
++      echo &quot;cannot run $global_symbol_pipe&quot; &gt;&amp;5
+     fi
+   else
+-    echo &quot;cannot run $global_symbol_pipe&quot; &gt;&amp;5
++    echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++    cat conftest.c &gt;&amp;5
+   fi
++  $rm conftest* conftst*
++
++  # Do not use the global_symbol_pipe unless it works.
++  if test &quot;$pipe_works&quot; = yes; then
++    break
++  else
++    global_symbol_pipe=
++  fi
++done
++if test &quot;$pipe_works&quot; = yes; then
++  echo &quot;${ac_t}ok&quot; 1&gt;&amp;6
+ else
+-  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
+-  cat conftest.c &gt;&amp;5
++  echo &quot;${ac_t}failed&quot; 1&gt;&amp;6
+ fi
+-$rm conftest*

+-# Do not use the global_symbol_pipe unless it works.
+-echo &quot;$ac_t$pipe_works&quot; 1&gt;&amp;6
+-test &quot;$pipe_works&quot; = yes || global_symbol_pipe=
++if test -z &quot;$global_symbol_pipe&quot;; then
++  global_symbol_to_cdecl=
++fi

+ # Check hardcoding attributes.
+ echo $ac_n &quot;checking how to hardcode library paths into programs... $ac_c&quot; 1&gt;&amp;6
+@@ -1517,10 +1752,12 @@
+    test -n &quot;$runpath_var&quot;; then

+   # We can hardcode non-existant directories.
+-  if test &quot;$hardcode_direct&quot; != no &amp;&amp; \
+-     test &quot;$hardcode_minus_L&quot; != no &amp;&amp; \
+-     test &quot;$hardcode_shlibpath_var&quot; != no; then
+-
++  if test &quot;$hardcode_direct&quot; != no &amp;&amp;
++     # If the only mechanism to avoid hardcoding is shlibpath_var, we
++     # have to relink, otherwise we might link with an installed library
++     # when we should be linking with a yet-to-be-installed one
++     ## test &quot;$hardcode_shlibpath_var&quot; != no &amp;&amp;
++     test &quot;$hardcode_minus_L&quot; != no; then
+     # Linking always hardcodes the temporary library directory.
+     hardcode_action=relink
+   else
+@@ -1552,26 +1789,27 @@
+ finish_cmds=
+ finish_eval=
+ shlibpath_var=
++shlibpath_overrides_runpath=unknown
+ version_type=none
+ dynamic_linker=&quot;$host_os ld.so&quot;
+-sys_lib_search_path=&quot;/lib /usr/lib /usr/local/lib&quot;
+-check_shared_deplibs_method='none'
++sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib&quot;
++sys_lib_search_path_spec=&quot;/lib /usr/lib /usr/local/lib&quot;
++file_magic_cmd=
++file_magic_test_file=
++deplibs_check_method='unknown'
+ # Need to set the preceding variable on all platforms that support
+ # interlibrary dependencies.
+ # 'none' -- dependencies not supported.
++# `unknown' -- same as none, but documents that we really don't know.
+ # 'pass_all' -- all dependencies passed with no checks.
+ # 'test_compile' -- check by making test program.
+-# 'file_regex' -- check by looking for filenames that look like the shared
+-# library in the library path.
+-# 'file_magic [regex]' -- check by looking for files in library path which
+-# responds to the &quot;file&quot; command with a given regex.  This is actually a
+-# superset of the file_regex command.  If you have file on your system, you'll
+-# want to use this instead.
+-# Notes: regexes are run through expr.
+-
++# 'file_magic [regex]' -- check by looking for files in library path
++# which responds to the $file_magic_cmd with a given egrep regex.
++# If you have `file' or equivalent on your system and you're not sure
++# whether `pass_all' will *always* work, you probably want this one.
+ echo $ac_n &quot;checking dynamic linker characteristics... $ac_c&quot; 1&gt;&amp;6
+ case &quot;$host_os&quot; in
+-aix3* | aix4*)
++aix3*)
+   version_type=linux
+   library_names_spec='${libname}${release}.so$versuffix $libname.a'
+   shlibpath_var=LIBPATH
+@@ -1580,44 +1818,111 @@
+   soname_spec='${libname}${release}.so$major'
+   ;;

++aix4*)
++  version_type=linux
++  # AIX has no versioning support, so currently we can not hardcode correct
++  # soname into executable. Probably we can add versioning support to
++  # collect2, so additional links can be useful in future.
++  # We preserve .a as extension for shared libraries though AIX4.2
++  # and later linker supports .so
++  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
++  shlibpath_var=LIBPATH
++  deplibs_check_method=pass_all
++  ;;
++
+ amigaos*)
+   library_names_spec='$libname.ixlibrary $libname.a'
+   # Create ${libname}_ixlibrary.a entries in /sys/libs.
+   finish_eval='for lib in `ls $libdir/*.ixlibrary 2&gt;/dev/null`; do libname=`$echo &quot;X$lib&quot; | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show &quot;(cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a)&quot;; (cd /sys/libs &amp;&amp; $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+   ;;

++beos*)
++  library_names_spec='${libname}.so'
++  dynamic_linker=&quot;$host_os ld.so&quot;
++  shlibpath_var=LIBRARY_PATH
++  deplibs_check_method=pass_all
++  lt_cv_dlopen=&quot;load_add_on&quot;
++  lt_cv_dlopen_libs=
++  lt_cv_dlopen_self=yes
++  ;;
++
+ bsdi4*)
+   version_type=linux
+-  library_names_spec='${libname}.so.$major ${libname}.so'
+-  soname_spec='${libname}.so'
+-  finish_cmds='PATH=&quot;$PATH:/sbin&quot; ldconfig $libdir'
++  need_version=no
++  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
++  soname_spec='${libname}${release}.so$major'
++  finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
++  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
++  file_magic_cmd=/usr/bin/file
++  file_magic_test_file=/shlib/libc.so
++  sys_lib_search_path_spec=&quot;/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib&quot;
++  sys_lib_dlsearch_path_spec=&quot;/shlib /usr/lib /usr/local/lib&quot;
++  export_dynamic_flag_spec=-rdynamic
++  # the default ld.so.conf also contains /usr/contrib/lib and
++  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
++  # libtool to hard-code these into programs
+   ;;

+-cygwin32* | mingw32*)
++cygwin* | mingw*)
+   version_type=windows
++  need_version=no
++  need_lib_prefix=no
+   if test &quot;$with_gcc&quot; = yes; then
+     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
+   else
+     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
+   fi
+   dynamic_linker='Win32 ld.exe'
+-  libname_spec='$name'
++  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
++  file_magic_cmd='${OBJDUMP} -f'
++  # FIXME: first we should search . and the directory the executable is in
+   shlibpath_var=PATH
++  lt_cv_dlopen=&quot;LoadLibrary&quot;
++  lt_cv_dlopen_libs=
+   ;;

+-freebsd2* | freebsd3*)
++freebsd1*)
++  dynamic_linker=no
++  ;;
++  
++freebsd*)
+   objformat=`test -x /usr/bin/objformat &amp;&amp; /usr/bin/objformat || echo aout`
+   version_type=freebsd-$objformat
+-  library_names_spec='${libname}${release}.so$versuffix $libname.so'
+-  finish_cmds='PATH=&quot;$PATH:/sbin&quot; OBJFORMAT=&quot;$objformat&quot; ldconfig -m $libdir'
++  case &quot;$version_type&quot; in
++    freebsd-elf*)
++      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
++      file_magic_cmd=/usr/bin/file
++      file_magic_test_file=`echo /usr/lib/libc.so*`
++      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
++      need_version=no
++      need_lib_prefix=no
++      ;;
++    freebsd-*)
++      deplibs_check_method=unknown
++      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
++      need_version=yes
++      ;;
++  esac
+   shlibpath_var=LD_LIBRARY_PATH
++  case &quot;$host_os&quot; in
++  freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
++    shlibpath_overrides_runpath=yes
++    ;;
++  *) # from 3.2 on
++    shlibpath_overrides_runpath=no
++    ;;
++  esac
+   ;;

+ gnu*)
+   version_type=linux
+-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so'
++  need_lib_prefix=no
++  need_version=no
++  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
++  soname_spec='${libname}${release}.so$major'
+   shlibpath_var=LD_LIBRARY_PATH
++  deplibs_check_method=pass_all
+   ;;

+ hpux9* | hpux10* | hpux11*)
+@@ -1625,25 +1930,52 @@
+   # link against other versions.
+   dynamic_linker=&quot;$host_os dld.sl&quot;
+   version_type=sunos
++  need_lib_prefix=no
++  need_version=no
+   shlibpath_var=SHLIB_PATH
++  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+   soname_spec='${libname}${release}.sl$major'
+   # HP-UX runs *really* slowly unless shared libraries are mode 555.
+   postinstall_cmds='chmod 555 $lib'
++  case &quot;$host_os&quot; in
++  hpux10.20*)
++    # TODO:  Does this work for hpux-11 too?
++    deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
++    file_magic_cmd=/usr/bin/file
++    file_magic_test_file=/usr/lib/libc.sl
++    ;;
++  esac
+   ;;

+-irix5*)
+-  version_type=osf
+-  soname_spec='${libname}${release}.so'
+-  library_names_spec='${libname}${release}.so$versuffix $libname.so'
+-  shlibpath_var=LD_LIBRARY_PATH
+-  ;;
+-
+-irix6*)
+-  version_type=osf
+-  soname_spec='${libname}${release}.so'
+-  library_names_spec='${libname}${release}.so$versuffix $libname.so'
+-  shlibpath_var=LD_LIBRARYN32_PATH
++irix5* | irix6*)
++  version_type=irix
++  need_lib_prefix=no
++  need_version=no
++  soname_spec='${libname}${release}.so.$major'
++  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
++  case &quot;$host_os&quot; in
++  irix5*)
++    libsuff= shlibsuff=
++    # this will be overridden with pass_all, but let us keep it just in case
++    deplibs_check_method=&quot;file_magic ELF 32-bit MSB dynamic lib MIPS - version 1&quot;
++    ;;
++  *)
++    case &quot;$LD&quot; in # libtool.m4 will add one of these switches to LD
++    *-32|*&quot;-32 &quot;) libsuff= shlibsuff= libmagic=32-bit;;
++    *-n32|*&quot;-n32 &quot;) libsuff=32 shlibsuff=N32 libmagic=N32;;
++    *-64|*&quot;-64 &quot;) libsuff=64 shlibsuff=64 libmagic=64-bit;;
++    *) libsuff= shlibsuff= libmagic=never-match;;
++    esac
++    ;;
++  esac
++  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
++  shlibpath_overrides_runpath=no
++  sys_lib_search_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}&quot;
++  sys_lib_dlsearch_path_spec=&quot;/usr/lib${libsuff} /lib${libsuff}&quot;
++  file_magic_cmd=/usr/bin/file
++  file_magic_test_file=`echo /lib${libsuff}/libc.so*`
++  deplibs_check_method='pass_all'
+   ;;

+ # No shared lib support for Linux oldld, aout, or coff.
+@@ -1654,12 +1986,14 @@
+ # This must be Linux ELF.
+ linux-gnu*)
+   version_type=linux
++  need_lib_prefix=no
++  need_version=no
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+   soname_spec='${libname}${release}.so$major'
+   finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -n $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+-  check_shared_deplibs_method='file_magic ELF 32-bit LSB shared object'
+-  sys_lib_search_path=&quot;/lib /usr/lib /usr/local/lib `echo $LD_LIBRARY_PATH | sed -e 's/:/ /g'`&quot;
++  shlibpath_overrides_runpath=no
++  deplibs_check_method=pass_all

+   if test -f /lib/ld.so.1; then
+     dynamic_linker='GNU ld.so'
+@@ -1672,26 +2006,60 @@
+   fi
+   ;;

+-netbsd* | openbsd*)
++netbsd*)
++  version_type=sunos
++  if echo __ELF__ | $CC -E - | grep __ELF__ &gt;/dev/null; then
++    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
++    finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
++    dynamic_linker='NetBSD (a.out) ld.so'
++  else
++    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
++    soname_spec='${libname}${release}.so$major'
++    dynamic_linker='NetBSD ld.elf_so'
++  fi
++  shlibpath_var=LD_LIBRARY_PATH
++  ;;
++
++openbsd*)
+   version_type=sunos
+-  library_names_spec='${libname}${release}.so$versuffix'
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++    need_version=no
++  fi
++  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+   finish_cmds='PATH=&quot;\$PATH:/sbin&quot; ldconfig -m $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   ;;

+ os2*)
+   libname_spec='$name'
++  need_lib_prefix=no
+   library_names_spec='$libname.dll $libname.a'
+   dynamic_linker='OS/2 ld.exe'
+   shlibpath_var=LIBPATH
+   ;;

+-osf3* | osf4*)
++osf3* | osf4* | osf5*)
+   version_type=osf
++  need_version=no
+   soname_spec='${libname}${release}.so'
+-  library_names_spec='${libname}${release}.so$versuffix $libname.so'
++  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+   shlibpath_var=LD_LIBRARY_PATH
+-  check_shared_deplibs_method='pass_all'
++  # this will be overridden with pass_all, but let us keep it just in case
++  deplibs_check_method='file_magic COFF format alpha shared library'
++  file_magic_cmd=/usr/bin/file
++  file_magic_test_file=/shlib/libc.so
++  deplibs_check_method='pass_all'
++  sys_lib_search_path_spec=&quot;/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib&quot;
++  sys_lib_dlsearch_path_spec=&quot;$sys_lib_search_path_spec&quot;
++  ;;
++
++rhapsody*)
++  version_type=sunos
++  library_names_spec='${libname}.so'
++  soname_spec='${libname}.so'
++  shlibpath_var=DYLD_LIBRARY_PATH
++  deplibs_check_method=pass_all
+   ;;

+ sco3.2v5*)
+@@ -1703,11 +2071,17 @@

+ solaris*)
+   version_type=linux
++  need_lib_prefix=no
++  need_version=no
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+   soname_spec='${libname}${release}.so$major'
+   shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
+   # ldd complains unless libraries are executable
+   postinstall_cmds='chmod +x $lib'
++  deplibs_check_method=&quot;file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib&quot;
++  file_magic_cmd=/usr/bin/file
++  file_magic_test_file=/lib/libc.so
+   ;;

+ sunos4*)
+@@ -1715,29 +2089,63 @@
+   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+   finish_cmds='PATH=&quot;\$PATH:/usr/etc&quot; ldconfig $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
++  shlibpath_overrides_runpath=yes
++  if test &quot;$with_gnu_ld&quot; = yes; then
++    need_lib_prefix=no
++  fi
++  need_version=yes
+   ;;

+-sysv4.2uw2*)
++sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+   version_type=linux
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+   soname_spec='${libname}${release}.so$major'
+   shlibpath_var=LD_LIBRARY_PATH
++  case &quot;$host_vendor&quot; in
++    sequent)
++      file_magic_cmd='/bin/file'
++      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
++      ;;
++    ncr)
++      deplibs_check_method='pass_all'
++      ;;
++    motorola)
++      need_lib_prefix=no
++      need_version=no
++      shlibpath_overrides_runpath=no
++      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
++      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
++      file_magic_cmd=/usr/bin/file
++      file_magic_test_file=`echo /usr/lib/libc.so*`
++      ;;
++  esac
+   ;;

+ uts4*)
+   version_type=linux
+-  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
+-  soname_spec='${libname}${release}.so.$major'
++  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
++  soname_spec='${libname}${release}.so$major'
+   shlibpath_var=LD_LIBRARY_PATH
+   ;;

+ dgux*)
+   version_type=linux
++  need_lib_prefix=no
++  need_version=no
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+   soname_spec='${libname}${release}.so$major'
+   shlibpath_var=LD_LIBRARY_PATH
+   ;;

++sysv4*MP*)
++  if test -d /usr/nec ;then
++    version_type=linux
++    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
++    soname_spec='$libname.so.$major'
++    shlibpath_var=LD_LIBRARY_PATH
++  fi
++  ;;
++
+ *)
+   dynamic_linker=no
+   ;;
+@@ -1748,19 +2156,58 @@
+ # Report the final consequences.
+ echo &quot;checking if libtool supports shared libraries... $can_build_shared&quot; 1&gt;&amp;6

++# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
++# configure.in, otherwise build static only libraries.
++case &quot;$host_os&quot; in
++cygwin* | mingw* | os2*)
++  if test x$can_build_shared = xyes; then
++    test x$enable_win32_dll = xno &amp;&amp; can_build_shared=no
++    echo &quot;checking if package supports dlls... $can_build_shared&quot; 1&gt;&amp;6
++  fi
++;;
++esac
++
++if test -n &quot;$file_magic_test_file&quot; &amp;&amp; test -n &quot;$file_magic_cmd&quot;; then
++  case &quot;$deplibs_check_method&quot; in
++  &quot;file_magic &quot;*)
++    file_magic_regex=&quot;`expr \&quot;$deplibs_check_method\&quot; : \&quot;file_magic \(.*\)\&quot;`&quot;
++    if eval $file_magic_cmd \$file_magic_test_file 2&gt; /dev/null |
++       egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
++      :
++    else
++      cat &lt;&lt;EOF 1&gt;&amp;2
++
++*** Warning: the command libtool uses to detect shared libraries,
++*** $file_magic_cmd, produces output that libtool cannot recognize.
++*** The result is that libtool may fail to recognize shared libraries
++*** as such.  This will affect the creation of libtool libraries that
++*** depend on shared libraries, but programs linked with such libtool
++*** libraries will work regardless of this problem.  Nevertheless, you
++*** may want to report the problem to your system manager and/or to
++*** bug-libtool@gnu.org
++
++EOF
++    fi ;;
++  esac
++fi
++
+ echo $ac_n &quot;checking whether to build shared libraries... $ac_c&quot; 1&gt;&amp;6
+ test &quot;$can_build_shared&quot; = &quot;no&quot; &amp;&amp; enable_shared=no

+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case &quot;$host_os&quot; in
+-aix*)
++aix3*)
+   test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
+   if test -n &quot;$RANLIB&quot;; then
+     archive_cmds=&quot;$archive_cmds~\$RANLIB \$lib&quot;
+     postinstall_cmds='$RANLIB $lib'
+   fi
+   ;;
++
++aix4*)
++  test &quot;$enable_shared&quot; = yes &amp;&amp; enable_static=no
++  ;;
+ esac

+ echo &quot;$ac_t$enable_shared&quot; 1&gt;&amp;6
+@@ -1770,6 +2217,15 @@

+ echo &quot;checking whether to build static libraries... $enable_static&quot; 1&gt;&amp;6

++if test &quot;$hardcode_action&quot; = relink; then
++  # Fast installation is not supported
++  enable_fast_install=no
++elif test &quot;$shlibpath_overrides_runpath&quot; = yes ||
++     test &quot;$enable_shared&quot; = no; then
++  # Fast installation is not necessary
++  enable_fast_install=needless
++fi
++
+ echo $ac_n &quot;checking for objdir... $ac_c&quot; 1&gt;&amp;6
+ rm -f .libs 2&gt;/dev/null
+ mkdir .libs 2&gt;/dev/null
+@@ -1782,6 +2238,449 @@
+ rmdir .libs 2&gt;/dev/null
+ echo &quot;$ac_t$objdir&quot; 1&gt;&amp;6

++if test &quot;x$enable_dlopen&quot; != xyes; then
++  enable_dlopen=unknown
++  enable_dlopen_self=unknown
++  enable_dlopen_self_static=unknown
++else
++if eval &quot;test \&quot;`echo '$''{'lt_cv_dlopen'+set}'`\&quot; != set&quot;; then
++  lt_cv_dlopen=no lt_cv_dlopen_libs=
++echo $ac_n &quot;checking for dlopen in -ldl&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2248: checking for dlopen in -ldl&quot; &gt;&amp;5
++ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
++if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  ac_save_LIBS=&quot;$LIBS&quot;
++LIBS=&quot;-ldl  $LIBS&quot;
++cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2256 &quot;ltconfig&quot;
++/* Override any gcc2 internal prototype to avoid an error.  */
++/* We use char because int might match the return type of a gcc2
++    builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++char dlopen();
++
++int main() {
++dlopen()
++; return 0; }
++EOF
++if { (eval echo $progname:2269: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
++fi
++rm -f conftest*
++LIBS=&quot;$ac_save_LIBS&quot;
++
++fi
++if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++  lt_cv_dlopen=&quot;dlopen&quot; lt_cv_dlopen_libs=&quot;-ldl&quot;
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++echo $ac_n &quot;checking for dlopen&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2288: checking for dlopen&quot; &gt;&amp;5
++if eval &quot;test \&quot;`echo '$''{'ac_cv_func_dlopen'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2293 &quot;ltconfig&quot;
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char dlopen(); below.  */
++#include &lt;assert.h&gt;
++/* Override any gcc2 internal prototype to avoid an error.  */
++/* We use char because int might match the return type of a gcc2
++    builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++char dlopen();
++
++int main() {
++
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_dlopen) || defined (__stub___dlopen)
++choke me
++#else
++dlopen();
++#endif
++
++; return 0; }
++EOF
++if { (eval echo $progname:2318: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
++  rm -rf conftest*
++  eval &quot;ac_cv_func_dlopen=yes&quot;
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_func_dlopen=no&quot;
++fi
++rm -f conftest*
++fi
++if eval &quot;test \&quot;`echo '$ac_cv_func_'dlopen`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++  lt_cv_dlopen=&quot;dlopen&quot;
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++echo $ac_n &quot;checking for dld_link in -ldld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2335: checking for dld_link in -ldld&quot; &gt;&amp;5
++ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
++if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  ac_save_LIBS=&quot;$LIBS&quot;
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2343 &quot;ltconfig&quot;
++/* Override any gcc2 internal prototype to avoid an error.  */
++/* We use char because int might match the return type of a gcc2
++    builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++char dld_link();
++
++int main() {
++dld_link()
++; return 0; }
++EOF
++if { (eval echo $progname:2356: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
++fi
++rm -f conftest*
++LIBS=&quot;$ac_save_LIBS&quot;
++
++fi
++if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++  lt_cv_dlopen=&quot;dld_link&quot; lt_cv_dlopen_libs=&quot;-ldld&quot;
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++echo $ac_n &quot;checking for shl_load&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2375: checking for shl_load&quot; &gt;&amp;5
++if eval &quot;test \&quot;`echo '$''{'ac_cv_func_shl_load'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2380 &quot;ltconfig&quot;
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char shl_load(); below.  */
++#include &lt;assert.h&gt;
++/* Override any gcc2 internal prototype to avoid an error.  */
++/* We use char because int might match the return type of a gcc2
++    builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++char shl_load();
++
++int main() {
++
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_shl_load) || defined (__stub___shl_load)
++choke me
++#else
++shl_load();
++#endif
++
++; return 0; }
++EOF
++if { (eval echo $progname:2405: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
++  rm -rf conftest*
++  eval &quot;ac_cv_func_shl_load=yes&quot;
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_func_shl_load=no&quot;
++fi
++rm -f conftest*
++fi
++
++if eval &quot;test \&quot;`echo '$ac_cv_func_'shl_load`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++  lt_cv_dlopen=&quot;shl_load&quot;
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++echo $ac_n &quot;checking for shl_load in -ldld&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2423: checking for shl_load in -ldld&quot; &gt;&amp;5
++ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
++if eval &quot;test \&quot;`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  ac_save_LIBS=&quot;$LIBS&quot;
++LIBS=&quot;-ldld  $LIBS&quot;
++cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2431 &quot;ltconfig&quot;
++#include &quot;confdefs.h&quot;
++/* Override any gcc2 internal prototype to avoid an error.  */
++/* We use char because int might match the return type of a gcc2
++    builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern &quot;C&quot;
++#endif
++char shl_load();
++
++int main() {
++shl_load()
++; return 0; }
++EOF
++if { (eval echo $progname:2445: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest${ac_exeext}; then
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=yes&quot;
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_lib_$ac_lib_var=no&quot;
++fi
++rm -f conftest*
++LIBS=&quot;$ac_save_LIBS&quot;
++
++fi
++if eval &quot;test \&quot;`echo '$ac_cv_lib_'$ac_lib_var`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++  lt_cv_dlopen=&quot;shl_load&quot; lt_cv_dlopen_libs=&quot;-ldld&quot;
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++fi
++
++
++fi
++
++    
++fi
++
++  
++fi
++
++
++fi
++
++fi
++
++  if test &quot;x$lt_cv_dlopen&quot; != xno; then
++    enable_dlopen=yes
++  fi
++
++  case &quot;$lt_cv_dlopen&quot; in
++  dlopen)
++for ac_hdr in dlfcn.h; do
++ac_safe=`echo &quot;$ac_hdr&quot; | sed 'y%./+-%__p_%'`
++echo $ac_n &quot;checking for $ac_hdr&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2488: checking for $ac_hdr&quot; &gt;&amp;5
++if eval &quot;test \&quot;`echo '$''{'ac_cv_header_$ac_safe'+set}'`\&quot; = set&quot;; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  cat &gt; conftest.$ac_ext &lt;&lt;EOF
++#line 2493 &quot;ltconfig&quot;
++#include &lt;$ac_hdr&gt;
++int fnord = 0;
++EOF
++ac_try=&quot;$ac_compile &gt;/dev/null 2&gt;conftest.out&quot;
++{ (eval echo $progname:2498: \&quot;$ac_try\&quot;) 1&gt;&amp;5; (eval $ac_try) 2&gt;&amp;5; }
++ac_err=`grep -v '^ *+' conftest.out | grep -v &quot;^conftest.${ac_ext}\$&quot;`
++if test -z &quot;$ac_err&quot;; then
++  rm -rf conftest*
++  eval &quot;ac_cv_header_$ac_safe=yes&quot;
++else
++  echo &quot;$ac_err&quot; &gt;&amp;5
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -rf conftest*
++  eval &quot;ac_cv_header_$ac_safe=no&quot;
++fi
++rm -f conftest*
++fi
++if eval &quot;test \&quot;`echo '$ac_cv_header_'$ac_safe`\&quot; = yes&quot;; then
++  echo &quot;$ac_t&quot;&quot;yes&quot; 1&gt;&amp;6
++else
++  echo &quot;$ac_t&quot;&quot;no&quot; 1&gt;&amp;6
++fi
++done
++
++    if test &quot;x$ac_cv_header_dlfcn_h&quot; = xyes; then
++      CPPFLAGS=&quot;$CPPFLAGS -DHAVE_DLFCN_H&quot;
++    fi
++    eval LDFLAGS=\&quot;\$LDFLAGS $export_dynamic_flag_spec\&quot;
++    LIBS=&quot;$lt_cv_dlopen_libs $LIBS&quot;
++
++  echo $ac_n &quot;checking whether a program can dlopen itself&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2526: checking whether a program can dlopen itself&quot; &gt;&amp;5
++if test &quot;${lt_cv_dlopen_self+set}&quot; = set; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  if test &quot;$cross_compiling&quot; = yes; then
++    lt_cv_dlopen_self=cross
++  else
++    cat &gt; conftest.c &lt;&lt;EOF
++#line 2534 &quot;ltconfig&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++# define LTDL_GLOBAL        RTLD_GLOBAL
++#else
++# ifdef DL_GLOBAL
++#  define LTDL_GLOBAL        DL_GLOBAL
++# else
++#  define LTDL_GLOBAL        0
++# endif
++#endif
++
++/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LTDL_LAZY_OR_NOW
++# ifdef RTLD_LAZY
++#  define LTDL_LAZY_OR_NOW        RTLD_LAZY
++# else
++#  ifdef DL_LAZY
++#   define LTDL_LAZY_OR_NOW        DL_LAZY
++#  else
++#   ifdef RTLD_NOW
++#    define LTDL_LAZY_OR_NOW        RTLD_NOW
++#   else
++#    ifdef DL_NOW
++#     define LTDL_LAZY_OR_NOW        DL_NOW
++#    else
++#     define LTDL_LAZY_OR_NOW        0
++#    endif
++#   endif
++#  endif
++# endif
++#endif
++
++fnord() { int i=42;}
++main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
++    if(self) { ptr1=dlsym(self,&quot;fnord&quot;); ptr2=dlsym(self,&quot;_fnord&quot;);
++               if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
++
++EOF
++if { (eval echo $progname:2580: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest &amp;&amp; (./conftest; exit) 2&gt;/dev/null
++then
++  lt_cv_dlopen_self=yes
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -fr conftest*
++  lt_cv_dlopen_self=no
++fi
++rm -fr conftest*
++fi
++
++fi
++
++echo &quot;$ac_t&quot;&quot;$lt_cv_dlopen_self&quot; 1&gt;&amp;6
++
++  if test &quot;$lt_cv_dlopen_self&quot; = yes; then
++    LDFLAGS=&quot;$LDFLAGS $link_static_flag&quot;
++  echo $ac_n &quot;checking whether a statically linked program can dlopen itself&quot;&quot;... $ac_c&quot; 1&gt;&amp;6
++echo &quot;$progname:2599: checking whether a statically linked program can dlopen itself&quot; &gt;&amp;5
++if test &quot;${lt_cv_dlopen_self_static+set}&quot; = set; then
++  echo $ac_n &quot;(cached) $ac_c&quot; 1&gt;&amp;6
++else
++  if test &quot;$cross_compiling&quot; = yes; then
++    lt_cv_dlopen_self_static=cross
++  else
++    cat &gt; conftest.c &lt;&lt;EOF
++#line 2607 &quot;ltconfig&quot;
++
++#if HAVE_DLFCN_H
++#include &lt;dlfcn.h&gt;
++#endif
++
++#include &lt;stdio.h&gt;
++
++#ifdef RTLD_GLOBAL
++# define LTDL_GLOBAL        RTLD_GLOBAL
++#else
++# ifdef DL_GLOBAL
++#  define LTDL_GLOBAL        DL_GLOBAL
++# else
++#  define LTDL_GLOBAL        0
++# endif
++#endif
++
++/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
++   find out it does not work in some platform. */
++#ifndef LTDL_LAZY_OR_NOW
++# ifdef RTLD_LAZY
++#  define LTDL_LAZY_OR_NOW        RTLD_LAZY
++# else
++#  ifdef DL_LAZY
++#   define LTDL_LAZY_OR_NOW        DL_LAZY
++#  else
++#   ifdef RTLD_NOW
++#    define LTDL_LAZY_OR_NOW        RTLD_NOW
++#   else
++#    ifdef DL_NOW
++#     define LTDL_LAZY_OR_NOW        DL_NOW
++#    else
++#     define LTDL_LAZY_OR_NOW        0
++#    endif
++#   endif
++#  endif
++# endif
++#endif
++
++fnord() { int i=42;}
++main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
++    if(self) { ptr1=dlsym(self,&quot;fnord&quot;); ptr2=dlsym(self,&quot;_fnord&quot;);
++    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
++
++EOF
++if { (eval echo $progname:2653: \&quot;$ac_link\&quot;) 1&gt;&amp;5; (eval $ac_link) 2&gt;&amp;5; } &amp;&amp; test -s conftest &amp;&amp; (./conftest; exit) 2&gt;/dev/null
++then
++  lt_cv_dlopen_self_static=yes
++else
++  echo &quot;$progname: failed program was:&quot; &gt;&amp;5
++  cat conftest.$ac_ext &gt;&amp;5
++  rm -fr conftest*
++  lt_cv_dlopen_self_static=no
++fi
++rm -fr conftest*
++fi
++
++fi
++
++echo &quot;$ac_t&quot;&quot;$lt_cv_dlopen_self_static&quot; 1&gt;&amp;6
++fi
++    ;;
++  esac
++
++  case &quot;$lt_cv_dlopen_self&quot; in
++  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
++  *) enable_dlopen_self=unknown ;;
++  esac
++
++  case &quot;$lt_cv_dlopen_self_static&quot; in
++  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
++  *) enable_dlopen_self_static=unknown ;;
++  esac
++fi
++
+ # Copy echo and quote the copy, instead of the original, because it is
+ # used later.
+ ltecho=&quot;$echo&quot;
+@@ -1790,30 +2689,36 @@
+ fi
+ LTSHELL=&quot;$SHELL&quot;

++LTCONFIG_VERSION=&quot;$VERSION&quot;
++
+ # Only quote variables if we're using ltmain.sh.
+ case &quot;$ltmain&quot; in
+ *.sh)
+   # Now quote all the things that may contain metacharacters.
+-  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
+-    old_LN_S old_DLLTOOL old_AS AR CC LD LN_S NM LTSHELL VERSION \
++  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
++    old_LD old_LDFLAGS old_LIBS \
++    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
++    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
+     reload_flag reload_cmds wl \
+     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+-    whole_archive_flag_spec libname_spec library_names_spec soname_spec \
++    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
++    library_names_spec soname_spec \
+     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+-    old_postuninstall_cmds archive_cmds archive_sym_cmds postinstall_cmds postuninstall_cmds \
+-    check_shared_deplibs_method allow_undefined_flag no_undefined_flag \
+-    finish_cmds finish_eval global_symbol_pipe \
+-    hardcode_libdir_flag_spec hardcode_libdir_separator sys_lib_search_path \
+-    compiler_c_o compiler_o_lo need_locks; do
++    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
++    file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
++    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
++    hardcode_libdir_flag_spec hardcode_libdir_separator  \
++    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
++    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do

+     case &quot;$var&quot; in
+     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+     old_postinstall_cmds | old_postuninstall_cmds | \
+-    archive_cmds | archive_sym_cmds | \
++    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+     postinstall_cmds | postuninstall_cmds | \
+-    finish_cmds | sys_lib_search_path)
++    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+       # Double-quote double-evaled strings.
+-      eval &quot;$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
++      eval &quot;$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$double_quote_subst\&quot; -e \&quot;\$sed_quote_subst\&quot; -e \&quot;\$delay_variable_subst\&quot;\`\\\&quot;&quot;
+       ;;
+     *)
+       eval &quot;$var=\\\&quot;\`\$echo \&quot;X\$$var\&quot; | \$Xsed -e \&quot;\$sed_quote_subst\&quot;\`\\\&quot;&quot;
+@@ -1823,8 +2728,7 @@

+   case &quot;$ltecho&quot; in
+   *'\$0 --fallback-echo&quot;')
+-    ltecho=`$echo &quot;X$ltecho&quot; |
+-            $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
++    ltecho=`$echo &quot;X$ltecho&quot; | $Xsed -e 's/\\\\\\\$0 --fallback-echo&quot;$/$0 --fallback-echo&quot;/'`
+     ;;
+   esac

+@@ -1835,11 +2739,11 @@
+ #! $SHELL

+ # `$echo &quot;$ofile&quot; | sed 's%^.*/%%'` - Provide generalized library-building support services.
+-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION)
++# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+ # NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
+ #
+-# Copyright (C) 1996-1998 Free Software Foundation, Inc.
+-# Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
++# Copyright (C) 1996-1999 Free Software Foundation, Inc.
++# Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+ #
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+@@ -1865,7 +2769,7 @@

+ # The HP-UX ksh and POSIX shell print the target directory to stdout
+ # if CDPATH is set.
+-if test &quot;\${CDPATH+set}&quot; = set; then CDPATH=; export CDPATH; fi
++if test &quot;X\${CDPATH+set}&quot; = Xset; then CDPATH=:; export CDPATH; fi

+ ### BEGIN LIBTOOL CONFIG
+ EOF
+@@ -1874,8 +2778,9 @@

+ *)
+   # Double-quote the variables that need it (for aesthetics).
+-  for var in old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
+-    old_LN_S old_DLLTOOL old_AS; do
++  for var in old_CC old_CFLAGS old_CPPFLAGS \
++    old_LD old_LDFLAGS old_LIBS \
++    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
+     eval &quot;$var=\\\&quot;\$var\\\&quot;&quot;
+   done

+@@ -1886,7 +2791,7 @@
+   $rm &quot;$cfgfile&quot;
+   cat &lt;&lt;EOF &gt; &quot;$cfgfile&quot;
+ # `$echo &quot;$cfgfile&quot; | sed 's%^.*/%%'` - Libtool configuration file.
+-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION)
++# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+ EOF
+   ;;
+ esac
+@@ -1895,15 +2800,16 @@
+ # Libtool was configured as follows, on host `(hostname || uname -n) 2&gt;/dev/null | sed 1q`:
+ #
+ # CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
+-# LD=$old_LD NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
+-# DLLTOOL=&quot;$old_DLLTOOL&quot; AS=&quot;$old_AS&quot; \\
++# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
++# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
++# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
+ #   $0$ltconfig_args
+ #
+ # Compiler and other test output produced by $progname, useful for
+ # debugging $progname, is in ./config.log if it exists.

+ # The version of $progname that generated this script.
+-LTCONFIG_VERSION=$VERSION
++LTCONFIG_VERSION=$LTCONFIG_VERSION

+ # Shell to use when invoking shell scripts.
+ SHELL=$LTSHELL
+@@ -1914,6 +2820,9 @@
+ # Whether or not to build static libraries.
+ build_old_libs=$enable_static

++# Whether or not to optimize for fast installation.
++fast_install=$enable_fast_install
++
+ # The host system.
+ host_alias=$host_alias
+ host=$host
+@@ -1936,10 +2845,13 @@
+ # A BSD-compatible nm program.
+ NM=$NM

+-# Used on cygwin32: DLL creation program.
++# Used on cygwin: DLL creation program.
+ DLLTOOL=&quot;$DLLTOOL&quot;

+-# Used on cygwin32: assembler.
++# Used on cygwin: object dumper.
++OBJDUMP=&quot;$OBJDUMP&quot;
++
++# Used on cygwin: assembler.
+ AS=&quot;$AS&quot;

+ # The name of the directory that contains temporary libtool files.
+@@ -1958,10 +2870,13 @@
+ # Old archive suffix (normally &quot;a&quot;).
+ libext=&quot;$libext&quot;

++# Executable file suffix (normally &quot;&quot;).
++exeext=&quot;$exeext&quot;
++
+ # Additional compiler flags for building library objects.
+ pic_flag=$pic_flag

+-# Does compiler simultaneously support -c and -o options
++# Does compiler simultaneously support -c and -o options?
+ compiler_c_o=$compiler_c_o

+ # Can we write directly to a .lo ?
+@@ -1970,6 +2885,21 @@
+ # Must we lock files when doing compilation ?
+ need_locks=$need_locks

++# Do we need the lib prefix for modules?
++need_lib_prefix=$need_lib_prefix
++
++# Do we need a version for libraries?
++need_version=$need_version
++
++# Whether dlopen is supported.
++dlopen=$enable_dlopen
++
++# Whether dlopen of programs is supported.
++dlopen_self=$enable_dlopen_self
++
++# Whether dlopen of statically linked programs is supported.
++dlopen_self_static=$enable_dlopen_self_static
++
+ # Compiler flag to prevent dynamic linking.
+ link_static_flag=$link_static_flag

+@@ -1982,6 +2912,9 @@
+ # Compiler flag to generate shared objects directly from archives.
+ whole_archive_flag_spec=$whole_archive_flag_spec

++# Compiler flag to generate thread-safe objects.
++thread_safe_flag_spec=$thread_safe_flag_spec
++
+ # Library versioning type.
+ version_type=$version_type

+@@ -2006,12 +2939,15 @@

+ # Commands used to build and install a shared archive.
+ archive_cmds=$archive_cmds
+-archive_sym_cmds=$archive_sym_cmds
++archive_expsym_cmds=$archive_expsym_cmds
+ postinstall_cmds=$postinstall_cmds
+ postuninstall_cmds=$postuninstall_cmds

+ # Method to check whether dependent libraries are shared objects.
+-check_shared_deplibs_method=$check_shared_deplibs_method
++deplibs_check_method=$deplibs_check_method
++
++# Command to use when deplibs_check_method == file_magic.
++file_magic_cmd=$file_magic_cmd

+ # Flag that allows shared libraries with undefined symbols to be built.
+ allow_undefined_flag=$allow_undefined_flag
+@@ -2028,12 +2964,18 @@
+ # Take the output of nm and produce a listing of raw symbols and C names.
+ global_symbol_pipe=$global_symbol_pipe

++# Transform the output of nm in a proper C declaration
++global_symbol_to_cdecl=$global_symbol_to_cdecl
++
+ # This is the shared library runtime path variable.
+ runpath_var=$runpath_var

+ # This is the shared library path variable.
+ shlibpath_var=$shlibpath_var

++# Is shlibpath searched before the hard-coded library search path?
++shlibpath_overrides_runpath=$shlibpath_overrides_runpath
++
+ # How to hardcode a shared library path into an executable.
+ hardcode_action=$hardcode_action

+@@ -2056,11 +2998,27 @@
+ # the resulting binary.
+ hardcode_shlibpath_var=$hardcode_shlibpath_var

+-# System search path for libraries
+-sys_lib_search_path=$sys_lib_search_path
++# Compile-time system search path for libraries
++sys_lib_search_path_spec=$sys_lib_search_path_spec
++
++# Run-time system search path for libraries
++sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec

+ # Fix the shell variable \$srcfile for the compiler.
+ fix_srcfile_path=&quot;$fix_srcfile_path&quot;
++
++# Set to yes if exported symbols are required.
++always_export_symbols=$always_export_symbols
++
++# The commands to list exported symbols.
++export_symbols_cmds=$export_symbols_cmds
++
++# Symbols that should not be listed in the preloaded symbols.
++exclude_expsyms=$exclude_expsyms
++
++# Symbols that must always be exported.
++include_expsyms=$include_expsyms
++
+ EOF

+ case &quot;$ltmain&quot; in
+@@ -2074,7 +3032,7 @@
+ # AIX sometimes has problems with the GCC collect2 program.  For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+-if test &quot;${COLLECT_NAMES+set}&quot; != set; then
++if test &quot;X${COLLECT_NAMES+set}&quot; != Xset; then
+   COLLECT_NAMES=
+   export COLLECT_NAMES
+ fi
+@@ -2083,7 +3041,11 @@
+   esac

+   # Append the ltmain.sh script.
+-  cat &quot;$ltmain&quot; &gt;&gt; &quot;$ofile&quot; || (rm -f &quot;$ofile&quot;; exit 1)
++  sed '$q' &quot;$ltmain&quot; &gt;&gt; &quot;$ofile&quot; || (rm -f &quot;$ofile&quot;; exit 1)
++  # We use sed instead of cat because bash on DJGPP gets confused if
++  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
++  # text mode, it properly converts lines to CR/LF.  This bash problem
++  # is reportedly fixed, but why not run on old versions too?

+   chmod +x &quot;$ofile&quot;
+   ;;
+@@ -2093,6 +3055,58 @@
+   echo &quot;FIXME: would compile $ltmain&quot;
+   ;;
+ esac
++
++test -n &quot;$cache_file&quot; || exit 0
++
++# AC_CACHE_SAVE
++trap '' 1 2 15
++cat &gt; confcache &lt;&lt;\EOF
++# This file is a shell script that caches the results of configure
++# tests run on this system so they can be shared between configure
++# scripts and configure runs.  It is not useful on other systems.
++# If it contains results you don't want to keep, you may remove or edit it.
++#
++# By default, configure uses ./config.cache as the cache file,
++# creating it if it does not exist already.  You can give configure
++# the --cache-file=FILE option to use a different cache file; that is
++# what configure does when it calls configure scripts in
++# subdirectories, so they share the cache.
++# Giving --cache-file=/dev/null disables caching, for debugging configure.
++# config.status only pays attention to the cache file if you give it the
++# --recheck option to rerun configure.
++#
++EOF
++# The following way of writing the cache mishandles newlines in values,
++# but we know of no workaround that is simple, portable, and efficient.
++# So, don't put newlines in cache variables' values.
++# Ultrix sh set writes to stderr and can't be redirected directly,
++# and sets the high bit in the cache file unless we assign to the vars.
++(set) 2&gt;&amp;1 |
++  case `(ac_space=' '; set | grep ac_space) 2&gt;&amp;1` in
++  *ac_space=\ *)
++    # `set' does not quote correctly, so add quotes (double-quote substitution
++    # turns \\\\ into \\, and sed turns \\ into \).
++    sed -n \
++      -e &quot;s/'/'\\\\''/g&quot; \
++      -e &quot;s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p&quot;
++    ;;
++  *)
++    # `set' quotes correctly as required by POSIX, so do not add quotes.
++    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
++    ;;
++  esac &gt;&gt; confcache
++if cmp -s $cache_file confcache; then
++  :
++else
++  if test -w $cache_file; then
++    echo &quot;updating cache $cache_file&quot;
++    cat confcache &gt; $cache_file
++  else
++    echo &quot;not updating unwritable cache $cache_file&quot;
++  fi
++fi
++rm -f confcache
++
+ exit 0

+ # Local Variables:
+--- gsmlib-1.10.orig/scripts/ltmain.sh
++++ gsmlib-1.10/scripts/ltmain.sh
+@@ -1,7 +1,7 @@
+ # ltmain.sh - Provide generalized library-building support services.
+ # NOTE: Changing this file will not affect anything until you rerun configure.
+ #
+-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
+ # Free Software Foundation, Inc.
+ # Originally by Gordon Matzigkeit &lt;gord@gnu.ai.mit.edu&gt;, 1996
+ #
+@@ -17,13 +17,41 @@
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.

++basename=&quot;s,^.*/,,g&quot;
++
++# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
++# is ksh but when the shell is invoked as &quot;sh&quot; and the current value of
++# the _XPG environment variable is not equal to 1 (one), the special
++# positional parameter $0, within a function call, is the name of the
++# function.
++progpath=&quot;$0&quot;
++
++# The name of this program:
++progname=`echo &quot;$progpath&quot; | $SED $basename`
++modename=&quot;$progname&quot;
++
++# Global variables:
++EXIT_SUCCESS=0
++EXIT_FAILURE=1
++
++PROGRAM=ltmain.sh
++PACKAGE=libtool
++VERSION=&quot;1.5.20 Debian 1.5.20-2&quot;
++TIMESTAMP=&quot; (1.1220.2.287 2005/08/31 18:54:15)&quot;
++
++# See if we are running on zsh, and set the options which allow our
++# commands through without removal of \ escapes.
++if test -n &quot;${ZSH_VERSION+set}&quot; ; then
++  setopt NO_GLOB_SUBST
++fi
++
+ # Check that we have a working $echo.
+ if test &quot;X$1&quot; = X--no-reexec; then
+   # Discard the --no-reexec flag, and continue.
+@@ -36,7 +64,7 @@
+   :
+ else
+   # Restart under the correct shell, and then maybe $echo will work.
+-  exec $SHELL &quot;$0&quot; --no-reexec ${1+&quot;$@&quot;}
++  exec $SHELL &quot;$progpath&quot; --no-reexec ${1+&quot;$@&quot;}
+ fi

+ if test &quot;X$1&quot; = X--fallback-echo; then
+@@ -45,19 +73,9 @@
+   cat &lt;&lt;EOF
+ $*
+ EOF
+-  exit 0
++  exit $EXIT_SUCCESS
+ fi

+-# The name of this program.
+-progname=`$echo &quot;$0&quot; | sed 's%^.*/%%'`
+-modename=&quot;$progname&quot;
+-
+-# Constants.
+-PROGRAM=ltmain.sh
+-PACKAGE=libtool
+-VERSION=1.4.2
+-TIMESTAMP=&quot; (1.922.2.54 2001/09/11 03:33:37)&quot;
+-
+ default_mode=
+ help=&quot;Try \`$progname --help' for more information.&quot;
+ magic=&quot;%%%MAGIC variable%%%&quot;
+@@ -67,10 +85,20 @@

+ # Sed substitution that helps us do robust quoting.  It backslashifies
+ # metacharacters that are still active within double-quoted strings.
+-Xsed='sed -e 1s/^X//'
++Xsed=&quot;${SED}&quot;' -e 1s/^X//'
+ sed_quote_subst='s/\([\\`\\&quot;$\\\\]\)/\\\1/g'
+-SP2NL='tr \040 \012'
+-NL2SP='tr \015\012 \040\040'
++# test EBCDIC or ASCII
++case `echo X|tr X '\101'` in
++ A) # ASCII based system
++    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
++  SP2NL='tr \040 \012'
++  NL2SP='tr \015\012 \040\040'
++  ;;
++ *) # EBCDIC based system
++  SP2NL='tr \100 \n'
++  NL2SP='tr \r\n \100\100'
++  ;;
++esac

+ # NLS nuisances.
+ # Only set LANG and LC_ALL to C if already set.
+@@ -85,12 +113,14 @@
+ fi

+ # Make sure IFS has a sensible default
+-: ${IFS=&quot;         &quot;}
++lt_nl='
++'
++IFS=&quot;         $lt_nl&quot;

+ if test &quot;$build_libtool_libs&quot; != yes &amp;&amp; test &quot;$build_old_libs&quot; != yes; then
+-  echo &quot;$modename: not configured to build any kind of library&quot; 1&gt;&amp;2
+-  echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
+-  exit 1
++  $echo &quot;$modename: not configured to build any kind of library&quot; 1&gt;&amp;2
++  $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
++  exit $EXIT_FAILURE
+ fi

+ # Global variables.
+@@ -105,8 +135,225 @@
+ lo2o=&quot;s/\\.lo\$/.${objext}/&quot;
+ o2lo=&quot;s/\\.${objext}\$/.lo/&quot;

++#####################################
++# Shell function definitions:
++# This seems to be the best place for them
++
++# func_win32_libid arg
++# return the library type of file 'arg'
++#
++# Need a lot of goo to handle *both* DLLs and import libs
++# Has to be a shell function in order to 'eat' the argument
++# that is supplied when $file_magic_command is called.
++func_win32_libid ()
++{
++  win32_libid_type=&quot;unknown&quot;
++  win32_fileres=`file -L $1 2&gt;/dev/null`
++  case $win32_fileres in
++  *ar\ archive\ import\ library*) # definitely import
++    win32_libid_type=&quot;x86 archive import&quot;
++    ;;
++  *ar\ archive*) # could be an import, or static
++    if eval $OBJDUMP -f $1 | $SED -e '10q' 2&gt;/dev/null | \
++      $EGREP -e 'file format pe-i386(.*architecture: i386)?' &gt;/dev/null ; then
++      win32_nmres=`eval $NM -f posix -A $1 | \
++        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
++      if test &quot;X$win32_nmres&quot; = &quot;Ximport&quot; ; then
++        win32_libid_type=&quot;x86 archive import&quot;
++      else
++        win32_libid_type=&quot;x86 archive static&quot;
++      fi
++    fi
++    ;;
++  *DLL*)
++    win32_libid_type=&quot;x86 DLL&quot;
++    ;;
++  *executable*) # but shell scripts are &quot;executable&quot; too...
++    case $win32_fileres in
++    *MS\ Windows\ PE\ Intel*)
++      win32_libid_type=&quot;x86 DLL&quot;
++      ;;
++    esac
++    ;;
++  esac
++  $echo $win32_libid_type
++}
++
++
++# func_infer_tag arg
++# Infer tagged configuration to use if any are available and
++# if one wasn't chosen via the &quot;--tag&quot; command line option.
++# Only attempt this if the compiler in the base compile
++# command doesn't match the default compiler.
++# arg is usually of the form 'gcc ...'
++func_infer_tag ()
++{
++    if test -n &quot;$available_tags&quot; &amp;&amp; test -z &quot;$tagname&quot;; then
++      CC_quoted=
++      for arg in $CC; do
++        case $arg in
++          *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++          arg=&quot;\&quot;$arg\&quot;&quot;
++          ;;
++        esac
++        CC_quoted=&quot;$CC_quoted $arg&quot;
++      done
++      case $@ in
++      # Blanks in the command may have been stripped by the calling shell,
++      # but not from the CC environment variable when configure was run.
++      &quot; $CC &quot;* | &quot;$CC &quot;* | &quot; `$echo $CC` &quot;* | &quot;`$echo $CC` &quot;* | &quot; $CC_quoted&quot;* | &quot;$CC_quoted &quot;* | &quot; `$echo $CC_quoted` &quot;* | &quot;`$echo $CC_quoted` &quot;*) ;;
++      # Blanks at the start of $base_compile will cause this to fail
++      # if we don't check for them as well.
++      *)
++        for z in $available_tags; do
++          if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $z$&quot; &lt; &quot;$progpath&quot; &gt; /dev/null; then
++            # Evaluate the configuration.
++            eval &quot;`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' &lt; $progpath`&quot;
++            CC_quoted=
++            for arg in $CC; do
++            # Double-quote args containing other shell metacharacters.
++            case $arg in
++              *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++              arg=&quot;\&quot;$arg\&quot;&quot;
++              ;;
++            esac
++            CC_quoted=&quot;$CC_quoted $arg&quot;
++          done
++            case &quot;$@ &quot; in
++              &quot; $CC &quot;* | &quot;$CC &quot;* | &quot; `$echo $CC` &quot;* | &quot;`$echo $CC` &quot;* | &quot; $CC_quoted&quot;* | &quot;$CC_quoted &quot;* | &quot; `$echo $CC_quoted` &quot;* | &quot;`$echo $CC_quoted` &quot;*)
++              # The compiler in the base compile command matches
++              # the one in the tagged configuration.
++              # Assume this is the tagged configuration we want.
++              tagname=$z
++              break
++              ;;
++            esac
++          fi
++        done
++        # If $tagname still isn't set, then no tagged configuration
++        # was found and let the user know that the &quot;--tag&quot; command
++        # line option must be used.
++        if test -z &quot;$tagname&quot;; then
++          $echo &quot;$modename: unable to infer tagged configuration&quot;
++          $echo &quot;$modename: specify a tag with \`--tag'&quot; 1&gt;&amp;2
++          exit $EXIT_FAILURE
++#        else
++#          $echo &quot;$modename: using $tagname tagged configuration&quot;
++        fi
++        ;
++      esac
++    fi
++}
++
++
++# func_extract_an_archive dir oldlib
++func_extract_an_archive ()
++{
++    f_ex_an_ar_dir=&quot;$1&quot;; shift
++    f_ex_an_ar_oldlib=&quot;$1&quot;
++
++    $show &quot;(cd $f_ex_an_ar_dir &amp;&amp; $AR x $f_ex_an_ar_oldlib)&quot;
++    $run eval &quot;(cd \$f_ex_an_ar_dir &amp;&amp; $AR x \$f_ex_an_ar_oldlib)&quot; || exit $?
++    if ($AR t &quot;$f_ex_an_ar_oldlib&quot; | sort | sort -uc &gt;/dev/null 2&gt;&amp;1); then
++     :
++    else
++      $echo &quot;$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib&quot; 1&gt;&amp;2
++      exit $EXIT_FAILURE
++    fi
++}
++
++# func_extract_archives gentop oldlib ...
++func_extract_archives ()
++{
++    my_gentop=&quot;$1&quot;; shift
++    my_oldlibs=${1+&quot;$@&quot;}
++    my_oldobjs=&quot;&quot;
++    my_xlib=&quot;&quot;
++    my_xabs=&quot;&quot;
++    my_xdir=&quot;&quot;
++    my_status=&quot;&quot;
++
++    $show &quot;${rm}r $my_gentop&quot;
++    $run ${rm}r &quot;$my_gentop&quot;
++    $show &quot;$mkdir $my_gentop&quot;
++    $run $mkdir &quot;$my_gentop&quot;
++    my_status=$?
++    if test &quot;$my_status&quot; -ne 0 &amp;&amp; test ! -d &quot;$my_gentop&quot;; then
++      exit $my_status
++    fi
++
++    for my_xlib in $my_oldlibs; do
++      # Extract the objects.
++      case $my_xlib in
++        [\\/]* | [A-Za-z]:[\\/]*) my_xabs=&quot;$my_xlib&quot; ;;
++        *) my_xabs=`pwd`&quot;/$my_xlib&quot; ;;
++      esac
++      my_xlib=`$echo &quot;X$my_xlib&quot; | $Xsed -e 's%^.*/%%'`
++      my_xdir=&quot;$my_gentop/$my_xlib&quot;
++
++      $show &quot;${rm}r $my_xdir&quot;
++      $run ${rm}r &quot;$my_xdir&quot;
++      $show &quot;$mkdir $my_xdir&quot;
++      $run $mkdir &quot;$my_xdir&quot;
++      status=$?
++      if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$my_xdir&quot;; then
++        exit $status
++      fi
++      case $host in
++      *-darwin*)
++        $show &quot;Extracting $my_xabs&quot;
++        # Do not bother doing anything if just a dry run
++        if test -z &quot;$run&quot;; then
++          darwin_orig_dir=`pwd`
++          cd $my_xdir || exit $?
++          darwin_archive=$my_xabs
++          darwin_curdir=`pwd`
++          darwin_base_archive=`$echo &quot;X$darwin_archive&quot; | $Xsed -e 's%^.*/%%'`
++          darwin_arches=`lipo -info &quot;$darwin_archive&quot; 2&gt;/dev/null | $EGREP Architectures 2&gt;/dev/null`
++          if test -n &quot;$darwin_arches&quot;; then 
++            darwin_arches=`echo &quot;$darwin_arches&quot; | $SED -e 's/.*are://'`
++            darwin_arch=
++            $show &quot;$darwin_base_archive has multiple architectures $darwin_arches&quot;
++            for darwin_arch in  $darwin_arches ; do
++              mkdir -p &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}&quot;
++              lipo -thin $darwin_arch -output &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}&quot; &quot;${darwin_archive}&quot;
++              cd &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}&quot;
++              func_extract_an_archive &quot;`pwd`&quot; &quot;${darwin_base_archive}&quot;
++              cd &quot;$darwin_curdir&quot;
++              $rm &quot;unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}&quot;
++            done # $darwin_arches
++      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
++            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
++            darwin_file=
++            darwin_files=
++            for darwin_file in $darwin_filelist; do
++              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
++              lipo -create -output &quot;$darwin_file&quot; $darwin_files
++            done # $darwin_filelist
++            ${rm}r unfat-$$
++            cd &quot;$darwin_orig_dir&quot;
++          else
++            cd &quot;$darwin_orig_dir&quot;
++             func_extract_an_archive &quot;$my_xdir&quot; &quot;$my_xabs&quot;
++          fi # $darwin_arches
++        fi # $run
++        ;
++      *)
++        func_extract_an_archive &quot;$my_xdir&quot; &quot;$my_xabs&quot;
++        ;;
++      esac
++      my_oldobjs=&quot;$my_oldobjs &quot;`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
++    done
++    func_extract_archives_result=&quot;$my_oldobjs&quot;
++}
++# End of Shell function definitions
++#####################################
++
++# Darwin sucks
++eval std_shrext=\&quot;$shrext_cmds\&quot;
++
+ # Parse our command line options once, thoroughly.
+-while test $# -gt 0
++while test &quot;$#&quot; -gt 0
+ do
+   arg=&quot;$1&quot;
+   shift
+@@ -122,6 +369,34 @@
+     execute_dlfiles)
+       execute_dlfiles=&quot;$execute_dlfiles $arg&quot;
+       ;;
++    tag)
++      tagname=&quot;$arg&quot;
++      preserve_args=&quot;${preserve_args}=$arg&quot;
++
++      # Check whether tagname contains only valid characters
++      case $tagname in
++      *[!-_A-Za-z0-9,/]*)
++        $echo &quot;$progname: invalid tag name: $tagname&quot; 1&gt;&amp;2
++        exit $EXIT_FAILURE
++        ;
++      esac
++
++      case $tagname in
++      CC)
++        # Don't test for the &quot;default&quot; C tag, as we know, it's there, but
++        # not specially marked.
++        ;
++      *)
++        if grep &quot;^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$&quot; &lt; &quot;$progpath&quot; &gt; /dev/null; then
++          taglist=&quot;$taglist $tagname&quot;
++          # Evaluate the configuration.
++          eval &quot;`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' &lt; $progpath`&quot;
++        else
++          $echo &quot;$progname: ignoring unknown tag $tagname&quot; 1&gt;&amp;2
++        fi
++        ;
++      esac
++      ;;
+     *)
+       eval &quot;$prev=\$arg&quot;
+       ;;
+@@ -139,18 +414,27 @@
+     ;;

+   --version)
+-    echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP&quot;
+-    exit 0
++    $echo &quot;$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP&quot;
++    $echo
++    $echo &quot;Copyright (C) 2005  Free Software Foundation, Inc.&quot;
++    $echo &quot;This is free software; see the source for copying conditions.  There is NO&quot;
++    $echo &quot;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&quot;
++    exit $?
+     ;;

+   --config)
+-    sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
+-    exit 0
++    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
++    # Now print the configurations for the tags.
++    for tagname in $taglist; do
++      ${SED} -n -e &quot;/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p&quot; &lt; &quot;$progpath&quot;
++    done
++    exit $?
+     ;;

+   --debug)
+-    echo &quot;$progname: enabling shell trace mode&quot;
++    $echo &quot;$progname: enabling shell trace mode&quot;
+     set -x
++    preserve_args=&quot;$preserve_args $arg&quot;
+     ;;

+   --dry-run | -n)
+@@ -158,18 +442,18 @@
+     ;;

+   --features)
+-    echo &quot;host: $host&quot;
++    $echo &quot;host: $host&quot;
+     if test &quot;$build_libtool_libs&quot; = yes; then
+-      echo &quot;enable shared libraries&quot;
++      $echo &quot;enable shared libraries&quot;
+     else
+-      echo &quot;disable shared libraries&quot;
++      $echo &quot;disable shared libraries&quot;
+     fi
+     if test &quot;$build_old_libs&quot; = yes; then
+-      echo &quot;enable static libraries&quot;
++      $echo &quot;enable static libraries&quot;
+     else
+-      echo &quot;disable static libraries&quot;
++      $echo &quot;disable static libraries&quot;
+     fi
+-    exit 0
++    exit $?
+     ;;

+   --finish) mode=&quot;finish&quot; ;;
+@@ -181,6 +465,15 @@

+   --quiet | --silent)
+     show=:
++    preserve_args=&quot;$preserve_args $arg&quot;
++    ;;
++
++  --tag) prevopt=&quot;--tag&quot; prev=tag ;;
++  --tag=*)
++    set tag &quot;$optarg&quot; ${1+&quot;$@&quot;}
++    shift
++    prev=tag
++    preserve_args=&quot;$preserve_args --tag&quot;
+     ;;

+   -dlopen)
+@@ -191,7 +484,7 @@
+   -*)
+     $echo &quot;$modename: unrecognized option \`$arg'&quot; 1&gt;&amp;2
+     $echo &quot;$help&quot; 1&gt;&amp;2
+-    exit 1
++    exit $EXIT_FAILURE
+     ;;

+   *)
+@@ -204,7 +497,7 @@
+ if test -n &quot;$prevopt&quot;; then
+   $echo &quot;$modename: option \`$prevopt' requires an argument&quot; 1&gt;&amp;2
+   $echo &quot;$help&quot; 1&gt;&amp;2
+-  exit 1
++  exit $EXIT_FAILURE
+ fi

+ # If this variable is set in any of the actions, the command in it
+@@ -216,8 +509,10 @@

+   # Infer the operation mode.
+   if test -z &quot;$mode&quot;; then
++    $echo &quot;*** Warning: inferring the mode of operation is deprecated.&quot; 1&gt;&amp;2
++    $echo &quot;*** Future versions of Libtool will require --mode=MODE be specified.&quot; 1&gt;&amp;2
+     case $nonopt in
+-    *cc | *++ | gcc* | *-gcc*)
++    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
+       mode=link
+       for arg
+       do
+@@ -258,7 +553,7 @@
+   if test -n &quot;$execute_dlfiles&quot; &amp;&amp; test &quot;$mode&quot; != execute; then
+     $echo &quot;$modename: unrecognized option \`-dlopen'&quot; 1&gt;&amp;2
+     $echo &quot;$help&quot; 1&gt;&amp;2
+-    exit 1
++    exit $EXIT_FAILURE
+   fi

+   # Change the help message to a mode-specific one.
+@@ -272,158 +567,127 @@
+     modename=&quot;$modename: compile&quot;
+     # Get the compilation command and the source file.
+     base_compile=
+-    prev=
+-    lastarg=
+-    srcfile=&quot;$nonopt&quot;
++    srcfile=&quot;$nonopt&quot;  #  always keep a non-empty value in &quot;srcfile&quot;
++    suppress_opt=yes
+     suppress_output=
++    arg_mode=normal
++    libobj=
++    later=

+-    user_target=no
+     for arg
+     do
+-      case $prev in
+-      &quot;&quot;) ;;
+-      xcompiler)
+-        # Aesthetically quote the previous argument.
+-        prev=
+-        lastarg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+-
+-        case $arg in
+-        # Double-quote args containing other shell metacharacters.
+-        # Many Bourne shells cannot handle close brackets correctly
+-        # in scan sets, so we specify it separately.
+-        *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+-          arg=&quot;\&quot;$arg\&quot;&quot;
+-          ;;
+-        esac
+-
+-        # Add the previous argument to base_compile.
+-        if test -z &quot;$base_compile&quot;; then
+-          base_compile=&quot;$lastarg&quot;
+-        else
+-          base_compile=&quot;$base_compile $lastarg&quot;
+-        fi
+-        continue
++      case $arg_mode in
++      arg  )
++        # do not &quot;continue&quot;.  Instead, add this to base_compile
++        lastarg=&quot;$arg&quot;
++        arg_mode=normal
+         ;
+-      esac

+-      # Accept any command-line options.
+-      case $arg in
+-      -o)
+-        if test &quot;$user_target&quot; != &quot;no&quot;; then
+-          $echo &quot;$modename: you cannot specify \`-o' more than once&quot; 1&gt;&amp;2
+-          exit 1
+-        fi
+-        user_target=next
+-        ;
+-
+-      -static)
+-        build_old_libs=yes
++      target )
++        libobj=&quot;$arg&quot;
++        arg_mode=normal
+         continue
+         ;

+-      -prefer-pic)
+-        pic_mode=yes
+-        continue
+-        ;
++      normal )
++        # Accept any command-line options.
++        case $arg in
++        -o)
++          if test -n &quot;$libobj&quot; ; then
++            $echo &quot;$modename: you cannot specify \`-o' more than once&quot; 1&gt;&amp;2
++            exit $EXIT_FAILURE
++          fi
++          arg_mode=target
++          continue
++          ;;

+-      -prefer-non-pic)
+-        pic_mode=no
+-        continue
+-        ;
++        -static | -prefer-pic | -prefer-non-pic)
++          later=&quot;$later $arg&quot;
++          continue
++          ;;

+-      -Xcompiler)
+-        prev=xcompiler
+-        continue
+-        ;
++        -no-suppress)
++          suppress_opt=no
++          continue
++          ;;

+-      -Wc,*)
+-        args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;s/^-Wc,//&quot;`
+-        lastarg=
+-        save_ifs=&quot;$IFS&quot;; IFS=','
+-        for arg in $args; do
+-          IFS=&quot;$save_ifs&quot;
++        -Xcompiler)
++          arg_mode=arg  #  the next one goes into the &quot;base_compile&quot; arg list
++          continue      #  The current &quot;srcfile&quot; will either be retained or
++          ;;            #  replaced later.  I would guess that would be a bug.
++
++        -Wc,*)
++          args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;s/^-Wc,//&quot;`
++          lastarg=
++          save_ifs=&quot;$IFS&quot;; IFS=','
++           for arg in $args; do
++            IFS=&quot;$save_ifs&quot;

+-          # Double-quote args containing other shell metacharacters.
+-          # Many Bourne shells cannot handle close brackets correctly
+-          # in scan sets, so we specify it separately.
+-          case $arg in
+-            *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+-            arg=&quot;\&quot;$arg\&quot;&quot;
+-            ;;
+-          esac
+-          lastarg=&quot;$lastarg $arg&quot;
+-        done
+-        IFS=&quot;$save_ifs&quot;
+-        lastarg=`$echo &quot;X$lastarg&quot; | $Xsed -e &quot;s/^ //&quot;`
++            # Double-quote args containing other shell metacharacters.
++            # Many Bourne shells cannot handle close brackets correctly
++            # in scan sets, so we specify it separately.
++            case $arg in
++              *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++              arg=&quot;\&quot;$arg\&quot;&quot;
++              ;;
++            esac
++            lastarg=&quot;$lastarg $arg&quot;
++          done
++          IFS=&quot;$save_ifs&quot;
++          lastarg=`$echo &quot;X$lastarg&quot; | $Xsed -e &quot;s/^ //&quot;`

+-        # Add the arguments to base_compile.
+-        if test -z &quot;$base_compile&quot;; then
+-          base_compile=&quot;$lastarg&quot;
+-        else
++          # Add the arguments to base_compile.
+           base_compile=&quot;$base_compile $lastarg&quot;
+-        fi
+-        continue
+-        ;
+-      esac
++          continue
++          ;;

+-      case $user_target in
+-      next)
+-        # The next one is the -o target name
+-        user_target=yes
+-        continue
+-        ;
+-      yes)
+-        # We got the output file
+-        user_target=set
+-        libobj=&quot;$arg&quot;
+-        continue
++        * )
++          # Accept the current argument as the source file.
++          # The previous &quot;srcfile&quot; becomes the current argument.
++          #
++          lastarg=&quot;$srcfile&quot;
++          srcfile=&quot;$arg&quot;
++          ;;
++        esac  #  case $arg
+         ;
+-      esac
+-
+-      # Accept the current argument as the source file.
+-      lastarg=&quot;$srcfile&quot;
+-      srcfile=&quot;$arg&quot;
++      esac    #  case $arg_mode

+       # Aesthetically quote the previous argument.
+-
+-      # Backslashify any backslashes, double quotes, and dollar signs.
+-      # These are the only characters that are still specially
+-      # interpreted inside of double-quoted scrings.
+       lastarg=`$echo &quot;X$lastarg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`

++      case $lastarg in
+       # Double-quote args containing other shell metacharacters.
+       # Many Bourne shells cannot handle close brackets correctly
+-      # in scan sets, so we specify it separately.
+-      case $lastarg in
++      # in scan sets, and some SunOS ksh mistreat backslash-escaping
++      # in scan sets (worked around with variable expansion),
++      # and furthermore cannot handle '|' '&amp;' '(' ')' in scan sets 
++      # at all, so we specify them separately.
+       *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+         lastarg=&quot;\&quot;$lastarg\&quot;&quot;
+         ;
+       esac

+-      # Add the previous argument to base_compile.
+-      if test -z &quot;$base_compile&quot;; then
+-        base_compile=&quot;$lastarg&quot;
+-      else
+-        base_compile=&quot;$base_compile $lastarg&quot;
+-      fi
+-    done
++      base_compile=&quot;$base_compile $lastarg&quot;
++    done # for arg

+-    case $user_target in
+-    set)
++    case $arg_mode in
++    arg)
++      $echo &quot;$modename: you must specify an argument for -Xcompile&quot;
++      exit $EXIT_FAILURE
+       ;;
+-    no)
+-      # Get the name of the library object.
+-      libobj=`$echo &quot;X$srcfile&quot; | $Xsed -e 's%^.*/%%'`
++    target)
++      $echo &quot;$modename: you must specify a target with \`-o'&quot; 1&gt;&amp;2
++      exit $EXIT_FAILURE
+       ;;
+     *)
+-      $echo &quot;$modename: you must specify a target with \`-o'&quot; 1&gt;&amp;2
+-      exit 1
++      # Get the name of the library object.
++      [ -z &quot;$libobj&quot; ] &amp;&amp; libobj=`$echo &quot;X$srcfile&quot; | $Xsed -e 's%^.*/%%'`
+       ;;
+     esac

+     # Recognize several different file suffixes.
+     # If the user specifies -o file.o, it is replaced with file.lo
+-    xform='[cCFSfmso]'
++    xform='[cCFSifmso]'
+     case $libobj in
+     *.ada) xform=ada ;;
+     *.adb) xform=adb ;;
+@@ -431,10 +695,13 @@
+     *.asm) xform=asm ;;
+     *.c++) xform=c++ ;;
+     *.cc) xform=cc ;;
++    *.ii) xform=ii ;;
++    *.class) xform=class ;;
+     *.cpp) xform=cpp ;;
+     *.cxx) xform=cxx ;;
+     *.f90) xform=f90 ;;
+     *.for) xform=for ;;
++    *.java) xform=java ;;
+     esac

+     libobj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;s/\.$xform$/.lo/&quot;`
+@@ -443,25 +710,63 @@
+     *.lo) obj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;$lo2o&quot;` ;;
+     *)
+       $echo &quot;$modename: cannot determine name of library object from \`$libobj'&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+       ;;
+     esac

++    func_infer_tag $base_compile
++
++    for arg in $later; do
++      case $arg in
++      -static)
++        build_old_libs=yes
++        continue
++        ;
++
++      -prefer-pic)
++        pic_mode=yes
++        continue
++        ;
++
++      -prefer-non-pic)
++        pic_mode=no
++        continue
++        ;
++      esac
++    done
++
++    qlibobj=`$echo &quot;X$libobj&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
++    case $qlibobj in
++      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++        qlibobj=&quot;\&quot;$qlibobj\&quot;&quot; ;;
++    esac
++    test &quot;X$libobj&quot; != &quot;X$qlibobj&quot; \
++        &amp;&amp; $echo &quot;X$libobj&quot; | grep '[]~#^*{};&lt;&gt;?&quot;'&quot;'&quot;'         &amp;()|`$[]' \
++        &amp;&amp; $echo &quot;$modename: libobj name \`$libobj' may not contain shell special characters.&quot;
++    objname=`$echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'`
++    xdir=`$echo &quot;X$obj&quot; | $Xsed -e 's%/[^/]*$%%'`
++    if test &quot;X$xdir&quot; = &quot;X$obj&quot;; then
++      xdir=
++    else
++      xdir=$xdir/
++    fi
++    lobj=${xdir}$objdir/$objname
++
+     if test -z &quot;$base_compile&quot;; then
+       $echo &quot;$modename: you must specify a compilation command&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     # Delete any leftover library objects.
+     if test &quot;$build_old_libs&quot; = yes; then
+-      removelist=&quot;$obj $libobj&quot;
++      removelist=&quot;$obj $lobj $libobj ${libobj}T&quot;
+     else
+-      removelist=&quot;$libobj&quot;
++      removelist=&quot;$lobj $libobj ${libobj}T&quot;
+     fi

+     $run $rm $removelist
+-    trap &quot;$run $rm $removelist; exit 1&quot; 1 2 15
++    trap &quot;$run $rm $removelist; exit $EXIT_FAILURE&quot; 1 2 15

+     # On Cygwin there's no &quot;real&quot; PIC flag so we must build both object types
+     case $host_os in
+@@ -480,8 +785,9 @@
+       output_obj=`$echo &quot;X$srcfile&quot; | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+       lockfile=&quot;$output_obj.lock&quot;
+       removelist=&quot;$removelist $output_obj $lockfile&quot;
+-      trap &quot;$run $rm $removelist; exit 1&quot; 1 2 15
++      trap &quot;$run $rm $removelist; exit $EXIT_FAILURE&quot; 1 2 15
+     else
++      output_obj=
+       need_locks=no
+       lockfile=
+     fi
+@@ -489,13 +795,13 @@
+     # Lock this critical section if it is needed
+     # We use this script file to make the link, it avoids creating a new file
+     if test &quot;$need_locks&quot; = yes; then
+-      until $run ln &quot;$0&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
++      until $run ln &quot;$progpath&quot; &quot;$lockfile&quot; 2&gt;/dev/null; do
+         $show &quot;Waiting for $lockfile to be removed&quot;
+         sleep 2
+       done
+     elif test &quot;$need_locks&quot; = warn; then
+       if test -f &quot;$lockfile&quot;; then
+-        echo &quot;\
++        $echo &quot;\
+ *** ERROR, $lockfile exists and contains:
+ `cat $lockfile 2&gt;/dev/null`

+@@ -507,14 +813,33 @@
+ compiler.&quot;

+         $run $rm $removelist
+-        exit 1
++        exit $EXIT_FAILURE
+       fi
+-      echo $srcfile &gt; &quot;$lockfile&quot;
++      $echo &quot;$srcfile&quot; &gt; &quot;$lockfile&quot;
+     fi

+     if test -n &quot;$fix_srcfile_path&quot;; then
+       eval srcfile=\&quot;$fix_srcfile_path\&quot;
+     fi
++    qsrcfile=`$echo &quot;X$srcfile&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
++    case $qsrcfile in
++      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++      qsrcfile=&quot;\&quot;$qsrcfile\&quot;&quot; ;;
++    esac
++
++    $run $rm &quot;$libobj&quot; &quot;${libobj}T&quot;
++
++    # Create a libtool object file (analogous to a &quot;.la&quot; file),
++    # but don't create it if we're doing a dry run.
++    test -z &quot;$run&quot; &amp;&amp; cat &gt; ${libobj}T &lt;&lt;EOF
++# $libobj - a libtool object file
++# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
++#
++# Please DO NOT delete this file!
++# It is necessary for linking the library.
++
++# Name of the PIC object.
++EOF

+     # Only build a PIC object if we are building libtool libraries.
+     if test &quot;$build_libtool_libs&quot; = yes; then
+@@ -522,53 +847,38 @@
+       fbsd_hideous_sh_bug=$base_compile

+       if test &quot;$pic_mode&quot; != no; then
+-        # All platforms use -DPIC, to notify preprocessed assembler code.
+-        command=&quot;$base_compile $srcfile $pic_flag -DPIC&quot;
++        command=&quot;$base_compile $qsrcfile $pic_flag&quot;
+       else
+         # Don't build PIC code
+-        command=&quot;$base_compile $srcfile&quot;
++        command=&quot;$base_compile $qsrcfile&quot;
+       fi
+-      if test &quot;$build_old_libs&quot; = yes; then
+-        lo_libobj=&quot;$libobj&quot;
+-        dir=`$echo &quot;X$libobj&quot; | $Xsed -e 's%/[^/]*$%%'`
+-        if test &quot;X$dir&quot; = &quot;X$libobj&quot;; then
+-          dir=&quot;$objdir&quot;
+-        else
+-          dir=&quot;$dir/$objdir&quot;
+-        fi
+-        libobj=&quot;$dir/&quot;`$echo &quot;X$libobj&quot; | $Xsed -e 's%^.*/%%'`

+-        if test -d &quot;$dir&quot;; then
+-          $show &quot;$rm $libobj&quot;
+-          $run $rm $libobj
+-        else
+-          $show &quot;$mkdir $dir&quot;
+-          $run $mkdir $dir
+-          status=$?
+-          if test $status -ne 0 &amp;&amp; test ! -d $dir; then
+-            exit $status
+-          fi
++      if test ! -d &quot;${xdir}$objdir&quot;; then
++        $show &quot;$mkdir ${xdir}$objdir&quot;
++        $run $mkdir ${xdir}$objdir
++        status=$?
++        if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;${xdir}$objdir&quot;; then
++          exit $status
+         fi
+       fi
+-      if test &quot;$compiler_o_lo&quot; = yes; then
+-        output_obj=&quot;$libobj&quot;
+-        command=&quot;$command -o $output_obj&quot;
+-      elif test &quot;$compiler_c_o&quot; = yes; then
+-        output_obj=&quot;$obj&quot;
+-        command=&quot;$command -o $output_obj&quot;
++
++      if test -z &quot;$output_obj&quot;; then
++        # Place PIC objects in $objdir
++        command=&quot;$command -o $lobj&quot;
+       fi

+-      $run $rm &quot;$output_obj&quot;
++      $run $rm &quot;$lobj&quot; &quot;$output_obj&quot;
++
+       $show &quot;$command&quot;
+       if $run eval &quot;$command&quot;; then :
+       else
+         test -n &quot;$output_obj&quot; &amp;&amp; $run $rm $removelist
+-        exit 1
++        exit $EXIT_FAILURE
+       fi

+       if test &quot;$need_locks&quot; = warn &amp;&amp;
+-         test x&quot;`cat $lockfile 2&gt;/dev/null`&quot; != x&quot;$srcfile&quot;; then
+-        echo &quot;\
++         test &quot;X`cat $lockfile 2&gt;/dev/null`&quot; != &quot;X$srcfile&quot;; then
++        $echo &quot;\
+ *** ERROR, $lockfile contains:
+ `cat $lockfile 2&gt;/dev/null`

+@@ -583,13 +893,13 @@
+ compiler.&quot;

+         $run $rm $removelist
+-        exit 1
++        exit $EXIT_FAILURE
+       fi

+       # Just move the object if needed, then go on to compile the next one
+-      if test x&quot;$output_obj&quot; != x&quot;$libobj&quot;; then
+-        $show &quot;$mv $output_obj $libobj&quot;
+-        if $run $mv $output_obj $libobj; then :
++      if test -n &quot;$output_obj&quot; &amp;&amp; test &quot;X$output_obj&quot; != &quot;X$lobj&quot;; then
++        $show &quot;$mv $output_obj $lobj&quot;
++        if $run $mv $output_obj $lobj; then :
+         else
+           error=$?
+           $run $rm $removelist
+@@ -597,77 +907,50 @@
+         fi
+       fi

+-      # If we have no pic_flag, then copy the object into place and finish.
+-      if (test -z &quot;$pic_flag&quot; || test &quot;$pic_mode&quot; != default) &amp;&amp;
+-         test &quot;$build_old_libs&quot; = yes; then
+-        # Rename the .lo from within objdir to obj
+-        if test -f $obj; then
+-          $show $rm $obj
+-          $run $rm $obj
+-        fi
++      # Append the name of the PIC object to the libtool object file.
++      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
++pic_object='$objdir/$objname'

+-        $show &quot;$mv $libobj $obj&quot;
+-        if $run $mv $libobj $obj; then :
+-        else
+-          error=$?
+-          $run $rm $removelist
+-          exit $error
+-        fi
++EOF

+-        xdir=`$echo &quot;X$obj&quot; | $Xsed -e 's%/[^/]*$%%'`
+-        if test &quot;X$xdir&quot; = &quot;X$obj&quot;; then
+-          xdir=&quot;.&quot;
+-        else
+-          xdir=&quot;$xdir&quot;
+-        fi
+-        baseobj=`$echo &quot;X$obj&quot; | $Xsed -e &quot;s%.*/%%&quot;`
+-        libobj=`$echo &quot;X$baseobj&quot; | $Xsed -e &quot;$o2lo&quot;`
+-        # Now arrange that obj and lo_libobj become the same file
+-        $show &quot;(cd $xdir &amp;&amp; $LN_S $baseobj $libobj)&quot;
+-        if $run eval '(cd $xdir &amp;&amp; $LN_S $baseobj $libobj)'; then
+-          # Unlock the critical section if it was locked
+-          if test &quot;$need_locks&quot; != no; then
+-            $run $rm &quot;$lockfile&quot;
+-          fi
+-          exit 0
+-        else
+-          error=$?
+-          $run $rm $removelist
+-          exit $error
+-        fi
++      # Allow error messages only from the first compilation.
++      if test &quot;$suppress_opt&quot; = yes; then
++        suppress_output=' &gt;/dev/null 2&gt;&amp;1'
+       fi
++    else
++      # No PIC object so indicate it doesn't exist in the libtool
++      # object file.
++      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
++pic_object=none

+-      # Allow error messages only from the first compilation.
+-      suppress_output=' &gt;/dev/null 2&gt;&amp;1'
++EOF
+     fi

+     # Only build a position-dependent object if we build old libraries.
+     if test &quot;$build_old_libs&quot; = yes; then
+       if test &quot;$pic_mode&quot; != yes; then
+         # Don't build PIC code
+-        command=&quot;$base_compile $srcfile&quot;
++        command=&quot;$base_compile $qsrcfile&quot;
+       else
+-        # All platforms use -DPIC, to notify preprocessed assembler code.
+-        command=&quot;$base_compile $srcfile $pic_flag -DPIC&quot;
++        command=&quot;$base_compile $qsrcfile $pic_flag&quot;
+       fi
+       if test &quot;$compiler_c_o&quot; = yes; then
+         command=&quot;$command -o $obj&quot;
+-        output_obj=&quot;$obj&quot;
+       fi

+       # Suppress compiler output if we already did a PIC compilation.
+       command=&quot;$command$suppress_output&quot;
+-      $run $rm &quot;$output_obj&quot;
++      $run $rm &quot;$obj&quot; &quot;$output_obj&quot;
+       $show &quot;$command&quot;
+       if $run eval &quot;$command&quot;; then :
+       else
+         $run $rm $removelist
+-        exit 1
++        exit $EXIT_FAILURE
+       fi

+       if test &quot;$need_locks&quot; = warn &amp;&amp;
+-         test x&quot;`cat $lockfile 2&gt;/dev/null`&quot; != x&quot;$srcfile&quot;; then
+-        echo &quot;\
++         test &quot;X`cat $lockfile 2&gt;/dev/null`&quot; != &quot;X$srcfile&quot;; then
++        $echo &quot;\
+ *** ERROR, $lockfile contains:
+ `cat $lockfile 2&gt;/dev/null`

+@@ -682,11 +965,11 @@
+ compiler.&quot;

+         $run $rm $removelist
+-        exit 1
++        exit $EXIT_FAILURE
+       fi

+       # Just move the object if needed
+-      if test x&quot;$output_obj&quot; != x&quot;$obj&quot;; then
++      if test -n &quot;$output_obj&quot; &amp;&amp; test &quot;X$output_obj&quot; != &quot;X$obj&quot;; then
+         $show &quot;$mv $output_obj $obj&quot;
+         if $run $mv $output_obj $obj; then :
+         else
+@@ -696,29 +979,31 @@
+         fi
+       fi

+-      # Create an invalid libtool object if no PIC, so that we do not
+-      # accidentally link it into a program.
+-      if test &quot;$build_libtool_libs&quot; != yes; then
+-        $show &quot;echo timestamp &gt; $libobj&quot;
+-        $run eval &quot;echo timestamp &gt; \$libobj&quot; || exit $?
+-      else
+-        # Move the .lo from within objdir
+-        $show &quot;$mv $libobj $lo_libobj&quot;
+-        if $run $mv $libobj $lo_libobj; then :
+-        else
+-          error=$?
+-          $run $rm $removelist
+-          exit $error
+-        fi
+-      fi
++      # Append the name of the non-PIC object the libtool object file.
++      # Only append if the libtool object file exists.
++      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
++# Name of the non-PIC object.
++non_pic_object='$objname'
++
++EOF
++    else
++      # Append the name of the non-PIC object the libtool object file.
++      # Only append if the libtool object file exists.
++      test -z &quot;$run&quot; &amp;&amp; cat &gt;&gt; ${libobj}T &lt;&lt;EOF
++# Name of the non-PIC object.
++non_pic_object=none
++
++EOF
+     fi

++    $run $mv &quot;${libobj}T&quot; &quot;${libobj}&quot;
++
+     # Unlock the critical section if it was locked
+     if test &quot;$need_locks&quot; != no; then
+       $run $rm &quot;$lockfile&quot;
+     fi

+-    exit 0
++    exit $EXIT_SUCCESS
+     ;;

+   # libtool link mode
+@@ -729,7 +1014,7 @@
+       # It is impossible to link a dll without this setting, and
+       # we shouldn't force the makefile maintainer to figure out
+       # which system we are compiling for in order to pass an extra
+-      # flag for every libtool invokation.
++      # flag for every libtool invocation.
+       # allow_undefined=no

+       # FIXME: Unfortunately, there are problems with the above when trying
+@@ -744,6 +1029,7 @@
+       ;;
+     esac
+     libtool_args=&quot;$nonopt&quot;
++    base_compile=&quot;$nonopt $@&quot;
+     compile_command=&quot;$nonopt&quot;
+     finalize_command=&quot;$nonopt&quot;

+@@ -774,6 +1060,8 @@
+     module=no
+     no_install=no
+     objs=
++    non_pic_objects=
++    precious_files_regex=
+     prefer_static_libs=no
+     preload=no
+     prev=
+@@ -785,6 +1073,9 @@
+     temp_rpath=
+     thread_safe=no
+     vinfo=
++    vinfo_number=no
++
++    func_infer_tag $base_compile

+     # We need to know -static, to get the right output filenames.
+     for arg
+@@ -815,7 +1106,7 @@
+     test -n &quot;$old_archive_from_new_cmds&quot; &amp;&amp; build_old_libs=yes

+     # Go through the arguments, transforming them on the way.
+-    while test $# -gt 0; do
++    while test &quot;$#&quot; -gt 0; do
+       arg=&quot;$1&quot;
+       shift
+       case $arg in
+@@ -880,7 +1171,7 @@
+           export_symbols=&quot;$arg&quot;
+           if test ! -f &quot;$arg&quot;; then
+             $echo &quot;$modename: symbol file \`$arg' does not exist&quot;
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+           prev=
+           continue
+@@ -890,23 +1181,135 @@
+           prev=
+           continue
+           ;;
+-        inst_prefix)
++        inst_prefix)
+           inst_prefix_dir=&quot;$arg&quot;
+           prev=
+           continue
+           ;;
++        precious_regex)
++          precious_files_regex=&quot;$arg&quot;
++          prev=
++          continue
++          ;;
+         release)
+           release=&quot;-$arg&quot;
+           prev=
+           continue
+           ;;
++        objectlist)
++          if test -f &quot;$arg&quot;; then
++            save_arg=$arg
++            moreargs=
++            for fil in `cat $save_arg`
++            do
++#              moreargs=&quot;$moreargs $fil&quot;
++              arg=$fil
++              # A libtool-controlled object.
++
++              # Check to see that this really is a libtool object.
++              if (${SED} -e '2q' $arg | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++                pic_object=
++                non_pic_object=
++
++                # Read the .lo file
++                # If there is no directory component, then add one.
++                case $arg in
++                */* | *\\*) . $arg ;;
++                *) . ./$arg ;;
++                esac
++
++                if test -z &quot;$pic_object&quot; || \
++                   test -z &quot;$non_pic_object&quot; ||
++                   test &quot;$pic_object&quot; = none &amp;&amp; \
++                   test &quot;$non_pic_object&quot; = none; then
++                  $echo &quot;$modename: cannot find name of object for \`$arg'&quot; 1&gt;&amp;2
++                  exit $EXIT_FAILURE
++                fi
++
++                # Extract subdirectory from the argument.
++                xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
++                if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
++                  xdir=
++                else
++                  xdir=&quot;$xdir/&quot;
++                fi
++
++                if test &quot;$pic_object&quot; != none; then
++                  # Prepend the subdirectory the object is found in.
++                  pic_object=&quot;$xdir$pic_object&quot;
++
++                  if test &quot;$prev&quot; = dlfiles; then
++                    if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test &quot;$dlopen_support&quot; = yes; then
++                      dlfiles=&quot;$dlfiles $pic_object&quot;
++                      prev=
++                      continue
++                    else
++                      # If libtool objects are unsupported, then we need to preload.
++                      prev=dlprefiles
++                    fi
++                  fi
++
++                  # CHECK ME:  I think I busted this.  -Ossama
++                  if test &quot;$prev&quot; = dlprefiles; then
++                    # Preload the old-style object.
++                    dlprefiles=&quot;$dlprefiles $pic_object&quot;
++                    prev=
++                  fi
++
++                  # A PIC object.
++                  libobjs=&quot;$libobjs $pic_object&quot;
++                  arg=&quot;$pic_object&quot;
++                fi
++
++                # Non-PIC object.
++                if test &quot;$non_pic_object&quot; != none; then
++                  # Prepend the subdirectory the object is found in.
++                  non_pic_object=&quot;$xdir$non_pic_object&quot;
++
++                  # A standard non-PIC object
++                  non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
++                  if test -z &quot;$pic_object&quot; || test &quot;$pic_object&quot; = none ; then
++                    arg=&quot;$non_pic_object&quot;
++                  fi
++                fi
++              else
++                # Only an error if not doing a dry-run.
++                if test -z &quot;$run&quot;; then
++                  $echo &quot;$modename: \`$arg' is not a valid libtool object&quot; 1&gt;&amp;2
++                  exit $EXIT_FAILURE
++                else
++                  # Dry-run case.
++
++                  # Extract subdirectory from the argument.
++                  xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
++                  if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
++                    xdir=
++                  else
++                    xdir=&quot;$xdir/&quot;
++                  fi
++
++                  pic_object=`$echo &quot;X${xdir}${objdir}/${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
++                  non_pic_object=`$echo &quot;X${xdir}${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
++                  libobjs=&quot;$libobjs $pic_object&quot;
++                  non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
++                fi
++              fi
++            done
++          else
++            $echo &quot;$modename: link input file \`$save_arg' does not exist&quot;
++            exit $EXIT_FAILURE
++          fi
++          arg=$save_arg
++          prev=
++          continue
++          ;;
+         rpath | xrpath)
+           # We need an absolute path.
+           case $arg in
+           [\\/]* | [A-Za-z]:[\\/]*) ;;
+           *)
+             $echo &quot;$modename: only absolute run-paths are allowed&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+             ;;
+           esac
+           if test &quot;$prev&quot; = rpath; then
+@@ -938,13 +1341,33 @@
+           finalize_command=&quot;$finalize_command $wl$qarg&quot;
+           continue
+           ;;
++        xcclinker)
++          linker_flags=&quot;$linker_flags $qarg&quot;
++          compiler_flags=&quot;$compiler_flags $qarg&quot;
++          prev=
++          compile_command=&quot;$compile_command $qarg&quot;
++          finalize_command=&quot;$finalize_command $qarg&quot;
++          continue
++          ;;
++        shrext)
++            shrext_cmds=&quot;$arg&quot;
++          prev=
++          continue
++          ;;
++        darwin_framework)
++          compiler_flags=&quot;$compiler_flags $arg&quot;
++          compile_command=&quot;$compile_command $arg&quot;
++          finalize_command=&quot;$finalize_command $arg&quot;
++          prev=
++          continue
++          ;;
+         *)
+           eval &quot;$prev=\&quot;\$arg\&quot;&quot;
+           prev=
+           continue
+           ;;
+         esac
+-      fi # test -n $prev
++      fi # test -n &quot;$prev&quot;

+       prevarg=&quot;$arg&quot;

+@@ -986,7 +1409,7 @@
+       -export-symbols | -export-symbols-regex)
+         if test -n &quot;$export_symbols&quot; || test -n &quot;$export_symbols_regex&quot;; then
+           $echo &quot;$modename: more than one -exported-symbols argument is not allowed&quot;
+-          exit 1
++          exit $EXIT_FAILURE
+         fi
+         if test &quot;X$arg&quot; = &quot;X-export-symbols&quot;; then
+           prev=expsyms
+@@ -996,6 +1419,14 @@
+         continue
+         ;

++      -framework|-arch)
++        prev=darwin_framework
++        compiler_flags=&quot;$compiler_flags $arg&quot;
++        compile_command=&quot;$compile_command $arg&quot;
++        finalize_command=&quot;$finalize_command $arg&quot;
++        continue
++        ;;
++
+       -inst-prefix-dir)
+         prev=inst_prefix
+         continue
+@@ -1005,7 +1436,7 @@
+       # so, if we see these flags be careful not to treat them like -L
+       -L[A-Z][A-Z]*:*)
+         case $with_gcc/$host in
+-        no/*-*-irix*)
++        no/*-*-irix* | /*-*-irix*)
+           compile_command=&quot;$compile_command $arg&quot;
+           finalize_command=&quot;$finalize_command $arg&quot;
+           ;;
+@@ -1022,7 +1453,7 @@
+           absdir=`cd &quot;$dir&quot; &amp;&amp; pwd`
+           if test -z &quot;$absdir&quot;; then
+             $echo &quot;$modename: cannot determine absolute directory name of \`$dir'&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+           dir=&quot;$absdir&quot;
+           ;;
+@@ -1056,25 +1487,75 @@
+             # These systems don't actually have a C library (as such)
+             test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+             ;;
+-          *-*-openbsd*)
++          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+             # Do not include libc due to us having libc/libc_r.
+             test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+             ;;
+-          esac
+-         elif test &quot;X$arg&quot; = &quot;X-lc_r&quot;; then
+-          case $host in
+-          *-*-openbsd*)
+-            # Do not include libc_r directly, use -pthread flag.
++          *-*-rhapsody* | *-*-darwin1.[012])
++            # Rhapsody C and math libraries are in the System framework
++            deplibs=&quot;$deplibs -framework System&quot;
+             continue
+-            ;;
+           esac
++        elif test &quot;X$arg&quot; = &quot;X-lc_r&quot;; then
++         case $host in
++         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
++           # Do not include libc_r directly, use -pthread flag.
++           continue
++           ;;
++         esac
+         fi
+         deplibs=&quot;$deplibs $arg&quot;
+         continue
+         ;

+-      -module)
+-        module=yes
++      # Tru64 UNIX uses -model [arg] to determine the layout of C++
++      # classes, name mangling, and exception handling.
++      -model)
++        compile_command=&quot;$compile_command $arg&quot;
++        compiler_flags=&quot;$compiler_flags $arg&quot;
++        finalize_command=&quot;$finalize_command $arg&quot;
++        prev=xcompiler
++        continue
++        ;
++
++     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
++        compiler_flags=&quot;$compiler_flags $arg&quot;
++        compile_command=&quot;$compile_command $arg&quot;
++        finalize_command=&quot;$finalize_command $arg&quot;
++        continue
++        ;
++
++      -module)
++        module=yes
++        continue
++        ;
++
++      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
++      # -r[0-9][0-9]* specifies the processor on the SGI compiler
++      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
++      # +DA*, +DD* enable 64-bit mode on the HP compiler
++      # -q* pass through compiler args for the IBM compiler
++      # -m* pass through architecture-specific compiler args for GCC
++      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
++
++        # Unknown arguments in both finalize_command and compile_command need
++        # to be aesthetically quoted because they are evaled later.
++        arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
++        case $arg in
++        *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
++          arg=&quot;\&quot;$arg\&quot;&quot;
++          ;;
++        esac
++        compile_command=&quot;$compile_command $arg&quot;
++        finalize_command=&quot;$finalize_command $arg&quot;
++        if test &quot;$with_gcc&quot; = &quot;yes&quot; ; then
++          compiler_flags=&quot;$compiler_flags $arg&quot;
++        fi
++        continue
++        ;;
++
++      -shrext)
++        prev=shrext
+         continue
+         ;

+@@ -1102,8 +1583,18 @@
+         continue
+         ;

++      -objectlist)
++        prev=objectlist
++        continue
++        ;
++
+       -o) prev=output ;;

++      -precious-files-regex)
++        prev=precious_regex
++        continue
++        ;
++
+       -release)
+         prev=release
+         continue
+@@ -1126,7 +1617,7 @@
+         [\\/]* | [A-Za-z]:[\\/]*) ;;
+         *)
+           $echo &quot;$modename: only absolute run-paths are allowed&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac
+         case &quot;$xrpath &quot; in
+@@ -1154,6 +1645,11 @@
+         prev=vinfo
+         continue
+         ;
++      -version-number)
++        prev=vinfo
++        vinfo_number=yes
++        continue
++        ;

+       -Wc,*)
+         args=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot; -e 's/^-Wc,//'`
+@@ -1202,6 +1698,11 @@
+         continue
+         ;

++      -XCClinker)
++        prev=xcclinker
++        continue
++        ;
++
+       # Some other compiler flag.
+       -* | +*)
+         # Unknown arguments in both finalize_command and compile_command need
+@@ -1214,29 +1715,101 @@
+         esac
+         ;

+-      *.lo | *.$objext)
+-        # A library or standard object.
+-        if test &quot;$prev&quot; = dlfiles; then
+-          # This file was specified with -dlopen.
+-          if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test &quot;$dlopen_support&quot; = yes; then
+-            dlfiles=&quot;$dlfiles $arg&quot;
+-            prev=
+-            continue
+-          else
+-            # If libtool objects are unsupported, then we need to preload.
+-            prev=dlprefiles
+-          fi
+-        fi
++      *.$objext)
++        # A standard object.
++        objs=&quot;$objs $arg&quot;
++        ;

+-        if test &quot;$prev&quot; = dlprefiles; then
+-          # Preload the old-style object.
+-          dlprefiles=&quot;$dlprefiles &quot;`$echo &quot;X$arg&quot; | $Xsed -e &quot;$lo2o&quot;`
+-          prev=
+-        else
++      *.lo)
++        # A libtool-controlled object.
++
++        # Check to see that this really is a libtool object.
++        if (${SED} -e '2q' $arg | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++          pic_object=
++          non_pic_object=
++
++          # Read the .lo file
++          # If there is no directory component, then add one.
+           case $arg in
+-          *.lo) libobjs=&quot;$libobjs $arg&quot; ;;
+-          *) objs=&quot;$objs $arg&quot; ;;
++          */* | *\\*) . $arg ;;
++          *) . ./$arg ;;
+           esac
++
++          if test -z &quot;$pic_object&quot; || \
++             test -z &quot;$non_pic_object&quot; ||
++             test &quot;$pic_object&quot; = none &amp;&amp; \
++             test &quot;$non_pic_object&quot; = none; then
++            $echo &quot;$modename: cannot find name of object for \`$arg'&quot; 1&gt;&amp;2
++            exit $EXIT_FAILURE
++          fi
++
++          # Extract subdirectory from the argument.
++          xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
++          if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
++            xdir=
++           else
++            xdir=&quot;$xdir/&quot;
++          fi
++
++          if test &quot;$pic_object&quot; != none; then
++            # Prepend the subdirectory the object is found in.
++            pic_object=&quot;$xdir$pic_object&quot;
++
++            if test &quot;$prev&quot; = dlfiles; then
++              if test &quot;$build_libtool_libs&quot; = yes &amp;&amp; test &quot;$dlopen_support&quot; = yes; then
++                dlfiles=&quot;$dlfiles $pic_object&quot;
++                prev=
++                continue
++              else
++                # If libtool objects are unsupported, then we need to preload.
++                prev=dlprefiles
++              fi
++            fi
++
++            # CHECK ME:  I think I busted this.  -Ossama
++            if test &quot;$prev&quot; = dlprefiles; then
++              # Preload the old-style object.
++              dlprefiles=&quot;$dlprefiles $pic_object&quot;
++              prev=
++            fi
++
++            # A PIC object.
++            libobjs=&quot;$libobjs $pic_object&quot;
++            arg=&quot;$pic_object&quot;
++          fi
++
++          # Non-PIC object.
++          if test &quot;$non_pic_object&quot; != none; then
++            # Prepend the subdirectory the object is found in.
++            non_pic_object=&quot;$xdir$non_pic_object&quot;
++
++            # A standard non-PIC object
++            non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
++            if test -z &quot;$pic_object&quot; || test &quot;$pic_object&quot; = none ; then
++              arg=&quot;$non_pic_object&quot;
++            fi
++          fi
++        else
++          # Only an error if not doing a dry-run.
++          if test -z &quot;$run&quot;; then
++            $echo &quot;$modename: \`$arg' is not a valid libtool object&quot; 1&gt;&amp;2
++            exit $EXIT_FAILURE
++          else
++            # Dry-run case.
++
++            # Extract subdirectory from the argument.
++            xdir=`$echo &quot;X$arg&quot; | $Xsed -e 's%/[^/]*$%%'`
++            if test &quot;X$xdir&quot; = &quot;X$arg&quot;; then
++              xdir=
++            else
++              xdir=&quot;$xdir/&quot;
++            fi
++
++            pic_object=`$echo &quot;X${xdir}${objdir}/${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
++            non_pic_object=`$echo &quot;X${xdir}${arg}&quot; | $Xsed -e &quot;$lo2o&quot;`
++            libobjs=&quot;$libobjs $pic_object&quot;
++            non_pic_objects=&quot;$non_pic_objects $non_pic_object&quot;
++          fi
+         fi
+         ;

+@@ -1287,7 +1860,7 @@
+     if test -n &quot;$prev&quot;; then
+       $echo &quot;$modename: the \`$prevarg' option requires an argument&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     if test &quot;$export_dynamic&quot; = yes &amp;&amp; test -n &quot;$export_dynamic_flag_spec&quot;; then
+@@ -1296,6 +1869,7 @@
+       finalize_command=&quot;$finalize_command $arg&quot;
+     fi

++    oldlibs=
+     # calculate the name of the file, without its directory
+     outputname=`$echo &quot;X$output&quot; | $Xsed -e 's%^.*/%%'`
+     libobjs_save=&quot;$libobjs&quot;
+@@ -1330,7 +1904,7 @@
+     &quot;&quot;)
+       $echo &quot;$modename: you must specify an output file&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+       ;;
+     *.$libext) linkmode=oldlib ;;
+     *.lo | *.$objext) linkmode=obj ;;
+@@ -1338,7 +1912,17 @@
+     *) linkmode=prog ;; # Anything else should be a program.
+     esac

++    case $host in
++    *cygwin* | *mingw* | *pw32*)
++      # don't eliminate duplications in $postdeps and $predeps
++      duplicate_compiler_generated_deps=yes
++      ;;
++    *)
++      duplicate_compiler_generated_deps=$duplicate_deps
++      ;;
++    esac
+     specialdeplibs=
++
+     libs=
+     # Find all interdependent deplibs by searching for libraries
+     # that are linked more than once (e.g. -la -lb -la)
+@@ -1358,7 +1942,7 @@
+       # $postdeps and mark them as special (i.e., whose duplicates are
+       # not to be eliminated).
+       pre_post_deps=
+-      if test &quot;X$duplicate_deps&quot; = &quot;Xyes&quot; ; then
++      if test &quot;X$duplicate_compiler_generated_deps&quot; = &quot;Xyes&quot; ; then
+         for pre_post_dep in $predeps $postdeps; do
+           case &quot;$pre_post_deps &quot; in
+           *&quot; $pre_post_dep &quot;*) specialdeplibs=&quot;$specialdeplibs $pre_post_deps&quot; ;;
+@@ -1383,7 +1967,7 @@
+           *.la) ;;
+           *)
+             $echo &quot;$modename: libraries can \`-dlopen' only libtool libraries: $file&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+             ;;
+           esac
+         done
+@@ -1400,39 +1984,58 @@
+         ;
+     esac
+     for pass in $passes; do
++      if test &quot;$linkmode,$pass&quot; = &quot;lib,link&quot; ||
++         test &quot;$linkmode,$pass&quot; = &quot;prog,scan&quot;; then
++        libs=&quot;$deplibs&quot;
++        deplibs=
++      fi
+       if test &quot;$linkmode&quot; = prog; then
+-        # Determine which files to process
+         case $pass in
+-        dlopen)
+-          libs=&quot;$dlfiles&quot;
+-          save_deplibs=&quot;$deplibs&quot; # Collect dlpreopened libraries
+-          deplibs=
+-          ;;
++        dlopen) libs=&quot;$dlfiles&quot; ;;
+         dlpreopen) libs=&quot;$dlprefiles&quot; ;;
+-        link) libs=&quot;$deplibs %DEPLIBS% $dependency_libs&quot; ;;
++        link)
++          libs=&quot;$deplibs %DEPLIBS%&quot;
++          test &quot;X$link_all_deplibs&quot; != Xno &amp;&amp; libs=&quot;$libs $dependency_libs&quot;
++          ;;
+         esac
+       fi
++      if test &quot;$pass&quot; = dlopen; then
++        # Collect dlpreopened libraries
++        save_deplibs=&quot;$deplibs&quot;
++        deplibs=
++      fi
+       for deplib in $libs; do
+         lib=
+         found=no
+         case $deplib in
+-        -l*)
+-          if test &quot;$linkmode&quot; = oldlib &amp;&amp; test &quot;$linkmode&quot; = obj; then
+-            $echo &quot;$modename: warning: \`-l' is ignored for archives/objects: $deplib&quot; 1&gt;&amp;2
+-            continue
++        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
++          if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
++            compile_deplibs=&quot;$deplib $compile_deplibs&quot;
++            finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
++          else
++            compiler_flags=&quot;$compiler_flags $deplib&quot;
+           fi
+-          if test &quot;$pass&quot; = conv; then
+-            deplibs=&quot;$deplib $deplibs&quot;
++          continue
++          ;;
++        -l*)
++          if test &quot;$linkmode&quot; != lib &amp;&amp; test &quot;$linkmode&quot; != prog; then
++            $echo &quot;$modename: warning: \`-l' is ignored for archives/objects&quot; 1&gt;&amp;2
+             continue
+           fi
+           name=`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-l//'`
+           for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
+-            # Search the libtool library
+-            lib=&quot;$searchdir/lib${name}.la&quot;
+-            if test -f &quot;$lib&quot;; then
+-              found=yes
+-              break
+-            fi
++            for search_ext in .la $std_shrext .so .a; do
++              # Search the libtool library
++              lib=&quot;$searchdir/lib${name}${search_ext}&quot;
++              if test -f &quot;$lib&quot;; then
++                if test &quot;$search_ext&quot; = &quot;.la&quot;; then
++                  found=yes
++                else
++                  found=no
++                fi
++                break 2
++              fi
++            done
+           done
+           if test &quot;$found&quot; != yes; then
+             # deplib doesn't seem to be a libtool library
+@@ -1444,6 +2047,42 @@
+               test &quot;$linkmode&quot; = lib &amp;&amp; newdependency_libs=&quot;$deplib $newdependency_libs&quot;
+             fi
+             continue
++          else # deplib is a libtool library
++            # If $allow_libtool_libs_with_static_runtimes &amp;&amp; $deplib is a stdlib,
++            # We need to do some special things here, and not later.
++            if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++              case &quot; $predeps $postdeps &quot; in
++              *&quot; $deplib &quot;*)
++                if (${SED} -e '2q' $lib |
++                    grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++                  library_names=
++                  old_library=
++                  case $lib in
++                  */* | *\\*) . $lib ;;
++                  *) . ./$lib ;;
++                  esac
++                  for l in $old_library $library_names; do
++                    ll=&quot;$l&quot;
++                  done
++                  if test &quot;X$ll&quot; = &quot;X$old_library&quot; ; then # only static version available
++                    found=no
++                    ladir=`$echo &quot;X$lib&quot; | $Xsed -e 's%/[^/]*$%%'`
++                    test &quot;X$ladir&quot; = &quot;X$lib&quot; &amp;&amp; ladir=&quot;.&quot;
++                    lib=$ladir/$old_library
++                    if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
++                      compile_deplibs=&quot;$deplib $compile_deplibs&quot;
++                      finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
++                    else
++                      deplibs=&quot;$deplib $deplibs&quot;
++                      test &quot;$linkmode&quot; = lib &amp;&amp; newdependency_libs=&quot;$deplib $newdependency_libs&quot;
++                    fi
++                    continue
++                  fi
++                fi
++                ;;
++              *) ;;
++              esac
++            fi
+           fi
+           ;; # -l
+         -L*)
+@@ -1461,14 +2100,14 @@
+             fi
+             if test &quot;$pass&quot; = scan; then
+               deplibs=&quot;$deplib $deplibs&quot;
+-              newlib_search_path=&quot;$newlib_search_path &quot;`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-L//'`
+             else
+               compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+               finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+             fi
++            newlib_search_path=&quot;$newlib_search_path &quot;`$echo &quot;X$deplib&quot; | $Xsed -e 's/^-L//'`
+             ;;
+           *)
+-            $echo &quot;$modename: warning: \`-L' is ignored for archives/objects: $deplib&quot; 1&gt;&amp;2
++            $echo &quot;$modename: warning: \`-L' is ignored for archives/objects&quot; 1&gt;&amp;2
+             ;;
+           esac # linkmode
+           continue
+@@ -1493,16 +2132,33 @@
+           fi
+           case $linkmode in
+           lib)
+-            if test &quot;$deplibs_check_method&quot; != pass_all; then
+-              echo
+-              echo &quot;*** Warning: This library needs some functionality provided by $deplib.&quot;
+-              echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-              echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-              echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++            valid_a_lib=no
++            case $deplibs_check_method in
++              match_pattern*)
++                set dummy $deplibs_check_method
++                match_pattern_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
++                if eval $echo \&quot;$deplib\&quot; 2&gt;/dev/null \
++                    | $SED 10q \
++                    | $EGREP &quot;$match_pattern_regex&quot; &gt; /dev/null; then
++                  valid_a_lib=yes
++                fi
++                ;
++              pass_all)
++                valid_a_lib=yes
++                ;
++            esac
++            if test &quot;$valid_a_lib&quot; != yes; then
++              $echo
++              $echo &quot;*** Warning: Trying to link with static lib archive $deplib.&quot;
++              $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++              $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++              $echo &quot;*** shared version of the library, which you do not appear to have&quot;
++              $echo &quot;*** because the file extensions .$libext of this argument makes me believe&quot;
++              $echo &quot;*** that it is just a static archive that I should not used here.&quot;
+             else
+-              echo
+-              echo &quot;*** Warning: Linking the shared library $output against the&quot;
+-              echo &quot;*** static library $deplib is not portable!&quot;
++              $echo
++              $echo &quot;*** Warning: Linking the shared library $output against the&quot;
++              $echo &quot;*** static library $deplib is not portable!&quot;
+               deplibs=&quot;$deplib $deplibs&quot;
+             fi
+             continue
+@@ -1519,14 +2175,18 @@
+           esac # linkmode
+           ;; # *.$libext
+         *.lo | *.$objext)
+-          if test &quot;$pass&quot; = dlpreopen || test &quot;$dlopen_support&quot; != yes || test &quot;$build_libtool_libs&quot; = no; then
+-            # If there is no dlopen support or we're linking statically,
+-            # we need to preload.
+-            newdlprefiles=&quot;$newdlprefiles $deplib&quot;
+-            compile_deplibs=&quot;$deplib $compile_deplibs&quot;
+-            finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
+-          else
+-            newdlfiles=&quot;$newdlfiles $deplib&quot;
++          if test &quot;$pass&quot; = conv; then
++            deplibs=&quot;$deplib $deplibs&quot;
++          elif test &quot;$linkmode&quot; = prog; then
++            if test &quot;$pass&quot; = dlpreopen || test &quot;$dlopen_support&quot; != yes || test &quot;$build_libtool_libs&quot; = no; then
++              # If there is no dlopen support or we're linking statically,
++              # we need to preload.
++              newdlprefiles=&quot;$newdlprefiles $deplib&quot;
++              compile_deplibs=&quot;$deplib $compile_deplibs&quot;
++              finalize_deplibs=&quot;$deplib $finalize_deplibs&quot;
++            else
++              newdlfiles=&quot;$newdlfiles $deplib&quot;
++            fi
+           fi
+           continue
+           ;;
+@@ -1538,14 +2198,14 @@
+         if test &quot;$found&quot; = yes || test -f &quot;$lib&quot;; then :
+         else
+           $echo &quot;$modename: cannot find the library \`$lib'&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         # Check to see that this really is a libtool archive.
+-        if (sed -e '2q' $lib | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
++        if (${SED} -e '2q' $lib | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+         else
+           $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         ladir=`$echo &quot;X$lib&quot; | $Xsed -e 's%/[^/]*$%%'`
+@@ -1558,8 +2218,11 @@
+         library_names=
+         old_library=
+         # If the library was installed with an old release of libtool,
+-        # it will not redefine variable installed.
++        # it will not redefine variables installed, or shouldnotlink
+         installed=yes
++        shouldnotlink=no
++        avoidtemprpath=
++

+         # Read the .la file
+         case $lib in
+@@ -1569,8 +2232,7 @@

+         if test &quot;$linkmode,$pass&quot; = &quot;lib,link&quot; ||
+            test &quot;$linkmode,$pass&quot; = &quot;prog,scan&quot; ||
+-           { test &quot;$linkmode&quot; = oldlib &amp;&amp; test &quot;$linkmode&quot; = obj; }; then
+-           # Add dl[pre]opened files of deplib
++           { test &quot;$linkmode&quot; != prog &amp;&amp; test &quot;$linkmode&quot; != lib; }; then
+           test -n &quot;$dlopen&quot; &amp;&amp; dlfiles=&quot;$dlfiles $dlopen&quot;
+           test -n &quot;$dlpreopen&quot; &amp;&amp; dlprefiles=&quot;$dlprefiles $dlpreopen&quot;
+         fi
+@@ -1581,7 +2243,7 @@
+           if test -z &quot;$libdir&quot;; then
+             if test -z &quot;$old_library&quot;; then
+               $echo &quot;$modename: cannot find name of link library for \`$lib'&quot; 1&gt;&amp;2
+-              exit 1
++              exit $EXIT_FAILURE
+             fi
+             # It is a libtool convenience library, so add in its objects.
+             convenience=&quot;$convenience $ladir/$objdir/$old_library&quot;
+@@ -1598,11 +2260,12 @@
+             done
+           elif test &quot;$linkmode&quot; != prog &amp;&amp; test &quot;$linkmode&quot; != lib; then
+             $echo &quot;$modename: \`$lib' is not a convenience library&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+           continue
+         fi # $pass = conv

++
+         # Get the name of the library we link against.
+         linklib=
+         for l in $old_library $library_names; do
+@@ -1610,19 +2273,23 @@
+         done
+         if test -z &quot;$linklib&quot;; then
+           $echo &quot;$modename: cannot find name of link library for \`$lib'&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         # This library was specified with -dlopen.
+         if test &quot;$pass&quot; = dlopen; then
+           if test -z &quot;$libdir&quot;; then
+             $echo &quot;$modename: cannot -dlopen a convenience library: \`$lib'&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+-          if test -z &quot;$dlname&quot; || test &quot;$dlopen_support&quot; != yes || test &quot;$build_libtool_libs&quot; = no; then
++          if test -z &quot;$dlname&quot; ||
++             test &quot;$dlopen_support&quot; != yes ||
++             test &quot;$build_libtool_libs&quot; = no; then
+             # If there is no dlname, no dlopen support or we're linking
+-            # statically, we need to preload.
+-            dlprefiles=&quot;$dlprefiles $lib&quot;
++            # statically, we need to preload.  We also need to preload any
++            # dependent libraries so libltdl's deplib preloader doesn't
++            # bomb out in the load deplibs phase.
++            dlprefiles=&quot;$dlprefiles $lib $dependency_libs&quot;
+           else
+             newdlfiles=&quot;$newdlfiles $lib&quot;
+           fi
+@@ -1654,11 +2321,19 @@
+             dir=&quot;$libdir&quot;
+             absdir=&quot;$libdir&quot;
+           fi
++          test &quot;X$hardcode_automatic&quot; = Xyes &amp;&amp; avoidtemprpath=yes
+         else
+-          dir=&quot;$ladir/$objdir&quot;
+-          absdir=&quot;$abs_ladir/$objdir&quot;
+-          # Remove this search path later
+-          notinst_path=&quot;$notinst_path $abs_ladir&quot;
++          if test ! -f &quot;$ladir/$objdir/$linklib&quot; &amp;&amp; test -f &quot;$abs_ladir/$linklib&quot;; then
++            dir=&quot;$ladir&quot;
++            absdir=&quot;$abs_ladir&quot;
++            # Remove this search path later
++            notinst_path=&quot;$notinst_path $abs_ladir&quot;
++          else
++            dir=&quot;$ladir/$objdir&quot;
++            absdir=&quot;$abs_ladir/$objdir&quot;
++            # Remove this search path later
++            notinst_path=&quot;$notinst_path $abs_ladir&quot;
++          fi
+         fi # $installed = yes
+         name=`$echo &quot;X$laname&quot; | $Xsed -e 's/\.la$//' -e 's/^lib//'`

+@@ -1666,7 +2341,7 @@
+         if test &quot;$pass&quot; = dlpreopen; then
+           if test -z &quot;$libdir&quot;; then
+             $echo &quot;$modename: cannot -dlpreopen a convenience library: \`$lib'&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+           # Prefer using a static library (so that no silly _DYNAMIC symbols
+           # are required to link).
+@@ -1688,11 +2363,12 @@
+             compile_deplibs=&quot;$dir/$old_library $compile_deplibs&quot;
+             finalize_deplibs=&quot;$dir/$old_library $finalize_deplibs&quot;
+           else
+-            deplibs=&quot;$lib $deplibs&quot;
++            deplibs=&quot;$lib $deplibs&quot; # used for prog,scan pass
+           fi
+           continue
+         fi

++
+         if test &quot;$linkmode&quot; = prog &amp;&amp; test &quot;$pass&quot; != link; then
+           newlib_search_path=&quot;$newlib_search_path $ladir&quot;
+           deplibs=&quot;$lib $deplibs&quot;
+@@ -1726,13 +2402,19 @@
+           continue
+         fi # $linkmode = prog...

+-        link_static=no # Whether the deplib will be linked statically
+-        if test -n &quot;$library_names&quot; &amp;&amp;
+-           { test &quot;$prefer_static_libs&quot; = no || test -z &quot;$old_library&quot;; }; then
+-          # Link against this shared library
++        if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot;; then
++          if test -n &quot;$library_names&quot; &amp;&amp;
++             { test &quot;$prefer_static_libs&quot; = no || test -z &quot;$old_library&quot;; }; then
++            # We need to hardcode the library path
++            if test -n &quot;$shlibpath_var&quot; &amp;&amp; test -z &quot;$avoidtemprpath&quot; ; then
++              # Make sure the rpath contains only unique directories.
++              case &quot;$temp_rpath &quot; in
++              *&quot; $dir &quot;*) ;;
++              *&quot; $absdir &quot;*) ;;
++              *) temp_rpath=&quot;$temp_rpath $absdir&quot; ;;
++              esac
++            fi

+-          if test &quot;$linkmode,$pass&quot; = &quot;prog,link&quot; ||
+-           { test &quot;$linkmode&quot; = lib &amp;&amp; test &quot;$hardcode_into_libs&quot; = yes; }; then
+             # Hardcode the library path.
+             # Skip directories that are in the system default run-time
+             # search path.
+@@ -1754,17 +2436,6 @@
+               esac
+               ;;
+             esac
+-            if test &quot;$linkmode&quot; = prog; then
+-              # We need to hardcode the library path
+-              if test -n &quot;$shlibpath_var&quot;; then
+-                # Make sure the rpath contains only unique directories.
+-                case &quot;$temp_rpath &quot; in
+-                *&quot; $dir &quot;*) ;;
+-                *&quot; $absdir &quot;*) ;;
+-                *) temp_rpath=&quot;$temp_rpath $dir&quot; ;;
+-                esac
+-              fi
+-            fi
+           fi # $linkmode,$pass = prog,link...

+           if test &quot;$alldeplibs&quot; = yes &amp;&amp;
+@@ -1774,11 +2445,52 @@
+             # We only need to search for static libraries
+             continue
+           fi
++        fi

++        link_static=no # Whether the deplib will be linked statically
++        if test -n &quot;$library_names&quot; &amp;&amp;
++           { test &quot;$prefer_static_libs&quot; = no || test -z &quot;$old_library&quot;; }; then
+           if test &quot;$installed&quot; = no; then
+             notinst_deplibs=&quot;$notinst_deplibs $lib&quot;
+             need_relink=yes
+           fi
++          # This is a shared library
++
++          # Warn about portability, can't link against -module's on
++          # some systems (darwin)
++          if test &quot;$shouldnotlink&quot; = yes &amp;&amp; test &quot;$pass&quot; = link ; then
++            $echo
++            if test &quot;$linkmode&quot; = prog; then
++              $echo &quot;*** Warning: Linking the executable $output against the loadable module&quot;
++            else
++              $echo &quot;*** Warning: Linking the shared library $output against the loadable module&quot;
++            fi
++            $echo &quot;*** $linklib is not portable!&quot;
++          fi
++          if test &quot;$linkmode&quot; = lib &amp;&amp;
++             test &quot;$hardcode_into_libs&quot; = yes; then
++            # Hardcode the library path.
++            # Skip directories that are in the system default run-time
++            # search path.
++            case &quot; $sys_lib_dlsearch_path &quot; in
++            *&quot; $absdir &quot;*) ;;
++            *)
++              case &quot;$compile_rpath &quot; in
++              *&quot; $absdir &quot;*) ;;
++              *) compile_rpath=&quot;$compile_rpath $absdir&quot;
++              esac
++              ;;
++            esac
++            case &quot; $sys_lib_dlsearch_path &quot; in
++            *&quot; $libdir &quot;*) ;;
++            *)
++              case &quot;$finalize_rpath &quot; in
++              *&quot; $libdir &quot;*) ;;
++              *) finalize_rpath=&quot;$finalize_rpath $libdir&quot;
++              esac
++              ;;
++            esac
++          fi

+           if test -n &quot;$old_archive_from_expsyms_cmds&quot;; then
+             # figure out the soname
+@@ -1792,7 +2504,7 @@
+             elif test -n &quot;$soname_spec&quot;; then
+               # bleh windows
+               case $host in
+-              *cygwin*)
++              *cygwin* | mingw*)
+                 major=`expr $current - $age`
+                 versuffix=&quot;-$major&quot;
+                 ;
+@@ -1804,17 +2516,18 @@

+             # Make a new name for the extract_expsyms_cmds to use
+             soroot=&quot;$soname&quot;
+-            soname=`echo $soroot | sed -e 's/^.*\///'`
+-            newlib=&quot;libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a&quot;
++            soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
++            newlib=&quot;libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a&quot;

+             # If the library has no export list, then create one now
+             if test -f &quot;$output_objdir/$soname-def&quot;; then :
+             else
+               $show &quot;extracting exported symbol list from \`$soname'&quot;
+               save_ifs=&quot;$IFS&quot;; IFS='~'
+-              eval cmds=\&quot;$extract_expsyms_cmds\&quot;
++              cmds=$extract_expsyms_cmds
+               for cmd in $cmds; do
+                 IFS=&quot;$save_ifs&quot;
++                eval cmd=\&quot;$cmd\&quot;
+                 $show &quot;$cmd&quot;
+                 $run eval &quot;$cmd&quot; || exit $?
+               done
+@@ -1825,9 +2538,10 @@
+             if test -f &quot;$output_objdir/$newlib&quot;; then :; else
+               $show &quot;generating import library for \`$soname'&quot;
+               save_ifs=&quot;$IFS&quot;; IFS='~'
+-              eval cmds=\&quot;$old_archive_from_expsyms_cmds\&quot;
++              cmds=$old_archive_from_expsyms_cmds
+               for cmd in $cmds; do
+                 IFS=&quot;$save_ifs&quot;
++                eval cmd=\&quot;$cmd\&quot;
+                 $show &quot;$cmd&quot;
+                 $run eval &quot;$cmd&quot; || exit $?
+               done
+@@ -1847,6 +2561,22 @@
+             immediate | unsupported)
+               if test &quot;$hardcode_direct&quot; = no; then
+                 add=&quot;$dir/$linklib&quot;
++                case $host in
++                  *-*-sco3.2v5* ) add_dir=&quot;-L$dir&quot; ;;
++                  *-*-darwin* )
++                    # if the lib is a module then we can not link against
++                    # it, someone is ignoring the new warnings I added
++                    if /usr/bin/file -L $add 2&gt; /dev/null | $EGREP &quot;bundle&quot; &gt;/dev/null ; then
++                      $echo &quot;** Warning, lib $linklib is a module, not a shared library&quot;
++                      if test -z &quot;$old_library&quot; ; then
++                        $echo
++                        $echo &quot;** And there doesn't seem to be a static archive available&quot;
++                        $echo &quot;** The link will probably fail, sorry&quot;
++                      else
++                        add=&quot;$dir/$old_library&quot;
++                      fi
++                    fi
++                esac
+               elif test &quot;$hardcode_minus_L&quot; = no; then
+                 case $host in
+                 *-*-sunos*) add_shlibpath=&quot;$dir&quot; ;;
+@@ -1865,6 +2595,14 @@
+                 add=&quot;$dir/$linklib&quot;
+               elif test &quot;$hardcode_minus_L&quot; = yes; then
+                 add_dir=&quot;-L$dir&quot;
++                # Try looking first in the location we're being installed to.
++                if test -n &quot;$inst_prefix_dir&quot;; then
++                  case $libdir in
++                    [\\/]*)
++                      add_dir=&quot;$add_dir -L$inst_prefix_dir$libdir&quot;
++                      ;;
++                  esac
++                fi
+                 add=&quot;-l$name&quot;
+               elif test &quot;$hardcode_shlibpath_var&quot; = yes; then
+                 add_shlibpath=&quot;$dir&quot;
+@@ -1878,7 +2616,7 @@

+             if test &quot;$lib_linked&quot; != yes; then
+               $echo &quot;$modename: configuration error: unsupported hardcode properties&quot;
+-              exit 1
++              exit $EXIT_FAILURE
+             fi

+             if test -n &quot;$add_shlibpath&quot;; then
+@@ -1912,16 +2650,7 @@
+             if test &quot;$hardcode_direct&quot; = yes; then
+               add=&quot;$libdir/$linklib&quot;
+             elif test &quot;$hardcode_minus_L&quot; = yes; then
+-              # Try looking first in the location we're being installed to.
+-              add_dir=
+-              if test -n &quot;$inst_prefix_dir&quot;; then
+-                case &quot;$libdir&quot; in
+-                [\\/]*)
+-                  add_dir=&quot;-L$inst_prefix_dir$libdir&quot;
+-                  ;;
+-                esac
+-              fi
+-              add_dir=&quot;$add_dir -L$libdir&quot;
++              add_dir=&quot;-L$libdir&quot;
+               add=&quot;-l$name&quot;
+             elif test &quot;$hardcode_shlibpath_var&quot; = yes; then
+               case :$finalize_shlibpath: in
+@@ -1929,18 +2658,24 @@
+               *) finalize_shlibpath=&quot;$finalize_shlibpath$libdir:&quot; ;;
+               esac
+               add=&quot;-l$name&quot;
++            elif test &quot;$hardcode_automatic&quot; = yes; then
++              if test -n &quot;$inst_prefix_dir&quot; &amp;&amp;
++                 test -f &quot;$inst_prefix_dir$libdir/$linklib&quot; ; then
++                add=&quot;$inst_prefix_dir$libdir/$linklib&quot;
++              else
++                add=&quot;$libdir/$linklib&quot;
++              fi
+             else
+               # We cannot seem to hardcode it, guess we'll fake it.
++              add_dir=&quot;-L$libdir&quot;
+               # Try looking first in the location we're being installed to.
+-              add_dir=
+               if test -n &quot;$inst_prefix_dir&quot;; then
+-                case &quot;$libdir&quot; in
+-                [\\/]*)
+-                  add_dir=&quot;-L$inst_prefix_dir$libdir&quot;
+-                  ;;
++                case $libdir in
++                  [\\/]*)
++                    add_dir=&quot;$add_dir -L$inst_prefix_dir$libdir&quot;
++                    ;;
+                 esac
+               fi
+-              add_dir=&quot;$add_dir -L$libdir&quot;
+               add=&quot;-l$name&quot;
+             fi

+@@ -1953,15 +2688,6 @@
+             fi
+           fi
+         elif test &quot;$linkmode&quot; = prog; then
+-          if test &quot;$alldeplibs&quot; = yes &amp;&amp;
+-             { test &quot;$deplibs_check_method&quot; = pass_all ||
+-               { test &quot;$build_libtool_libs&quot; = yes &amp;&amp;
+-                 test -n &quot;$library_names&quot;; }; }; then
+-            # We only need to search for static libraries
+-            continue
+-          fi
+-
+-          # Try to link the static library
+           # Here we assume that one of hardcode_direct or hardcode_minus_L
+           # is not unsupported.  This is valid on all known static and
+           # shared platforms.
+@@ -1981,20 +2707,21 @@

+             # Just print a warning and add the library to dependency_libs so
+             # that the program can be linked against the static library.
+-            echo
+-            echo &quot;*** Warning: This library needs some functionality provided by $lib.&quot;
+-            echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-            echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-            echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++            $echo
++            $echo &quot;*** Warning: This system can not link to static lib archive $lib.&quot;
++            $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++            $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++            $echo &quot;*** shared version of the library, which you do not appear to have.&quot;
+             if test &quot;$module&quot; = yes; then
+-              echo &quot;*** Therefore, libtool will create a static module, that should work &quot;
+-              echo &quot;*** as long as the dlopening application is linked with the -dlopen flag.&quot;
++              $echo &quot;*** But as you try to build a module library, libtool will still create &quot;
++              $echo &quot;*** a static module, that should work as long as the dlopening application&quot;
++              $echo &quot;*** is linked with the -dlopen flag to resolve symbols at runtime.&quot;
+               if test -z &quot;$global_symbol_pipe&quot;; then
+-                echo
+-                echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
+-                echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
+-                echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
+-                echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
++                $echo
++                $echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
++                $echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
++                $echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
++                $echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
+               fi
+               if test &quot;$build_old_libs&quot; = no; then
+                 build_libtool_libs=module
+@@ -2004,8 +2731,6 @@
+               fi
+             fi
+           else
+-            convenience=&quot;$convenience $dir/$old_library&quot;
+-            old_convenience=&quot;$old_convenience $dir/$old_library&quot;
+             deplibs=&quot;$dir/$old_library $deplibs&quot;
+             link_static=yes
+           fi
+@@ -2013,7 +2738,8 @@

+         if test &quot;$linkmode&quot; = lib; then
+           if test -n &quot;$dependency_libs&quot; &amp;&amp;
+-             { test &quot;$hardcode_into_libs&quot; != yes || test &quot;$build_old_libs&quot; = yes ||
++             { test &quot;$hardcode_into_libs&quot; != yes ||
++               test &quot;$build_old_libs&quot; = yes ||
+                test &quot;$link_static&quot; = yes; }; then
+             # Extract -R from dependency_libs
+             temp_deplibs=
+@@ -2065,29 +2791,75 @@
+                   ;;
+                 esac
+                 if grep &quot;^installed=no&quot; $deplib &gt; /dev/null; then
+-                  path=&quot;-L$absdir/$objdir&quot;
++                  path=&quot;$absdir/$objdir&quot;
+                 else
+-                  eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                   if test -z &quot;$libdir&quot;; then
+                     $echo &quot;$modename: \`$deplib' is not a valid libtool archive&quot; 1&gt;&amp;2
+-                    exit 1
++                    exit $EXIT_FAILURE
+                   fi
+                   if test &quot;$absdir&quot; != &quot;$libdir&quot;; then
+                     $echo &quot;$modename: warning: \`$deplib' seems to be moved&quot; 1&gt;&amp;2
+                   fi
+-                  path=&quot;-L$absdir&quot;
++                  path=&quot;$absdir&quot;
+                 fi
++                depdepl=
++                case $host in
++                *-*-darwin*)
++                  # we do not want to link against static libs,
++                  # but need to link against shared
++                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
++                  if test -n &quot;$deplibrary_names&quot; ; then
++                    for tmp in $deplibrary_names ; do
++                      depdepl=$tmp
++                    done
++                    if test -f &quot;$path/$depdepl&quot; ; then
++                      depdepl=&quot;$path/$depdepl&quot;
++                    fi
++                    # do not add paths which are already there
++                    case &quot; $newlib_search_path &quot; in
++                    *&quot; $path &quot;*) ;;
++                    *) newlib_search_path=&quot;$newlib_search_path $path&quot;;;
++                    esac
++                  fi
++                  path=&quot;&quot;
++                  ;;
++                *)
++                  path=&quot;-L$path&quot;
++                  ;;
++                esac
++                ;
++              -l*)
++                case $host in
++                *-*-darwin*)
++                  # Again, we only want to link against shared libraries
++                  eval tmp_libs=`$echo &quot;X$deplib&quot; | $Xsed -e &quot;s,^\-l,,&quot;`
++                  for tmp in $newlib_search_path ; do
++                    if test -f &quot;$tmp/lib$tmp_libs.dylib&quot; ; then
++                      eval depdepl=&quot;$tmp/lib$tmp_libs.dylib&quot;
++                      break
++                    fi
++                  done
++                  path=&quot;&quot;
++                  ;;
++                *) continue ;;
++                esac
+                 ;
+               *) continue ;;
+               esac
+               case &quot; $deplibs &quot; in
+               *&quot; $path &quot;*) ;;
+-              *) deplibs=&quot;$deplibs $path&quot; ;;
++              *) deplibs=&quot;$path $deplibs&quot; ;;
++              esac
++              case &quot; $deplibs &quot; in
++              *&quot; $depdepl &quot;*) ;;
++              *) deplibs=&quot;$depdepl $deplibs&quot; ;;
+               esac
+             done
+           fi # link_all_deplibs != no
+         fi # linkmode = lib
+       done # for deplib in $libs
++      dependency_libs=&quot;$newdependency_libs&quot;
+       if test &quot;$pass&quot; = dlpreopen; then
+         # Link the dlpreopened libraries before other libraries
+         for deplib in $save_deplibs; do
+@@ -2095,7 +2867,6 @@
+         done
+       fi
+       if test &quot;$pass&quot; != dlopen; then
+-        test &quot;$pass&quot; != scan &amp;&amp; dependency_libs=&quot;$newdependency_libs&quot;
+         if test &quot;$pass&quot; != conv; then
+           # Make sure lib_search_path contains only unique directories.
+           lib_search_path=
+@@ -2118,9 +2889,30 @@
+           eval tmp_libs=\&quot;\$$var\&quot;
+           new_libs=
+           for deplib in $tmp_libs; do
++            # FIXME: Pedantically, this is the right thing to do, so
++            #        that some nasty dependency loop isn't accidentally
++            #        broken:
++            #new_libs=&quot;$deplib $new_libs&quot;
++            # Pragmatically, this seems to cause very few problems in
++            # practice:
+             case $deplib in
+             -L*) new_libs=&quot;$deplib $new_libs&quot; ;;
++            -R*) ;;
+             *)
++              # And here is the reason: when a library appears more
++              # than once as an explicit dependence of a library, or
++              # is implicitly linked in more than once by the
++              # compiler, it is considered special, and multiple
++              # occurrences thereof are not removed.  Compare this
++              # with having the same library being listed as a
++              # dependency of multiple other libraries: in this case,
++              # we know (pedantically, we assume) the library does not
++              # need to be listed more than once, so we keep only the
++              # last copy.  This is not always right, but it is rare
++              # enough that we require users that really mean to play
++              # such unportable linking tricks to link the library
++              # using -Wl,-lname, so that libtool does not consider it
++              # for duplicate removal.
+               case &quot; $specialdeplibs &quot; in
+               *&quot; $deplib &quot;*) new_libs=&quot;$deplib $new_libs&quot; ;;
+               *)
+@@ -2148,11 +2940,20 @@
+           eval $var=\&quot;$tmp_libs\&quot;
+         done # for var
+       fi
+-      if test &quot;$pass&quot; = &quot;conv&quot; &amp;&amp;
+-       { test &quot;$linkmode&quot; = &quot;lib&quot; || test &quot;$linkmode&quot; = &quot;prog&quot;; }; then
+-        libs=&quot;$deplibs&quot; # reset libs
+-        deplibs=
+-      fi
++      # Last step: remove runtime libs from dependency_libs
++      # (they stay in deplibs)
++      tmp_libs=
++      for i in $dependency_libs ; do
++        case &quot; $predeps $postdeps $compiler_lib_search_path &quot; in
++        *&quot; $i &quot;*)
++          i=&quot;&quot;
++          ;;
++        esac
++        if test -n &quot;$i&quot; ; then
++          tmp_libs=&quot;$tmp_libs $i&quot;
++        fi
++      done
++      dependency_libs=$tmp_libs
+     done # for pass
+     if test &quot;$linkmode&quot; = prog; then
+       dlfiles=&quot;$newdlfiles&quot;
+@@ -2161,6 +2962,10 @@

+     case $linkmode in
+     oldlib)
++      if test -n &quot;$deplibs&quot;; then
++        $echo &quot;$modename: warning: \`-l' and \`-L' are ignored for archives&quot; 1&gt;&amp;2
++      fi
++
+       if test -n &quot;$dlfiles$dlprefiles&quot; || test &quot;$dlself&quot; != no; then
+         $echo &quot;$modename: warning: \`-dlopen' is ignored for archives&quot; 1&gt;&amp;2
+       fi
+@@ -2174,7 +2979,7 @@
+       fi

+       if test -n &quot;$vinfo&quot;; then
+-        $echo &quot;$modename: warning: \`-version-info' is ignored for archives&quot; 1&gt;&amp;2
++        $echo &quot;$modename: warning: \`-version-info/-version-number' is ignored for archives&quot; 1&gt;&amp;2
+       fi

+       if test -n &quot;$release&quot;; then
+@@ -2196,17 +3001,19 @@
+       case $outputname in
+       lib*)
+         name=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//' -e 's/^lib//'`
++        eval shared_ext=\&quot;$shrext_cmds\&quot;
+         eval libname=\&quot;$libname_spec\&quot;
+         ;
+       *)
+         if test &quot;$module&quot; = no; then
+           $echo &quot;$modename: libtool library \`$output' must begin with \`lib'&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi
+         if test &quot;$need_lib_prefix&quot; != no; then
+           # Add the &quot;lib&quot; prefix for modules if required
+           name=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//'`
++          eval shared_ext=\&quot;$shrext_cmds\&quot;
+           eval libname=\&quot;$libname_spec\&quot;
+         else
+           libname=`$echo &quot;X$outputname&quot; | $Xsed -e 's/\.la$//'`
+@@ -2217,11 +3024,11 @@
+       if test -n &quot;$objs&quot;; then
+         if test &quot;$deplibs_check_method&quot; != pass_all; then
+           $echo &quot;$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs&quot; 2&gt;&amp;1
+-          exit 1
++          exit $EXIT_FAILURE
+         else
+-          echo
+-          echo &quot;*** Warning: Linking the shared library $output against the non-libtool&quot;
+-          echo &quot;*** objects $objs is not portable!&quot;
++          $echo
++          $echo &quot;*** Warning: Linking the shared library $output against the non-libtool&quot;
++          $echo &quot;*** objects $objs is not portable!&quot;
+           libobjs=&quot;$libobjs $objs&quot;
+         fi
+       fi
+@@ -2240,14 +3047,16 @@
+       if test -z &quot;$rpath&quot;; then
+         if test &quot;$build_libtool_libs&quot; = yes; then
+           # Building a libtool convenience library.
+-          libext=al
++          # Some compilers have problems with a `.al' extension so
++          # convenience libraries should have the same extension an
++          # archive normally would.
+           oldlibs=&quot;$output_objdir/$libname.$libext $oldlibs&quot;
+           build_libtool_libs=convenience
+           build_old_libs=yes
+         fi

+         if test -n &quot;$vinfo&quot;; then
+-          $echo &quot;$modename: warning: \`-version-info' is ignored for convenience libraries&quot; 1&gt;&amp;2
++          $echo &quot;$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries&quot; 1&gt;&amp;2
+         fi

+         if test -n &quot;$release&quot;; then
+@@ -2263,45 +3072,87 @@
+         if test -n &quot;$8&quot;; then
+           $echo &quot;$modename: too many parameters to \`-version-info'&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+-        current=&quot;$2&quot;
+-        revision=&quot;$3&quot;
+-        age=&quot;$4&quot;
++        # convert absolute version numbers to libtool ages
++        # this retains compatibility with .la files and attempts
++        # to make the code below a bit more comprehensible
++
++        case $vinfo_number in
++        yes)
++          number_major=&quot;$2&quot;
++          number_minor=&quot;$3&quot;
++          number_revision=&quot;$4&quot;
++          #
++          # There are really only two kinds -- those that
++          # use the current revision as the major version
++          # and those that subtract age and use age as
++          # a minor version.  But, then there is irix
++          # which has an extra 1 added just for fun
++          #
++          case $version_type in
++          darwin|linux|osf|windows)
++            current=`expr $number_major + $number_minor`
++            age=&quot;$number_minor&quot;
++            revision=&quot;$number_revision&quot;
++            ;;
++          freebsd-aout|freebsd-elf|sunos)
++            current=&quot;$number_major&quot;
++            revision=&quot;$number_minor&quot;
++            age=&quot;0&quot;
++            ;;
++          irix|nonstopux)
++            current=`expr $number_major + $number_minor - 1`
++            age=&quot;$number_minor&quot;
++            revision=&quot;$number_minor&quot;
++            ;;
++          *)
++            $echo &quot;$modename: unknown library version type \`$version_type'&quot; 1&gt;&amp;2
++            $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
++            exit $EXIT_FAILURE
++            ;;
++          esac
++          ;;
++        no)
++          current=&quot;$2&quot;
++          revision=&quot;$3&quot;
++          age=&quot;$4&quot;
++          ;;
++        esac

+         # Check that each of the things are valid numbers.
+         case $current in
+-        [0-9]*) ;;
++        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+         *)
+-          $echo &quot;$modename: CURRENT \`$current' is not a nonnegative integer&quot; 1&gt;&amp;2
++          $echo &quot;$modename: CURRENT \`$current' must be a nonnegative integer&quot; 1&gt;&amp;2
+           $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac

+         case $revision in
+-        [0-9]*) ;;
++        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+         *)
+-          $echo &quot;$modename: REVISION \`$revision' is not a nonnegative integer&quot; 1&gt;&amp;2
++          $echo &quot;$modename: REVISION \`$revision' must be a nonnegative integer&quot; 1&gt;&amp;2
+           $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac

+         case $age in
+-        [0-9]*) ;;
++        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+         *)
+-          $echo &quot;$modename: AGE \`$age' is not a nonnegative integer&quot; 1&gt;&amp;2
++          $echo &quot;$modename: AGE \`$age' must be a nonnegative integer&quot; 1&gt;&amp;2
+           $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac

+         if test &quot;$age&quot; -gt &quot;$current&quot;; then
+           $echo &quot;$modename: AGE \`$age' is greater than the current interface number \`$current'&quot; 1&gt;&amp;2
+           $echo &quot;$modename: \`$vinfo' is not valid version information&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         # Calculate the version variables.
+@@ -2318,7 +3169,7 @@
+           versuffix=&quot;$major.$age.$revision&quot;
+           # Darwin ld doesn't like 0 for these options...
+           minor_current=`expr $current + 1`
+-          verstring=&quot;-compatibility_version $minor_current -current_version $minor_current.$revision&quot;
++          verstring=&quot;${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision&quot;
+           ;;

+         freebsd-aout)
+@@ -2331,16 +3182,21 @@
+           versuffix=&quot;.$current&quot;;
+           ;;

+-        irix)
++        irix | nonstopux)
+           major=`expr $current - $age + 1`
+-          verstring=&quot;sgi$major.$revision&quot;
++
++          case $version_type in
++            nonstopux) verstring_prefix=nonstopux ;;
++            *)         verstring_prefix=sgi ;;
++          esac
++          verstring=&quot;$verstring_prefix$major.$revision&quot;

+           # Add in all the interfaces that we are compatible with.
+           loop=$revision
+           while test &quot;$loop&quot; -ne 0; do
+             iface=`expr $revision - $loop`
+             loop=`expr $loop - 1`
+-            verstring=&quot;sgi$major.$iface:$verstring&quot;
++            verstring=&quot;$verstring_prefix$major.$iface:$verstring&quot;
+           done

+           # Before this point, $major must not contain `.'.
+@@ -2354,7 +3210,7 @@
+           ;;

+         osf)
+-          major=`expr $current - $age`
++          major=.`expr $current - $age`
+           versuffix=&quot;.$current.$age.$revision&quot;
+           verstring=&quot;$current.$age.$revision&quot;

+@@ -2384,20 +3240,19 @@

+         *)
+           $echo &quot;$modename: unknown library version type \`$version_type'&quot; 1&gt;&amp;2
+-          echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
+-          exit 1
++          $echo &quot;Fatal configuration error.  See the $PACKAGE docs for more information.&quot; 1&gt;&amp;2
++          exit $EXIT_FAILURE
+           ;;
+         esac

+         # Clear the version info if we defaulted, and they specified a release.
+         if test -z &quot;$vinfo&quot; &amp;&amp; test -n &quot;$release&quot;; then
+           major=
+-          verstring=&quot;0.0&quot;
+           case $version_type in
+           darwin)
+             # we can't check for &quot;0.0&quot; in archive_cmds due to quoting
+             # problems, so we reset it completely
+-            verstring=&quot;&quot;
++            verstring=
+             ;;
+           *)
+             verstring=&quot;0.0&quot;
+@@ -2431,9 +3286,30 @@
+       fi

+       if test &quot;$mode&quot; != relink; then
+-        # Remove our outputs.
+-        $show &quot;${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*&quot;
+-        $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
++        # Remove our outputs, but don't remove object files since they
++        # may have been created when compiling PIC objects.
++        removelist=
++        tempremovelist=`$echo &quot;$output_objdir/*&quot;`
++        for p in $tempremovelist; do
++          case $p in
++            *.$objext)
++               ;;
++            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
++               if test &quot;X$precious_files_regex&quot; != &quot;X&quot;; then
++                 if echo $p | $EGREP -e &quot;$precious_files_regex&quot; &gt;/dev/null 2&gt;&amp;1
++                 then
++                   continue
++                 fi
++               fi
++               removelist=&quot;$removelist $p&quot;
++               ;;
++            *) ;;
++          esac
++        done
++        if test -n &quot;$removelist&quot;; then
++          $show &quot;${rm}r $removelist&quot;
++          $run ${rm}r $removelist
++        fi
+       fi

+       # Now set the variables for building old libraries.
+@@ -2446,9 +3322,9 @@

+       # Eliminate all temporary directories.
+       for path in $notinst_path; do
+-        lib_search_path=`echo &quot;$lib_search_path &quot; | sed -e 's% $path % %g'`
+-        deplibs=`echo &quot;$deplibs &quot; | sed -e 's% -L$path % %g'`
+-        dependency_libs=`echo &quot;$dependency_libs &quot; | sed -e 's% -L$path % %g'`
++        lib_search_path=`$echo &quot;$lib_search_path &quot; | ${SED} -e 's% $path % %g'`
++        deplibs=`$echo &quot;$deplibs &quot; | ${SED} -e 's% -L$path % %g'`
++        dependency_libs=`$echo &quot;$dependency_libs &quot; | ${SED} -e 's% -L$path % %g'`
+       done

+       if test -n &quot;$xrpath&quot;; then
+@@ -2499,10 +3375,11 @@
+           *-*-netbsd*)
+             # Don't link with libc until the a.out ld.so is fixed.
+             ;;
+-          *-*-openbsd*)
++          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+             # Do not include libc due to us having libc/libc_r.
++            test &quot;X$arg&quot; = &quot;X-lc&quot; &amp;&amp; continue
+             ;;
+-          *)
++           *)
+             # Add libc to deplibs on all other systems if necessary.
+             if test &quot;$build_libtool_need_lc&quot; = &quot;yes&quot;; then
+               deplibs=&quot;$deplibs -lc&quot;
+@@ -2531,7 +3408,7 @@
+           # This might be a little naive.  We might want to check
+           # whether the library exists or not.  But this is on
+           # osf3 &amp; osf4 and I'm not really sure... Just
+-          # implementing what was already the behaviour.
++          # implementing what was already the behavior.
+           newdeplibs=$deplibs
+           ;;
+         test_compile)
+@@ -2544,64 +3421,88 @@
+           int main() { return 0; }
+ EOF
+           $rm conftest
+-          $CC -o conftest conftest.c $deplibs
++          $LTCC -o conftest conftest.c $deplibs
+           if test &quot;$?&quot; -eq 0 ; then
+             ldd_output=`ldd conftest`
+             for i in $deplibs; do
+-              name=&quot;`expr $i : '-l\(.*\)'`&quot;
++              name=`expr $i : '-l\(.*\)'`
+               # If $name is empty we are operating on a -L argument.
+-              if test -n &quot;$name&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+-                libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+-                deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
+-                set dummy $deplib_matches
+-                deplib_match=$2
+-                if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
+-                  newdeplibs=&quot;$newdeplibs $i&quot;
+-                else
+-                  droppeddeps=yes
+-                  echo
+-                  echo &quot;*** Warning: This library needs some functionality provided by $i.&quot;
+-                  echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-                  echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-                  echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++              if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test &quot;$name&quot; -ne &quot;0&quot;; then
++                if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++                  case &quot; $predeps $postdeps &quot; in
++                  *&quot; $i &quot;*)
++                    newdeplibs=&quot;$newdeplibs $i&quot;
++                    i=&quot;&quot;
++                    ;;
++                  esac
++                fi
++                if test -n &quot;$i&quot; ; then
++                  libname=`eval \\$echo \&quot;$libname_spec\&quot;`
++                  deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
++                  set dummy $deplib_matches
++                  deplib_match=$2
++                  if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
++                    newdeplibs=&quot;$newdeplibs $i&quot;
++                  else
++                    droppeddeps=yes
++                    $echo
++                    $echo &quot;*** Warning: dynamic linker does not accept needed library $i.&quot;
++                    $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++                    $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++                    $echo &quot;*** shared version of the library, which I believe you do not have&quot;
++                    $echo &quot;*** because a test_compile did reveal that the linker did not use it for&quot;
++                    $echo &quot;*** its dynamic dependency list that programs get resolved with at runtime.&quot;
++                  fi
+                 fi
+               else
+                 newdeplibs=&quot;$newdeplibs $i&quot;
+               fi
+             done
+           else
+-            # Error occured in the first compile.  Let's try to salvage the situation:
+-            # Compile a seperate program for each library.
++            # Error occurred in the first compile.  Let's try to salvage
++            # the situation: Compile a separate program for each library.
+             for i in $deplibs; do
+-              name=&quot;`expr $i : '-l\(.*\)'`&quot;
+-             # If $name is empty we are operating on a -L argument.
+-              if test -n &quot;$name&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
++              name=`expr $i : '-l\(.*\)'`
++              # If $name is empty we are operating on a -L argument.
++              if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+                 $rm conftest
+-                $CC -o conftest conftest.c $i
++                $LTCC -o conftest conftest.c $i
+                 # Did it work?
+                 if test &quot;$?&quot; -eq 0 ; then
+                   ldd_output=`ldd conftest`
+-                  libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+-                  deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
+-                  set dummy $deplib_matches
+-                  deplib_match=$2
+-                  if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
+-                    newdeplibs=&quot;$newdeplibs $i&quot;
+-                  else
+-                    droppeddeps=yes
+-                    echo
+-                    echo &quot;*** Warning: This library needs some functionality provided by $i.&quot;
+-                    echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-                    echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-                    echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++                  if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++                    case &quot; $predeps $postdeps &quot; in
++                    *&quot; $i &quot;*)
++                      newdeplibs=&quot;$newdeplibs $i&quot;
++                      i=&quot;&quot;
++                      ;;
++                    esac
++                  fi
++                  if test -n &quot;$i&quot; ; then
++                    libname=`eval \\$echo \&quot;$libname_spec\&quot;`
++                    deplib_matches=`eval \\$echo \&quot;$library_names_spec\&quot;`
++                    set dummy $deplib_matches
++                    deplib_match=$2
++                    if test `expr &quot;$ldd_output&quot; : &quot;.*$deplib_match&quot;` -ne 0 ; then
++                      newdeplibs=&quot;$newdeplibs $i&quot;
++                    else
++                      droppeddeps=yes
++                      $echo
++                      $echo &quot;*** Warning: dynamic linker does not accept needed library $i.&quot;
++                      $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++                      $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++                      $echo &quot;*** shared version of the library, which you do not appear to have&quot;
++                      $echo &quot;*** because a test_compile did reveal that the linker did not use this one&quot;
++                      $echo &quot;*** as a dynamic dependency that programs can get resolved with at runtime.&quot;
++                    fi
+                   fi
+                 else
+                   droppeddeps=yes
+-                  echo
+-                  echo &quot;*** Warning!  Library $i is needed by this library but I was not able to&quot;
+-                  echo &quot;***  make it link in!  You will probably need to install it or some&quot;
+-                  echo &quot;*** library that it depends on before this library will be fully&quot;
+-                  echo &quot;*** functional.  Installing it before continuing would be even better.&quot;
++                  $echo
++                  $echo &quot;*** Warning!  Library $i is needed by this library but I was not able to&quot;
++                  $echo &quot;***  make it link in!  You will probably need to install it or some&quot;
++                  $echo &quot;*** library that it depends on before this library will be fully&quot;
++                  $echo &quot;*** functional.  Installing it before continuing would be even better.&quot;
+                 fi
+               else
+                 newdeplibs=&quot;$newdeplibs $i&quot;
+@@ -2613,13 +3514,22 @@
+           set dummy $deplibs_check_method
+           file_magic_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
+           for a_deplib in $deplibs; do
+-            name=&quot;`expr $a_deplib : '-l\(.*\)'`&quot;
++            name=`expr $a_deplib : '-l\(.*\)'`
+             # If $name is empty we are operating on a -L argument.
+-            if test -n &quot;$name&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+-              libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+-              for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+-                    potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
+-                    for potent_lib in $potential_libs; do
++            if test &quot;$name&quot; != &quot;&quot; &amp;&amp; test  &quot;$name&quot; != &quot;0&quot;; then
++              if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++                case &quot; $predeps $postdeps &quot; in
++                *&quot; $a_deplib &quot;*)
++                  newdeplibs=&quot;$newdeplibs $a_deplib&quot;
++                  a_deplib=&quot;&quot;
++                  ;;
++                esac
++              fi
++              if test -n &quot;$a_deplib&quot; ; then
++                libname=`eval \\$echo \&quot;$libname_spec\&quot;`
++                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
++                  potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
++                  for potent_lib in $potential_libs; do
+                       # Follow soft links.
+                       if ls -lLd &quot;$potent_lib&quot; 2&gt;/dev/null \
+                          | grep &quot; -&gt; &quot; &gt;/dev/null; then
+@@ -2632,28 +3542,36 @@
+                       # but so what?
+                       potlib=&quot;$potent_lib&quot;
+                       while test -h &quot;$potlib&quot; 2&gt;/dev/null; do
+-                        potliblink=`ls -ld $potlib | sed 's/.* -&gt; //'`
++                        potliblink=`ls -ld $potlib | ${SED} 's/.* -&gt; //'`
+                         case $potliblink in
+                         [\\/]* | [A-Za-z]:[\\/]*) potlib=&quot;$potliblink&quot;;;
+                         *) potlib=`$echo &quot;X$potlib&quot; | $Xsed -e 's,[^/]*$,,'`&quot;$potliblink&quot;;;
+                         esac
+                       done
+                       if eval $file_magic_cmd \&quot;\$potlib\&quot; 2&gt;/dev/null \
+-                         | sed 10q \
+-                         | egrep &quot;$file_magic_regex&quot; &gt; /dev/null; then
++                         | ${SED} 10q \
++                         | $EGREP &quot;$file_magic_regex&quot; &gt; /dev/null; then
+                         newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+                         a_deplib=&quot;&quot;
+                         break 2
+                       fi
+-                    done
+-              done
++                  done
++                done
++              fi
+               if test -n &quot;$a_deplib&quot; ; then
+                 droppeddeps=yes
+-                echo
+-                echo &quot;*** Warning: This library needs some functionality provided by $a_deplib.&quot;
+-                echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-                echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-                echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++                $echo
++                $echo &quot;*** Warning: linker path does not have real file for library $a_deplib.&quot;
++                $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++                $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++                $echo &quot;*** shared version of the library, which you do not appear to have&quot;
++                $echo &quot;*** because I did check the linker path looking for a file starting&quot;
++                if test -z &quot;$potlib&quot; ; then
++                  $echo &quot;*** with $libname but no candidates were found. (...for file magic test)&quot;
++                else
++                  $echo &quot;*** with $libname and none of the candidates passed a file format test&quot;
++                  $echo &quot;*** using a file magic. Last file checked: $potlib&quot;
++                fi
+               fi
+             else
+               # Add a -L argument.
+@@ -2665,29 +3583,47 @@
+           set dummy $deplibs_check_method
+           match_pattern_regex=`expr &quot;$deplibs_check_method&quot; : &quot;$2 \(.*\)&quot;`
+           for a_deplib in $deplibs; do
+-            name=&quot;`expr $a_deplib : '-l\(.*\)'`&quot;
++            name=`expr $a_deplib : '-l\(.*\)'`
+             # If $name is empty we are operating on a -L argument.
+             if test -n &quot;$name&quot; &amp;&amp; test &quot;$name&quot; != &quot;0&quot;; then
+-              libname=`eval \\$echo \&quot;$libname_spec\&quot;`
+-              for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+-                potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
+-                for potent_lib in $potential_libs; do
+-                  if eval echo \&quot;$potent_lib\&quot; 2&gt;/dev/null \
+-                      | sed 10q \
+-                      | egrep &quot;$match_pattern_regex&quot; &gt; /dev/null; then
+-                    newdeplibs=&quot;$newdeplibs $a_deplib&quot;
+-                    a_deplib=&quot;&quot;
+-                    break 2
+-                  fi
++              if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++                case &quot; $predeps $postdeps &quot; in
++                *&quot; $a_deplib &quot;*)
++                  newdeplibs=&quot;$newdeplibs $a_deplib&quot;
++                  a_deplib=&quot;&quot;
++                  ;;
++                esac
++              fi
++              if test -n &quot;$a_deplib&quot; ; then
++                libname=`eval \\$echo \&quot;$libname_spec\&quot;`
++                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
++                  potential_libs=`ls $i/$libname[.-]* 2&gt;/dev/null`
++                  for potent_lib in $potential_libs; do
++                    potlib=&quot;$potent_lib&quot; # see symlink-check above in file_magic test
++                    if eval $echo \&quot;$potent_lib\&quot; 2&gt;/dev/null \
++                        | ${SED} 10q \
++                        | $EGREP &quot;$match_pattern_regex&quot; &gt; /dev/null; then
++                      newdeplibs=&quot;$newdeplibs $a_deplib&quot;
++                      a_deplib=&quot;&quot;
++                      break 2
++                    fi
++                  done
+                 done
+-              done
++              fi
+               if test -n &quot;$a_deplib&quot; ; then
+                 droppeddeps=yes
+-                echo
+-                echo &quot;*** Warning: This library needs some functionality provided by $a_deplib.&quot;
+-                echo &quot;*** I have the capability to make that library automatically link in when&quot;
+-                echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
+-                echo &quot;*** shared version of the library, which you do not appear to have.&quot;
++                $echo
++                $echo &quot;*** Warning: linker path does not have real file for library $a_deplib.&quot;
++                $echo &quot;*** I have the capability to make that library automatically link in when&quot;
++                $echo &quot;*** you link to this library.  But I can only do this if you have a&quot;
++                $echo &quot;*** shared version of the library, which you do not appear to have&quot;
++                $echo &quot;*** because I did check the linker path looking for a file starting&quot;
++                if test -z &quot;$potlib&quot; ; then
++                  $echo &quot;*** with $libname but no candidates were found. (...for regex pattern test)&quot;
++                else
++                  $echo &quot;*** with $libname and none of the candidates passed a file format test&quot;
++                  $echo &quot;*** using a regex pattern. Last file checked: $potlib&quot;
++                fi
+               fi
+             else
+               # Add a -L argument.
+@@ -2697,16 +3633,23 @@
+           ;;
+         none | unknown | *)
+           newdeplibs=&quot;&quot;
+-          if $echo &quot;X $deplibs&quot; | $Xsed -e 's/ -lc$//' \
+-               -e 's/ -[LR][^ ]*//g' -e 's/[         ]//g' |
+-             grep . &gt;/dev/null; then
+-            echo
++          tmp_deplibs=`$echo &quot;X $deplibs&quot; | $Xsed -e 's/ -lc$//' \
++            -e 's/ -[LR][^ ]*//g'`
++          if test &quot;X$allow_libtool_libs_with_static_runtimes&quot; = &quot;Xyes&quot; ; then
++            for i in $predeps $postdeps ; do
++              # can't use Xsed below, because $i might contain '/'
++              tmp_deplibs=`$echo &quot;X $tmp_deplibs&quot; | ${SED} -e &quot;1s,^X,,&quot; -e &quot;s,$i,,&quot;`
++            done
++          fi
++          if $echo &quot;X $tmp_deplibs&quot; | $Xsed -e 's/[         ]//g' \
++            | grep . &gt;/dev/null; then
++            $echo
+             if test &quot;X$deplibs_check_method&quot; = &quot;Xnone&quot;; then
+-              echo &quot;*** Warning: inter-library dependencies are not supported in this platform.&quot;
++              $echo &quot;*** Warning: inter-library dependencies are not supported in this platform.&quot;
+             else
+-              echo &quot;*** Warning: inter-library dependencies are not known to be supported.&quot;
++              $echo &quot;*** Warning: inter-library dependencies are not known to be supported.&quot;
+             fi
+-            echo &quot;*** All declared inter-library dependencies are being dropped.&quot;
++            $echo &quot;*** All declared inter-library dependencies are being dropped.&quot;
+             droppeddeps=yes
+           fi
+           ;;
+@@ -2726,17 +3669,17 @@

+         if test &quot;$droppeddeps&quot; = yes; then
+           if test &quot;$module&quot; = yes; then
+-            echo
+-            echo &quot;*** Warning: libtool could not satisfy all declared inter-library&quot;
+-            echo &quot;*** dependencies of module $libname.  Therefore, libtool will create&quot;
+-            echo &quot;*** a static module, that should work as long as the dlopening&quot;
+-            echo &quot;*** application is linked with the -dlopen flag.&quot;
++            $echo
++            $echo &quot;*** Warning: libtool could not satisfy all declared inter-library&quot;
++            $echo &quot;*** dependencies of module $libname.  Therefore, libtool will create&quot;
++            $echo &quot;*** a static module, that should work as long as the dlopening&quot;
++            $echo &quot;*** application is linked with the -dlopen flag.&quot;
+             if test -z &quot;$global_symbol_pipe&quot;; then
+-              echo
+-              echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
+-              echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
+-              echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
+-              echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
++              $echo
++              $echo &quot;*** However, this would only work if libtool was able to extract symbol&quot;
++              $echo &quot;*** lists from a program, using \`nm' or equivalent, but libtool could&quot;
++              $echo &quot;*** not find such a program.  So, this module is probably useless.&quot;
++              $echo &quot;*** \`nm' from GNU binutils and a full rebuild may help.&quot;
+             fi
+             if test &quot;$build_old_libs&quot; = no; then
+               oldlibs=&quot;$output_objdir/$libname.$libext&quot;
+@@ -2746,16 +3689,16 @@
+               build_libtool_libs=no
+             fi
+           else
+-            echo &quot;*** The inter-library dependencies that have been dropped here will be&quot;
+-            echo &quot;*** automatically added whenever a program is linked with this library&quot;
+-            echo &quot;*** or is declared to -dlopen it.&quot;
++            $echo &quot;*** The inter-library dependencies that have been dropped here will be&quot;
++            $echo &quot;*** automatically added whenever a program is linked with this library&quot;
++            $echo &quot;*** or is declared to -dlopen it.&quot;

+             if test &quot;$allow_undefined&quot; = no; then
+-              echo
+-              echo &quot;*** Since this library must not contain undefined symbols,&quot;
+-              echo &quot;*** because either the platform does not support them or&quot;
+-              echo &quot;*** it was explicitly requested with -no-undefined,&quot;
+-              echo &quot;*** libtool will only create a static version of it.&quot;
++              $echo
++              $echo &quot;*** Since this library must not contain undefined symbols,&quot;
++              $echo &quot;*** because either the platform does not support them or&quot;
++              $echo &quot;*** it was explicitly requested with -no-undefined,&quot;
++              $echo &quot;*** libtool will only create a static version of it.&quot;
+               if test &quot;$build_old_libs&quot; = no; then
+                 oldlibs=&quot;$output_objdir/$libname.$libext&quot;
+                 build_libtool_libs=module
+@@ -2813,7 +3756,11 @@
+           if test -n &quot;$hardcode_libdir_separator&quot; &amp;&amp;
+              test -n &quot;$hardcode_libdirs&quot;; then
+             libdir=&quot;$hardcode_libdirs&quot;
+-            eval dep_rpath=\&quot;$hardcode_libdir_flag_spec\&quot;
++            if test -n &quot;$hardcode_libdir_flag_spec_ld&quot;; then
++              eval dep_rpath=\&quot;$hardcode_libdir_flag_spec_ld\&quot;
++            else
++              eval dep_rpath=\&quot;$hardcode_libdir_flag_spec\&quot;
++            fi
+           fi
+           if test -n &quot;$runpath_var&quot; &amp;&amp; test -n &quot;$perm_rpath&quot;; then
+             # We should set the runpath_var.
+@@ -2833,6 +3780,7 @@
+         fi

+         # Get the real and link names of the library.
++        eval shared_ext=\&quot;$shrext_cmds\&quot;
+         eval library_names=\&quot;$library_names_spec\&quot;
+         set dummy $library_names
+         realname=&quot;$2&quot;
+@@ -2843,7 +3791,9 @@
+         else
+           soname=&quot;$realname&quot;
+         fi
+-        test -z &quot;$dlname&quot; &amp;&amp; dlname=$soname
++        if test -z &quot;$dlname&quot;; then
++          dlname=$soname
++        fi

+         lib=&quot;$output_objdir/$realname&quot;
+         for link
+@@ -2851,23 +3801,6 @@
+           linknames=&quot;$linknames $link&quot;
+         done

+-        # Ensure that we have .o objects for linkers which dislike .lo
+-        # (e.g. aix) in case we are running --disable-static
+-        for obj in $libobjs; do
+-          xdir=`$echo &quot;X$obj&quot; | $Xsed -e 's%/[^/]*$%%'`
+-          if test &quot;X$xdir&quot; = &quot;X$obj&quot;; then
+-            xdir=&quot;.&quot;
+-          else
+-            xdir=&quot;$xdir&quot;
+-          fi
+-          baseobj=`$echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'`
+-          oldobj=`$echo &quot;X$baseobj&quot; | $Xsed -e &quot;$lo2o&quot;`
+-          if test ! -f $xdir/$oldobj; then
+-            $show &quot;(cd $xdir &amp;&amp; ${LN_S} $baseobj $oldobj)&quot;
+-            $run eval '(cd $xdir &amp;&amp; ${LN_S} $baseobj $oldobj)' || exit $?
+-          fi
+-        done
+-
+         # Use standard objects if they are pic
+         test -z &quot;$pic_flag&quot; &amp;&amp; libobjs=`$echo &quot;X$libobjs&quot; | $SP2NL | $Xsed -e &quot;$lo2o&quot; | $NL2SP`

+@@ -2877,17 +3810,29 @@
+             $show &quot;generating symbol list for \`$libname.la'&quot;
+             export_symbols=&quot;$output_objdir/$libname.exp&quot;
+             $run $rm $export_symbols
+-            eval cmds=\&quot;$export_symbols_cmds\&quot;
++            cmds=$export_symbols_cmds
+             save_ifs=&quot;$IFS&quot;; IFS='~'
+             for cmd in $cmds; do
+               IFS=&quot;$save_ifs&quot;
+-              $show &quot;$cmd&quot;
+-              $run eval &quot;$cmd&quot; || exit $?
++              eval cmd=\&quot;$cmd\&quot;
++              if len=`expr &quot;X$cmd&quot; : &quot;.*&quot;` &amp;&amp;
++               test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
++                $show &quot;$cmd&quot;
++                $run eval &quot;$cmd&quot; || exit $?
++                skipped_export=false
++              else
++                # The command line is too long to execute in one step.
++                $show &quot;using reloadable object file for export list...&quot;
++                skipped_export=:
++                # Break out early, otherwise skipped_export may be
++                # set to false by a later but shorter cmd.
++                break
++              fi
+             done
+             IFS=&quot;$save_ifs&quot;
+             if test -n &quot;$export_symbols_regex&quot;; then
+-              $show &quot;egrep -e \&quot;$export_symbols_regex\&quot; \&quot;$export_symbols\&quot; &gt; \&quot;${export_symbols}T\&quot;&quot;
+-              $run eval 'egrep -e &quot;$export_symbols_regex&quot; &quot;$export_symbols&quot; &gt; &quot;${export_symbols}T&quot;'
++              $show &quot;$EGREP -e \&quot;$export_symbols_regex\&quot; \&quot;$export_symbols\&quot; &gt; \&quot;${export_symbols}T\&quot;&quot;
++              $run eval '$EGREP -e &quot;$export_symbols_regex&quot; &quot;$export_symbols&quot; &gt; &quot;${export_symbols}T&quot;'
+               $show &quot;$mv \&quot;${export_symbols}T\&quot; \&quot;$export_symbols\&quot;&quot;
+               $run eval '$mv &quot;${export_symbols}T&quot; &quot;$export_symbols&quot;'
+             fi
+@@ -2898,46 +3843,30 @@
+           $run eval '$echo &quot;X$include_expsyms&quot; | $SP2NL &gt;&gt; &quot;$export_symbols&quot;'
+         fi

++        tmp_deplibs=
++        for test_deplib in $deplibs; do
++                case &quot; $convenience &quot; in
++                *&quot; $test_deplib &quot;*) ;;
++                *)
++                        tmp_deplibs=&quot;$tmp_deplibs $test_deplib&quot;
++                        ;
++                esac
++        done
++        deplibs=&quot;$tmp_deplibs&quot;
++
+         if test -n &quot;$convenience&quot;; then
+           if test -n &quot;$whole_archive_flag_spec&quot;; then
++            save_libobjs=$libobjs
+             eval libobjs=\&quot;\$libobjs $whole_archive_flag_spec\&quot;
+           else
+             gentop=&quot;$output_objdir/${outputname}x&quot;
+-            $show &quot;${rm}r $gentop&quot;
+-            $run ${rm}r &quot;$gentop&quot;
+-            $show &quot;mkdir $gentop&quot;
+-            $run mkdir &quot;$gentop&quot;
+-            status=$?
+-            if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$gentop&quot;; then
+-              exit $status
+-            fi
+             generated=&quot;$generated $gentop&quot;

+-            for xlib in $convenience; do
+-              # Extract the objects.
+-              case $xlib in
+-              [\\/]* | [A-Za-z]:[\\/]*) xabs=&quot;$xlib&quot; ;;
+-              *) xabs=`pwd`&quot;/$xlib&quot; ;;
+-              esac
+-              xlib=`$echo &quot;X$xlib&quot; | $Xsed -e 's%^.*/%%'`
+-              xdir=&quot;$gentop/$xlib&quot;
+-
+-              $show &quot;${rm}r $xdir&quot;
+-              $run ${rm}r &quot;$xdir&quot;
+-              $show &quot;mkdir $xdir&quot;
+-              $run mkdir &quot;$xdir&quot;
+-              status=$?
+-              if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$xdir&quot;; then
+-                exit $status
+-              fi
+-              $show &quot;(cd $xdir &amp;&amp; $AR x $xabs)&quot;
+-              $run eval &quot;(cd \$xdir &amp;&amp; $AR x \$xabs)&quot; || exit $?
+-
+-              libobjs=&quot;$libobjs &quot;`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+-            done
++            func_extract_archives $gentop $convenience
++            libobjs=&quot;$libobjs $func_extract_archives_result&quot;
+           fi
+         fi
+-
++        
+         if test &quot;$thread_safe&quot; = yes &amp;&amp; test -n &quot;$thread_safe_flag_spec&quot;; then
+           eval flag=\&quot;$thread_safe_flag_spec\&quot;
+           linker_flags=&quot;$linker_flags $flag&quot;
+@@ -2949,23 +3878,175 @@
+         fi

+         # Do each of the archive commands.
++        if test &quot;$module&quot; = yes &amp;&amp; test -n &quot;$module_cmds&quot; ; then
++          if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$module_expsym_cmds&quot;; then
++            eval test_cmds=\&quot;$module_expsym_cmds\&quot;
++            cmds=$module_expsym_cmds
++          else
++            eval test_cmds=\&quot;$module_cmds\&quot;
++            cmds=$module_cmds
++          fi
++        else
+         if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$archive_expsym_cmds&quot;; then
+-          eval cmds=\&quot;$archive_expsym_cmds\&quot;
++          eval test_cmds=\&quot;$archive_expsym_cmds\&quot;
++          cmds=$archive_expsym_cmds
++        else
++          eval test_cmds=\&quot;$archive_cmds\&quot;
++          cmds=$archive_cmds
++          fi
++        fi
++
++        if test &quot;X$skipped_export&quot; != &quot;X:&quot; &amp;&amp;
++           len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
++           test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
++          :
+         else
+-          eval cmds=\&quot;$archive_cmds\&quot;
++          # The command line is too long to link in one step, link piecewise.
++          $echo &quot;creating reloadable object files...&quot;
++
++          # Save the value of $output and $libobjs because we want to
++          # use them later.  If we have whole_archive_flag_spec, we
++          # want to use save_libobjs as it was before
++          # whole_archive_flag_spec was expanded, because we can't
++          # assume the linker understands whole_archive_flag_spec.
++          # This may have to be revisited, in case too many
++          # convenience libraries get linked in and end up exceeding
++          # the spec.
++          if test -z &quot;$convenience&quot; || test -z &quot;$whole_archive_flag_spec&quot;; then
++            save_libobjs=$libobjs
++          fi
++          save_output=$output
++          output_la=`$echo &quot;X$output&quot; | $Xsed -e &quot;$basename&quot;`
++
++          # Clear the reloadable object creation command queue and
++          # initialize k to one.
++          test_cmds=
++          concat_cmds=
++          objlist=
++          delfiles=
++          last_robj=
++          k=1
++          output=$output_objdir/$output_la-${k}.$objext
++          # Loop over the list of objects to be linked.
++          for obj in $save_libobjs
++          do
++            eval test_cmds=\&quot;$reload_cmds $objlist $last_robj\&quot;
++            if test &quot;X$objlist&quot; = X ||
++               { len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
++                 test &quot;$len&quot; -le &quot;$max_cmd_len&quot;; }; then
++              objlist=&quot;$objlist $obj&quot;
++            else
++              # The command $test_cmds is almost too long, add a
++              # command to the queue.
++              if test &quot;$k&quot; -eq 1 ; then
++                # The first file doesn't have a previous command to add.
++                eval concat_cmds=\&quot;$reload_cmds $objlist $last_robj\&quot;
++              else
++                # All subsequent reloadable object files will link in
++                # the last one created.
++                eval concat_cmds=\&quot;\$concat_cmds~$reload_cmds $objlist $last_robj\&quot;
++              fi
++              last_robj=$output_objdir/$output_la-${k}.$objext
++              k=`expr $k + 1`
++              output=$output_objdir/$output_la-${k}.$objext
++              objlist=$obj
++              len=1
++            fi
++          done
++          # Handle the remaining objects by creating one last
++          # reloadable object file.  All subsequent reloadable object
++          # files will link in the last one created.
++          test -z &quot;$concat_cmds&quot; || concat_cmds=$concat_cmds~
++          eval concat_cmds=\&quot;\${concat_cmds}$reload_cmds $objlist $last_robj\&quot;
++
++          if ${skipped_export-false}; then
++            $show &quot;generating symbol list for \`$libname.la'&quot;
++            export_symbols=&quot;$output_objdir/$libname.exp&quot;
++            $run $rm $export_symbols
++            libobjs=$output
++            # Append the command to create the export file.
++            eval concat_cmds=\&quot;\$concat_cmds~$export_symbols_cmds\&quot;
++          fi
++
++          # Set up a command to remove the reloadable object files
++          # after they are used.
++          i=0
++          while test &quot;$i&quot; -lt &quot;$k&quot;
++          do
++            i=`expr $i + 1`
++            delfiles=&quot;$delfiles $output_objdir/$output_la-${i}.$objext&quot;
++          done
++
++          $echo &quot;creating a temporary reloadable object file: $output&quot;
++
++          # Loop through the commands generated above and execute them.
++          save_ifs=&quot;$IFS&quot;; IFS='~'
++          for cmd in $concat_cmds; do
++            IFS=&quot;$save_ifs&quot;
++            $show &quot;$cmd&quot;
++            $run eval &quot;$cmd&quot; || exit $?
++          done
++          IFS=&quot;$save_ifs&quot;
++
++          libobjs=$output
++          # Restore the value of output.
++          output=$save_output
++
++          if test -n &quot;$convenience&quot; &amp;&amp; test -n &quot;$whole_archive_flag_spec&quot;; then
++            eval libobjs=\&quot;\$libobjs $whole_archive_flag_spec\&quot;
++          fi
++          # Expand the library linking commands again to reset the
++          # value of $libobjs for piecewise linking.
++
++          # Do each of the archive commands.
++          if test &quot;$module&quot; = yes &amp;&amp; test -n &quot;$module_cmds&quot; ; then
++            if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$module_expsym_cmds&quot;; then
++              cmds=$module_expsym_cmds
++            else
++              cmds=$module_cmds
++            fi
++          else
++          if test -n &quot;$export_symbols&quot; &amp;&amp; test -n &quot;$archive_expsym_cmds&quot;; then
++            cmds=$archive_expsym_cmds
++          else
++            cmds=$archive_cmds
++            fi
++          fi
++
++          # Append the command to remove the reloadable object files
++          # to the just-reset $cmds.
++          eval cmds=\&quot;\$cmds~\$rm $delfiles\&quot;
+         fi
+         save_ifs=&quot;$IFS&quot;; IFS='~'
+         for cmd in $cmds; do
+           IFS=&quot;$save_ifs&quot;
++          eval cmd=\&quot;$cmd\&quot;
+           $show &quot;$cmd&quot;
+-          $run eval &quot;$cmd&quot; || exit $?
++          $run eval &quot;$cmd&quot; || {
++            lt_exit=$?
++
++            # Restore the uninstalled library and exit
++            if test &quot;$mode&quot; = relink; then
++              $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv ${realname}U $realname)'
++            fi
++
++            exit $lt_exit
++          }
+         done
+         IFS=&quot;$save_ifs&quot;

+         # Restore the uninstalled library and exit
+         if test &quot;$mode&quot; = relink; then
+           $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv $realname ${realname}T &amp;&amp; $mv &quot;$realname&quot;U $realname)' || exit $?
+-          exit 0
++
++          if test -n &quot;$convenience&quot;; then
++            if test -z &quot;$whole_archive_flag_spec&quot;; then
++              $show &quot;${rm}r $gentop&quot;
++              $run ${rm}r &quot;$gentop&quot;
++            fi
++          fi
++
++          exit $EXIT_SUCCESS
+         fi

+         # Create links to the real library.
+@@ -3013,7 +4094,7 @@
+       *.lo)
+         if test -n &quot;$objs$old_deplibs&quot;; then
+           $echo &quot;$modename: cannot build library object \`$output' from non-libtool objects&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi
+         libobj=&quot;$output&quot;
+         obj=`$echo &quot;X$output&quot; | $Xsed -e &quot;$lo2o&quot;`
+@@ -3042,38 +4123,10 @@
+           eval reload_conv_objs=\&quot;\$reload_objs $whole_archive_flag_spec\&quot;
+         else
+           gentop=&quot;$output_objdir/${obj}x&quot;
+-          $show &quot;${rm}r $gentop&quot;
+-          $run ${rm}r &quot;$gentop&quot;
+-          $show &quot;mkdir $gentop&quot;
+-          $run mkdir &quot;$gentop&quot;
+-          status=$?
+-          if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$gentop&quot;; then
+-            exit $status
+-          fi
+           generated=&quot;$generated $gentop&quot;

+-          for xlib in $convenience; do
+-            # Extract the objects.
+-            case $xlib in
+-            [\\/]* | [A-Za-z]:[\\/]*) xabs=&quot;$xlib&quot; ;;
+-            *) xabs=`pwd`&quot;/$xlib&quot; ;;
+-            esac
+-            xlib=`$echo &quot;X$xlib&quot; | $Xsed -e 's%^.*/%%'`
+-            xdir=&quot;$gentop/$xlib&quot;
+-
+-            $show &quot;${rm}r $xdir&quot;
+-            $run ${rm}r &quot;$xdir&quot;
+-            $show &quot;mkdir $xdir&quot;
+-            $run mkdir &quot;$xdir&quot;
+-            status=$?
+-            if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$xdir&quot;; then
+-              exit $status
+-            fi
+-            $show &quot;(cd $xdir &amp;&amp; $AR x $xabs)&quot;
+-            $run eval &quot;(cd \$xdir &amp;&amp; $AR x \$xabs)&quot; || exit $?
+-
+-            reload_conv_objs=&quot;$reload_objs &quot;`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+-          done
++          func_extract_archives $gentop $convenience
++          reload_conv_objs=&quot;$reload_objs $func_extract_archives_result&quot;
+         fi
+       fi

+@@ -3081,10 +4134,11 @@
+       reload_objs=&quot;$objs$old_deplibs &quot;`$echo &quot;X$libobjs&quot; | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e &quot;$lo2o&quot; | $NL2SP`&quot; $reload_conv_objs&quot; ### testsuite: skip nested quoting test

+       output=&quot;$obj&quot;
+-      eval cmds=\&quot;$reload_cmds\&quot;
++      cmds=$reload_cmds
+       save_ifs=&quot;$IFS&quot;; IFS='~'
+       for cmd in $cmds; do
+         IFS=&quot;$save_ifs&quot;
++        eval cmd=\&quot;$cmd\&quot;
+         $show &quot;$cmd&quot;
+         $run eval &quot;$cmd&quot; || exit $?
+       done
+@@ -3097,7 +4151,7 @@
+           $run ${rm}r $gentop
+         fi

+-        exit 0
++        exit $EXIT_SUCCESS
+       fi

+       if test &quot;$build_libtool_libs&quot; != yes; then
+@@ -3108,37 +4162,24 @@

+         # Create an invalid libtool object if no PIC, so that we don't
+         # accidentally link it into a program.
+-        $show &quot;echo timestamp &gt; $libobj&quot;
+-        $run eval &quot;echo timestamp &gt; $libobj&quot; || exit $?
+-        exit 0
++        # $show &quot;echo timestamp &gt; $libobj&quot;
++        # $run eval &quot;echo timestamp &gt; $libobj&quot; || exit $?
++        exit $EXIT_SUCCESS
+       fi

+       if test -n &quot;$pic_flag&quot; || test &quot;$pic_mode&quot; != default; then
+         # Only do commands if we really have different PIC objects.
+         reload_objs=&quot;$libobjs $reload_conv_objs&quot;
+         output=&quot;$libobj&quot;
+-        eval cmds=\&quot;$reload_cmds\&quot;
++        cmds=$reload_cmds
+         save_ifs=&quot;$IFS&quot;; IFS='~'
+         for cmd in $cmds; do
+           IFS=&quot;$save_ifs&quot;
++          eval cmd=\&quot;$cmd\&quot;
+           $show &quot;$cmd&quot;
+           $run eval &quot;$cmd&quot; || exit $?
+         done
+         IFS=&quot;$save_ifs&quot;
+-      else
+-        # Just create a symlink.
+-        $show $rm $libobj
+-        $run $rm $libobj
+-        xdir=`$echo &quot;X$libobj&quot; | $Xsed -e 's%/[^/]*$%%'`
+-        if test &quot;X$xdir&quot; = &quot;X$libobj&quot;; then
+-          xdir=&quot;.&quot;
+-        else
+-          xdir=&quot;$xdir&quot;
+-        fi
+-        baseobj=`$echo &quot;X$libobj&quot; | $Xsed -e 's%^.*/%%'`
+-        oldobj=`$echo &quot;X$baseobj&quot; | $Xsed -e &quot;$lo2o&quot;`
+-        $show &quot;(cd $xdir &amp;&amp; $LN_S $oldobj $baseobj)&quot;
+-        $run eval '(cd $xdir &amp;&amp; $LN_S $oldobj $baseobj)' || exit $?
+       fi

+       if test -n &quot;$gentop&quot;; then
+@@ -3146,12 +4187,12 @@
+         $run ${rm}r $gentop
+       fi

+-      exit 0
++      exit $EXIT_SUCCESS
+       ;;

+     prog)
+       case $host in
+-        *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
++        *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+       esac
+       if test -n &quot;$vinfo&quot;; then
+         $echo &quot;$modename: warning: \`-version-info' is ignored for programs&quot; 1&gt;&amp;2
+@@ -3176,6 +4217,16 @@
+         ;
+       esac

++      case $host in
++      *darwin*)
++        # Don't allow lazy linking, it breaks C++ global constructors
++        if test &quot;$tagname&quot; = CXX ; then
++        compile_command=&quot;$compile_command ${wl}-bind_at_load&quot;
++        finalize_command=&quot;$finalize_command ${wl}-bind_at_load&quot;
++        fi
++        ;;
++      esac
++
+       compile_command=&quot;$compile_command $compile_deplibs&quot;
+       finalize_command=&quot;$finalize_command $finalize_deplibs&quot;

+@@ -3326,31 +4377,31 @@
+             done

+             if test -n &quot;$exclude_expsyms&quot;; then
+-              $run eval 'egrep -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
++              $run eval '$EGREP -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+               $run eval '$mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+             fi

+             if test -n &quot;$export_symbols_regex&quot;; then
+-              $run eval 'egrep -e &quot;$export_symbols_regex&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
++              $run eval '$EGREP -e &quot;$export_symbols_regex&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+               $run eval '$mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+             fi

+             # Prepare the list of exported symbols
+             if test -z &quot;$export_symbols&quot;; then
+-              export_symbols=&quot;$output_objdir/$output.exp&quot;
++              export_symbols=&quot;$output_objdir/$outputname.exp&quot;
+               $run $rm $export_symbols
+-              $run eval &quot;sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' &quot;'&lt; &quot;$nlist&quot; &gt; &quot;$export_symbols&quot;'
++              $run eval &quot;${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' &quot;'&lt; &quot;$nlist&quot; &gt; &quot;$export_symbols&quot;'
+             else
+-              $run eval &quot;sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'&quot;' &lt; &quot;$export_symbols&quot; &gt; &quot;$output_objdir/$output.exp&quot;'
+-              $run eval 'grep -f &quot;$output_objdir/$output.exp&quot; &lt; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
++              $run eval &quot;${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'&quot;' &lt; &quot;$export_symbols&quot; &gt; &quot;$output_objdir/$outputname.exp&quot;'
++              $run eval 'grep -f &quot;$output_objdir/$outputname.exp&quot; &lt; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T'
+               $run eval 'mv &quot;$nlist&quot;T &quot;$nlist&quot;'
+             fi
+           fi

+           for arg in $dlprefiles; do
+             $show &quot;extracting global C symbols from \`$arg'&quot;
+-            name=`echo &quot;$arg&quot; | sed -e 's%^.*/%%'`
+-            $run eval 'echo &quot;: $name &quot; &gt;&gt; &quot;$nlist&quot;'
++            name=`$echo &quot;$arg&quot; | ${SED} -e 's%^.*/%%'`
++            $run eval '$echo &quot;: $name &quot; &gt;&gt; &quot;$nlist&quot;'
+             $run eval &quot;$NM $arg | $global_symbol_pipe &gt;&gt; '$nlist'&quot;
+           done

+@@ -3359,12 +4410,18 @@
+             test -f &quot;$nlist&quot; || : &gt; &quot;$nlist&quot;

+             if test -n &quot;$exclude_expsyms&quot;; then
+-              egrep -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T
++              $EGREP -v &quot; ($exclude_expsyms)$&quot; &quot;$nlist&quot; &gt; &quot;$nlist&quot;T
+               $mv &quot;$nlist&quot;T &quot;$nlist&quot;
+             fi

+             # Try sorting and uniquifying the output.
+-            if grep -v &quot;^: &quot; &lt; &quot;$nlist&quot; | sort +2 | uniq &gt; &quot;$nlist&quot;S; then
++            if grep -v &quot;^: &quot; &lt; &quot;$nlist&quot; |
++                if sort -k 3 &lt;/dev/null &gt;/dev/null 2&gt;&amp;1; then
++                  sort -k 3
++                else
++                  sort +2
++                fi |
++                uniq &gt; &quot;$nlist&quot;S; then
+               :
+             else
+               grep -v &quot;^: &quot; &lt; &quot;$nlist&quot; &gt; &quot;$nlist&quot;S
+@@ -3373,7 +4430,7 @@
+             if test -f &quot;$nlist&quot;S; then
+               eval &quot;$global_symbol_to_cdecl&quot;' &lt; &quot;$nlist&quot;S &gt;&gt; &quot;$output_objdir/$dlsyms&quot;'
+             else
+-              echo '/* NONE */' &gt;&gt; &quot;$output_objdir/$dlsyms&quot;
++              $echo '/* NONE */' &gt;&gt; &quot;$output_objdir/$dlsyms&quot;
+             fi

+             $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+@@ -3388,7 +4445,26 @@
+ #endif

+ /* The mapping between symbol names and symbols. */
++&quot;
++
++            case $host in
++            *cygwin* | *mingw* )
++          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
++/* DATA imports from DLLs on WIN32 can't be const, because
++   runtime relocations are performed -- see ld's documentation
++   on pseudo-relocs */
++struct {
++&quot;
++              ;;
++            * )
++          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+ const struct {
++&quot;
++              ;;
++            esac
++
++
++          $echo &gt;&gt; &quot;$output_objdir/$dlsyms&quot; &quot;\
+   const char *name;
+   lt_ptr address;
+ }
+@@ -3425,18 +4501,18 @@
+           *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+             case &quot;$compile_command &quot; in
+             *&quot; -static &quot;*) ;;
+-            *) pic_flag_for_symtable=&quot; $pic_flag -DPIC -DFREEBSD_WORKAROUND&quot;;;
++            *) pic_flag_for_symtable=&quot; $pic_flag -DFREEBSD_WORKAROUND&quot;;;
+             esac;;
+           *-*-hpux*)
+             case &quot;$compile_command &quot; in
+             *&quot; -static &quot;*) ;;
+-            *) pic_flag_for_symtable=&quot; $pic_flag -DPIC&quot;;;
++            *) pic_flag_for_symtable=&quot; $pic_flag&quot;;;
+             esac
+           esac

+           # Now compile the dynamic symbol file.
+-          $show &quot;(cd $output_objdir &amp;&amp; $CC -c$no_builtin_flag$pic_flag_for_symtable \&quot;$dlsyms\&quot;)&quot;
+-          $run eval '(cd $output_objdir &amp;&amp; $CC -c$no_builtin_flag$pic_flag_for_symtable &quot;$dlsyms&quot;)' || exit $?
++          $show &quot;(cd $output_objdir &amp;&amp; $LTCC -c$no_builtin_flag$pic_flag_for_symtable \&quot;$dlsyms\&quot;)&quot;
++          $run eval '(cd $output_objdir &amp;&amp; $LTCC -c$no_builtin_flag$pic_flag_for_symtable &quot;$dlsyms&quot;)' || exit $?

+           # Clean up the generated files.
+           $show &quot;$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T&quot;
+@@ -3448,7 +4524,7 @@
+           ;;
+         *)
+           $echo &quot;$modename: unknown suffix for \`$dlsyms'&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac
+       else
+@@ -3536,7 +4612,7 @@
+         # Link the executable and exit
+         $show &quot;$link_command&quot;
+         $run eval &quot;$link_command&quot; || exit $?
+-        exit 0
++        exit $EXIT_SUCCESS
+       fi

+       if test &quot;$hardcode_action&quot; = relink; then
+@@ -3591,10 +4667,10 @@
+       fi

+       # Quote $echo for shipping.
+-      if test &quot;X$echo&quot; = &quot;X$SHELL $0 --fallback-echo&quot;; then
+-        case $0 in
+-        [\\/]* | [A-Za-z]:[\\/]*) qecho=&quot;$SHELL $0 --fallback-echo&quot;;;
+-        *) qecho=&quot;$SHELL `pwd`/$0 --fallback-echo&quot;;;
++      if test &quot;X$echo&quot; = &quot;X$SHELL $progpath --fallback-echo&quot;; then
++        case $progpath in
++        [\\/]* | [A-Za-z]:[\\/]*) qecho=&quot;$SHELL $progpath --fallback-echo&quot;;;
++        *) qecho=&quot;$SHELL `pwd`/$progpath --fallback-echo&quot;;;
+         esac
+         qecho=`$echo &quot;X$qecho&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+       else
+@@ -3606,15 +4682,231 @@
+         # win32 will think the script is a binary if it has
+         # a .exe suffix, so we strip it off here.
+         case $output in
+-          *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
++          *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
+         esac
+         # test for cygwin because mv fails w/o .exe extensions
+         case $host in
+-          *cygwin*) exeext=.exe ;;
++          *cygwin*)
++            exeext=.exe
++            outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
+           *) exeext= ;;
+         esac
++        case $host in
++          *cygwin* | *mingw* )
++            cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
++            cwrapper=`$echo ${output}.exe`
++            $rm $cwrappersource $cwrapper
++            trap &quot;$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE&quot; 1 2 15
++
++            cat &gt; $cwrappersource &lt;&lt;EOF
++
++/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
++   Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
++
++   The $output program cannot be directly executed until all the libtool
++   libraries that it depends on are installed.
++
++   This wrapper executable should never be moved out of the build directory.
++   If it is, it will not operate correctly.
++
++   Currently, it simply execs the wrapper *script* &quot;/bin/sh $output&quot;,
++   but could eventually absorb all of the scripts functionality and
++   exec $objdir/$outputname directly.
++*/
++EOF
++            cat &gt;&gt; $cwrappersource&lt;&lt;&quot;EOF&quot;
++#include &lt;stdio.h&gt;
++#include &lt;stdlib.h&gt;
++#include &lt;unistd.h&gt;
++#include &lt;malloc.h&gt;
++#include &lt;stdarg.h&gt;
++#include &lt;assert.h&gt;
++
++#if defined(PATH_MAX)
++# define LT_PATHMAX PATH_MAX
++#elif defined(MAXPATHLEN)
++# define LT_PATHMAX MAXPATHLEN
++#else
++# define LT_PATHMAX 1024
++#endif
++
++#ifndef DIR_SEPARATOR
++#define DIR_SEPARATOR '/'
++#endif
++
++#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
++  defined (__OS2__)
++#define HAVE_DOS_BASED_FILE_SYSTEM
++#ifndef DIR_SEPARATOR_2
++#define DIR_SEPARATOR_2 '\\'
++#endif
++#endif
++
++#ifndef DIR_SEPARATOR_2
++# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
++#else /* DIR_SEPARATOR_2 */
++# define IS_DIR_SEPARATOR(ch) \
++        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
++#endif /* DIR_SEPARATOR_2 */
++
++#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
++#define XFREE(stale) do { \
++  if (stale) { free ((void *) stale); stale = 0; } \
++} while (0)
++
++const char *program_name = NULL;
++
++void * xmalloc (size_t num);
++char * xstrdup (const char *string);
++char * basename (const char *name);
++char * fnqualify(const char *path);
++char * strendzap(char *str, const char *pat);
++void lt_fatal (const char *message, ...);
++
++int
++main (int argc, char *argv[])
++{
++  char **newargz;
++  int i;
++
++  program_name = (char *) xstrdup ((char *) basename (argv[0]));
++  newargz = XMALLOC(char *, argc+2);
++EOF
++
++            cat &gt;&gt; $cwrappersource &lt;&lt;EOF
++  newargz[0] = &quot;$SHELL&quot;;
++EOF
++
++            cat &gt;&gt; $cwrappersource &lt;&lt;&quot;EOF&quot;
++  newargz[1] = fnqualify(argv[0]);
++  /* we know the script has the same name, without the .exe */
++  /* so make sure newargz[1] doesn't end in .exe */
++  strendzap(newargz[1],&quot;.exe&quot;);
++  for (i = 1; i &lt; argc; i++)
++    newargz[i+1] = xstrdup(argv[i]);
++  newargz[argc+1] = NULL;
++EOF
++
++            cat &gt;&gt; $cwrappersource &lt;&lt;EOF
++  execv(&quot;$SHELL&quot;,newargz);
++EOF
++
++            cat &gt;&gt; $cwrappersource &lt;&lt;&quot;EOF&quot;
++  return 127;
++}
++
++void *
++xmalloc (size_t num)
++{
++  void * p = (void *) malloc (num);
++  if (!p)
++    lt_fatal (&quot;Memory exhausted&quot;);
++
++  return p;
++}
++
++char *
++xstrdup (const char *string)
++{
++  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
++;
++}
++
++char *
++basename (const char *name)
++{
++  const char *base;
++
++#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
++  /* Skip over the disk name in MSDOS pathnames. */
++  if (isalpha (name[0]) &amp;&amp; name[1] == ':')
++    name += 2;
++#endif
++
++  for (base = name; *name; name++)
++    if (IS_DIR_SEPARATOR (*name))
++      base = name + 1;
++  return (char *) base;
++}
++
++char *
++fnqualify(const char *path)
++{
++  size_t size;
++  char *p;
++  char tmp[LT_PATHMAX + 1];
++
++  assert(path != NULL);
++
++  /* Is it qualified already? */
++#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
++  if (isalpha (path[0]) &amp;&amp; path[1] == ':')
++    return xstrdup (path);
++#endif
++  if (IS_DIR_SEPARATOR (path[0]))
++    return xstrdup (path);
++
++  /* prepend the current directory */
++  /* doesn't handle '~' */
++  if (getcwd (tmp, LT_PATHMAX) == NULL)
++    lt_fatal (&quot;getcwd failed&quot;);
++  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
++  p = XMALLOC(char, size);
++  sprintf(p, &quot;%s%c%s&quot;, tmp, DIR_SEPARATOR, path);
++  return p;
++}
++
++char *
++strendzap(char *str, const char *pat)
++{
++  size_t len, patlen;
++
++  assert(str != NULL);
++  assert(pat != NULL);
++
++  len = strlen(str);
++  patlen = strlen(pat);
++
++  if (patlen &lt;= len)
++  {
++    str += len - patlen;
++    if (strcmp(str, pat) == 0)
++      *str = '\0';
++  }
++  return str;
++}
++
++static void
++lt_error_core (int exit_status, const char * mode,
++          const char * message, va_list ap)
++{
++  fprintf (stderr, &quot;%s: %s: &quot;, program_name, mode);
++  vfprintf (stderr, message, ap);
++  fprintf (stderr, &quot;.\n&quot;);
++
++  if (exit_status &gt;= 0)
++    exit (exit_status);
++}
++
++void
++lt_fatal (const char *message, ...)
++{
++  va_list ap;
++  va_start (ap, message);
++  lt_error_core (EXIT_FAILURE, &quot;FATAL&quot;, message, ap);
++  va_end (ap);
++}
++EOF
++          # we should really use a build-platform specific compiler
++          # here, but OTOH, the wrappers (shell script and this C one)
++          # are only useful if you want to execute the &quot;real&quot; binary.
++          # Since the &quot;real&quot; binary is built for $host, then this
++          # wrapper might as well be built for $host, too.
++          $run $LTCC -s -o $cwrapper $cwrappersource
++          ;;
++        esac
+         $rm $output
+-        trap &quot;$rm $output; exit 1&quot; 1 2 15
++        trap &quot;$rm $output; exit $EXIT_FAILURE&quot; 1 2 15

+         $echo &gt; $output &quot;\
+ #! $SHELL
+@@ -3630,12 +4922,12 @@

+ # Sed substitution that helps us do robust quoting.  It backslashifies
+ # metacharacters that are still active within double-quoted strings.
+-Xsed='sed -e 1s/^X//'
++Xsed='${SED} -e 1s/^X//'
+ sed_quote_subst='$sed_quote_subst'

+ # The HP-UX ksh and POSIX shell print the target directory to stdout
+ # if CDPATH is set.
+-if test \&quot;\${CDPATH+set}\&quot; = set; then CDPATH=:; export CDPATH; fi
++(unset CDPATH) &gt;/dev/null 2&gt;&amp;1 &amp;&amp; unset CDPATH

+ relink_command=\&quot;$relink_command\&quot;

+@@ -3668,7 +4960,7 @@
+   test \&quot;x\$thisdir\&quot; = \&quot;x\$file\&quot; &amp;&amp; thisdir=.

+   # Follow symbolic links until we get to the real thisdir.
+-  file=\`ls -ld \&quot;\$file\&quot; | sed -n 's/.*-&gt; //p'\`
++  file=\`ls -ld \&quot;\$file\&quot; | ${SED} -n 's/.*-&gt; //p'\`
+   while test -n \&quot;\$file\&quot;; do
+     destdir=\`\$echo \&quot;X\$file\&quot; | \$Xsed -e 's%/[^/]*\$%%'\`

+@@ -3681,7 +4973,7 @@
+     fi

+     file=\`\$echo \&quot;X\$file\&quot; | \$Xsed -e 's%^.*/%%'\`
+-    file=\`ls -ld \&quot;\$thisdir/\$file\&quot; | sed -n 's/.*-&gt; //p'\`
++    file=\`ls -ld \&quot;\$thisdir/\$file\&quot; | ${SED} -n 's/.*-&gt; //p'\`
+   done

+   # Try to get the absolute directory name.
+@@ -3690,12 +4982,12 @@
+ &quot;

+         if test &quot;$fast_install&quot; = yes; then
+-          echo &gt;&gt; $output &quot;\
++          $echo &gt;&gt; $output &quot;\
+   program=lt-'$outputname'$exeext
+   progdir=\&quot;\$thisdir/$objdir\&quot;

+   if test ! -f \&quot;\$progdir/\$program\&quot; || \\
+-     { file=\`ls -1dt \&quot;\$progdir/\$program\&quot; \&quot;\$progdir/../\$program\&quot; 2&gt;/dev/null | sed 1q\`; \\
++     { file=\`ls -1dt \&quot;\$progdir/\$program\&quot; \&quot;\$progdir/../\$program\&quot; 2&gt;/dev/null | ${SED} 1q\`; \\
+        test \&quot;X\$file\&quot; != \&quot;X\$progdir/\$program\&quot;; }; then

+     file=\&quot;\$\$-\$program\&quot;
+@@ -3706,7 +4998,7 @@
+       $rm \&quot;\$progdir/\$file\&quot;
+     fi&quot;

+-          echo &gt;&gt; $output &quot;\
++          $echo &gt;&gt; $output &quot;\

+     # relink executable if necessary
+     if test -n \&quot;\$relink_command\&quot;; then
+@@ -3714,7 +5006,7 @@
+       else
+         $echo \&quot;\$relink_command_output\&quot; &gt;&amp;2
+         $rm \&quot;\$progdir/\$file\&quot;
+-        exit 1
++        exit $EXIT_FAILURE
+       fi
+     fi

+@@ -3724,13 +5016,13 @@
+     $rm \&quot;\$progdir/\$file\&quot;
+   fi&quot;
+         else
+-          echo &gt;&gt; $output &quot;\
++          $echo &gt;&gt; $output &quot;\
+   program='$outputname'
+   progdir=\&quot;\$thisdir/$objdir\&quot;
+ &quot;
+         fi

+-        echo &gt;&gt; $output &quot;\
++        $echo &gt;&gt; $output &quot;\

+   if test -f \&quot;\$progdir/\$program\&quot;; then&quot;

+@@ -3761,47 +5053,35 @@
+       # Run the actual program with our arguments.
+ &quot;
+         case $host in
+-        # win32 systems need to use the prog path for dll
+-        # lookup to work
+-        *-*-cygwin* | *-*-pw32*)
+-          $echo &gt;&gt; $output &quot;\
+-      exec \$progdir/\$program \${1+\&quot;\$@\&quot;}
+-&quot;
+-          ;;
+-
+         # Backslashes separate directories on plain windows
+         *-*-mingw | *-*-os2*)
+           $echo &gt;&gt; $output &quot;\
+-      exec \$progdir\\\\\$program \${1+\&quot;\$@\&quot;}
++      exec \&quot;\$progdir\\\\\$program\&quot; \${1+\&quot;\$@\&quot;}
+ &quot;
+           ;;

+         *)
+           $echo &gt;&gt; $output &quot;\
+-      # Export the path to the program.
+-      PATH=\&quot;\$progdir:\$PATH\&quot;
+-      export PATH
+-
+-      exec \$program \${1+\&quot;\$@\&quot;}
++      exec \&quot;\$progdir/\$program\&quot; \${1+\&quot;\$@\&quot;}
+ &quot;
+           ;;
+         esac
+         $echo &gt;&gt; $output &quot;\
+       \$echo \&quot;\$0: cannot exec \$program \${1+\&quot;\$@\&quot;}\&quot;
+-      exit 1
++      exit $EXIT_FAILURE
+     fi
+   else
+     # The program doesn't exist.
+-    \$echo \&quot;\$0: error: \$progdir/\$program does not exist\&quot; 1&gt;&amp;2
++    \$echo \&quot;\$0: error: \\\`\$progdir/\$program' does not exist\&quot; 1&gt;&amp;2
+     \$echo \&quot;This script is just a wrapper for \$program.\&quot; 1&gt;&amp;2
+-    echo \&quot;See the $PACKAGE documentation for more information.\&quot; 1&gt;&amp;2
+-    exit 1
++    $echo \&quot;See the $PACKAGE documentation for more information.\&quot; 1&gt;&amp;2
++    exit $EXIT_FAILURE
+   fi
+ fi\
+ &quot;
+         chmod +x $output
+       fi
+-      exit 0
++      exit $EXIT_SUCCESS
+       ;;
+     esac

+@@ -3817,74 +5097,130 @@
+           oldobjs=&quot;$libobjs_save&quot;
+           build_libtool_libs=no
+         else
+-          oldobjs=&quot;$objs$old_deplibs &quot;`$echo &quot;X$libobjs_save&quot; | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e &quot;$lo2o&quot; | $NL2SP`
++          oldobjs=&quot;$old_deplibs $non_pic_objects&quot;
+         fi
+         addlibs=&quot;$old_convenience&quot;
+       fi

+       if test -n &quot;$addlibs&quot;; then
+         gentop=&quot;$output_objdir/${outputname}x&quot;
+-        $show &quot;${rm}r $gentop&quot;
+-        $run ${rm}r &quot;$gentop&quot;
+-        $show &quot;mkdir $gentop&quot;
+-        $run mkdir &quot;$gentop&quot;
+-        status=$?
+-        if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$gentop&quot;; then
+-          exit $status
+-        fi
+         generated=&quot;$generated $gentop&quot;

+-        # Add in members from convenience archives.
+-        for xlib in $addlibs; do
+-          # Extract the objects.
+-          case $xlib in
+-          [\\/]* | [A-Za-z]:[\\/]*) xabs=&quot;$xlib&quot; ;;
+-          *) xabs=`pwd`&quot;/$xlib&quot; ;;
+-          esac
+-          xlib=`$echo &quot;X$xlib&quot; | $Xsed -e 's%^.*/%%'`
+-          xdir=&quot;$gentop/$xlib&quot;
+-
+-          $show &quot;${rm}r $xdir&quot;
+-          $run ${rm}r &quot;$xdir&quot;
+-          $show &quot;mkdir $xdir&quot;
+-          $run mkdir &quot;$xdir&quot;
+-          status=$?
+-          if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$xdir&quot;; then
+-            exit $status
+-          fi
+-          $show &quot;(cd $xdir &amp;&amp; $AR x $xabs)&quot;
+-          $run eval &quot;(cd \$xdir &amp;&amp; $AR x \$xabs)&quot; || exit $?
+-
+-          oldobjs=&quot;$oldobjs &quot;`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+-        done
++        func_extract_archives $gentop $addlibs
++        oldobjs=&quot;$oldobjs $func_extract_archives_result&quot;
+       fi

+       # Do each command in the archive commands.
+       if test -n &quot;$old_archive_from_new_cmds&quot; &amp;&amp; test &quot;$build_libtool_libs&quot; = yes; then
+-        eval cmds=\&quot;$old_archive_from_new_cmds\&quot;
++       cmds=$old_archive_from_new_cmds
+       else
+-        # Ensure that we have .o objects in place in case we decided
+-        # not to build a shared library, and have fallen back to building
+-        # static libs even though --disable-static was passed!
+-        for oldobj in $oldobjs; do
+-          if test ! -f $oldobj; then
+-            xdir=`$echo &quot;X$oldobj&quot; | $Xsed -e 's%/[^/]*$%%'`
+-            if test &quot;X$xdir&quot; = &quot;X$oldobj&quot;; then
+-              xdir=&quot;.&quot;
+-            else
+-              xdir=&quot;$xdir&quot;
++        # POSIX demands no paths to be encoded in archives.  We have
++        # to avoid creating archives with duplicate basenames if we
++        # might have to extract them afterwards, e.g., when creating a
++        # static archive out of a convenience library, or when linking
++        # the entirety of a libtool archive into another (currently
++        # not supported by libtool).
++        if (for obj in $oldobjs
++            do
++              $echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'
++            done | sort | sort -uc &gt;/dev/null 2&gt;&amp;1); then
++          :
++        else
++          $echo &quot;copying selected object files to avoid basename conflicts...&quot;
++
++          if test -z &quot;$gentop&quot;; then
++            gentop=&quot;$output_objdir/${outputname}x&quot;
++            generated=&quot;$generated $gentop&quot;
++
++            $show &quot;${rm}r $gentop&quot;
++            $run ${rm}r &quot;$gentop&quot;
++            $show &quot;$mkdir $gentop&quot;
++            $run $mkdir &quot;$gentop&quot;
++            status=$?
++            if test &quot;$status&quot; -ne 0 &amp;&amp; test ! -d &quot;$gentop&quot;; then
++              exit $status
+             fi
+-            baseobj=`$echo &quot;X$oldobj&quot; | $Xsed -e 's%^.*/%%'`
+-            obj=`$echo &quot;X$baseobj&quot; | $Xsed -e &quot;$o2lo&quot;`
+-            $show &quot;(cd $xdir &amp;&amp; ${LN_S} $obj $baseobj)&quot;
+-            $run eval '(cd $xdir &amp;&amp; ${LN_S} $obj $baseobj)' || exit $?
+           fi
+-        done
++
++          save_oldobjs=$oldobjs
++          oldobjs=
++          counter=1
++          for obj in $save_oldobjs
++          do
++            objbase=`$echo &quot;X$obj&quot; | $Xsed -e 's%^.*/%%'`
++            case &quot; $oldobjs &quot; in
++            &quot; &quot;) oldobjs=$obj ;;
++            *[\ /]&quot;$objbase &quot;*)
++              while :; do
++                # Make sure we don't pick an alternate name that also
++                # overlaps.
++                newobj=lt$counter-$objbase
++                counter=`expr $counter + 1`
++                case &quot; $oldobjs &quot; in
++                *[\ /]&quot;$newobj &quot;*) ;;
++                *) if test ! -f &quot;$gentop/$newobj&quot;; then break; fi ;;
++                esac
++              done
++              $show &quot;ln $obj $gentop/$newobj || cp $obj $gentop/$newobj&quot;
++              $run ln &quot;$obj&quot; &quot;$gentop/$newobj&quot; ||
++              $run cp &quot;$obj&quot; &quot;$gentop/$newobj&quot;
++              oldobjs=&quot;$oldobjs $gentop/$newobj&quot;
++              ;;
++            *) oldobjs=&quot;$oldobjs $obj&quot; ;;
++            esac
++          done
++        fi

+         eval cmds=\&quot;$old_archive_cmds\&quot;
++
++        if len=`expr &quot;X$cmds&quot; : &quot;.*&quot;` &amp;&amp;
++             test &quot;$len&quot; -le &quot;$max_cmd_len&quot; || test &quot;$max_cmd_len&quot; -le -1; then
++          cmds=$old_archive_cmds
++        else
++          # the command line is too long to link in one step, link in parts
++          $echo &quot;using piecewise archive linking...&quot;
++          save_RANLIB=$RANLIB
++          RANLIB=:
++          objlist=
++          concat_cmds=
++          save_oldobjs=$oldobjs
++
++          # Is there a better way of finding the last object in the list?
++          for obj in $save_oldobjs
++          do
++            last_oldobj=$obj
++          done
++          for obj in $save_oldobjs
++          do
++            oldobjs=&quot;$objlist $obj&quot;
++            objlist=&quot;$objlist $obj&quot;
++            eval test_cmds=\&quot;$old_archive_cmds\&quot;
++            if len=`expr &quot;X$test_cmds&quot; : &quot;.*&quot; 2&gt;/dev/null` &amp;&amp;
++               test &quot;$len&quot; -le &quot;$max_cmd_len&quot;; then
++              :
++            else
++              # the above command should be used before it gets too long
++              oldobjs=$objlist
++              if test &quot;$obj&quot; = &quot;$last_oldobj&quot; ; then
++                RANLIB=$save_RANLIB
++              fi
++              test -z &quot;$concat_cmds&quot; || concat_cmds=$concat_cmds~
++              eval concat_cmds=\&quot;\${concat_cmds}$old_archive_cmds\&quot;
++              objlist=
++            fi
++          done
++          RANLIB=$save_RANLIB
++          oldobjs=$objlist
++          if test &quot;X$oldobjs&quot; = &quot;X&quot; ; then
++            eval cmds=\&quot;\$concat_cmds\&quot;
++          else
++            eval cmds=\&quot;\$concat_cmds~\$old_archive_cmds\&quot;
++          fi
++        fi
+       fi
+       save_ifs=&quot;$IFS&quot;; IFS='~'
+       for cmd in $cmds; do
++        eval cmd=\&quot;$cmd\&quot;
+         IFS=&quot;$save_ifs&quot;
+         $show &quot;$cmd&quot;
+         $run eval &quot;$cmd&quot; || exit $?
+@@ -3916,8 +5252,12 @@
+         fi
+       done
+       # Quote the link command for shipping.
+-      relink_command=&quot;(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)&quot;
++      relink_command=&quot;(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)&quot;
+       relink_command=`$echo &quot;X$relink_command&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
++      if test &quot;$hardcode_automatic&quot; = yes ; then
++        relink_command=
++      fi
++

+       # Only create the output if not a dry run.
+       if test -z &quot;$run&quot;; then
+@@ -3933,10 +5273,10 @@
+               case $deplib in
+               *.la)
+                 name=`$echo &quot;X$deplib&quot; | $Xsed -e 's%^.*/%%'`
+-                eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z &quot;$libdir&quot;; then
+                   $echo &quot;$modename: \`$deplib' is not a valid libtool archive&quot; 1&gt;&amp;2
+-                  exit 1
++                  exit $EXIT_FAILURE
+                 fi
+                 newdependency_libs=&quot;$newdependency_libs $libdir/$name&quot;
+                 ;
+@@ -3947,10 +5287,10 @@
+             newdlfiles=
+             for lib in $dlfiles; do
+               name=`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%'`
+-              eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
++              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+               if test -z &quot;$libdir&quot;; then
+                 $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+-                exit 1
++                exit $EXIT_FAILURE
+               fi
+               newdlfiles=&quot;$newdlfiles $libdir/$name&quot;
+             done
+@@ -3958,20 +5298,39 @@
+             newdlprefiles=
+             for lib in $dlprefiles; do
+               name=`$echo &quot;X$lib&quot; | $Xsed -e 's%^.*/%%'`
+-              eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
++              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+               if test -z &quot;$libdir&quot;; then
+                 $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+-                exit 1
++                exit $EXIT_FAILURE
+               fi
+               newdlprefiles=&quot;$newdlprefiles $libdir/$name&quot;
+             done
+             dlprefiles=&quot;$newdlprefiles&quot;
++          else
++            newdlfiles=
++            for lib in $dlfiles; do
++              case $lib in
++                [\\/]* | [A-Za-z]:[\\/]*) abs=&quot;$lib&quot; ;;
++                *) abs=`pwd`&quot;/$lib&quot; ;;
++              esac
++              newdlfiles=&quot;$newdlfiles $abs&quot;
++            done
++            dlfiles=&quot;$newdlfiles&quot;
++            newdlprefiles=
++            for lib in $dlprefiles; do
++              case $lib in
++                [\\/]* | [A-Za-z]:[\\/]*) abs=&quot;$lib&quot; ;;
++                *) abs=`pwd`&quot;/$lib&quot; ;;
++              esac
++              newdlprefiles=&quot;$newdlprefiles $abs&quot;
++            done
++            dlprefiles=&quot;$newdlprefiles&quot;
+           fi
+           $rm $output
+           # place dlname in correct position for cygwin
+           tdlname=$dlname
+           case $host,$output,$installed,$module,$dlname in
+-            *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
++            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+           esac
+           $echo &gt; $output &quot;\
+ # $outputname - a libtool library file
+@@ -4000,6 +5359,9 @@
+ # Is this an already installed library?
+ installed=$installed

++# Should we warn about portability when linking against -modules?
++shouldnotlink=$module
++
+ # Files to dlopen/dlpreopen
+ dlopen='$dlfiles'
+ dlpreopen='$dlprefiles'
+@@ -4019,7 +5381,7 @@
+       $run eval '(cd $output_objdir &amp;&amp; $rm $outputname &amp;&amp; $LN_S ../$outputname $outputname)' || exit $?
+       ;;
+     esac
+-    exit 0
++    exit $EXIT_SUCCESS
+     ;;

+   # libtool install mode
+@@ -4030,11 +5392,11 @@
+     # install_prog (especially on Windows NT).
+     if test &quot;$nonopt&quot; = &quot;$SHELL&quot; || test &quot;$nonopt&quot; = /bin/sh ||
+        # Allow the use of GNU shtool's install command.
+-       $echo &quot;X$nonopt&quot; | $Xsed | grep shtool &gt; /dev/null; then
++       $echo &quot;X$nonopt&quot; | grep shtool &gt; /dev/null; then
+       # Aesthetically quote it.
+       arg=`$echo &quot;X$nonopt&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+       case $arg in
+-      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*)
++      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+         arg=&quot;\&quot;$arg\&quot;&quot;
+         ;
+       esac
+@@ -4043,14 +5405,14 @@
+       shift
+     else
+       install_prog=
+-      arg=&quot;$nonopt&quot;
++      arg=$nonopt
+     fi

+     # The real first argument should be the name of the installation program.
+     # Aesthetically quote it.
+     arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+     case $arg in
+-    *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*)
++    *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+       arg=&quot;\&quot;$arg\&quot;&quot;
+       ;;
+     esac
+@@ -4068,28 +5430,31 @@
+     do
+       if test -n &quot;$dest&quot;; then
+         files=&quot;$files $dest&quot;
+-        dest=&quot;$arg&quot;
++        dest=$arg
+         continue
+       fi

+       case $arg in
+       -d) isdir=yes ;;
+-      -f) prev=&quot;-f&quot; ;;
+-      -g) prev=&quot;-g&quot; ;;
+-      -m) prev=&quot;-m&quot; ;;
+-      -o) prev=&quot;-o&quot; ;;
++      -f) 
++              case &quot; $install_prog &quot; in
++        *[\\\ /]cp\ *) ;;
++        *) prev=$arg ;;
++        esac
++        ;
++      -g | -m | -o) prev=$arg ;;
+       -s)
+         stripme=&quot; -s&quot;
+         continue
+         ;
+-      -*) ;;
+-
++      -*)
++        ;
+       *)
+         # If the previous option needed an argument, then skip it.
+         if test -n &quot;$prev&quot;; then
+           prev=
+         else
+-          dest=&quot;$arg&quot;
++          dest=$arg
+           continue
+         fi
+         ;
+@@ -4098,7 +5463,7 @@
+       # Aesthetically quote the argument.
+       arg=`$echo &quot;X$arg&quot; | $Xsed -e &quot;$sed_quote_subst&quot;`
+       case $arg in
+-      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*)
++      *[\[\~\#\^\&amp;\*\(\)\{\}\|\;\&lt;\&gt;\?\'\ \        ]*|*]*|&quot;&quot;)
+         arg=&quot;\&quot;$arg\&quot;&quot;
+         ;
+       esac
+@@ -4108,13 +5473,13 @@
+     if test -z &quot;$install_prog&quot;; then
+       $echo &quot;$modename: you must specify an install program&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     if test -n &quot;$prev&quot;; then
+       $echo &quot;$modename: the \`$prev' option requires an argument&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     if test -z &quot;$files&quot;; then
+@@ -4124,7 +5489,7 @@
+         $echo &quot;$modename: you must specify a destination&quot; 1&gt;&amp;2
+       fi
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     # Strip any trailing slash from the destination.
+@@ -4145,7 +5510,7 @@
+       if test &quot;$#&quot; -gt 2; then
+         $echo &quot;$modename: \`$dest' is not a directory&quot; 1&gt;&amp;2
+         $echo &quot;$help&quot; 1&gt;&amp;2
+-        exit 1
++        exit $EXIT_FAILURE
+       fi
+     fi
+     case $destdir in
+@@ -4157,7 +5522,7 @@
+         *)
+           $echo &quot;$modename: \`$destdir' must be an absolute directory name&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac
+       done
+@@ -4182,11 +5547,11 @@

+       *.la)
+         # Check to see that this really is a libtool archive.
+-        if (sed -e '2q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
++        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+         else
+           $echo &quot;$modename: \`$file' is not a valid libtool archive&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         library_names=
+@@ -4218,21 +5583,24 @@

+         if test -n &quot;$relink_command&quot;; then
+           # Determine the prefix the user has applied to our future dir.
+-          inst_prefix_dir=`$echo &quot;$destdir&quot; | sed &quot;s%$libdir\$%%&quot;`
++          inst_prefix_dir=`$echo &quot;$destdir&quot; | $SED &quot;s%$libdir\$%%&quot;`

+           # Don't allow the user to place us outside of our expected
+           # location b/c this prevents finding dependent libraries that
+           # are installed to the same prefix.
++          # At present, this check doesn't affect windows .dll's that
++          # are installed into $libdir/../bin (currently, that works fine)
++          # but it's something to keep an eye on.
+           if test &quot;$inst_prefix_dir&quot; = &quot;$destdir&quot;; then
+             $echo &quot;$modename: error: cannot install \`$file' to a directory not ending in $libdir&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi

+           if test -n &quot;$inst_prefix_dir&quot;; then
+             # Stick the inst_prefix_dir data into the link command.
+-            relink_command=`$echo &quot;$relink_command&quot; | sed &quot;s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%&quot;`
++            relink_command=`$echo &quot;$relink_command&quot; | $SED &quot;s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%&quot;`
+           else
+-            relink_command=`$echo &quot;$relink_command&quot; | sed &quot;s%@inst_prefix_dir@%%&quot;`
++            relink_command=`$echo &quot;$relink_command&quot; | $SED &quot;s%@inst_prefix_dir@%%&quot;`
+           fi

+           $echo &quot;$modename: warning: relinking \`$file'&quot; 1&gt;&amp;2
+@@ -4240,7 +5608,7 @@
+           if $run eval &quot;$relink_command&quot;; then :
+           else
+             $echo &quot;$modename: error: relink \`$file' with the above command before installing it&quot; 1&gt;&amp;2
+-            exit 1
++            exit $EXIT_FAILURE
+           fi
+         fi

+@@ -4264,23 +5632,36 @@

+           if test &quot;$#&quot; -gt 0; then
+             # Delete the old symlinks, and create new ones.
++            # Try `ln -sf' first, because the `ln' binary might depend on
++            # the symlink we replace!  Solaris /bin/ln does not understand -f,
++            # so we also need to try rm &amp;&amp; ln -s.
+             for linkname
+             do
+               if test &quot;$linkname&quot; != &quot;$realname&quot;; then
+-                $show &quot;(cd $destdir &amp;&amp; $rm $linkname &amp;&amp; $LN_S $realname $linkname)&quot;
+-                $run eval &quot;(cd $destdir &amp;&amp; $rm $linkname &amp;&amp; $LN_S $realname $linkname)&quot;
++                $show &quot;(cd $destdir &amp;&amp; { $LN_S -f $realname $linkname || { $rm $linkname &amp;&amp; $LN_S $realname $linkname; }; })&quot;
++                $run eval &quot;(cd $destdir &amp;&amp; { $LN_S -f $realname $linkname || { $rm $linkname &amp;&amp; $LN_S $realname $linkname; }; })&quot;
+               fi
+             done
+           fi

+           # Do each command in the postinstall commands.
+           lib=&quot;$destdir/$realname&quot;
+-          eval cmds=\&quot;$postinstall_cmds\&quot;
++          cmds=$postinstall_cmds
+           save_ifs=&quot;$IFS&quot;; IFS='~'
+           for cmd in $cmds; do
+             IFS=&quot;$save_ifs&quot;
++            eval cmd=\&quot;$cmd\&quot;
+             $show &quot;$cmd&quot;
+-            $run eval &quot;$cmd&quot; || exit $?
++            $run eval &quot;$cmd&quot; || {
++              lt_exit=$?
++
++              # Restore the uninstalled library and exit
++              if test &quot;$mode&quot; = relink; then
++                $run eval '(cd $output_objdir &amp;&amp; $rm ${realname}T &amp;&amp; $mv ${realname}U $realname)'
++              fi
++
++              exit $lt_exit
++            }
+           done
+           IFS=&quot;$save_ifs&quot;
+         fi
+@@ -4318,7 +5699,7 @@
+         *)
+           $echo &quot;$modename: cannot copy a libtool object to \`$destfile'&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+           ;;
+         esac

+@@ -4336,7 +5717,7 @@
+           $show &quot;$install_prog $staticobj $staticdest&quot;
+           $run eval &quot;$install_prog \$staticobj \$staticdest&quot; || exit $?
+         fi
+-        exit 0
++        exit $EXIT_SUCCESS
+         ;

+       *)
+@@ -4348,21 +5729,47 @@
+           destfile=&quot;$destdir/$destfile&quot;
+         fi

++        # If the file is missing, and there is a .exe on the end, strip it
++        # because it is most likely a libtool script we actually want to
++        # install
++        stripped_ext=&quot;&quot;
++        case $file in
++          *.exe)
++            if test ! -f &quot;$file&quot;; then
++              file=`$echo $file|${SED} 's,.exe$,,'`
++              stripped_ext=&quot;.exe&quot;
++            fi
++            ;;
++        esac
++
+         # Do a test to see if this is really a libtool program.
+-        if (sed -e '4q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++        case $host in
++        *cygwin*|*mingw*)
++            wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
++            ;;
++        *)
++            wrapper=$file
++            ;;
++        esac
++        if (${SED} -e '4q' $wrapper | grep &quot;^# Generated by .*$PACKAGE&quot;)&gt;/dev/null 2&gt;&amp;1; then
+           notinst_deplibs=
+           relink_command=

++          # Note that it is not necessary on cygwin/mingw to append a dot to
++          # foo even if both foo and FILE.exe exist: automatic-append-.exe
++          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
++          # `FILE.' does not work on cygwin managed mounts.
++          #
+           # If there is no directory component, then add one.
+-          case $file in
+-          */* | *\\*) . $file ;;
+-          *) . ./$file ;;
++          case $wrapper in
++          */* | *\\*) . ${wrapper} ;;
++          *) . ./${wrapper} ;;
+           esac

+           # Check the variables that should have been set.
+           if test -z &quot;$notinst_deplibs&quot;; then
+-            $echo &quot;$modename: invalid libtool wrapper script \`$file'&quot; 1&gt;&amp;2
+-            exit 1
++            $echo &quot;$modename: invalid libtool wrapper script \`$wrapper'&quot; 1&gt;&amp;2
++            exit $EXIT_FAILURE
+           fi

+           finalize=yes
+@@ -4384,10 +5791,15 @@
+           done

+           relink_command=
++          # Note that it is not necessary on cygwin/mingw to append a dot to
++          # foo even if both foo and FILE.exe exist: automatic-append-.exe
++          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
++          # `FILE.' does not work on cygwin managed mounts.
++          #
+           # If there is no directory component, then add one.
+-          case $file in
+-          */* | *\\*) . $file ;;
+-          *) . ./$file ;;
++          case $wrapper in
++          */* | *\\*) . ${wrapper} ;;
++          *) . ./${wrapper} ;;
+           esac

+           outputname=
+@@ -4395,17 +5807,17 @@
+             if test &quot;$finalize&quot; = yes &amp;&amp; test -z &quot;$run&quot;; then
+               tmpdir=&quot;/tmp&quot;
+               test -n &quot;$TMPDIR&quot; &amp;&amp; tmpdir=&quot;$TMPDIR&quot;
+-              tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2&gt; /dev/null`
+-              if test $? = 0 ; then :
+-              else
+-                tmpdir=&quot;$tmpdir/libtool-$$&quot;
+-              fi
+-              if $mkdir -p &quot;$tmpdir&quot; &amp;&amp; chmod 700 &quot;$tmpdir&quot;; then :
++              tmpdir=&quot;$tmpdir/libtool-$$&quot;
++              save_umask=`umask`
++              umask 0077
++              if $mkdir &quot;$tmpdir&quot;; then
++                umask $save_umask
+               else
++                umask $save_umask
+                 $echo &quot;$modename: error: cannot create temporary directory \`$tmpdir'&quot; 1&gt;&amp;2
+                 continue
+               fi
+-              file=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
++              file=`$echo &quot;X$file$stripped_ext&quot; | $Xsed -e 's%^.*/%%'`
+               outputname=&quot;$tmpdir/$file&quot;
+               # Replace the output file specification.
+               relink_command=`$echo &quot;X$relink_command&quot; | $Xsed -e 's%@OUTPUT@%'&quot;$outputname&quot;'%g'`
+@@ -4423,14 +5835,14 @@
+             fi
+           else
+             # Install the binary that we compiled earlier.
+-            file=`$echo &quot;X$file&quot; | $Xsed -e &quot;s%\([^/]*\)$%$objdir/\1%&quot;`
++            file=`$echo &quot;X$file$stripped_ext&quot; | $Xsed -e &quot;s%\([^/]*\)$%$objdir/\1%&quot;`
+           fi
+         fi

+         # remove .exe since cygwin /usr/bin/install will append another
+-        # one anyways
++        # one anyway 
+         case $install_prog,$host in
+-        /usr/bin/install*,*cygwin*)
++        */usr/bin/install*,*cygwin*)
+           case $file:$destfile in
+           *.exe:*.exe)
+             # this is ok
+@@ -4439,7 +5851,7 @@
+             destfile=$destfile.exe
+             ;;
+           *:*.exe)
+-            destfile=`echo $destfile | sed -e 's,.exe$,,'`
++            destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
+             ;;
+           esac
+           ;;
+@@ -4460,16 +5872,17 @@
+       $show &quot;$install_prog $file $oldlib&quot;
+       $run eval &quot;$install_prog \$file \$oldlib&quot; || exit $?

+-      if test -n &quot;$stripme&quot; &amp;&amp; test -n &quot;$striplib&quot;; then
++      if test -n &quot;$stripme&quot; &amp;&amp; test -n &quot;$old_striplib&quot;; then
+         $show &quot;$old_striplib $oldlib&quot;
+         $run eval &quot;$old_striplib $oldlib&quot; || exit $?
+       fi

+       # Do each command in the postinstall commands.
+-      eval cmds=\&quot;$old_postinstall_cmds\&quot;
++      cmds=$old_postinstall_cmds
+       save_ifs=&quot;$IFS&quot;; IFS='~'
+       for cmd in $cmds; do
+         IFS=&quot;$save_ifs&quot;
++        eval cmd=\&quot;$cmd\&quot;
+         $show &quot;$cmd&quot;
+         $run eval &quot;$cmd&quot; || exit $?
+       done
+@@ -4483,9 +5896,9 @@
+     if test -n &quot;$current_libdirs&quot;; then
+       # Maybe just do a dry run.
+       test -n &quot;$run&quot; &amp;&amp; current_libdirs=&quot; -n$current_libdirs&quot;
+-      exec_cmd='$SHELL $0 --finish$current_libdirs'
++      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+     else
+-      exit 0
++      exit $EXIT_SUCCESS
+     fi
+     ;;

+@@ -4504,10 +5917,11 @@
+       for libdir in $libdirs; do
+         if test -n &quot;$finish_cmds&quot;; then
+           # Do each command in the finish commands.
+-          eval cmds=\&quot;$finish_cmds\&quot;
++          cmds=$finish_cmds
+           save_ifs=&quot;$IFS&quot;; IFS='~'
+           for cmd in $cmds; do
+             IFS=&quot;$save_ifs&quot;
++            eval cmd=\&quot;$cmd\&quot;
+             $show &quot;$cmd&quot;
+             $run eval &quot;$cmd&quot; || admincmds=&quot;$admincmds
+        $cmd&quot;
+@@ -4524,43 +5938,43 @@
+     fi

+     # Exit here if they wanted silent mode.
+-    test &quot;$show&quot; = : &amp;&amp; exit 0
++    test &quot;$show&quot; = : &amp;&amp; exit $EXIT_SUCCESS

+-    echo &quot;----------------------------------------------------------------------&quot;
+-    echo &quot;Libraries have been installed in:&quot;
++    $echo &quot;----------------------------------------------------------------------&quot;
++    $echo &quot;Libraries have been installed in:&quot;
+     for libdir in $libdirs; do
+-      echo &quot;   $libdir&quot;
++      $echo &quot;   $libdir&quot;
+     done
+-    echo
+-    echo &quot;If you ever happen to want to link against installed libraries&quot;
+-    echo &quot;in a given directory, LIBDIR, you must either use libtool, and&quot;
+-    echo &quot;specify the full pathname of the library, or use the \`-LLIBDIR'&quot;
+-    echo &quot;flag during linking and do at least one of the following:&quot;
++    $echo
++    $echo &quot;If you ever happen to want to link against installed libraries&quot;
++    $echo &quot;in a given directory, LIBDIR, you must either use libtool, and&quot;
++    $echo &quot;specify the full pathname of the library, or use the \`-LLIBDIR'&quot;
++    $echo &quot;flag during linking and do at least one of the following:&quot;
+     if test -n &quot;$shlibpath_var&quot;; then
+-      echo &quot;   - add LIBDIR to the \`$shlibpath_var' environment variable&quot;
+-      echo &quot;     during execution&quot;
++      $echo &quot;   - add LIBDIR to the \`$shlibpath_var' environment variable&quot;
++      $echo &quot;     during execution&quot;
+     fi
+     if test -n &quot;$runpath_var&quot;; then
+-      echo &quot;   - add LIBDIR to the \`$runpath_var' environment variable&quot;
+-      echo &quot;     during linking&quot;
++      $echo &quot;   - add LIBDIR to the \`$runpath_var' environment variable&quot;
++      $echo &quot;     during linking&quot;
+     fi
+     if test -n &quot;$hardcode_libdir_flag_spec&quot;; then
+       libdir=LIBDIR
+       eval flag=\&quot;$hardcode_libdir_flag_spec\&quot;

+-      echo &quot;   - use the \`$flag' linker flag&quot;
++      $echo &quot;   - use the \`$flag' linker flag&quot;
+     fi
+     if test -n &quot;$admincmds&quot;; then
+-      echo &quot;   - have your system administrator run these commands:$admincmds&quot;
++      $echo &quot;   - have your system administrator run these commands:$admincmds&quot;
+     fi
+     if test -f /etc/ld.so.conf; then
+-      echo &quot;   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'&quot;
++      $echo &quot;   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'&quot;
+     fi
+-    echo
+-    echo &quot;See any operating system documentation about shared libraries for&quot;
+-    echo &quot;more information, such as the ld(1) and ld.so(8) manual pages.&quot;
+-    echo &quot;----------------------------------------------------------------------&quot;
+-    exit 0
++    $echo
++    $echo &quot;See any operating system documentation about shared libraries for&quot;
++    $echo &quot;more information, such as the ld(1) and ld.so(8) manual pages.&quot;
++    $echo &quot;----------------------------------------------------------------------&quot;
++    exit $EXIT_SUCCESS
+     ;;

+   # libtool execute mode
+@@ -4572,7 +5986,7 @@
+     if test -z &quot;$cmd&quot;; then
+       $echo &quot;$modename: you must specify a COMMAND&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot;
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     # Handle -dlopen flags immediately.
+@@ -4580,18 +5994,18 @@
+       if test ! -f &quot;$file&quot;; then
+         $echo &quot;$modename: \`$file' is not a file&quot; 1&gt;&amp;2
+         $echo &quot;$help&quot; 1&gt;&amp;2
+-        exit 1
++        exit $EXIT_FAILURE
+       fi

+       dir=
+       case $file in
+       *.la)
+         # Check to see that this really is a libtool archive.
+-        if (sed -e '2q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
++        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then :
+         else
+           $echo &quot;$modename: \`$lib' is not a valid libtool archive&quot; 1&gt;&amp;2
+           $echo &quot;$help&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi

+         # Read the libtool library.
+@@ -4618,7 +6032,7 @@
+           dir=&quot;$dir/$objdir&quot;
+         else
+           $echo &quot;$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'&quot; 1&gt;&amp;2
+-          exit 1
++          exit $EXIT_FAILURE
+         fi
+         ;

+@@ -4658,7 +6072,7 @@
+       -*) ;;
+       *)
+         # Do a test to see if this is really a libtool program.
+-        if (sed -e '4q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++        if (${SED} -e '4q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+           # If there is no directory component, then add one.
+           case $file in
+           */* | *\\*) . $file ;;
+@@ -4681,7 +6095,7 @@
+         eval &quot;export $shlibpath_var&quot;
+       fi

+-      # Restore saved enviroment variables
++      # Restore saved environment variables
+       if test &quot;${save_LC_ALL+set}&quot; = set; then
+         LC_ALL=&quot;$save_LC_ALL&quot;; export LC_ALL
+       fi
+@@ -4698,7 +6112,7 @@
+         $echo &quot;export $shlibpath_var&quot;
+       fi
+       $echo &quot;$cmd$args&quot;
+-      exit 0
++      exit $EXIT_SUCCESS
+     fi
+     ;;

+@@ -4726,18 +6140,19 @@
+     if test -z &quot;$rm&quot;; then
+       $echo &quot;$modename: you must specify an RM program&quot; 1&gt;&amp;2
+       $echo &quot;$help&quot; 1&gt;&amp;2
+-      exit 1
++      exit $EXIT_FAILURE
+     fi

+     rmdirs=

++    origobjdir=&quot;$objdir&quot;
+     for file in $files; do
+       dir=`$echo &quot;X$file&quot; | $Xsed -e 's%/[^/]*$%%'`
+       if test &quot;X$dir&quot; = &quot;X$file&quot;; then
+         dir=.
+-        objdir=&quot;$objdir&quot;
++        objdir=&quot;$origobjdir&quot;
+       else
+-        objdir=&quot;$dir/$objdir&quot;
++        objdir=&quot;$dir/$origobjdir&quot;
+       fi
+       name=`$echo &quot;X$file&quot; | $Xsed -e 's%^.*/%%'`
+       test &quot;$mode&quot; = uninstall &amp;&amp; objdir=&quot;$dir&quot;
+@@ -4767,7 +6182,7 @@
+       case $name in
+       *.la)
+         # Possibly a libtool archive, so verify it.
+-        if (sed -e '2q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+           . $dir/$name

+           # Delete the libtool libraries and symlinks.
+@@ -4780,10 +6195,11 @@
+           if test &quot;$mode&quot; = uninstall; then
+             if test -n &quot;$library_names&quot;; then
+               # Do each command in the postuninstall commands.
+-              eval cmds=\&quot;$postuninstall_cmds\&quot;
++              cmds=$postuninstall_cmds
+               save_ifs=&quot;$IFS&quot;; IFS='~'
+               for cmd in $cmds; do
+                 IFS=&quot;$save_ifs&quot;
++                eval cmd=\&quot;$cmd\&quot;
+                 $show &quot;$cmd&quot;
+                 $run eval &quot;$cmd&quot;
+                 if test &quot;$?&quot; -ne 0 &amp;&amp; test &quot;$rmforce&quot; != yes; then
+@@ -4795,10 +6211,11 @@

+             if test -n &quot;$old_library&quot;; then
+               # Do each command in the old_postuninstall commands.
+-              eval cmds=\&quot;$old_postuninstall_cmds\&quot;
++              cmds=$old_postuninstall_cmds
+               save_ifs=&quot;$IFS&quot;; IFS='~'
+               for cmd in $cmds; do
+                 IFS=&quot;$save_ifs&quot;
++                eval cmd=\&quot;$cmd\&quot;
+                 $show &quot;$cmd&quot;
+                 $run eval &quot;$cmd&quot;
+                 if test &quot;$?&quot; -ne 0 &amp;&amp; test &quot;$rmforce&quot; != yes; then
+@@ -4813,22 +6230,52 @@
+         ;

+       *.lo)
+-        if test &quot;$build_old_libs&quot; = yes; then
+-          oldobj=`$echo &quot;X$name&quot; | $Xsed -e &quot;$lo2o&quot;`
+-          rmfiles=&quot;$rmfiles $dir/$oldobj&quot;
++        # Possibly a libtool object, so verify it.
++        if (${SED} -e '2q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++
++          # Read the .lo file
++          . $dir/$name
++
++          # Add PIC object to the list of files to remove.
++          if test -n &quot;$pic_object&quot; \
++             &amp;&amp; test &quot;$pic_object&quot; != none; then
++            rmfiles=&quot;$rmfiles $dir/$pic_object&quot;
++          fi
++
++          # Add non-PIC object to the list of files to remove.
++          if test -n &quot;$non_pic_object&quot; \
++             &amp;&amp; test &quot;$non_pic_object&quot; != none; then
++            rmfiles=&quot;$rmfiles $dir/$non_pic_object&quot;
++          fi
+         fi
+         ;

+       *)
+-        # Do a test to see if this is a libtool program.
+-        if test &quot;$mode&quot; = clean &amp;&amp;
+-           (sed -e '4q' $file | egrep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
+-          relink_command=
+-          . $dir/$file
++        if test &quot;$mode&quot; = clean ; then
++          noexename=$name
++          case $file in
++          *.exe)
++            file=`$echo $file|${SED} 's,.exe$,,'`
++            noexename=`$echo $name|${SED} 's,.exe$,,'`
++            # $file with .exe has already been added to rmfiles,
++            # add $file without .exe
++            rmfiles=&quot;$rmfiles $file&quot;
++            ;;
++          esac
++          # Do a test to see if this is a libtool program.
++          if (${SED} -e '4q' $file | grep &quot;^# Generated by .*$PACKAGE&quot;) &gt;/dev/null 2&gt;&amp;1; then
++            relink_command=
++            . $dir/$noexename

+-          rmfiles=&quot;$rmfiles $objdir/$name $objdir/${name}S.${objext}&quot;
+-          if test &quot;$fast_install&quot; = yes &amp;&amp; test -n &quot;$relink_command&quot;; then
+-            rmfiles=&quot;$rmfiles $objdir/lt-$name&quot;
++            # note $name still contains .exe if it was in $file originally
++            # as does the version of $file that was added into $rmfiles
++            rmfiles=&quot;$rmfiles $objdir/$name $objdir/${name}S.${objext}&quot;
++            if test &quot;$fast_install&quot; = yes &amp;&amp; test -n &quot;$relink_command&quot;; then
++              rmfiles=&quot;$rmfiles $objdir/lt-$name&quot;
++            fi
++            if test &quot;X$noexename&quot; != &quot;X$name&quot; ; then
++              rmfiles=&quot;$rmfiles $objdir/lt-${noexename}.c&quot;
++            fi
+           fi
+         fi
+         ;
+@@ -4836,6 +6283,7 @@
+       $show &quot;$rm $rmfiles&quot;
+       $run $rm $rmfiles || exit_status=1
+     done
++    objdir=&quot;$origobjdir&quot;

+     # Try to remove the ${objdir}s in the directories where we deleted files
+     for dir in $rmdirs; do
+@@ -4851,20 +6299,20 @@
+   &quot;&quot;)
+     $echo &quot;$modename: you must specify a MODE&quot; 1&gt;&amp;2
+     $echo &quot;$generic_help&quot; 1&gt;&amp;2
+-    exit 1
++    exit $EXIT_FAILURE
+     ;;
+   esac

+   if test -z &quot;$exec_cmd&quot;; then
+     $echo &quot;$modename: invalid operation mode \`$mode'&quot; 1&gt;&amp;2
+     $echo &quot;$generic_help&quot; 1&gt;&amp;2
+-    exit 1
++    exit $EXIT_FAILURE
+   fi
+ fi # test -z &quot;$show_help&quot;

+ if test -n &quot;$exec_cmd&quot;; then
+   eval exec $exec_cmd
+-  exit 1
++  exit $EXIT_FAILURE
+ fi

+ # We need to display help for each of the modes.
+@@ -4883,6 +6331,7 @@
+     --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
+     --quiet           same as \`--silent'
+     --silent          don't print informational messages
++    --tag=TAG         use configuration variables from tag TAG
+     --version         print version information

+ MODE must be one of the following:
+@@ -4896,8 +6345,10 @@
+       uninstall       remove libraries from an installed directory

+ MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
+-a more detailed description of MODE.&quot;
+-  exit 0
++a more detailed description of MODE.
++
++Report bugs to &lt;bug-libtool@gnu.org&gt;.&quot;
++  exit $EXIT_SUCCESS
+   ;;

+ clean)
+@@ -5008,6 +6459,9 @@
+   -no-install       link a not-installable executable
+   -no-undefined     declare that a library does not refer to external symbols
+   -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
++  -objectlist FILE  Use a list of object files found in FILE to specify objects
++  -precious-files-regex REGEX
++                    don't remove output files matching REGEX
+   -release RELEASE  specify package release information
+   -rpath LIBDIR     the created library will eventually be installed in LIBDIR
+   -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
+@@ -5049,14 +6503,34 @@
+ *)
+   $echo &quot;$modename: invalid operation mode \`$mode'&quot; 1&gt;&amp;2
+   $echo &quot;$help&quot; 1&gt;&amp;2
+-  exit 1
++  exit $EXIT_FAILURE
+   ;;
+ esac

+-echo
++$echo
+ $echo &quot;Try \`$modename --help' for more information about other modes.&quot;

+-exit 0
++exit $?
++
++# The TAGs below are defined such that we never get into a situation
++# in which we disable both kinds of libraries.  Given conflicting
++# choices, we go for a static library, that is the most portable,
++# since we can't tell whether shared libraries were disabled because
++# the user asked for that or because the platform doesn't support
++# them.  This is particularly important on AIX, because we don't
++# support having both static and shared libraries enabled at the same
++# time on that platform, so we default to a shared-only configuration.
++# If a disable-shared tag is given, we'll fallback to a static-only
++# configuration.  But we'll never go from static-only to shared-only.
++
++# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
++build_libtool_libs=no
++build_old_libs=yes
++# ### END LIBTOOL TAG CONFIG: disable-shared
++
++# ### BEGIN LIBTOOL TAG CONFIG: disable-static
++build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
++# ### END LIBTOOL TAG CONFIG: disable-static

+ # Local Variables:
+ # mode:shell-script
+--- gsmlib-1.10.orig/debian/control
++++ gsmlib-1.10/debian/control
+@@ -0,0 +1,52 @@
++Source: gsmlib
++Section: comm
++Priority: extra
++Maintainer: Ubuntu MOTU Developers &lt;ubuntu-motu@lists.ubuntu.com&gt;
++XSBC-Original-Maintainer: Mark Purcell &lt;msp@debian.org&gt;
++Build-Depends: debhelper (&gt;= 3.0.0), chrpath
++Standards-Version: 3.2.1
++
++Package: libgsmme-dev
++Section: libdevel
++Architecture: any
++Depends: libgsmme1c2a (= ${binary:Version}), libc6-dev
++Description: Header files and static libraries for gsmlib
++ Headers and static libraries for use when compiling programs with 
++ gsmlib.  
++ .
++ gsmlib is a library for access to a GSM mobile phone using the
++ standards ETSI GSM 07.07, ETSI GSM 07.05, and others. 
++ .
++ Website: http://www.pxh.de/fs/gsmlib/
++
++Package: libgsmme1c2a
++Conflicts: libgsmme1, libgsmme1c102, libgsmme1c2
++Replaces: libgsmme1c102, libgsmme1c2
++Section: libs
++Architecture: any
++Depends: ${shlibs:Depends}
++Description: GSM mobile phone access library
++ Library to access GSM mobile phones through GSM modems or IrDA devices. 
++ Features include:
++ .
++  * modification of phone books stored in the mobile phone or on the 
++   SIM card
++  * reading and writing of SMS messages stored in the mobile phone
++  * sending and reception of SMS messages
++ .
++ gsmlib uses standard ETSI GSM 07.07, ETSI GSM 07.05, and others.
++ .
++ Website: http://www.pxh.de/fs/gsmlib/
++
++Package: gsm-utils
++Section: comm
++Architecture: any
++Depends: ${shlibs:Depends}, adduser
++Description: GSM mobile phone access applications
++ Some simple command line programs to access a GSM mobile phone via
++ GSM modem or IrDA.  Functions include: modification of phone books and
++ reading, writing, sending and receiving SMS messages.  Uses the GSM
++ standards ETSI GSM 07.07, ETSI GSM 07.05, and others.  
++ .
++ Website: http://www.pxh.de/fs/gsmlib/
++
+--- gsmlib-1.10.orig/debian/rules
++++ gsmlib-1.10/debian/rules
+@@ -0,0 +1,137 @@
++#!/usr/bin/make -f
++# Sample debian/rules that uses debhelper.
++# GNU copyright 1997 to 1999 by Joey Hess.
++
++# Uncomment this to turn on verbose mode.
++#export DH_VERBOSE=1
++
++# shared library versions, option 1
++#version=2.0.5
++#major=2
++# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
++me_version=`ls gsmlib/.libs/libgsmme*.so.* | \
++ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
++me_major=`ls gsmlib/.libs/libgsmme*.so.* | \
++ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
++ex_version=`ls ext/.libs/libgsmext*.so.* | \
++ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
++ex_major=`ls ext/.libs/libgsmext*.so.* | \
++ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
++
++
++export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
++export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
++
++
++# FOR AUTOCONF 2.13 ONLY
++ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
++  confflags += $(DEB_HOST_GNU_TYPE)
++else
++  confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
++endif
++
++ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
++CFLAGS += -g
++CXXFLAGS += -g
++endif
++
++configure: configure-stamp
++configure-stamp:
++        dh_testdir
++        # Add here commands to configure the package.
++        CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) INSTALL_PROGRAM=$(INSTALL_PROGRAM) \
++        ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man \
++        --infodir=\$${prefix}/share/info
++
++        touch configure-stamp
++
++build: configure-stamp build-stamp
++build-stamp:
++        dh_testdir
++
++        # Add here commands to compile the package.
++        $(MAKE)
++
++        touch build-stamp
++
++clean:
++        dh_testdir
++        dh_testroot
++
++        # Add here commands to clean up after the build process.
++        [ ! -f Makefile ] || $(MAKE) distclean
++        rm -f build-stamp configure-stamp config.log config.status po/de.gmo
++
++        -test -r /usr/share/misc/config.sub &amp;&amp; \
++           cp -f /usr/share/misc/config.sub scripts/config.sub
++        -test -r /usr/share/misc/config.guess &amp;&amp; \
++           cp -f /usr/share/misc/config.guess scripts/config.guess
++
++        dh_clean
++
++install: build
++        dh_testdir
++        dh_testroot
++        dh_clean -k
++        dh_installdirs
++        dh_installdirs -pgsm-utils
++
++        # Add here commands to install the package into debian/gsmlib.
++        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
++        chrpath -d debian/tmp/usr/bin/*
++        cp contrib/gsmsmsspool contrib/gsmsmsrequeue debian/tmp/usr/bin
++        cp contrib/gsm-utils.init contrib/gsm-utils.default debian
++        cp contrib/gsm-utils.cron.d debian
++
++
++# Build architecture-independent files here.
++binary-indep: build install
++# We have nothing to do by default.
++
++# Build architecture-dependent files here.
++binary-arch: build install
++        dh_testdir
++        dh_testroot
++        #
++        # build libgsmlib${major} package by moving files from gsmlib-dev
++        #
++        dh_movefiles -plibgsmme$(me_major)c2a  \
++        usr/lib/libgsmme.so.$(me_major)        \
++        usr/lib/libgsmme.so.$(me_version)    \
++        usr/lib/libgsmext.so.$(ex_major)        \
++        usr/lib/libgsmext.so.$(ex_version)    \
++        usr/share/locale
++
++        dh_movefiles -plibgsmme-dev     \
++        usr/include                   \
++        usr/lib
++
++        dh_movefiles -pgsm-utils \
++        usr/bin
++
++
++#        dh_installdebconf        
++        dh_installdocs
++        dh_installexamples
++        dh_installmenu
++#        dh_installemacsen
++#        dh_installpam
++        dh_installinit
++        dh_installcron
++        dh_installman -pgsm-utils debian/*.1 debian/tmp/usr/share/man/man*/*
++        dh_installinfo
++        dh_installchangelogs ChangeLog
++        dh_link
++        dh_strip
++        dh_compress
++        dh_fixperms
++        dh_makeshlibs -V
++        dh_installdeb
++#        dh_perl
++        dh_shlibdeps -ldebian/libgsmme1c2a/usr/lib
++        dh_gencontrol
++        dh_md5sums
++        dh_builddeb
++
++binary: binary-indep binary-arch
++.PHONY: build clean binary-indep binary-arch binary install configure
+--- gsmlib-1.10.orig/debian/gsm-utils.init
++++ gsmlib-1.10/debian/gsm-utils.init
+@@ -0,0 +1,77 @@
++#! /bin/sh
++#
++# /etc/init.d/gsm-utils: Controls the GSM SMS send daemon
++#
++# written by Matthias Goebl &lt;matthias@goebl.net&gt;
++
++PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
++DAEMON=/usr/bin/gsmsmsd
++NAME=gsmsmsd
++DESC=&quot;GSM SMS send daemon&quot;
++
++test -x $DAEMON || exit 0
++
++PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
++BAUDRATE=9600
++PIN=&quot;&quot;  # or 1234
++SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++STARTOPTS=&quot;&quot;
++SMSUSER=&quot;gsmsms:gsmsms&quot;
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting some parameters
++
++OPTIONS=&quot;-d $PHONEDEV -b $BAUDRATE -L -P $PRIORITIES&quot;
++OPTIONS=&quot;$OPTIONS -s $SPOOLDIR/queue -S $SPOOLDIR/sent -F $SPOOLDIR/failed&quot;
++test -n &quot;$SMSPROCESSOR&quot; &amp;&amp; OPTIONS=&quot;$OPTIONS -a $SMSPROCESSOR&quot;
++test -n &quot;$SMSUSER&quot; &amp;&amp; STARTOPTS=&quot;$STARTOPTS --chuid $SMSUSER&quot;
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting OPTIONS
++
++if [ ! -d /var/run/gsm-utils ]; then
++  mkdir /var/run/gsm-utils
++  chown gsmsms:gsmsms /var/run/gsm-utils
++fi
++
++case &quot;$1&quot; in
++  start)
++        echo -n &quot;Starting $DESC: &quot;
++        if [ -n &quot;$PIN&quot; ];then
++                echo -n &quot;entering PIN.. &quot;
++                (
++                # This is ugly.. But if the PIN is already entered, the ME returns
++                # &quot;ERROR&quot; and makes gsmctl retrying..
++                /usr/bin/gsmctl -d $PHONEDEV -b $BAUDRATE -I &quot;+cpin=$PIN&quot; &amp;
++                PID=$!
++                sleep 3
++                kill $PID 2&gt;/dev/null
++                ) &gt;/dev/null 2&gt;&amp;1
++        fi
++        echo -n &quot;$NAME&quot;
++        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
++        echo &quot;.&quot;
++        ;
++  stop)
++        echo -n &quot;Stopping $DESC: $NAME &quot;
++        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --exec $DAEMON
++        sleep 5
++        echo &quot;.&quot;
++        ;
++  restart|force-reload)
++        echo -n &quot;Restarting $DESC: $NAME&quot;
++        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background --exec $DAEMON -- $OPTIONS
++        sleep 5
++        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
++        echo &quot;.&quot;
++        ;
++  *)
++        N=/etc/init.d/gsm-utils
++        echo &quot;Usage: $N {start|stop|restart|force-reload}&quot; &gt;&amp;2
++        exit 1
++        ;
++esac
++
++exit 0
+--- gsmlib-1.10.orig/debian/watch
++++ gsmlib-1.10/debian/watch
+@@ -0,0 +1,2 @@
++version=2
++http://www.pxh.de/fs/gsmlib/download/content.html gsmlib-(.*)\.tar\.gz
+--- gsmlib-1.10.orig/debian/changelog
++++ gsmlib-1.10/debian/changelog
+@@ -0,0 +1,244 @@
++gsmlib (1.10-12ubuntu1) hardy; urgency=low
++
++  * Merge from Debian unstable. Remaining Ubuntu changes:
++    - [debian/gsm-utils.postinst, debian/gsm-utils.init]
++      Create /var/run/gsm-utils if it does not exist
++    - Actually fix the init script (debian #377448)
++    - Set Ubuntu maintainer adress.
++
++ -- Albin Tonnerre &lt;lutin@ubuntu.com&gt;  Wed, 12 Dec 2007 00:45:00 +0100
++
++gsmlib (1.10-12) unstable; urgency=low
++
++  * addgroup --system gsmsms works better.  Thanks Jon
++  * only delete gsmsms on purge
++     - gsm-utils: deletes and recreates the gsmsms user on each upgrade
++     (Closes: #346238)
++     - gsm-utils fails installation / addgroup: The user gsmsms; does
++     not exist (Closes: #445404)
++  * lintian cleanup: debian-rules-ignores-make-clean-error substvar-
++    source-version-is-deprecated
++  * Scripts are installed +x
++    - gsm-utils: uselessly installs non-executable scripts into /usr/bin
++    (Closes: #346230)
++  * Remove bogus symlink
++    - gsm-utils: wrong symlink for manpage gsmsiectl.1 (Closes: #322382)
++    - gsm-utils: gsmsiectl.1 dangling symlink (Closes: #399582)
++  * debian/gsm-utils.init reload/restart was not calling --stop. Thanks
++    Barry
++    - init script calls --start twice (Closes: #377448)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Mon, 08 Oct 2007 21:44:00 +0100
++
++gsmlib (1.10-11) unstable; urgency=low
++
++  * Create system group gsmsms - Thanks Emmanuel
++     - gsm-utils: creates group in non-system gid range (Closes: #353967)
++     - gsm-utils: postinst should create system grp gsmsms (Closes:
++    #390266)
++  * Upgrade to compat 4
++  * Apply gcc-4.3 patch from Martin
++    - FTBFS with GCC 4.3: missing #includes (Closes: #417222)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 29 Sep 2007 18:22:56 +0100
++
++gsmlib (1.10-10ubuntu3) feisty; urgency=low
++
++  * Rebuild for ldbl128 change (powerpc, sparc).
++  * Set Ubuntu maintainer address.
++
++ -- Matthias Klose &lt;doko@ubuntu.com&gt;  Thu,  1 Mar 2007 22:37:57 +0000
++
++gsmlib (1.10-10ubuntu2) edgy; urgency=low
++
++  * [debian/gsm-utils.postinst, debian/gsm-utils.init]
++    Create /var/run/gsm-utils if it does not exist
++
++ -- Matt Zimmerman &lt;mdz@ubuntu.com&gt;  Tue, 11 Jul 2006 13:59:12 -0700
++
++gsmlib (1.10-10ubuntu1) edgy; urgency=low
++
++  * Re-sync with Debian
++  * debian/gsm-utils.init reload/restart was not calling --stop
++
++ -- Barry deFreese &lt;bddebian@comcast.net&gt;  Sat,  8 Jul 2006 22:52:23 -0400
++
++gsmlib (1.10-10) unstable; urgency=low
++
++  * FTBFS with G++ 4.1: extra qualifications (Closes: #356109)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 20 May 2006 21:54:42 +0100
++
++gsmlib (1.10-9) unstable; urgency=low
++
++  * library package needs to be renamed (libstdc++ allocator change)
++    (Closes: #339179)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Mon, 21 Nov 2005 21:19:51 +0000
++
++gsmlib (1.10-8) unstable; urgency=low
++
++  * removal of automake1.6 (Closes: #335123)
++  * fails with dash [bashisms in scripts] (Closes: #309834)
++  * Update libtool Fixes: gsmlib(GNU/k*BSD): FTBFS: out of date libtool scripts (Closes:
++    #319688)
++  * [INTL:de] German PO file corrections (Closes: #314060)
++  * Fix: old-fsf-address-in-copyright-file
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Thu,  3 Nov 2005 22:40:19 +0000
++
++gsmlib (1.10-7) unstable; urgency=low
++
++  * C++ 4.0 transition
++  * Closes: #315864: Missing manpages
++  * gsm-utils: maintainer-script-needs-depends-on-adduser postinst
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 23 Jul 2005 00:46:31 +1000
++
++gsmlib (1.10-6) unstable; urgency=low
++
++  * Rebuild for invalid dependancies
++  * Closes: #258056: libgsmme 99% cpu usage
++    - Patch from Emard
++  * Closes: #274382: FTBFS with gcc-3.4: template-id `operator&amp;lt;
++    &amp;lt;&amp;gt;' for `bool gsmlib::operator&amp;lt;(const
++    gsmlib::MapKey&amp;lt;gsmlib::SortedPhonebookBase&amp;gt;&amp;amp;, const
++    gsmlib::MapKey&amp;lt;gsmlib::SortedPhonebookBase&amp;gt;&amp;amp;)' does not
++    match any template declaration
++    - Patch from Andreas Jochens
++  * Closes: #294251: FTBFS (amd64/gcc-4.0): explicit qualification in
++    declaration of `bool gsmlib::operator&amp;lt;(const
++    gsmlib::MapKey&amp;lt;SortedStore&amp;gt;&amp;amp;, const
++    gsmlib::MapKey&amp;lt;SortedStore&amp;gt;&amp;amp;)'
++    - Patch from Andreas Jochens
++  * Closes: #200189: Patch and contribution 
++    +  Added multi-queue-priority-system and syslog patch (Matthias Goebl)
++    +  Included init, spool and requeue scripts for gsmsmsd (Matthias Goebl)
++    +  gsmsmsd runs with own user and group (gsmsms:gsmsms) (Matthias Goebl)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Tue, 17 May 2005 11:34:45 +0100
++
++gsmlib (1.10-5) unstable; urgency=low
++
++  * Change Section: libdevel
++  * gsm_unix_serial.cc patch from Daniel Schepler to fix g++-3.3
++    compliation. Thanks. (Closes: Bug#195151)
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sat, 19 Jul 2003 15:57:28 +1000
++
++gsmlib (1.10-4) unstable; urgency=low
++
++  * Include file descriptor leak patch from Edd Dumbill (Closes:
++    Bug#168475)
++  * lintian cleanup: description-synopsis-might-not-be-phrased-properly
++  * lintian cleanup: configure-generated-file-in-source
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sun,  9 Feb 2003 14:04:54 +1100
++
++gsmlib (1.10-3) unstable; urgency=low
++
++  * New Maintainer (Closes: Bug#180061). Thanks Mikael for your work.
++
++ -- Mark Purcell &lt;msp@debian.org&gt;  Sat,  8 Feb 2003 16:55:26 +1100
++
++gsmlib (1.10-2) unstable; urgency=low
++
++  * Rebuild to use the new c++ ABI (GCC 3.2)
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 23 Jan 2003 20:57:50 +0100
++
++gsmlib (1.10-1) unstable; urgency=low
++
++  * New upstrem release.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Wed,  6 Nov 2002 17:44:17 +0100
++
++gsmlib (1.9-2) unstable; urgency=low
++
++  * Made new rules for the config.guess/sub update thing (closes: #146865,
++    #146867).
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Tue, 14 May 2002 09:28:03 +0200
++
++gsmlib (1.9-1) unstable; urgency=low
++
++  * New upstream version.
++  * Use chrpath to get rid of rpaths.
++  * Add mini-manpage for gsmsiexfer.
++  * Remove b-d on auto-stuff, we don't use them.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Mon, 13 May 2002 22:10:28 +0200
++
++gsmlib (1.8-2) unstable; urgency=low
++
++  * Removed b-d on gcc 3.0, as they are no longer nessecary.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 24 Jan 2002 12:59:07 +0100
++
++gsmlib (1.8-1) unstable; urgency=low
++
++  * New upstream version.
++  * Revert the arch hack, now it should compile with either g++.
++  * Include the new lib in libgsmme1.  Run dh_makeshlibs -V because of this.
++  * Added info for gsmsiectl in gsmctl(1).
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Wed,  9 Jan 2002 22:38:45 +0100
++
++gsmlib (1.7-2) unstable; urgency=low
++
++  * gsm-utils: Added shlibs:Depends (closes: #126127). 
++  * Spelling correction (closes: #124705, #124972)
++  * Rm libgsmme1.postins, and let dh_makeshlibs take care of ldconfig.
++  * Made explicit arch list without sparc and arm, they cannot use g++-3.0
++    right now.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Sat, 22 Dec 2001 20:27:54 +0100
++
++gsmlib (1.7-1) unstable; urgency=low
++
++  * New upstream
++  * Use gcc-3.0 and g++-3.0, 2.95 doesn't compile.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu,  1 Nov 2001 10:24:33 +0100
++
++gsmlib (1.6-5) unstable; urgency=low
++
++  * Updated manpage (closes: #110973)
++  * Corrected problem with OP status (closes: #110970)
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Sat,  8 Sep 2001 18:12:17 +0200
++
++gsmlib (1.6-4) unstable; urgency=low
++
++  * Support DEB_BUILD_OPTIONS
++  * Changed libgsmme-dev to section devel.
++  * Reran libtoolize.
++  * Lots of small patches to compile with g++-3.0. (Closes: #104411) 
++  * Removed dh_testversion.
++
++ -- Mikael Hedin &lt;micce@debian.org&gt;  Thu, 12 Jul 2001 16:06:23 +0200
++
++gsmlib (1.6-3) unstable; urgency=low
++
++  * Various minor corrections.
++
++ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Thu,  8 Mar 2001 16:24:07 +0100
++
++gsmlib (1.6-2) unstable; urgency=low
++
++  * Dont install INSTALL.  Correct indentation for libgsmme1 description.
++
++ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Tue,  6 Mar 2001 14:55:05 +0100
++
++gsmlib (1.6-1) unstable; urgency=low
++
++  * New upstream version.
++
++ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Mon, 29 Jan 2001 17:57:21 +0100
++
++gsmlib (1.5-1) unstable; urgency=low
++
++  * Initial Release.
++
++ -- Mikael Hedin &lt;mikael.hedin@irf.se&gt;  Thu, 14 Dec 2000 01:06:40 +0100
++
+--- gsmlib-1.10.orig/debian/gsm-utils.cron.d
++++ gsmlib-1.10/debian/gsm-utils.cron.d
+@@ -0,0 +1,3 @@
++# /etc/cron.d/gsm-utils: crontab fragment for gsm-utils
++
++*/5 * * * *        root        if [ -x /usr/bin/gsmsmsrequeue ]; then /usr/bin/gsmsmsrequeue; fi
+--- gsmlib-1.10.orig/debian/gsm-utils.default
++++ gsmlib-1.10/debian/gsm-utils.default
+@@ -0,0 +1,13 @@
++PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
++BAUDRATE=9600
++PIN=&quot;&quot;  # or 1234
++
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++
++SMSADMIN=root
++SUBJECT=&quot;SMS delivery report:&quot;
++
++SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
++
++function do_accounting { true; }  # it's your turn
+--- gsmlib-1.10.orig/debian/gsm-utils.postinst
++++ gsmlib-1.10/debian/gsm-utils.postinst
+@@ -0,0 +1,31 @@
++#!/bin/sh -e
++
++# create gsmsms group if necessary.
++if ! grep -q ^gsmsms: /etc/group; then
++#      echo Adding system group: gsmsms.
++       addgroup --system gsmsms
++fi
++
++# create gsmsms user if necessary.
++if ! grep -q ^gsmsms: /etc/passwd; then
++#        echo Adding system user: gsmsms.
++        adduser --system --ingroup gsmsms \
++                --no-create-home --home /var/spool/sms gsmsms
++fi
++
++# allow gsmsms to use serial lines
++if ! groups gsmsms | grep -q dialout ; then
++        adduser gsmsms dialout
++fi
++
++# echo Updating spool directory structure: /var/spool/sms
++if [ ! -d /var/run/gsm-utils ]; then
++  mkdir /var/run/gsm-utils
++fi
++chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
++chmod 700 /var/spool/sms/*
++chmod 750 /var/spool/sms
++chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp
++
++# Add the rest automatically..
++#DEBHELPER#
+--- gsmlib-1.10.orig/debian/compat
++++ gsmlib-1.10/debian/compat
+@@ -0,0 +1 @@
++4
+--- gsmlib-1.10.orig/debian/gsm-utils.postrm
++++ gsmlib-1.10/debian/gsm-utils.postrm
+@@ -0,0 +1,43 @@
++#!/bin/sh
++# postrm script for #PACKAGE#
++#
++# see: dh_installdeb(1)
++
++set -e
++
++# summary of how this script can be called:
++#        * &lt;postrm&gt; `remove'
++#        * &lt;postrm&gt; `purge'
++#        * &lt;old-postrm&gt; `upgrade' &lt;new-version&gt;
++#        * &lt;new-postrm&gt; `failed-upgrade' &lt;old-version&gt;
++#        * &lt;new-postrm&gt; `abort-install'
++#        * &lt;new-postrm&gt; `abort-install' &lt;old-version&gt;
++#        * &lt;new-postrm&gt; `abort-upgrade' &lt;old-version&gt;
++#        * &lt;disappearer's-postrm&gt; `disappear' &lt;overwriter&gt;
++#          &lt;overwriter-version&gt;
++# for details, see http://www.debian.org/doc/debian-policy/ or
++# the debian-policy package
++
++
++case &quot;$1&quot; in
++    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
++    ;;
++
++    purge)
++       deluser gsmsms  
++    ;;
++
++    *)
++        echo &quot;postrm called with unknown argument \`$1'&quot; &gt;&amp;2
++        exit 1
++    ;;
++esac
++
++# dh_installdeb will replace this with shell code automatically
++# generated by other debhelper scripts.
++
++#DEBHELPER#
++
++exit 0
++
++
+--- gsmlib-1.10.orig/debian/gsmsiexfer.1
++++ gsmlib-1.10/debian/gsmsiexfer.1
+@@ -0,0 +1,29 @@
++.\&quot; -*- eval: (nroff-mode) -*-
++.de TQ
++.br
++.ns
++.TP \\$1
++..
++.\&quot; Like TP, but if specified indent is more than half
++.\&quot; the current line-length - indent, use the default indent.
++.de Tp
++.ie \\n(.$=0:((0\\$1)*2u&gt;(\\n(.lu-\\n(.iu)) .TP
++.el .TP &quot;\\$1&quot;
++..
++.TH GSMSIEXFER 1 &quot;&quot; &quot;gsmsiexfer&quot;
++.SH NAME
++gsmsiexfer \-  Siemens ME file transfer program for Siemens phones S25, S35, S45, ME45, SL45
++.SH SYNOPSIS
++.B gsmsiexfer --help
++.PP
++.SH DESCRIPTION
++\fIgsmsiexer\fP comes with no man page.  Try gsmsiexfer --help, or
++read the source.
++.PP
++.SH &quot;SEE ALSO&quot;
++.BR gsminfo(7),
++.BR gsmctl(1),
++.BR gsmsendsms(1),
++.BR gsmsmsd(8),
++.BR gsmsmsstore(1).
++
+--- gsmlib-1.10.orig/debian/libgsmme-dev.docs
++++ gsmlib-1.10/debian/libgsmme-dev.docs
+@@ -0,0 +1,2 @@
++doc/README.developers
++doc/README.NLS
+--- gsmlib-1.10.orig/debian/copyright
++++ gsmlib-1.10/debian/copyright
+@@ -0,0 +1,26 @@
++This package was debianized by Mikael Hedin &lt;mikael.hedin@irf.se&gt; on
++Thu, 14 Dec 2000 01:06:40 +0100.
++
++It was downloaded from http://www.pxh.de/fs/gsmlib/index.html
++
++Upstream Author: Peter Hofmann &lt;software@pxh.de&gt;
++
++Copyright:
++
++   This package is free software; you can redistribute it and/or modify
++   it under the terms of the GNU General Public License as published by
++   the Free Software Foundation; version 2 dated June, 1991.
++
++   This package is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++   GNU General Public License for more details.
++
++   You should have received a copy of the GNU General Public License
++   along with this package; if not, write to the Free Software
++   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
++   MA 02110-1301, USA.
++
++On Debian GNU/Linux systems, the complete text of the GNU General
++Public License can be found in `/usr/share/common-licenses/GPL'.
++
+--- gsmlib-1.10.orig/debian/gsm-utils.undocumented
++++ gsmlib-1.10/debian/gsm-utils.undocumented
+@@ -0,0 +1,2 @@
++gsmsmsspool.1  
++gsmsmsrequeue.8
+--- gsmlib-1.10.orig/debian/gsm-utils.dirs
++++ gsmlib-1.10/debian/gsm-utils.dirs
+@@ -0,0 +1,11 @@
++var/spool/sms/queue1
++var/spool/sms/queue2
++var/spool/sms/queue3
++var/spool/sms/sent1
++var/spool/sms/sent2
++var/spool/sms/sent3
++var/spool/sms/failed1
++var/spool/sms/failed2
++var/spool/sms/failed3
++var/spool/sms/tmp
++var/run/gsm-utils
+--- gsmlib-1.10.orig/debian/gsm-utils.docs
++++ gsmlib-1.10/debian/gsm-utils.docs
+@@ -0,0 +1,4 @@
++NEWS
++README
++TODO
++doc/FAQ
+--- gsmlib-1.10.orig/contrib/gsm-utils.cron.d
++++ gsmlib-1.10/contrib/gsm-utils.cron.d
+@@ -0,0 +1,3 @@
++# /etc/cron.d/gsm-utils: crontab fragment for gsm-utils
++
++*/5 * * * *        root        if [ -x /usr/bin/gsmsmsrequeue ]; then /usr/bin/gsmsmsrequeue; fi
+--- gsmlib-1.10.orig/contrib/gsm-utils.default
++++ gsmlib-1.10/contrib/gsm-utils.default
+@@ -0,0 +1,13 @@
++PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
++BAUDRATE=9600
++PIN=&quot;&quot;  # or 1234
++
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++
++SMSADMIN=root
++SUBJECT=&quot;SMS delivery report:&quot;
++
++SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
++
++function do_accounting { true; }  # it's your turn
+--- gsmlib-1.10.orig/contrib/gsmsmsspool
++++ gsmlib-1.10/contrib/gsmsmsspool
+@@ -0,0 +1,34 @@
++#! /bin/sh
++#
++# /usr/bin/gsmsmsspool: Queues SMS for sending
++#
++# written by Matthias Goebl &lt;matthias@goebl.net&gt;
++
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils
++
++if [ -z &quot;$1&quot; ]; then
++  echo &quot;Usage: gsmsmsspool NUMBER [MESSAGE]&quot;
++  exit 1
++fi
++
++priority=$PRIORITIES  # default priority
++test -n &quot;$GSMSMS_PRIORITY&quot; &amp;&amp; priority=&quot;$GSMSMS_PRIORITY&quot;
++mailto=`id -un`
++test -n &quot;$GSMSMS_NOTIFY&quot; &amp;&amp; mailto=&quot;$GSMSMS_NOTIFY&quot;
++
++tmpfile=&quot;$SPOOLDIR/tmp/`date +%s`.$$&quot;
++umask 022
++echo &quot;$1        $mailto&quot; &gt; &quot;$tmpfile&quot;
++if [ -n &quot;$2&quot; ]; then
++  echo &quot;$2&quot; | head -c 160 &gt;&gt; &quot;$tmpfile&quot;
++else
++  head -c 160 &gt;&gt; &quot;$tmpfile&quot;
++fi
++
++if [ &quot;`id -un`&quot; = &quot;root&quot; ]; then
++  chown gsmsms:gsmsms &quot;$tmpfile&quot;
++fi
++
++mv &quot;$tmpfile&quot; &quot;$SPOOLDIR/queue$priority/&quot;
+--- gsmlib-1.10.orig/contrib/gsmsmsrequeue
++++ gsmlib-1.10/contrib/gsmsmsrequeue
+@@ -0,0 +1,44 @@
++#! /bin/sh
++#
++# /usr/bin/gsmsmsrequeue: Re-queues failed SMS
++#
++# written by Matthias Goebl &lt;matthias@goebl.net&gt;
++
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++SMSADMIN=root
++SUBJECT=&quot;SMS delivery report:&quot;
++
++function send_notify {
++  tmpfile=&quot;$SPOOLDIR/tmp/&quot;`basename &quot;$1&quot;`
++  status=&quot;$2&quot;
++  if mv &quot;$1&quot; &quot;$tmpfile&quot; 2&gt;/dev/null; then
++    # extract the first tab-separated field after the phone number as
++    # email-address to send the notification to
++    mailto=` cat &quot;$tmpfile&quot; | sed -ne '1s/^[^        ]*        \([^        ]*\).*/\1/p' `
++    test -z &quot;$mailto&quot; &amp;&amp; mailto=&quot;$SMSADMIN&quot;
++    cat &quot;$tmpfile&quot; | mail -s &quot;$SUBJECT $status&quot; &quot;$mailto&quot;
++    rm &quot;$tmpfile&quot;
++  fi
++}
++function do_accounting { true; }
++
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils
++
++for p in `seq 1 $PRIORITIES`; do
++  ls &quot;$SPOOLDIR/failed$p&quot; | while read file; do
++    if expr &quot;$file&quot; : &quot;.*rrrrrrrrrrrr&quot; &gt;/dev/null; then
++      send_notify &quot;$SPOOLDIR/failed$p/$file&quot; &quot;failed&quot;
++    else
++      # re-queue SMS
++      mv &quot;$SPOOLDIR/failed$p/$file&quot; &quot;$SPOOLDIR/queue$p/${file}r&quot; 2&gt;/dev/null
++    fi
++  done
++done
++
++for p in `seq 1 $PRIORITIES`; do
++  ls &quot;$SPOOLDIR/sent$p&quot; | while read file; do
++    do_accounting &quot;$SPOOLDIR/sent$p/$file&quot; &quot;sent&quot;
++    send_notify &quot;$SPOOLDIR/sent$p/$file&quot; &quot;sent&quot;
++  done
++done
+--- gsmlib-1.10.orig/contrib/gsm-utils.init
++++ gsmlib-1.10/contrib/gsm-utils.init
+@@ -0,0 +1,72 @@
++#! /bin/sh
++#
++# /etc/init.d/gsm-utils: Controls the GSM SMS send daemon
++#
++# written by Matthias Goebl &lt;matthias@goebl.net&gt;
++
++PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
++DAEMON=/usr/bin/gsmsmsd
++NAME=gsmsmsd
++DESC=&quot;GSM SMS send daemon&quot;
++
++test -x $DAEMON || exit 0
++
++PHONEDEV=/dev/mobilephone  # or /dev/ttyS0 or /dev/ircomm0
++BAUDRATE=9600
++PIN=&quot;&quot;  # or 1234
++SMSPROCESSOR=&quot;&quot;  # or /usr/bin/gsmsmsprocessor
++SPOOLDIR=/var/spool/sms
++PRIORITIES=3
++STARTOPTS=&quot;&quot;
++SMSUSER=&quot;gsmsms:gsmsms&quot;
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting some parameters
++
++OPTIONS=&quot;-d $PHONEDEV -b $BAUDRATE -L -P $PRIORITIES&quot;
++OPTIONS=&quot;$OPTIONS -s $SPOOLDIR/queue -S $SPOOLDIR/sent -F $SPOOLDIR/failed&quot;
++test -n &quot;$SMSPROCESSOR&quot; &amp;&amp; OPTIONS=&quot;$OPTIONS -a $SMSPROCESSOR&quot;
++test -n &quot;$SMSUSER&quot; &amp;&amp; STARTOPTS=&quot;$STARTOPTS --chuid $SMSUSER&quot;
++test -r /etc/default/gsm-utils &amp;&amp; . /etc/default/gsm-utils  # for overwriting OPTIONS
++
++case &quot;$1&quot; in
++  start)
++        echo -n &quot;Starting $DESC: &quot;
++        if [ -n &quot;$PIN&quot; ];then
++                echo -n &quot;entering PIN.. &quot;
++                (
++                # This is ugly.. But if the PIN is already entered, the ME returns
++                # &quot;ERROR&quot; and makes gsmctl retrying..
++                /usr/bin/gsmctl -d $PHONEDEV -b $BAUDRATE -I &quot;+cpin=$PIN&quot; &amp;
++                PID=$!
++                sleep 3
++                kill $PID 2&gt;/dev/null
++                ) &gt;/dev/null 2&gt;&amp;1
++        fi
++        echo -n &quot;$NAME&quot;
++        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
++        echo &quot;.&quot;
++        ;
++  stop)
++        echo -n &quot;Stopping $DESC: $NAME &quot;
++        start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --exec $DAEMON
++        sleep 5
++        echo &quot;.&quot;
++        ;
++  restart|force-reload)
++        echo -n &quot;Restarting $DESC: $NAME&quot;
++        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
++        sleep 5
++        start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
++                --make-pidfile --background --exec $DAEMON -- $OPTIONS
++        echo &quot;.&quot;
++        ;
++  *)
++        N=/etc/init.d/gsm-utils
++        echo &quot;Usage: $N {start|stop|restart|force-reload}&quot; &gt;&amp;2
++        exit 1
++        ;
++esac
++
++exit 0
+--- gsmlib-1.10.orig/gsmlib-1.10.debmg/debian/gsm-utils.postinst
++++ gsmlib-1.10/gsmlib-1.10.debmg/debian/gsm-utils.postinst
+@@ -0,0 +1,28 @@
++#!/bin/sh -e
++
++# create gsmsms group if necessary.
++if ! grep -q ^gsmsms: /etc/group; then
++#      echo Adding system group: gsmsms.
++       addgroup gsmsms 
++fi
++
++# create gsmsms user if necessary.
++if ! grep -q ^gsmsms: /etc/passwd; then
++#        echo Adding system user: gsmsms.
++        adduser --system --ingroup gsmsms \
++                --no-create-home --home /var/spool/sms gsmsms
++fi
++
++# allow gsmsms to use serial lines
++if ! groups gsmsms | grep -q dialout ; then
++        adduser gsmsms dialout
++fi
++
++# echo Updating spool directory structure: /var/spool/sms
++chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
++chmod 700 /var/spool/sms/*
++chmod 750 /var/spool/sms
++chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp
++
++# Add the rest automatically..
++#DEBHELPER#
+--- gsmlib-1.10.orig/gsmlib-1.10.debmg/debian/gsm-utils.undocumented
++++ gsmlib-1.10/gsmlib-1.10.debmg/debian/gsm-utils.undocumented
+@@ -0,0 +1,2 @@
++gsmsmsspool.1  
++gsmsmsrequeue.8
+--- gsmlib-1.10.orig/gsmlib-1.10.debmg/debian/gsm-utils.dirs
++++ gsmlib-1.10/gsmlib-1.10.debmg/debian/gsm-utils.dirs
+@@ -0,0 +1,11 @@
++var/spool/sms/queue1
++var/spool/sms/queue2
++var/spool/sms/queue3
++var/spool/sms/sent1
++var/spool/sms/sent2
++var/spool/sms/sent3
++var/spool/sms/failed1
++var/spool/sms/failed2
++var/spool/sms/failed3
++var/spool/sms/tmp
++var/run/gsm-utils
+--- gsmlib-1.10.orig/gsmlib-1.10.debmg/debian/gsm-utils.prerm
++++ gsmlib-1.10/gsmlib-1.10.debmg/debian/gsm-utils.prerm
+@@ -0,0 +1,7 @@
++#!/bin/sh -e
++
++deluser gsmsms  || true
++delgroup gsmsms || true
++
++# Add the rest automatically..
++#DEBHELPER#
+--- gsmlib-1.10.orig/g41.patch
++++ gsmlib-1.10/g41.patch
+@@ -0,0 +1,29 @@
++--- ./gsmlib/gsm_me_ta.h~       2006-03-09 19:15:59.000000000 +0000
+++++ ./gsmlib/gsm_me_ta.h        2006-03-09 19:16:31.000000000 +0000
++@@ -291,8 +291,8 @@
++     // 3 disable phone receive RF circuits only
++     // 4 disable phone both transmit and receive RF circuits
++     // 5...127 implementation-defined
++-    int MeTa::getFunctionalityLevel() throw(GsmException);
++-    void MeTa::setFunctionalityLevel(int level) throw(GsmException);
+++    int getFunctionalityLevel() throw(GsmException);
+++    void setFunctionalityLevel(int level) throw(GsmException);
++ 
++     // return battery charge status (+CBC):
++     // 0 ME is powered by the battery
++@@ -386,13 +386,13 @@
++     void setCallWaitingLockStatus(FacilityClass cl,
++                                   bool lock)throw(GsmException);
++ 
++-    void MeTa::setCLIRPresentation(bool enable) throw(GsmException);
+++    void setCLIRPresentation(bool enable) throw(GsmException);
++     //(+CLIR)
++     
++     // 0:according to the subscription of the CLIR service
++     // 1:CLIR invocation
++     // 2:CLIR suppression
++-    int MeTa::getCLIRPresentation() throw(GsmException);
+++    int getCLIRPresentation() throw(GsmException);
++ 
++     friend class Phonebook;
++     friend class SMSStore;
+--- gsmlib-1.10.orig/stamp-h.in
++++ gsmlib-1.10/stamp-h.in
+@@ -0,0 +1 @@
++timestamp
</ins></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>