charguess 1.3 → 1.3.20110215234539

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'http://www.rubygems.org'
2
+
3
+ gem 'newgem', "1.5.3"
4
+ gem 'hoe', "2.9.1"
5
+ gem 'hoe-gemspec'
data/Gemfile.lock ADDED
@@ -0,0 +1,29 @@
1
+ GEM
2
+ remote: http://www.rubygems.org/
3
+ specs:
4
+ RedCloth (4.2.7)
5
+ activesupport (2.3.11)
6
+ hoe (2.9.1)
7
+ rake (>= 0.8.7)
8
+ hoe-gemspec (1.0.0)
9
+ hoe (>= 2.2.0)
10
+ i18n (0.5.0)
11
+ newgem (1.5.3)
12
+ RedCloth (>= 4.1.1)
13
+ activesupport (~> 2.3.4)
14
+ hoe (>= 2.4.0)
15
+ rubigen (>= 1.5.3)
16
+ syntax (>= 1.0.0)
17
+ rake (0.8.7)
18
+ rubigen (1.5.6)
19
+ activesupport (>= 2.3.5)
20
+ i18n
21
+ syntax (1.0.0)
22
+
23
+ PLATFORMS
24
+ ruby
25
+
26
+ DEPENDENCIES
27
+ hoe (= 2.9.1)
28
+ hoe-gemspec
29
+ newgem (= 1.5.3)
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- == 1.3 2009-12-09
1
+ == 1.3 2011-15-02
2
+
3
+ * Ruby 1.9 compatibility
4
+
5
+ == 1.2 2009-12-09
2
6
 
3
7
  * 1 bugfix:
4
8
  * Fixed build tasks
data/Manifest.txt CHANGED
@@ -1,3 +1,5 @@
1
+ Gemfile
2
+ Gemfile.lock
1
3
  History.txt
2
4
  Manifest.txt
3
5
  PostInstall.txt
@@ -106,9 +108,7 @@ ext/libcharguess/cpp/charguess.cpp
106
108
  ext/libcharguess/cpp/charguess.h
107
109
  ext/libcharguess/cpp/charsetProber.h
108
110
  ext/libcharguess/cpp/codingStateMachine.h
109
- ext/libcharguess/cpp/config.h
110
111
  ext/libcharguess/cpp/config.h.in
111
- ext/libcharguess/cpp/config.status
112
112
  ext/libcharguess/cpp/configure
113
113
  ext/libcharguess/cpp/configure.in
114
114
  ext/libcharguess/cpp/depcomp
data/Rakefile CHANGED
@@ -1,9 +1,14 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
1
+ # encoding: utf-8
2
+ %w[rubygems rake rake/clean fileutils newgem rubigen hoe].each { |f| require f }
2
3
 
3
4
  # Generate all the Rake tasks
4
5
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
5
- $hoe = Hoe.new('charguess', "1.3") do |p|
6
+ Hoe.plugin :gemspec
7
+
8
+ $hoe = Hoe.spec('charguess') do |p|
6
9
  p.developer('Ernesto Jiménez', 'erjica@gmail.com')
10
+ p.version = "1.3"
11
+ p.readme_file = "README.rdoc"
7
12
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
8
13
  p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
9
14
  p.rubyforge_name = p.name
@@ -1,7 +1,10 @@
1
1
  #include "ruby.h"
2
- #include "intern.h"
3
2
  #include <charguess.h>
4
3
 
4
+ #ifndef RSTRING_PTR
5
+ #include "intern.h"
6
+ #define RSTRING_PTR(s) (RSTRING(s)->ptr)
7
+ #endif
5
8
 
6
9
  static VALUE mCharGuess;
7
10
 
@@ -10,7 +13,7 @@ static VALUE cg_s_guess(VALUE klass, VALUE str) {
10
13
  int ret;
11
14
  Check_Type(str, T_STRING);
12
15
  ret = CharGuessInit();
13
- ptr = GuessChardet((const char *)RSTRING(str)->ptr);
16
+ ptr = GuessChardet((const char *)RSTRING_PTR(str));
14
17
  ret = CharGuessDone();
15
18
  return ptr ? rb_str_new2(ptr) : Qnil;
16
19
  }
@@ -6,11 +6,12 @@ require 'rake'
6
6
  libcharguess = File.expand_path(File.dirname(__FILE__), "../libcharguess/cpp")
7
7
 
8
8
  Dir.chdir(libcharguess) do
9
- sh("env CXXFLAGS=\"$CXXFLAGS -fPIC\" ./configure")
9
+ sh("./configure")
10
10
  sh("make")
11
11
  end
12
12
 
13
13
  dir_config('charguess', libcharguess, libcharguess)
14
+ find_header("intern.h", TRY_LINK)
14
15
 
15
16
  if have_library('charguess') && have_library('stdc++') && have_header('charguess.h')
16
17
  create_makefile('charguess')
@@ -32,7 +32,7 @@ namespace :extconf do
32
32
 
33
33
  file ext_so => ext_files do
34
34
  Dir.chdir(ext) do
35
- sh(PLATFORM =~ /win32/ ? 'nmake' : 'make') do |ok, res|
35
+ sh(RUBY_PLATFORM =~ /win32/ ? 'nmake' : 'make') do |ok, res|
36
36
  if !ok
37
37
  require "fileutils"
38
38
  FileUtils.rm Dir.glob('*.{so,o,dll,bundle}')
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require File.dirname(__FILE__) + '/test_helper.rb'
2
3
 
3
4
  class TestCharguess < Test::Unit::TestCase
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "test/unit"
2
3
 
3
4
  $:.unshift File.dirname(__FILE__) + "/../ext/charguess"
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charguess
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.3"
4
+ hash: 40220430469069
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 3
9
+ - 20110215234539
10
+ version: 1.3.20110215234539
5
11
  platform: ruby
6
12
  authors:
7
13
  - "Ernesto Jim\xC3\xA9nez"
@@ -9,29 +15,41 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-12-09 00:00:00 +01:00
18
+ date: 2011-02-15 00:00:00 +00:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
23
- version: 1.2.1
24
- version:
29
+ hash: 5
30
+ segments:
31
+ - 1
32
+ - 5
33
+ - 3
34
+ version: 1.5.3
35
+ type: :development
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
33
- version: 1.8.0
34
- version:
45
+ hash: 41
46
+ segments:
47
+ - 2
48
+ - 9
49
+ - 1
50
+ version: 2.9.1
51
+ type: :development
52
+ version_requirements: *id002
35
53
  description: |-
36
54
  This gem builds and installs libcharguess and it's binding libcharguess-ruby
37
55
 
@@ -47,8 +65,9 @@ extra_rdoc_files:
47
65
  - History.txt
48
66
  - Manifest.txt
49
67
  - PostInstall.txt
50
- - README.rdoc
51
68
  files:
69
+ - Gemfile
70
+ - Gemfile.lock
52
71
  - History.txt
53
72
  - Manifest.txt
54
73
  - PostInstall.txt
@@ -157,9 +176,7 @@ files:
157
176
  - ext/libcharguess/cpp/charguess.h
158
177
  - ext/libcharguess/cpp/charsetProber.h
159
178
  - ext/libcharguess/cpp/codingStateMachine.h
160
- - ext/libcharguess/cpp/config.h
161
179
  - ext/libcharguess/cpp/config.h.in
162
- - ext/libcharguess/cpp/config.status
163
180
  - ext/libcharguess/cpp/configure
164
181
  - ext/libcharguess/cpp/configure.in
165
182
  - ext/libcharguess/cpp/depcomp
@@ -183,6 +200,7 @@ files:
183
200
  - test/test_charguess.rb
184
201
  - test/test_charguess_extn.rb
185
202
  - test/test_helper.rb
203
+ - .gemtest
186
204
  has_rdoc: true
187
205
  homepage: http://github.com/ernesto-jimenez/charguess
188
206
  licenses: []
@@ -195,21 +213,27 @@ require_paths:
195
213
  - ext/charguess
196
214
  - ext/libcharguess
197
215
  required_ruby_version: !ruby/object:Gem::Requirement
216
+ none: false
198
217
  requirements:
199
218
  - - ">="
200
219
  - !ruby/object:Gem::Version
220
+ hash: 3
221
+ segments:
222
+ - 0
201
223
  version: "0"
202
- version:
203
224
  required_rubygems_version: !ruby/object:Gem::Requirement
225
+ none: false
204
226
  requirements:
205
227
  - - ">="
206
228
  - !ruby/object:Gem::Version
229
+ hash: 3
230
+ segments:
231
+ - 0
207
232
  version: "0"
208
- version:
209
233
  requirements: []
210
234
 
211
235
  rubyforge_project: charguess
212
- rubygems_version: 1.3.5
236
+ rubygems_version: 1.5.2
213
237
  signing_key:
214
238
  specification_version: 3
215
239
  summary: "This gem builds and installs libcharguess and it's binding libcharguess-ruby * libcharguess: http://libcharguess.sourceforge.net/ * libcharguess-ruby: http://raa.ruby-lang.org/project/charguess/"
@@ -1,36 +0,0 @@
1
- /* config.h. Generated by configure. */
2
- /* config.h.in. Generated from configure.in by autoheader. */
3
-
4
- /* Name of package */
5
- #define PACKAGE "libcharguess"
6
-
7
- /* Define to the address where bug reports for this package should be sent. */
8
- #define PACKAGE_BUGREPORT ""
9
-
10
- /* Define to the full name of this package. */
11
- #define PACKAGE_NAME ""
12
-
13
- /* Define which directory should be used for package source. */
14
- #define PACKAGE_SOURCE_DIR "/Users/hydrus/charguess/ext/libcharguess/cpp"
15
-
16
- /* Define to the full name and version of this package. */
17
- #define PACKAGE_STRING ""
18
-
19
- /* Define to the one symbol short name of this package. */
20
- #define PACKAGE_TARNAME ""
21
-
22
- /* Define to the version of this package. */
23
- #define PACKAGE_VERSION ""
24
-
25
- /* Define to 1 if you have the ANSI C header files. */
26
- #define STDC_HEADERS 1
27
-
28
- /* Version number of package */
29
- #define VERSION "1.0b"
30
-
31
- /* Define to empty if `const' does not conform to ANSI C. */
32
- /* #undef const */
33
-
34
- /* Define as `__inline' if that's what the C compiler calls it, or to nothing
35
- if it is not supported. */
36
- /* #undef inline */
@@ -1,1075 +0,0 @@
1
- #! /bin/sh
2
- # Generated by configure.
3
- # Run this file to recreate the current configuration.
4
- # Compiler output produced by configure, useful for debugging
5
- # configure, is in config.log if it exists.
6
-
7
- debug=false
8
- ac_cs_recheck=false
9
- ac_cs_silent=false
10
- SHELL=${CONFIG_SHELL-/bin/sh}
11
- ## --------------------- ##
12
- ## M4sh Initialization. ##
13
- ## --------------------- ##
14
-
15
- # Be Bourne compatible
16
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
- emulate sh
18
- NULLCMD=:
19
- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
- # is contrary to our usage. Disable this feature.
21
- alias -g '${1+"$@"}'='"$@"'
22
- elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
- set -o posix
24
- fi
25
-
26
- # Support unset when possible.
27
- if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28
- as_unset=unset
29
- else
30
- as_unset=false
31
- fi
32
-
33
-
34
- # Work around bugs in pre-3.0 UWIN ksh.
35
- $as_unset ENV MAIL MAILPATH
36
- PS1='$ '
37
- PS2='> '
38
- PS4='+ '
39
-
40
- # NLS nuisances.
41
- for as_var in \
42
- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
- LC_TELEPHONE LC_TIME
45
- do
46
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
- eval $as_var=C; export $as_var
48
- else
49
- $as_unset $as_var
50
- fi
51
- done
52
-
53
- # Required to use basename.
54
- if expr a : '\(a\)' >/dev/null 2>&1; then
55
- as_expr=expr
56
- else
57
- as_expr=false
58
- fi
59
-
60
- if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
- as_basename=basename
62
- else
63
- as_basename=false
64
- fi
65
-
66
-
67
- # Name of the executable.
68
- as_me=`$as_basename "$0" ||
69
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
- X"$0" : 'X\(//\)$' \| \
71
- X"$0" : 'X\(/\)$' \| \
72
- . : '\(.\)' 2>/dev/null ||
73
- echo X/"$0" |
74
- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
- /^X\/\(\/\/\)$/{ s//\1/; q; }
76
- /^X\/\(\/\).*/{ s//\1/; q; }
77
- s/.*/./; q'`
78
-
79
-
80
- # PATH needs CR, and LINENO needs CR and PATH.
81
- # Avoid depending upon Character Ranges.
82
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
- as_cr_digits='0123456789'
86
- as_cr_alnum=$as_cr_Letters$as_cr_digits
87
-
88
- # The user is always right.
89
- if test "${PATH_SEPARATOR+set}" != set; then
90
- echo "#! /bin/sh" >conf$$.sh
91
- echo "exit 0" >>conf$$.sh
92
- chmod +x conf$$.sh
93
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
- PATH_SEPARATOR=';'
95
- else
96
- PATH_SEPARATOR=:
97
- fi
98
- rm -f conf$$.sh
99
- fi
100
-
101
-
102
- as_lineno_1=$LINENO
103
- as_lineno_2=$LINENO
104
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
- test "x$as_lineno_1" != "x$as_lineno_2" &&
106
- test "x$as_lineno_3" = "x$as_lineno_2" || {
107
- # Find who we are. Look in the path if we contain no path at all
108
- # relative or not.
109
- case $0 in
110
- *[\\/]* ) as_myself=$0 ;;
111
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
- for as_dir in $PATH
113
- do
114
- IFS=$as_save_IFS
115
- test -z "$as_dir" && as_dir=.
116
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
- done
118
-
119
- ;;
120
- esac
121
- # We did not find ourselves, most probably we were run as `sh COMMAND'
122
- # in which case we are not to be found in the path.
123
- if test "x$as_myself" = x; then
124
- as_myself=$0
125
- fi
126
- if test ! -f "$as_myself"; then
127
- { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
128
- echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
129
- { (exit 1); exit 1; }; }
130
- fi
131
- case $CONFIG_SHELL in
132
- '')
133
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
- do
136
- IFS=$as_save_IFS
137
- test -z "$as_dir" && as_dir=.
138
- for as_base in sh bash ksh sh5; do
139
- case $as_dir in
140
- /*)
141
- if ("$as_dir/$as_base" -c '
142
- as_lineno_1=$LINENO
143
- as_lineno_2=$LINENO
144
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145
- test "x$as_lineno_1" != "x$as_lineno_2" &&
146
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149
- CONFIG_SHELL=$as_dir/$as_base
150
- export CONFIG_SHELL
151
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152
- fi;;
153
- esac
154
- done
155
- done
156
- ;;
157
- esac
158
-
159
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160
- # uniformly replaced by the line number. The first 'sed' inserts a
161
- # line-number line before each line; the second 'sed' does the real
162
- # work. The second script uses 'N' to pair each line-number line
163
- # with the numbered line, and appends trailing '-' during
164
- # substitution so that $LINENO is not a special case at line end.
165
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167
- sed '=' <$as_myself |
168
- sed '
169
- N
170
- s,$,-,
171
- : loop
172
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
- t loop
174
- s,-$,,
175
- s,^['$as_cr_digits']*\n,,
176
- ' >$as_me.lineno &&
177
- chmod +x $as_me.lineno ||
178
- { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
179
- echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
180
- { (exit 1); exit 1; }; }
181
-
182
- # Don't try to exec as it changes $[0], causing all sort of problems
183
- # (the dirname of $[0] is not the place where we might find the
184
- # original and so on. Autoconf is especially sensible to this).
185
- . ./$as_me.lineno
186
- # Exit status is that of the last command.
187
- exit
188
- }
189
-
190
-
191
- case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192
- *c*,-n*) ECHO_N= ECHO_C='
193
- ' ECHO_T=' ' ;;
194
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
- esac
197
-
198
- if expr a : '\(a\)' >/dev/null 2>&1; then
199
- as_expr=expr
200
- else
201
- as_expr=false
202
- fi
203
-
204
- rm -f conf$$ conf$$.exe conf$$.file
205
- echo >conf$$.file
206
- if ln -s conf$$.file conf$$ 2>/dev/null; then
207
- # We could just check for DJGPP; but this test a) works b) is more generic
208
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209
- if test -f conf$$.exe; then
210
- # Don't use ln at all; we don't have any links
211
- as_ln_s='cp -p'
212
- else
213
- as_ln_s='ln -s'
214
- fi
215
- elif ln conf$$.file conf$$ 2>/dev/null; then
216
- as_ln_s=ln
217
- else
218
- as_ln_s='cp -p'
219
- fi
220
- rm -f conf$$ conf$$.exe conf$$.file
221
-
222
- if mkdir -p . 2>/dev/null; then
223
- as_mkdir_p=:
224
- else
225
- as_mkdir_p=false
226
- fi
227
-
228
- as_executable_p="test -f"
229
-
230
- # Sed expression to map a string onto a valid CPP name.
231
- as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232
-
233
- # Sed expression to map a string onto a valid variable name.
234
- as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235
-
236
-
237
- # IFS
238
- # We need space, tab and new line, in precisely that order.
239
- as_nl='
240
- '
241
- IFS=" $as_nl"
242
-
243
- # CDPATH.
244
- $as_unset CDPATH
245
-
246
- exec 6>&1
247
-
248
- # Open the log real soon, to keep \$[0] and so on meaningful, and to
249
- # report actual input values of CONFIG_FILES etc. instead of their
250
- # values after options handling. Logging --version etc. is OK.
251
- exec 5>>config.log
252
- {
253
- echo
254
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
255
- ## Running $as_me. ##
256
- _ASBOX
257
- } >&5
258
- cat >&5 <<_CSEOF
259
-
260
- This file was extended by $as_me, which was
261
- generated by GNU Autoconf 2.57. Invocation command line was
262
-
263
- CONFIG_FILES = $CONFIG_FILES
264
- CONFIG_HEADERS = $CONFIG_HEADERS
265
- CONFIG_LINKS = $CONFIG_LINKS
266
- CONFIG_COMMANDS = $CONFIG_COMMANDS
267
- $ $0 $@
268
-
269
- _CSEOF
270
- echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
271
- echo >&5
272
- config_files=" Makefile"
273
- config_headers=" config.h"
274
- config_commands=" depfiles"
275
-
276
- ac_cs_usage="\
277
- \`$as_me' instantiates files from templates according to the
278
- current configuration.
279
-
280
- Usage: $0 [OPTIONS] [FILE]...
281
-
282
- -h, --help print this help, then exit
283
- -V, --version print version number, then exit
284
- -q, --quiet do not print progress messages
285
- -d, --debug don't remove temporary files
286
- --recheck update $as_me by reconfiguring in the same conditions
287
- --file=FILE[:TEMPLATE]
288
- instantiate the configuration file FILE
289
- --header=FILE[:TEMPLATE]
290
- instantiate the configuration header FILE
291
-
292
- Configuration files:
293
- $config_files
294
-
295
- Configuration headers:
296
- $config_headers
297
-
298
- Configuration commands:
299
- $config_commands
300
-
301
- Report bugs to <bug-autoconf@gnu.org>."
302
- ac_cs_version="\
303
- config.status
304
- configured by ./configure, generated by GNU Autoconf 2.57,
305
- with options \" 'CXXFLAGS= -fPIC'\"
306
-
307
- Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
308
- Free Software Foundation, Inc.
309
- This config.status script is free software; the Free Software Foundation
310
- gives unlimited permission to copy, distribute and modify it."
311
- srcdir=.
312
- INSTALL="/usr/bin/install -c"
313
- # If no file are specified by the user, then we need to provide default
314
- # value. By we need to know if files were specified by the user.
315
- ac_need_defaults=:
316
- while test $# != 0
317
- do
318
- case $1 in
319
- --*=*)
320
- ac_option=`expr "x$1" : 'x\([^=]*\)='`
321
- ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
322
- ac_shift=:
323
- ;;
324
- -*)
325
- ac_option=$1
326
- ac_optarg=$2
327
- ac_shift=shift
328
- ;;
329
- *) # This is not an option, so the user has probably given explicit
330
- # arguments.
331
- ac_option=$1
332
- ac_need_defaults=false;;
333
- esac
334
-
335
- case $ac_option in
336
- # Handling of the options.
337
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
338
- ac_cs_recheck=: ;;
339
- --version | --vers* | -V )
340
- echo "$ac_cs_version"; exit 0 ;;
341
- --he | --h)
342
- # Conflict between --help and --header
343
- { { echo "$as_me:$LINENO: error: ambiguous option: $1
344
- Try \`$0 --help' for more information." >&5
345
- echo "$as_me: error: ambiguous option: $1
346
- Try \`$0 --help' for more information." >&2;}
347
- { (exit 1); exit 1; }; };;
348
- --help | --hel | -h )
349
- echo "$ac_cs_usage"; exit 0 ;;
350
- --debug | --d* | -d )
351
- debug=: ;;
352
- --file | --fil | --fi | --f )
353
- $ac_shift
354
- CONFIG_FILES="$CONFIG_FILES $ac_optarg"
355
- ac_need_defaults=false;;
356
- --header | --heade | --head | --hea )
357
- $ac_shift
358
- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
359
- ac_need_defaults=false;;
360
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
362
- ac_cs_silent=: ;;
363
-
364
- # This is an error.
365
- -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
366
- Try \`$0 --help' for more information." >&5
367
- echo "$as_me: error: unrecognized option: $1
368
- Try \`$0 --help' for more information." >&2;}
369
- { (exit 1); exit 1; }; } ;;
370
-
371
- *) ac_config_targets="$ac_config_targets $1" ;;
372
-
373
- esac
374
- shift
375
- done
376
-
377
- ac_configure_extra_args=
378
-
379
- if $ac_cs_silent; then
380
- exec 6>/dev/null
381
- ac_configure_extra_args="$ac_configure_extra_args --silent"
382
- fi
383
-
384
- if $ac_cs_recheck; then
385
- echo "running /bin/sh ./configure " 'CXXFLAGS= -fPIC' $ac_configure_extra_args " --no-create --no-recursion" >&6
386
- exec /bin/sh ./configure 'CXXFLAGS= -fPIC' $ac_configure_extra_args --no-create --no-recursion
387
- fi
388
-
389
- #
390
- # INIT-COMMANDS section.
391
- #
392
-
393
- AMDEP_TRUE="" ac_aux_dir="."
394
-
395
- for ac_config_target in $ac_config_targets
396
- do
397
- case "$ac_config_target" in
398
- # Handling of arguments.
399
- "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
400
- "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
401
- "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
402
- *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
403
- echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
404
- { (exit 1); exit 1; }; };;
405
- esac
406
- done
407
-
408
- # If the user did not use the arguments to specify the items to instantiate,
409
- # then the envvar interface is used. Set only those that are not.
410
- # We use the long form for the default assignment because of an extremely
411
- # bizarre bug on SunOS 4.1.3.
412
- if $ac_need_defaults; then
413
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
414
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
415
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
416
- fi
417
-
418
- # Have a temporary directory for convenience. Make it in the build tree
419
- # simply because there is no reason to put it here, and in addition,
420
- # creating and moving files from /tmp can sometimes cause problems.
421
- # Create a temporary directory, and hook for its removal unless debugging.
422
- $debug ||
423
- {
424
- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
425
- trap '{ (exit 1); exit 1; }' 1 2 13 15
426
- }
427
-
428
- # Create a (secure) tmp directory for tmp files.
429
-
430
- {
431
- tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
432
- test -n "$tmp" && test -d "$tmp"
433
- } ||
434
- {
435
- tmp=./confstat$$-$RANDOM
436
- (umask 077 && mkdir $tmp)
437
- } ||
438
- {
439
- echo "$me: cannot create a temporary directory in ." >&2
440
- { (exit 1); exit 1; }
441
- }
442
-
443
-
444
- #
445
- # CONFIG_FILES section.
446
- #
447
-
448
- # No need to generate the scripts if there are no CONFIG_FILES.
449
- # This happens for instance when ./config.status config.h
450
- if test -n "$CONFIG_FILES"; then
451
- # Protect against being on the right side of a sed subst in config.status.
452
- sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
453
- s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
454
- s,@SHELL@,/bin/sh,;t t
455
- s,@PATH_SEPARATOR@,:,;t t
456
- s,@PACKAGE_NAME@,,;t t
457
- s,@PACKAGE_TARNAME@,,;t t
458
- s,@PACKAGE_VERSION@,,;t t
459
- s,@PACKAGE_STRING@,,;t t
460
- s,@PACKAGE_BUGREPORT@,,;t t
461
- s,@exec_prefix@,${prefix},;t t
462
- s,@prefix@,/usr/local,;t t
463
- s,@program_transform_name@,s,x,x,,;t t
464
- s,@bindir@,${exec_prefix}/bin,;t t
465
- s,@sbindir@,${exec_prefix}/sbin,;t t
466
- s,@libexecdir@,${exec_prefix}/libexec,;t t
467
- s,@datadir@,${prefix}/share,;t t
468
- s,@sysconfdir@,${prefix}/etc,;t t
469
- s,@sharedstatedir@,${prefix}/com,;t t
470
- s,@localstatedir@,${prefix}/var,;t t
471
- s,@libdir@,${exec_prefix}/lib,;t t
472
- s,@includedir@,${prefix}/include,;t t
473
- s,@oldincludedir@,/usr/include,;t t
474
- s,@infodir@,${prefix}/info,;t t
475
- s,@mandir@,${prefix}/man,;t t
476
- s,@build_alias@,,;t t
477
- s,@host_alias@,,;t t
478
- s,@target_alias@,,;t t
479
- s,@DEFS@,-DHAVE_CONFIG_H,;t t
480
- s,@ECHO_C@,\c,;t t
481
- s,@ECHO_N@,,;t t
482
- s,@ECHO_T@,,;t t
483
- s,@LIBS@,,;t t
484
- s,@INSTALL_PROGRAM@,${INSTALL},;t t
485
- s,@INSTALL_SCRIPT@,${INSTALL},;t t
486
- s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
487
- s,@CYGPATH_W@,echo,;t t
488
- s,@PACKAGE@,libcharguess,;t t
489
- s,@VERSION@,1.0b,;t t
490
- s,@ACLOCAL@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run aclocal-1.7,;t t
491
- s,@AUTOCONF@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run autoconf,;t t
492
- s,@AUTOMAKE@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run automake-1.7,;t t
493
- s,@AUTOHEADER@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run autoheader,;t t
494
- s,@MAKEINFO@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run makeinfo,;t t
495
- s,@AMTAR@,${SHELL} /Users/hydrus/charguess/ext/libcharguess/cpp/missing --run tar,;t t
496
- s,@install_sh@,/Users/hydrus/charguess/ext/libcharguess/cpp/install-sh,;t t
497
- s,@STRIP@,,;t t
498
- s,@ac_ct_STRIP@,,;t t
499
- s,@INSTALL_STRIP_PROGRAM@,${SHELL} $(install_sh) -c -s,;t t
500
- s,@AWK@,awk,;t t
501
- s,@SET_MAKE@,,;t t
502
- s,@am__leading_dot@,.,;t t
503
- s,@MAINTAINER_MODE_TRUE@,#,;t t
504
- s,@MAINTAINER_MODE_FALSE@,,;t t
505
- s,@MAINT@,#,;t t
506
- s,@CC@,gcc,;t t
507
- s,@CFLAGS@,-g -O2 -Wall,;t t
508
- s,@LDFLAGS@,,;t t
509
- s,@CPPFLAGS@,,;t t
510
- s,@ac_ct_CC@,gcc,;t t
511
- s,@EXEEXT@,,;t t
512
- s,@OBJEXT@,o,;t t
513
- s,@DEPDIR@,.deps,;t t
514
- s,@am__include@,include,;t t
515
- s,@am__quote@,,;t t
516
- s,@AMDEP_TRUE@,,;t t
517
- s,@AMDEP_FALSE@,#,;t t
518
- s,@AMDEPBACKSLASH@,\,;t t
519
- s,@CCDEPMODE@,depmode=gcc3,;t t
520
- s,@am__fastdepCC_TRUE@,,;t t
521
- s,@am__fastdepCC_FALSE@,#,;t t
522
- s,@CPP@,gcc -E,;t t
523
- s,@CXX@,g++,;t t
524
- s,@CXXFLAGS@, -fPIC,;t t
525
- s,@ac_ct_CXX@,g++,;t t
526
- s,@CXXDEPMODE@,depmode=gcc3,;t t
527
- s,@am__fastdepCXX_TRUE@,,;t t
528
- s,@am__fastdepCXX_FALSE@,#,;t t
529
- s,@EGREP@,grep -E,;t t
530
- s,@RANLIB@,ranlib,;t t
531
- s,@ac_ct_RANLIB@,ranlib,;t t
532
- s,@LIBOBJS@,,;t t
533
- s,@LTLIBOBJS@,,;t t
534
- CEOF
535
-
536
- # Split the substitutions into bite-sized pieces for seds with
537
- # small command number limits, like on Digital OSF/1 and HP-UX.
538
- ac_max_sed_lines=48
539
- ac_sed_frag=1 # Number of current file.
540
- ac_beg=1 # First line for current file.
541
- ac_end=$ac_max_sed_lines # Line after last line for current file.
542
- ac_more_lines=:
543
- ac_sed_cmds=
544
- while $ac_more_lines; do
545
- if test $ac_beg -gt 1; then
546
- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
547
- else
548
- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
549
- fi
550
- if test ! -s $tmp/subs.frag; then
551
- ac_more_lines=false
552
- else
553
- # The purpose of the label and of the branching condition is to
554
- # speed up the sed processing (if there are no `@' at all, there
555
- # is no need to browse any of the substitutions).
556
- # These are the two extra sed commands mentioned above.
557
- (echo ':t
558
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
559
- if test -z "$ac_sed_cmds"; then
560
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
561
- else
562
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
563
- fi
564
- ac_sed_frag=`expr $ac_sed_frag + 1`
565
- ac_beg=$ac_end
566
- ac_end=`expr $ac_end + $ac_max_sed_lines`
567
- fi
568
- done
569
- if test -z "$ac_sed_cmds"; then
570
- ac_sed_cmds=cat
571
- fi
572
- fi # test -n "$CONFIG_FILES"
573
-
574
- for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
575
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
576
- case $ac_file in
577
- - | *:- | *:-:* ) # input from stdin
578
- cat >$tmp/stdin
579
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
580
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
581
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
582
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
583
- * ) ac_file_in=$ac_file.in ;;
584
- esac
585
-
586
- # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
587
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
588
- $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
589
- X"$ac_file" : 'X\(//\)[^/]' \| \
590
- X"$ac_file" : 'X\(//\)$' \| \
591
- X"$ac_file" : 'X\(/\)' \| \
592
- . : '\(.\)' 2>/dev/null ||
593
- echo X"$ac_file" |
594
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
595
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
596
- /^X\(\/\/\)$/{ s//\1/; q; }
597
- /^X\(\/\).*/{ s//\1/; q; }
598
- s/.*/./; q'`
599
- { if $as_mkdir_p; then
600
- mkdir -p "$ac_dir"
601
- else
602
- as_dir="$ac_dir"
603
- as_dirs=
604
- while test ! -d "$as_dir"; do
605
- as_dirs="$as_dir $as_dirs"
606
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
607
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
608
- X"$as_dir" : 'X\(//\)[^/]' \| \
609
- X"$as_dir" : 'X\(//\)$' \| \
610
- X"$as_dir" : 'X\(/\)' \| \
611
- . : '\(.\)' 2>/dev/null ||
612
- echo X"$as_dir" |
613
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
614
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
615
- /^X\(\/\/\)$/{ s//\1/; q; }
616
- /^X\(\/\).*/{ s//\1/; q; }
617
- s/.*/./; q'`
618
- done
619
- test ! -n "$as_dirs" || mkdir $as_dirs
620
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
621
- echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
622
- { (exit 1); exit 1; }; }; }
623
-
624
- ac_builddir=.
625
-
626
- if test "$ac_dir" != .; then
627
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
628
- # A "../" for each directory in $ac_dir_suffix.
629
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
630
- else
631
- ac_dir_suffix= ac_top_builddir=
632
- fi
633
-
634
- case $srcdir in
635
- .) # No --srcdir option. We are building in place.
636
- ac_srcdir=.
637
- if test -z "$ac_top_builddir"; then
638
- ac_top_srcdir=.
639
- else
640
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
641
- fi ;;
642
- [\\/]* | ?:[\\/]* ) # Absolute path.
643
- ac_srcdir=$srcdir$ac_dir_suffix;
644
- ac_top_srcdir=$srcdir ;;
645
- *) # Relative path.
646
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
647
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
648
- esac
649
- # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
650
- # absolute.
651
- ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
652
- ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
653
- ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
654
- ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
655
-
656
-
657
- case $INSTALL in
658
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
659
- *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
660
- esac
661
-
662
- if test x"$ac_file" != x-; then
663
- { echo "$as_me:$LINENO: creating $ac_file" >&5
664
- echo "$as_me: creating $ac_file" >&6;}
665
- rm -f "$ac_file"
666
- fi
667
- # Let's still pretend it is `configure' which instantiates (i.e., don't
668
- # use $as_me), people would be surprised to read:
669
- # /* config.h. Generated by config.status. */
670
- if test x"$ac_file" = x-; then
671
- configure_input=
672
- else
673
- configure_input="$ac_file. "
674
- fi
675
- configure_input=$configure_input"Generated from `echo $ac_file_in |
676
- sed 's,.*/,,'` by configure."
677
-
678
- # First look for the input files in the build tree, otherwise in the
679
- # src tree.
680
- ac_file_inputs=`IFS=:
681
- for f in $ac_file_in; do
682
- case $f in
683
- -) echo $tmp/stdin ;;
684
- [\\/$]*)
685
- # Absolute (can't be DOS-style, as IFS=:)
686
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
687
- echo "$as_me: error: cannot find input file: $f" >&2;}
688
- { (exit 1); exit 1; }; }
689
- echo $f;;
690
- *) # Relative
691
- if test -f "$f"; then
692
- # Build tree
693
- echo $f
694
- elif test -f "$srcdir/$f"; then
695
- # Source tree
696
- echo $srcdir/$f
697
- else
698
- # /dev/null tree
699
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
700
- echo "$as_me: error: cannot find input file: $f" >&2;}
701
- { (exit 1); exit 1; }; }
702
- fi;;
703
- esac
704
- done` || { (exit 1); exit 1; }
705
- sed "/^[ ]*VPATH[ ]*=/{
706
- s/:*\$(srcdir):*/:/;
707
- s/:*\${srcdir}:*/:/;
708
- s/:*@srcdir@:*/:/;
709
- s/^\([^=]*=[ ]*\):*/\1/;
710
- s/:*$//;
711
- s/^[^=]*=[ ]*$//;
712
- }
713
-
714
- :t
715
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
716
- s,@configure_input@,$configure_input,;t t
717
- s,@srcdir@,$ac_srcdir,;t t
718
- s,@abs_srcdir@,$ac_abs_srcdir,;t t
719
- s,@top_srcdir@,$ac_top_srcdir,;t t
720
- s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
721
- s,@builddir@,$ac_builddir,;t t
722
- s,@abs_builddir@,$ac_abs_builddir,;t t
723
- s,@top_builddir@,$ac_top_builddir,;t t
724
- s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
725
- s,@INSTALL@,$ac_INSTALL,;t t
726
- " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
727
- rm -f $tmp/stdin
728
- if test x"$ac_file" != x-; then
729
- mv $tmp/out $ac_file
730
- else
731
- cat $tmp/out
732
- rm -f $tmp/out
733
- fi
734
-
735
- done
736
-
737
- #
738
- # CONFIG_HEADER section.
739
- #
740
-
741
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
742
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
743
- #
744
- # ac_d sets the value in "#define NAME VALUE" lines.
745
- ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
746
- ac_dB='[ ].*$,\1#\2'
747
- ac_dC=' '
748
- ac_dD=',;t'
749
- # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
750
- ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
751
- ac_uB='$,\1#\2define\3'
752
- ac_uC=' '
753
- ac_uD=',;t'
754
-
755
- for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
756
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
757
- case $ac_file in
758
- - | *:- | *:-:* ) # input from stdin
759
- cat >$tmp/stdin
760
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
761
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
762
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
763
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
764
- * ) ac_file_in=$ac_file.in ;;
765
- esac
766
-
767
- test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
768
- echo "$as_me: creating $ac_file" >&6;}
769
-
770
- # First look for the input files in the build tree, otherwise in the
771
- # src tree.
772
- ac_file_inputs=`IFS=:
773
- for f in $ac_file_in; do
774
- case $f in
775
- -) echo $tmp/stdin ;;
776
- [\\/$]*)
777
- # Absolute (can't be DOS-style, as IFS=:)
778
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
779
- echo "$as_me: error: cannot find input file: $f" >&2;}
780
- { (exit 1); exit 1; }; }
781
- echo $f;;
782
- *) # Relative
783
- if test -f "$f"; then
784
- # Build tree
785
- echo $f
786
- elif test -f "$srcdir/$f"; then
787
- # Source tree
788
- echo $srcdir/$f
789
- else
790
- # /dev/null tree
791
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
792
- echo "$as_me: error: cannot find input file: $f" >&2;}
793
- { (exit 1); exit 1; }; }
794
- fi;;
795
- esac
796
- done` || { (exit 1); exit 1; }
797
- # Remove the trailing spaces.
798
- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
799
-
800
- # Handle all the #define templates only if necessary.
801
- if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then
802
- # If there are no defines, we may have an empty if/fi
803
- :
804
- cat >$tmp/defines.sed <<CEOF
805
- /^[ ]*#[ ]*define/!b
806
- t clr
807
- : clr
808
- ${ac_dA}PACKAGE_NAME${ac_dB}PACKAGE_NAME${ac_dC}""${ac_dD}
809
- ${ac_dA}PACKAGE_TARNAME${ac_dB}PACKAGE_TARNAME${ac_dC}""${ac_dD}
810
- ${ac_dA}PACKAGE_VERSION${ac_dB}PACKAGE_VERSION${ac_dC}""${ac_dD}
811
- ${ac_dA}PACKAGE_STRING${ac_dB}PACKAGE_STRING${ac_dC}""${ac_dD}
812
- ${ac_dA}PACKAGE_BUGREPORT${ac_dB}PACKAGE_BUGREPORT${ac_dC}""${ac_dD}
813
- ${ac_dA}PACKAGE${ac_dB}PACKAGE${ac_dC}"libcharguess"${ac_dD}
814
- ${ac_dA}VERSION${ac_dB}VERSION${ac_dC}"1.0b"${ac_dD}
815
- ${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
816
- ${ac_dA}PACKAGE_SOURCE_DIR${ac_dB}PACKAGE_SOURCE_DIR${ac_dC}"/Users/hydrus/charguess/ext/libcharguess/cpp"${ac_dD}
817
- CEOF
818
- sed -f $tmp/defines.sed $tmp/in >$tmp/out
819
- rm -f $tmp/in
820
- mv $tmp/out $tmp/in
821
-
822
- fi # grep
823
-
824
- # Handle all the #undef templates
825
- cat >$tmp/undefs.sed <<CEOF
826
- /^[ ]*#[ ]*undef/!b
827
- t clr
828
- : clr
829
- ${ac_uA}PACKAGE_NAME${ac_uB}PACKAGE_NAME${ac_uC}""${ac_uD}
830
- ${ac_uA}PACKAGE_TARNAME${ac_uB}PACKAGE_TARNAME${ac_uC}""${ac_uD}
831
- ${ac_uA}PACKAGE_VERSION${ac_uB}PACKAGE_VERSION${ac_uC}""${ac_uD}
832
- ${ac_uA}PACKAGE_STRING${ac_uB}PACKAGE_STRING${ac_uC}""${ac_uD}
833
- ${ac_uA}PACKAGE_BUGREPORT${ac_uB}PACKAGE_BUGREPORT${ac_uC}""${ac_uD}
834
- ${ac_uA}PACKAGE${ac_uB}PACKAGE${ac_uC}"libcharguess"${ac_uD}
835
- ${ac_uA}VERSION${ac_uB}VERSION${ac_uC}"1.0b"${ac_uD}
836
- ${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
837
- ${ac_uA}PACKAGE_SOURCE_DIR${ac_uB}PACKAGE_SOURCE_DIR${ac_uC}"/Users/hydrus/charguess/ext/libcharguess/cpp"${ac_uD}
838
- s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
839
- CEOF
840
- sed -f $tmp/undefs.sed $tmp/in >$tmp/out
841
- rm -f $tmp/in
842
- mv $tmp/out $tmp/in
843
-
844
- # Let's still pretend it is `configure' which instantiates (i.e., don't
845
- # use $as_me), people would be surprised to read:
846
- # /* config.h. Generated by config.status. */
847
- if test x"$ac_file" = x-; then
848
- echo "/* Generated by configure. */" >$tmp/config.h
849
- else
850
- echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
851
- fi
852
- cat $tmp/in >>$tmp/config.h
853
- rm -f $tmp/in
854
- if test x"$ac_file" != x-; then
855
- if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
856
- { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
857
- echo "$as_me: $ac_file is unchanged" >&6;}
858
- else
859
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
860
- $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
- X"$ac_file" : 'X\(//\)[^/]' \| \
862
- X"$ac_file" : 'X\(//\)$' \| \
863
- X"$ac_file" : 'X\(/\)' \| \
864
- . : '\(.\)' 2>/dev/null ||
865
- echo X"$ac_file" |
866
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
- /^X\(\/\/\)$/{ s//\1/; q; }
869
- /^X\(\/\).*/{ s//\1/; q; }
870
- s/.*/./; q'`
871
- { if $as_mkdir_p; then
872
- mkdir -p "$ac_dir"
873
- else
874
- as_dir="$ac_dir"
875
- as_dirs=
876
- while test ! -d "$as_dir"; do
877
- as_dirs="$as_dir $as_dirs"
878
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
879
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
880
- X"$as_dir" : 'X\(//\)[^/]' \| \
881
- X"$as_dir" : 'X\(//\)$' \| \
882
- X"$as_dir" : 'X\(/\)' \| \
883
- . : '\(.\)' 2>/dev/null ||
884
- echo X"$as_dir" |
885
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
886
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
887
- /^X\(\/\/\)$/{ s//\1/; q; }
888
- /^X\(\/\).*/{ s//\1/; q; }
889
- s/.*/./; q'`
890
- done
891
- test ! -n "$as_dirs" || mkdir $as_dirs
892
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
893
- echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
894
- { (exit 1); exit 1; }; }; }
895
-
896
- rm -f $ac_file
897
- mv $tmp/config.h $ac_file
898
- fi
899
- else
900
- cat $tmp/config.h
901
- rm -f $tmp/config.h
902
- fi
903
- # Compute $ac_file's index in $config_headers.
904
- _am_stamp_count=1
905
- for _am_header in $config_headers :; do
906
- case $_am_header in
907
- $ac_file | $ac_file:* )
908
- break ;;
909
- * )
910
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
911
- esac
912
- done
913
- echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
914
- $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
915
- X$ac_file : 'X\(//\)[^/]' \| \
916
- X$ac_file : 'X\(//\)$' \| \
917
- X$ac_file : 'X\(/\)' \| \
918
- . : '\(.\)' 2>/dev/null ||
919
- echo X$ac_file |
920
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
921
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
922
- /^X\(\/\/\)$/{ s//\1/; q; }
923
- /^X\(\/\).*/{ s//\1/; q; }
924
- s/.*/./; q'`/stamp-h$_am_stamp_count
925
- done
926
-
927
- #
928
- # CONFIG_COMMANDS section.
929
- #
930
- for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
931
- ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
932
- ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
933
- ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
934
- $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
935
- X"$ac_dest" : 'X\(//\)[^/]' \| \
936
- X"$ac_dest" : 'X\(//\)$' \| \
937
- X"$ac_dest" : 'X\(/\)' \| \
938
- . : '\(.\)' 2>/dev/null ||
939
- echo X"$ac_dest" |
940
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
941
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
942
- /^X\(\/\/\)$/{ s//\1/; q; }
943
- /^X\(\/\).*/{ s//\1/; q; }
944
- s/.*/./; q'`
945
- ac_builddir=.
946
-
947
- if test "$ac_dir" != .; then
948
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
949
- # A "../" for each directory in $ac_dir_suffix.
950
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
951
- else
952
- ac_dir_suffix= ac_top_builddir=
953
- fi
954
-
955
- case $srcdir in
956
- .) # No --srcdir option. We are building in place.
957
- ac_srcdir=.
958
- if test -z "$ac_top_builddir"; then
959
- ac_top_srcdir=.
960
- else
961
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
962
- fi ;;
963
- [\\/]* | ?:[\\/]* ) # Absolute path.
964
- ac_srcdir=$srcdir$ac_dir_suffix;
965
- ac_top_srcdir=$srcdir ;;
966
- *) # Relative path.
967
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
968
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
969
- esac
970
- # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
971
- # absolute.
972
- ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
973
- ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
974
- ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
975
- ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
976
-
977
-
978
- { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
979
- echo "$as_me: executing $ac_dest commands" >&6;}
980
- case $ac_dest in
981
- depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
982
- # Strip MF so we end up with the name of the file.
983
- mf=`echo "$mf" | sed -e 's/:.*$//'`
984
- # Check whether this is an Automake generated Makefile or not.
985
- # We used to match only the files named `Makefile.in', but
986
- # some people rename them; so instead we look at the file content.
987
- # Grep'ing the first line is not enough: some people post-process
988
- # each Makefile.in and add a new line on top of each file to say so.
989
- # So let's grep whole file.
990
- if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
991
- dirpart=`(dirname "$mf") 2>/dev/null ||
992
- $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
993
- X"$mf" : 'X\(//\)[^/]' \| \
994
- X"$mf" : 'X\(//\)$' \| \
995
- X"$mf" : 'X\(/\)' \| \
996
- . : '\(.\)' 2>/dev/null ||
997
- echo X"$mf" |
998
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
999
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1000
- /^X\(\/\/\)$/{ s//\1/; q; }
1001
- /^X\(\/\).*/{ s//\1/; q; }
1002
- s/.*/./; q'`
1003
- else
1004
- continue
1005
- fi
1006
- grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
1007
- # Extract the definition of DEP_FILES from the Makefile without
1008
- # running `make'.
1009
- DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1010
- test -z "$DEPDIR" && continue
1011
- # When using ansi2knr, U may be empty or an underscore; expand it
1012
- U=`sed -n -e '/^U = / s///p' < "$mf"`
1013
- test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1014
- # We invoke sed twice because it is the simplest approach to
1015
- # changing $(DEPDIR) to its actual value in the expansion.
1016
- for file in `sed -n -e '
1017
- /^DEP_FILES = .*\\\\$/ {
1018
- s/^DEP_FILES = //
1019
- :loop
1020
- s/\\\\$//
1021
- p
1022
- n
1023
- /\\\\$/ b loop
1024
- p
1025
- }
1026
- /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1027
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1028
- # Make sure the directory exists.
1029
- test -f "$dirpart/$file" && continue
1030
- fdir=`(dirname "$file") 2>/dev/null ||
1031
- $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1032
- X"$file" : 'X\(//\)[^/]' \| \
1033
- X"$file" : 'X\(//\)$' \| \
1034
- X"$file" : 'X\(/\)' \| \
1035
- . : '\(.\)' 2>/dev/null ||
1036
- echo X"$file" |
1037
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1038
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1039
- /^X\(\/\/\)$/{ s//\1/; q; }
1040
- /^X\(\/\).*/{ s//\1/; q; }
1041
- s/.*/./; q'`
1042
- { if $as_mkdir_p; then
1043
- mkdir -p $dirpart/$fdir
1044
- else
1045
- as_dir=$dirpart/$fdir
1046
- as_dirs=
1047
- while test ! -d "$as_dir"; do
1048
- as_dirs="$as_dir $as_dirs"
1049
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
1050
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1051
- X"$as_dir" : 'X\(//\)[^/]' \| \
1052
- X"$as_dir" : 'X\(//\)$' \| \
1053
- X"$as_dir" : 'X\(/\)' \| \
1054
- . : '\(.\)' 2>/dev/null ||
1055
- echo X"$as_dir" |
1056
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1057
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1058
- /^X\(\/\/\)$/{ s//\1/; q; }
1059
- /^X\(\/\).*/{ s//\1/; q; }
1060
- s/.*/./; q'`
1061
- done
1062
- test ! -n "$as_dirs" || mkdir $as_dirs
1063
- fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
1064
- echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
1065
- { (exit 1); exit 1; }; }; }
1066
-
1067
- # echo "creating $dirpart/$file"
1068
- echo '# dummy' > "$dirpart/$file"
1069
- done
1070
- done
1071
- ;;
1072
- esac
1073
- done
1074
-
1075
- { (exit 0); exit 0; }