~ubuntu-branches/ubuntu/trusty/libdebian-installer/trusty-updates

1 by Joey Hess
* Joey Hess
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
3
# Generated by GNU Autoconf 2.67 for libdebian-installer 0.77.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
4
#
1 by Joey Hess
* Joey Hess
5
#
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
27 by Colin Watson
Reupload with the right autotools bits.
8
# Foundation, Inc.
9
#
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10
#
1 by Joey Hess
* Joey Hess
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
1 by Joey Hess
* Joey Hess
16
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Joey Hess
* Joey Hess
20
  emulate sh
21
  NULLCMD=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Joey Hess
* Joey Hess
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
25
  setopt NO_GLOB_SUBST
26
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
32
esac
1 by Joey Hess
* Joey Hess
33
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
34
35
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
60
      case $arg in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
81
fi
82
1 by Joey Hess
* Joey Hess
83
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
92
case $0 in #((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
93
  *[\\/]* ) as_myself=$0 ;;
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
for as_dir in $PATH
96
do
97
  IFS=$as_save_IFS
98
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
101
IFS=$as_save_IFS
102
103
     ;;
104
esac
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
108
  as_myself=$0
109
fi
110
if test ! -f "$as_myself"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
112
  exit 1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
113
fi
114
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there.  '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
122
done
1 by Joey Hess
* Joey Hess
123
PS1='$ '
124
PS2='> '
125
PS4='+ '
126
127
# NLS nuisances.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
128
LC_ALL=C
129
export LC_ALL
130
LANGUAGE=C
131
export LANGUAGE
1 by Joey Hess
* Joey Hess
132
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
133
# CDPATH.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
135
136
if test "x$CONFIG_SHELL" = x; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
  emulate sh
139
  NULLCMD=:
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
  # is contrary to our usage.  Disable this feature.
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
  setopt NO_GLOB_SUBST
144
else
145
  case \`(set -o) 2>/dev/null\` in #(
146
  *posix*) :
147
    set -o posix ;; #(
148
  *) :
149
     ;;
150
esac
151
fi
152
"
153
  as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
158
159
exitcode=0
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166
else
167
  exitcode=1; echo positional parameters were not saved.
168
fi
169
test x\$exitcode = x0 || exit 1"
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
  if (eval "$as_required") 2>/dev/null; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
176
  as_have_required=yes
177
else
178
  as_have_required=no
179
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182
else
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184
as_found=false
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1 by Joey Hess
* Joey Hess
186
do
187
  IFS=$as_save_IFS
188
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
189
  as_found=:
190
  case $as_dir in #(
1 by Joey Hess
* Joey Hess
191
	 /*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
192
	   for as_base in sh bash ksh sh5; do
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
193
	     # Try only shells that exist, to save several forks.
194
	     as_shell=$as_dir/$as_base
195
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  CONFIG_SHELL=$as_shell as_have_required=yes
198
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  break 2
200
fi
201
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
202
	   done;;
203
       esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
204
  as_found=false
1 by Joey Hess
* Joey Hess
205
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$SHELL as_have_required=yes
209
fi; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
210
IFS=$as_save_IFS
211
212
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
213
      if test "x$CONFIG_SHELL" != x; then :
214
  # We cannot yet assume a decent shell, so we have to provide a
215
	# neutralization value for shells without unset; and this also
216
	# works around shells that cannot unset nonexistent variables.
217
	BASH_ENV=/dev/null
218
	ENV=/dev/null
219
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
220
	export CONFIG_SHELL
221
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
222
fi
223
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
224
    if test x$as_have_required = xno; then :
225
  $as_echo "$0: This script requires a shell more modern than all"
226
  $as_echo "$0: the shells that I found on your system."
227
  if test x${ZSH_VERSION+set} = xset ; then
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
  else
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
235
  fi
236
  exit 1
237
fi
238
fi
239
fi
240
SHELL=${CONFIG_SHELL-/bin/sh}
241
export SHELL
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
245
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
249
# as_fn_unset VAR
250
# ---------------
251
# Portably unset VAR.
252
as_fn_unset ()
253
{
254
  { eval $1=; unset $1;}
255
}
256
as_unset=as_fn_unset
257
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
261
as_fn_set_status ()
262
{
263
  return $1
264
} # as_fn_set_status
265
266
# as_fn_exit STATUS
267
# -----------------
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269
as_fn_exit ()
270
{
271
  set +e
272
  as_fn_set_status $1
273
  exit $1
274
} # as_fn_exit
275
276
# as_fn_mkdir_p
277
# -------------
278
# Create "$as_dir" as a directory, including parents if necessary.
279
as_fn_mkdir_p ()
280
{
281
282
  case $as_dir in #(
283
  -*) as_dir=./$as_dir;;
284
  esac
285
  test -d "$as_dir" || eval $as_mkdir_p || {
286
    as_dirs=
287
    while :; do
288
      case $as_dir in #(
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290
      *) as_qdir=$as_dir;;
291
      esac
292
      as_dirs="'$as_qdir' $as_dirs"
293
      as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
	 X"$as_dir" : 'X\(//\)[^/]' \| \
296
	 X"$as_dir" : 'X\(//\)$' \| \
297
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300
	    s//\1/
301
	    q
302
	  }
303
	  /^X\(\/\/\)[^/].*/{
304
	    s//\1/
305
	    q
306
	  }
307
	  /^X\(\/\/\)$/{
308
	    s//\1/
309
	    q
310
	  }
311
	  /^X\(\/\).*/{
312
	    s//\1/
313
	    q
314
	  }
315
	  s/.*/./; q'`
316
      test -d "$as_dir" && break
317
    done
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
319
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
320
321
322
} # as_fn_mkdir_p
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
328
# implementations.
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
  eval 'as_fn_append ()
331
  {
332
    eval $1+=\$2
333
  }'
334
else
335
  as_fn_append ()
336
  {
337
    eval $1=\$$1\$2
338
  }
339
fi # as_fn_append
340
341
# as_fn_arith ARG...
342
# ------------------
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347
  eval 'as_fn_arith ()
348
  {
349
    as_val=$(( $* ))
350
  }'
351
else
352
  as_fn_arith ()
353
  {
354
    as_val=`expr "$@" || test $? -eq 1`
355
  }
356
fi # as_fn_arith
357
358
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
359
# as_fn_error STATUS ERROR [LINENO LOG_FD]
360
# ----------------------------------------
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
363
# script with STATUS, using 1 if that was 0.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
364
as_fn_error ()
365
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
366
  as_status=$1; test $as_status -eq 0 && as_status=1
367
  if test "$4"; then
368
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
370
  fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
371
  $as_echo "$as_me: error: $2" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
372
  as_fn_exit $as_status
373
} # as_fn_error
374
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377
  as_expr=expr
378
else
379
  as_expr=false
380
fi
381
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383
  as_basename=basename
384
else
385
  as_basename=false
386
fi
387
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389
  as_dirname=dirname
390
else
391
  as_dirname=false
392
fi
393
394
as_me=`$as_basename -- "$0" ||
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396
	 X"$0" : 'X\(//\)$' \| \
397
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398
$as_echo X/"$0" |
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
400
	    s//\1/
401
	    q
402
	  }
403
	  /^X\/\(\/\/\)$/{
404
	    s//\1/
405
	    q
406
	  }
407
	  /^X\/\(\/\).*/{
408
	    s//\1/
409
	    q
410
	  }
411
	  s/.*/./; q'`
412
413
# Avoid depending upon Character Ranges.
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417
as_cr_digits='0123456789'
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
426
  sed -n '
427
    p
428
    /[$]LINENO/=
429
  ' <$as_myself |
1 by Joey Hess
* Joey Hess
430
    sed '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
431
      s/[$]LINENO.*/&-/
432
      t lineno
433
      b
434
      :lineno
1 by Joey Hess
* Joey Hess
435
      N
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
436
      :loop
437
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1 by Joey Hess
* Joey Hess
438
      t loop
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
439
      s/-\n.*//
1 by Joey Hess
* Joey Hess
440
    ' >$as_me.lineno &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
441
  chmod +x "$as_me.lineno" ||
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1 by Joey Hess
* Joey Hess
443
444
  # Don't try to exec as it changes $[0], causing all sort of problems
445
  # (the dirname of $[0] is not the place where we might find the
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
446
  # original and so on.  Autoconf is especially sensitive to this).
447
  . "./$as_me.lineno"
1 by Joey Hess
* Joey Hess
448
  # Exit status is that of the last command.
449
  exit
450
}
451
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
452
ECHO_C= ECHO_N= ECHO_T=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
453
case `echo -n x` in #(((((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
454
-n*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
455
  case `echo 'xy\c'` in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
456
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
457
  xy)  ECHO_C='\c';;
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459
       ECHO_T='	';;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
460
  esac;;
461
*)
462
  ECHO_N='-n';;
1 by Joey Hess
* Joey Hess
463
esac
464
465
rm -f conf$$ conf$$.exe conf$$.file
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
466
if test -d conf$$.dir; then
467
  rm -f conf$$.dir/conf$$.file
468
else
469
  rm -f conf$$.dir
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
470
  mkdir conf$$.dir 2>/dev/null
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
471
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
472
if (echo >conf$$.file) 2>/dev/null; then
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
474
    as_ln_s='ln -s'
475
    # ... but there are two gotchas:
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478
    # In both cases, we have to default to `cp -p'.
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480
      as_ln_s='cp -p'
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
482
    as_ln_s=ln
483
  else
1 by Joey Hess
* Joey Hess
484
    as_ln_s='cp -p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
485
  fi
1 by Joey Hess
* Joey Hess
486
else
487
  as_ln_s='cp -p'
488
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490
rmdir conf$$.dir 2>/dev/null
1 by Joey Hess
* Joey Hess
491
492
if mkdir -p . 2>/dev/null; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
493
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Joey Hess
* Joey Hess
494
else
495
  test -d ./-p && rmdir ./-p
496
  as_mkdir_p=false
497
fi
498
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
499
if test -x / >/dev/null 2>&1; then
500
  as_test_x='test -x'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
501
else
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
502
  if ls -dL / >/dev/null 2>&1; then
503
    as_ls_L_option=L
504
  else
505
    as_ls_L_option=
506
  fi
507
  as_test_x='
508
    eval sh -c '\''
509
      if test -d "$1"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
510
	test -d "$1/.";
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
511
      else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
512
	case $1 in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
513
	-*)set "./$1";;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
514
	esac;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
515
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
516
	???[sx]*):;;*)false;;esac;fi
517
    '\'' sh
518
  '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
519
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
520
as_executable_p=$as_test_x
1 by Joey Hess
* Joey Hess
521
522
# Sed expression to map a string onto a valid CPP name.
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525
# Sed expression to map a string onto a valid variable name.
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530
# Check that we are running under the correct shell.
531
SHELL=${CONFIG_SHELL-/bin/sh}
532
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
533
case X$lt_ECHO in
1 by Joey Hess
* Joey Hess
534
X*--fallback-echo)
535
  # Remove one level of quotation (which was required for Make).
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
536
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
1 by Joey Hess
* Joey Hess
537
  ;;
538
esac
539
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
540
ECHO=${lt_ECHO-echo}
1 by Joey Hess
* Joey Hess
541
if test "X$1" = X--no-reexec; then
542
  # Discard the --no-reexec flag, and continue.
543
  shift
544
elif test "X$1" = X--fallback-echo; then
545
  # Avoid inline document here, it may be left over
546
  :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
547
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548
  # Yippee, $ECHO works!
1 by Joey Hess
* Joey Hess
549
  :
550
else
551
  # Restart under the correct shell.
552
  exec $SHELL "$0" --no-reexec ${1+"$@"}
553
fi
554
555
if test "X$1" = X--fallback-echo; then
556
  # used as fallback echo
557
  shift
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
558
  cat <<_LT_EOF
1 by Joey Hess
* Joey Hess
559
$*
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
560
_LT_EOF
1 by Joey Hess
* Joey Hess
561
  exit 0
562
fi
563
564
# The HP-UX ksh and POSIX shell print the target directory to stdout
565
# if CDPATH is set.
3 by Colin Watson, Sven Luther
[ Sven Luther ]
566
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1 by Joey Hess
* Joey Hess
567
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
568
if test -z "$lt_ECHO"; then
569
  if test "X${echo_test_string+set}" != Xset; then
570
    # find a string as large as possible, as long as the shell can cope with it
571
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575
      then
576
        break
577
      fi
578
    done
579
  fi
580
581
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583
     test "X$echo_testing_string" = "X$echo_test_string"; then
584
    :
585
  else
586
    # The Solaris, AIX, and Digital Unix default echo programs unquote
587
    # backslashes.  This makes it impossible to quote backslashes using
588
    #   echo "$something" | sed 's/\\/\\\\/g'
589
    #
590
    # So, first we look for a working echo in the user's PATH.
591
592
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593
    for dir in $PATH /usr/ucb; do
594
      IFS="$lt_save_ifs"
595
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598
         test "X$echo_testing_string" = "X$echo_test_string"; then
599
        ECHO="$dir/echo"
600
        break
601
      fi
602
    done
1 by Joey Hess
* Joey Hess
603
    IFS="$lt_save_ifs"
604
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
605
    if test "X$ECHO" = Xecho; then
606
      # We didn't find a better echo, so look for alternatives.
607
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609
         test "X$echo_testing_string" = "X$echo_test_string"; then
610
        # This shell has a builtin print -r that does the trick.
611
        ECHO='print -r'
612
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614
        # If we have ksh, try running configure again with it.
615
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616
        export ORIGINAL_CONFIG_SHELL
617
        CONFIG_SHELL=/bin/ksh
618
        export CONFIG_SHELL
619
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1 by Joey Hess
* Joey Hess
620
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
621
        # Try using printf.
622
        ECHO='printf %s\n'
623
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625
	   test "X$echo_testing_string" = "X$echo_test_string"; then
626
	  # Cool, printf works
627
	  :
628
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629
	     test "X$echo_testing_string" = 'X\t' &&
630
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631
	     test "X$echo_testing_string" = "X$echo_test_string"; then
632
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633
	  export CONFIG_SHELL
634
	  SHELL="$CONFIG_SHELL"
635
	  export SHELL
636
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638
	     test "X$echo_testing_string" = 'X\t' &&
639
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640
	     test "X$echo_testing_string" = "X$echo_test_string"; then
641
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642
        else
643
	  # maybe with a smaller string...
644
	  prev=:
645
646
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648
	    then
649
	      break
650
	    fi
651
	    prev="$cmd"
652
	  done
653
654
	  if test "$prev" != 'sed 50q "$0"'; then
655
	    echo_test_string=`eval $prev`
656
	    export echo_test_string
657
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658
	  else
659
	    # Oops.  We lost completely, so just stick with echo.
660
	    ECHO=echo
1 by Joey Hess
* Joey Hess
661
	  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
662
        fi
1 by Joey Hess
* Joey Hess
663
      fi
664
    fi
665
  fi
666
fi
667
668
# Copy echo and quote the copy suitably for passing to libtool from
669
# the Makefile, instead of quoting the original, which is used later.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
670
lt_ECHO=$ECHO
671
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1 by Joey Hess
* Joey Hess
673
fi
674
675
676
677
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
678
test -n "$DJDIR" || exec 7<&0 </dev/null
679
exec 6>&1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
680
1 by Joey Hess
* Joey Hess
681
# Name of the host.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
682
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1 by Joey Hess
* Joey Hess
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686
#
687
# Initializations.
688
#
689
ac_default_prefix=/usr/local
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
690
ac_clean_files=
1 by Joey Hess
* Joey Hess
691
ac_config_libobj_dir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
692
LIBOBJS=
1 by Joey Hess
* Joey Hess
693
cross_compiling=no
694
subdirs=
695
MFLAGS=
696
MAKEFLAGS=
697
698
# Identity of this package.
699
PACKAGE_NAME='libdebian-installer'
700
PACKAGE_TARNAME='libdebian-installer'
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
701
PACKAGE_VERSION='0.77'
702
PACKAGE_STRING='libdebian-installer 0.77'
1 by Joey Hess
* Joey Hess
703
PACKAGE_BUGREPORT=''
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
704
PACKAGE_URL=''
1 by Joey Hess
* Joey Hess
705
706
# Factoring default headers for most tests.
707
ac_includes_default="\
708
#include <stdio.h>
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
709
#ifdef HAVE_SYS_TYPES_H
1 by Joey Hess
* Joey Hess
710
# include <sys/types.h>
711
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
712
#ifdef HAVE_SYS_STAT_H
1 by Joey Hess
* Joey Hess
713
# include <sys/stat.h>
714
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
715
#ifdef STDC_HEADERS
1 by Joey Hess
* Joey Hess
716
# include <stdlib.h>
717
# include <stddef.h>
718
#else
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
719
# ifdef HAVE_STDLIB_H
1 by Joey Hess
* Joey Hess
720
#  include <stdlib.h>
721
# endif
722
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
723
#ifdef HAVE_STRING_H
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1 by Joey Hess
* Joey Hess
725
#  include <memory.h>
726
# endif
727
# include <string.h>
728
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
729
#ifdef HAVE_STRINGS_H
1 by Joey Hess
* Joey Hess
730
# include <strings.h>
731
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
732
#ifdef HAVE_INTTYPES_H
1 by Joey Hess
* Joey Hess
733
# include <inttypes.h>
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
734
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
735
#ifdef HAVE_STDINT_H
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
736
# include <stdint.h>
1 by Joey Hess
* Joey Hess
737
#endif
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
738
#ifdef HAVE_UNISTD_H
1 by Joey Hess
* Joey Hess
739
# include <unistd.h>
740
#endif"
741
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
742
ac_subst_vars='am__EXEEXT_FALSE
743
am__EXEEXT_TRUE
744
LTLIBOBJS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
745
LIBOBJS
746
SUBARCH_SYSTEM
747
LIBRARY_VERSION_MAJOR
748
LIBRARY_VERSION_LIBTOOL
749
DOXYGEN
750
CPP
751
OTOOL64
752
OTOOL
753
LIPO
754
NMEDIT
755
DSYMUTIL
756
lt_ECHO
757
RANLIB
758
AR
759
OBJDUMP
760
LN_S
761
NM
762
ac_ct_DUMPBIN
763
DUMPBIN
764
LD
765
FGREP
766
EGREP
767
GREP
768
SED
769
host_os
770
host_vendor
771
host_cpu
772
host
773
build_os
774
build_vendor
775
build_cpu
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
776
build
777
LIBTOOL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
778
am__fastdepCC_FALSE
779
am__fastdepCC_TRUE
780
CCDEPMODE
781
AMDEPBACKSLASH
782
AMDEP_FALSE
783
AMDEP_TRUE
784
am__quote
785
am__include
786
DEPDIR
787
OBJEXT
788
EXEEXT
789
ac_ct_CC
790
CPPFLAGS
791
LDFLAGS
792
CFLAGS
793
CC
794
MAINT
795
MAINTAINER_MODE_FALSE
796
MAINTAINER_MODE_TRUE
797
am__untar
798
am__tar
799
AMTAR
800
am__leading_dot
801
SET_MAKE
802
AWK
803
mkdir_p
804
MKDIR_P
805
INSTALL_STRIP_PROGRAM
806
STRIP
807
install_sh
808
MAKEINFO
809
AUTOHEADER
810
AUTOMAKE
811
AUTOCONF
812
ACLOCAL
813
VERSION
814
PACKAGE
815
CYGPATH_W
816
am__isrc
817
INSTALL_DATA
818
INSTALL_SCRIPT
819
INSTALL_PROGRAM
820
target_alias
821
host_alias
822
build_alias
823
LIBS
824
ECHO_T
825
ECHO_N
826
ECHO_C
827
DEFS
828
mandir
829
localedir
830
libdir
831
psdir
832
pdfdir
833
dvidir
834
htmldir
835
infodir
836
docdir
837
oldincludedir
838
includedir
839
localstatedir
840
sharedstatedir
841
sysconfdir
842
datadir
843
datarootdir
844
libexecdir
845
sbindir
846
bindir
847
program_transform_name
848
prefix
849
exec_prefix
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
850
PACKAGE_URL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
851
PACKAGE_BUGREPORT
852
PACKAGE_STRING
853
PACKAGE_VERSION
854
PACKAGE_TARNAME
855
PACKAGE_NAME
856
PATH_SEPARATOR
857
SHELL'
1 by Joey Hess
* Joey Hess
858
ac_subst_files=''
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
859
ac_user_opts='
860
enable_option_checking
861
enable_maintainer_mode
862
enable_dependency_tracking
863
enable_shared
864
enable_static
865
with_pic
866
enable_fast_install
867
with_gnu_ld
868
enable_libtool_lock
869
enable_extensive_debug
870
'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
871
      ac_precious_vars='build_alias
872
host_alias
873
target_alias
874
CC
875
CFLAGS
876
LDFLAGS
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
877
LIBS
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
878
CPPFLAGS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
879
CPP'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
880
1 by Joey Hess
* Joey Hess
881
882
# Initialize some variables set by options.
883
ac_init_help=
884
ac_init_version=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
885
ac_unrecognized_opts=
886
ac_unrecognized_sep=
1 by Joey Hess
* Joey Hess
887
# The variables have the same names as the options, with
888
# dashes changed to underlines.
889
cache_file=/dev/null
890
exec_prefix=NONE
891
no_create=
892
no_recursion=
893
prefix=NONE
894
program_prefix=NONE
895
program_suffix=NONE
896
program_transform_name=s,x,x,
897
silent=
898
site=
899
srcdir=
900
verbose=
901
x_includes=NONE
902
x_libraries=NONE
903
904
# Installation directory options.
905
# These are left unexpanded so users can "make install exec_prefix=/foo"
906
# and all the variables that are supposed to be based on exec_prefix
907
# by default will actually change.
908
# Use braces instead of parens because sh, perl, etc. also accept them.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
909
# (The list follows the same order as the GNU Coding Standards.)
1 by Joey Hess
* Joey Hess
910
bindir='${exec_prefix}/bin'
911
sbindir='${exec_prefix}/sbin'
912
libexecdir='${exec_prefix}/libexec'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
913
datarootdir='${prefix}/share'
914
datadir='${datarootdir}'
1 by Joey Hess
* Joey Hess
915
sysconfdir='${prefix}/etc'
916
sharedstatedir='${prefix}/com'
917
localstatedir='${prefix}/var'
918
includedir='${prefix}/include'
919
oldincludedir='/usr/include'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
920
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
921
infodir='${datarootdir}/info'
922
htmldir='${docdir}'
923
dvidir='${docdir}'
924
pdfdir='${docdir}'
925
psdir='${docdir}'
926
libdir='${exec_prefix}/lib'
927
localedir='${datarootdir}/locale'
928
mandir='${datarootdir}/man'
1 by Joey Hess
* Joey Hess
929
930
ac_prev=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
931
ac_dashdash=
1 by Joey Hess
* Joey Hess
932
for ac_option
933
do
934
  # If the previous option needs an argument, assign it.
935
  if test -n "$ac_prev"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
936
    eval $ac_prev=\$ac_option
1 by Joey Hess
* Joey Hess
937
    ac_prev=
938
    continue
939
  fi
940
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
941
  case $ac_option in
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
942
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943
  *=)   ac_optarg= ;;
944
  *)    ac_optarg=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
945
  esac
1 by Joey Hess
* Joey Hess
946
947
  # Accept the important Cygnus configure options, so we can diagnose typos.
948
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
949
  case $ac_dashdash$ac_option in
950
  --)
951
    ac_dashdash=yes ;;
1 by Joey Hess
* Joey Hess
952
953
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
954
    ac_prev=bindir ;;
955
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956
    bindir=$ac_optarg ;;
957
958
  -build | --build | --buil | --bui | --bu)
959
    ac_prev=build_alias ;;
960
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961
    build_alias=$ac_optarg ;;
962
963
  -cache-file | --cache-file | --cache-fil | --cache-fi \
964
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965
    ac_prev=cache_file ;;
966
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968
    cache_file=$ac_optarg ;;
969
970
  --config-cache | -C)
971
    cache_file=config.cache ;;
972
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
973
  -datadir | --datadir | --datadi | --datad)
1 by Joey Hess
* Joey Hess
974
    ac_prev=datadir ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
975
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1 by Joey Hess
* Joey Hess
976
    datadir=$ac_optarg ;;
977
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
978
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979
  | --dataroo | --dataro | --datar)
980
    ac_prev=datarootdir ;;
981
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983
    datarootdir=$ac_optarg ;;
984
1 by Joey Hess
* Joey Hess
985
  -disable-* | --disable-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
986
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1 by Joey Hess
* Joey Hess
987
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
988
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
989
      as_fn_error $? "invalid feature name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
990
    ac_useropt_orig=$ac_useropt
991
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992
    case $ac_user_opts in
993
      *"
994
"enable_$ac_useropt"
995
"*) ;;
996
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997
	 ac_unrecognized_sep=', ';;
998
    esac
999
    eval enable_$ac_useropt=no ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1000
1001
  -docdir | --docdir | --docdi | --doc | --do)
1002
    ac_prev=docdir ;;
1003
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004
    docdir=$ac_optarg ;;
1005
1006
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007
    ac_prev=dvidir ;;
1008
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009
    dvidir=$ac_optarg ;;
1 by Joey Hess
* Joey Hess
1010
1011
  -enable-* | --enable-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1012
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1 by Joey Hess
* Joey Hess
1013
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1014
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1015
      as_fn_error $? "invalid feature name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1016
    ac_useropt_orig=$ac_useropt
1017
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018
    case $ac_user_opts in
1019
      *"
1020
"enable_$ac_useropt"
1021
"*) ;;
1022
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023
	 ac_unrecognized_sep=', ';;
1024
    esac
1025
    eval enable_$ac_useropt=\$ac_optarg ;;
1 by Joey Hess
* Joey Hess
1026
1027
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029
  | --exec | --exe | --ex)
1030
    ac_prev=exec_prefix ;;
1031
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033
  | --exec=* | --exe=* | --ex=*)
1034
    exec_prefix=$ac_optarg ;;
1035
1036
  -gas | --gas | --ga | --g)
1037
    # Obsolete; use --with-gas.
1038
    with_gas=yes ;;
1039
1040
  -help | --help | --hel | --he | -h)
1041
    ac_init_help=long ;;
1042
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043
    ac_init_help=recursive ;;
1044
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045
    ac_init_help=short ;;
1046
1047
  -host | --host | --hos | --ho)
1048
    ac_prev=host_alias ;;
1049
  -host=* | --host=* | --hos=* | --ho=*)
1050
    host_alias=$ac_optarg ;;
1051
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1052
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053
    ac_prev=htmldir ;;
1054
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055
  | --ht=*)
1056
    htmldir=$ac_optarg ;;
1057
1 by Joey Hess
* Joey Hess
1058
  -includedir | --includedir | --includedi | --included | --include \
1059
  | --includ | --inclu | --incl | --inc)
1060
    ac_prev=includedir ;;
1061
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1063
    includedir=$ac_optarg ;;
1064
1065
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1066
    ac_prev=infodir ;;
1067
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068
    infodir=$ac_optarg ;;
1069
1070
  -libdir | --libdir | --libdi | --libd)
1071
    ac_prev=libdir ;;
1072
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073
    libdir=$ac_optarg ;;
1074
1075
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076
  | --libexe | --libex | --libe)
1077
    ac_prev=libexecdir ;;
1078
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079
  | --libexe=* | --libex=* | --libe=*)
1080
    libexecdir=$ac_optarg ;;
1081
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1082
  -localedir | --localedir | --localedi | --localed | --locale)
1083
    ac_prev=localedir ;;
1084
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085
    localedir=$ac_optarg ;;
1086
1 by Joey Hess
* Joey Hess
1087
  -localstatedir | --localstatedir | --localstatedi | --localstated \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1088
  | --localstate | --localstat | --localsta | --localst | --locals)
1 by Joey Hess
* Joey Hess
1089
    ac_prev=localstatedir ;;
1090
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1091
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1 by Joey Hess
* Joey Hess
1092
    localstatedir=$ac_optarg ;;
1093
1094
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095
    ac_prev=mandir ;;
1096
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097
    mandir=$ac_optarg ;;
1098
1099
  -nfp | --nfp | --nf)
1100
    # Obsolete; use --without-fp.
1101
    with_fp=no ;;
1102
1103
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104
  | --no-cr | --no-c | -n)
1105
    no_create=yes ;;
1106
1107
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109
    no_recursion=yes ;;
1110
1111
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113
  | --oldin | --oldi | --old | --ol | --o)
1114
    ac_prev=oldincludedir ;;
1115
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118
    oldincludedir=$ac_optarg ;;
1119
1120
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121
    ac_prev=prefix ;;
1122
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123
    prefix=$ac_optarg ;;
1124
1125
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126
  | --program-pre | --program-pr | --program-p)
1127
    ac_prev=program_prefix ;;
1128
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130
    program_prefix=$ac_optarg ;;
1131
1132
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133
  | --program-suf | --program-su | --program-s)
1134
    ac_prev=program_suffix ;;
1135
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137
    program_suffix=$ac_optarg ;;
1138
1139
  -program-transform-name | --program-transform-name \
1140
  | --program-transform-nam | --program-transform-na \
1141
  | --program-transform-n | --program-transform- \
1142
  | --program-transform | --program-transfor \
1143
  | --program-transfo | --program-transf \
1144
  | --program-trans | --program-tran \
1145
  | --progr-tra | --program-tr | --program-t)
1146
    ac_prev=program_transform_name ;;
1147
  -program-transform-name=* | --program-transform-name=* \
1148
  | --program-transform-nam=* | --program-transform-na=* \
1149
  | --program-transform-n=* | --program-transform-=* \
1150
  | --program-transform=* | --program-transfor=* \
1151
  | --program-transfo=* | --program-transf=* \
1152
  | --program-trans=* | --program-tran=* \
1153
  | --progr-tra=* | --program-tr=* | --program-t=*)
1154
    program_transform_name=$ac_optarg ;;
1155
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1156
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157
    ac_prev=pdfdir ;;
1158
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159
    pdfdir=$ac_optarg ;;
1160
1161
  -psdir | --psdir | --psdi | --psd | --ps)
1162
    ac_prev=psdir ;;
1163
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164
    psdir=$ac_optarg ;;
1165
1 by Joey Hess
* Joey Hess
1166
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167
  | -silent | --silent | --silen | --sile | --sil)
1168
    silent=yes ;;
1169
1170
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171
    ac_prev=sbindir ;;
1172
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173
  | --sbi=* | --sb=*)
1174
    sbindir=$ac_optarg ;;
1175
1176
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178
  | --sharedst | --shareds | --shared | --share | --shar \
1179
  | --sha | --sh)
1180
    ac_prev=sharedstatedir ;;
1181
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184
  | --sha=* | --sh=*)
1185
    sharedstatedir=$ac_optarg ;;
1186
1187
  -site | --site | --sit)
1188
    ac_prev=site ;;
1189
  -site=* | --site=* | --sit=*)
1190
    site=$ac_optarg ;;
1191
1192
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193
    ac_prev=srcdir ;;
1194
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195
    srcdir=$ac_optarg ;;
1196
1197
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198
  | --syscon | --sysco | --sysc | --sys | --sy)
1199
    ac_prev=sysconfdir ;;
1200
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202
    sysconfdir=$ac_optarg ;;
1203
1204
  -target | --target | --targe | --targ | --tar | --ta | --t)
1205
    ac_prev=target_alias ;;
1206
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207
    target_alias=$ac_optarg ;;
1208
1209
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210
    verbose=yes ;;
1211
1212
  -version | --version | --versio | --versi | --vers | -V)
1213
    ac_init_version=: ;;
1214
1215
  -with-* | --with-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1216
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1 by Joey Hess
* Joey Hess
1217
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1218
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1219
      as_fn_error $? "invalid package name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1220
    ac_useropt_orig=$ac_useropt
1221
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222
    case $ac_user_opts in
1223
      *"
1224
"with_$ac_useropt"
1225
"*) ;;
1226
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227
	 ac_unrecognized_sep=', ';;
1228
    esac
1229
    eval with_$ac_useropt=\$ac_optarg ;;
1 by Joey Hess
* Joey Hess
1230
1231
  -without-* | --without-*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1232
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1 by Joey Hess
* Joey Hess
1233
    # Reject names that are not valid shell variable names.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1234
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1235
      as_fn_error $? "invalid package name: $ac_useropt"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1236
    ac_useropt_orig=$ac_useropt
1237
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238
    case $ac_user_opts in
1239
      *"
1240
"with_$ac_useropt"
1241
"*) ;;
1242
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243
	 ac_unrecognized_sep=', ';;
1244
    esac
1245
    eval with_$ac_useropt=no ;;
1 by Joey Hess
* Joey Hess
1246
1247
  --x)
1248
    # Obsolete; use --with-x.
1249
    with_x=yes ;;
1250
1251
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252
  | --x-incl | --x-inc | --x-in | --x-i)
1253
    ac_prev=x_includes ;;
1254
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256
    x_includes=$ac_optarg ;;
1257
1258
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260
    ac_prev=x_libraries ;;
1261
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263
    x_libraries=$ac_optarg ;;
1264
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1265
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266
Try \`$0 --help' for more information"
1 by Joey Hess
* Joey Hess
1267
    ;;
1268
1269
  *=*)
1270
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271
    # Reject names that are not valid shell variable names.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1272
    case $ac_envvar in #(
1273
      '' | [0-9]* | *[!_$as_cr_alnum]* )
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1274
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1275
    esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1276
    eval $ac_envvar=\$ac_optarg
1 by Joey Hess
* Joey Hess
1277
    export $ac_envvar ;;
1278
1279
  *)
1280
    # FIXME: should be removed in autoconf 3.0.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1281
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1 by Joey Hess
* Joey Hess
1282
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1283
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1 by Joey Hess
* Joey Hess
1284
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285
    ;;
1286
1287
  esac
1288
done
1289
1290
if test -n "$ac_prev"; then
1291
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1292
  as_fn_error $? "missing argument to $ac_option"
1 by Joey Hess
* Joey Hess
1293
fi
1294
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1295
if test -n "$ac_unrecognized_opts"; then
1296
  case $enable_option_checking in
1297
    no) ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1298
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1299
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300
  esac
1301
fi
1302
1303
# Check all directory arguments for consistency.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1304
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305
		datadir sysconfdir sharedstatedir localstatedir includedir \
1306
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307
		libdir localedir mandir
1308
do
1309
  eval ac_val=\$$ac_var
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1310
  # Remove trailing slashes.
1311
  case $ac_val in
1312
    */ )
1313
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314
      eval $ac_var=\$ac_val;;
1315
  esac
1316
  # Be sure to have absolute directory names.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1317
  case $ac_val in
1318
    [\\/$]* | ?:[\\/]* )  continue;;
1319
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320
  esac
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1321
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1 by Joey Hess
* Joey Hess
1322
done
1323
1324
# There might be people who depend on the old broken behavior: `$host'
1325
# used to hold the argument of --host etc.
1326
# FIXME: To remove some day.
1327
build=$build_alias
1328
host=$host_alias
1329
target=$target_alias
1330
1331
# FIXME: To remove some day.
1332
if test "x$host_alias" != x; then
1333
  if test "x$build_alias" = x; then
1334
    cross_compiling=maybe
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1335
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1336
    If a cross compiler is detected then cross compile mode will be used" >&2
1 by Joey Hess
* Joey Hess
1337
  elif test "x$build_alias" != "x$host_alias"; then
1338
    cross_compiling=yes
1339
  fi
1340
fi
1341
1342
ac_tool_prefix=
1343
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345
test "$silent" = yes && exec 6>/dev/null
1346
1347
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1348
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349
ac_ls_di=`ls -di .` &&
1350
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1351
  as_fn_error $? "working directory cannot be determined"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1352
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1353
  as_fn_error $? "pwd does not report name of working directory"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1354
1355
1 by Joey Hess
* Joey Hess
1356
# Find the source files, if location was not specified.
1357
if test -z "$srcdir"; then
1358
  ac_srcdir_defaulted=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1359
  # Try the directory containing this script, then the parent directory.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1360
  ac_confdir=`$as_dirname -- "$as_myself" ||
1361
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1363
	 X"$as_myself" : 'X\(//\)$' \| \
1364
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365
$as_echo X"$as_myself" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1366
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367
	    s//\1/
1368
	    q
1369
	  }
1370
	  /^X\(\/\/\)[^/].*/{
1371
	    s//\1/
1372
	    q
1373
	  }
1374
	  /^X\(\/\/\)$/{
1375
	    s//\1/
1376
	    q
1377
	  }
1378
	  /^X\(\/\).*/{
1379
	    s//\1/
1380
	    q
1381
	  }
1382
	  s/.*/./; q'`
1 by Joey Hess
* Joey Hess
1383
  srcdir=$ac_confdir
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1384
  if test ! -r "$srcdir/$ac_unique_file"; then
1 by Joey Hess
* Joey Hess
1385
    srcdir=..
1386
  fi
1387
else
1388
  ac_srcdir_defaulted=no
1389
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1390
if test ! -r "$srcdir/$ac_unique_file"; then
1391
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1392
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1393
fi
1394
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395
ac_abs_confdir=`(
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1396
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1397
	pwd)`
1398
# When building in place, set srcdir=.
1399
if test "$ac_abs_confdir" = "$ac_pwd"; then
1400
  srcdir=.
1401
fi
1402
# Remove unnecessary trailing slashes from srcdir.
1403
# Double slashes in file names in object file debugging info
1404
# mess up M-x gdb in Emacs.
1405
case $srcdir in
1406
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407
esac
1408
for ac_var in $ac_precious_vars; do
1409
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410
  eval ac_env_${ac_var}_value=\$${ac_var}
1411
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413
done
1 by Joey Hess
* Joey Hess
1414
1415
#
1416
# Report the --help message.
1417
#
1418
if test "$ac_init_help" = "long"; then
1419
  # Omit some internal or obsolete options to make the list less imposing.
1420
  # This message is too long to be a string in the A/UX 3.1 sh.
1421
  cat <<_ACEOF
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
1422
\`configure' configures libdebian-installer 0.77 to adapt to many kinds of systems.
1 by Joey Hess
* Joey Hess
1423
1424
Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427
VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429
Defaults for the options are specified in brackets.
1430
1431
Configuration:
1432
  -h, --help              display this help and exit
1433
      --help=short        display options specific to this package
1434
      --help=recursive    display the short help of all the included packages
1435
  -V, --version           display version information and exit
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1436
  -q, --quiet, --silent   do not print \`checking ...' messages
1 by Joey Hess
* Joey Hess
1437
      --cache-file=FILE   cache test results in FILE [disabled]
1438
  -C, --config-cache      alias for \`--cache-file=config.cache'
1439
  -n, --no-create         do not create output files
1440
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442
Installation directories:
1443
  --prefix=PREFIX         install architecture-independent files in PREFIX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1444
                          [$ac_default_prefix]
1 by Joey Hess
* Joey Hess
1445
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1446
                          [PREFIX]
1 by Joey Hess
* Joey Hess
1447
1448
By default, \`make install' will install all the files in
1449
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451
for instance \`--prefix=\$HOME'.
1452
1453
For better control, use the options below.
1454
1455
Fine tuning of the installation directories:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1456
  --bindir=DIR            user executables [EPREFIX/bin]
1457
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1458
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1459
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1460
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1461
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1462
  --libdir=DIR            object code libraries [EPREFIX/lib]
1463
  --includedir=DIR        C header files [PREFIX/include]
1464
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1465
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1466
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1467
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1468
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1469
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1470
  --docdir=DIR            documentation root
1471
                          [DATAROOTDIR/doc/libdebian-installer]
1472
  --htmldir=DIR           html documentation [DOCDIR]
1473
  --dvidir=DIR            dvi documentation [DOCDIR]
1474
  --pdfdir=DIR            pdf documentation [DOCDIR]
1475
  --psdir=DIR             ps documentation [DOCDIR]
1 by Joey Hess
* Joey Hess
1476
_ACEOF
1477
1478
  cat <<\_ACEOF
1479
1480
Program names:
1481
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1482
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1483
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1484
1485
System types:
1486
  --build=BUILD     configure for building on BUILD [guessed]
1487
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1488
_ACEOF
1489
fi
1490
1491
if test -n "$ac_init_help"; then
1492
  case $ac_init_help in
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
1493
     short | recursive ) echo "Configuration of libdebian-installer 0.77:";;
1 by Joey Hess
* Joey Hess
1494
   esac
1495
  cat <<\_ACEOF
1496
1497
Optional Features:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1498
  --disable-option-checking  ignore unrecognized --enable/--with options
1 by Joey Hess
* Joey Hess
1499
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1500
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1501
  --enable-maintainer-mode  enable make rules and dependencies not useful
1502
			  (and sometimes confusing) to the casual installer
1503
  --disable-dependency-tracking  speeds up one-time build
1504
  --enable-dependency-tracking   do not reject slow dependency extractors
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1505
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1506
  --enable-static[=PKGS]  build static libraries [default=yes]
1 by Joey Hess
* Joey Hess
1507
  --enable-fast-install[=PKGS]
1508
                          optimize for fast installation [default=yes]
1509
  --disable-libtool-lock  avoid locking (might break parallel builds)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
1510
  --enable-extensive-debug
1511
                          Enable extensive debugging output
1 by Joey Hess
* Joey Hess
1512
1513
Optional Packages:
1514
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516
  --with-pic              try to use only PIC/non-PIC objects [default=use
1517
                          both]
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1518
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1 by Joey Hess
* Joey Hess
1519
1520
Some influential environment variables:
1521
  CC          C compiler command
1522
  CFLAGS      C compiler flags
1523
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524
              nonstandard directory <lib dir>
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
1525
  LIBS        libraries to pass to the linker, e.g. -l<library>
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1526
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1527
              you have headers in a nonstandard directory <include dir>
1 by Joey Hess
* Joey Hess
1528
  CPP         C preprocessor
1529
1530
Use these variables to override the choices made by `configure' or to help
1531
it to find libraries and programs with nonstandard names/locations.
1532
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1533
Report bugs to the package provider.
1 by Joey Hess
* Joey Hess
1534
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1535
ac_status=$?
1 by Joey Hess
* Joey Hess
1536
fi
1537
1538
if test "$ac_init_help" = "recursive"; then
1539
  # If there are subdirs, report their specific --help.
1540
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1541
    test -d "$ac_dir" ||
1542
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543
      continue
1 by Joey Hess
* Joey Hess
1544
    ac_builddir=.
1545
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1546
case "$ac_dir" in
1547
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548
*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1549
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1550
  # A ".." for each directory in $ac_dir_suffix.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1551
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1552
  case $ac_top_builddir_sub in
1553
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555
  esac ;;
1556
esac
1557
ac_abs_top_builddir=$ac_pwd
1558
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559
# for backward compatibility:
1560
ac_top_builddir=$ac_top_build_prefix
1 by Joey Hess
* Joey Hess
1561
1562
case $srcdir in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1563
  .)  # We are building in place.
1 by Joey Hess
* Joey Hess
1564
    ac_srcdir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1565
    ac_top_srcdir=$ac_top_builddir_sub
1566
    ac_abs_top_srcdir=$ac_pwd ;;
1567
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Joey Hess
* Joey Hess
1568
    ac_srcdir=$srcdir$ac_dir_suffix;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1569
    ac_top_srcdir=$srcdir
1570
    ac_abs_top_srcdir=$srcdir ;;
1571
  *) # Relative name.
1572
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575
esac
1576
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578
    cd "$ac_dir" || { ac_status=$?; continue; }
1579
    # Check for guested configure.
1580
    if test -f "$ac_srcdir/configure.gnu"; then
1581
      echo &&
1582
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583
    elif test -f "$ac_srcdir/configure"; then
1584
      echo &&
1585
      $SHELL "$ac_srcdir/configure" --help=recursive
1 by Joey Hess
* Joey Hess
1586
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1587
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1588
    fi || ac_status=$?
1589
    cd "$ac_pwd" || { ac_status=$?; break; }
1 by Joey Hess
* Joey Hess
1590
  done
1591
fi
1592
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1593
test -n "$ac_init_help" && exit $ac_status
1 by Joey Hess
* Joey Hess
1594
if $ac_init_version; then
1595
  cat <<\_ACEOF
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
1596
libdebian-installer configure 0.77
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1597
generated by GNU Autoconf 2.67
1 by Joey Hess
* Joey Hess
1598
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1599
Copyright (C) 2010 Free Software Foundation, Inc.
1 by Joey Hess
* Joey Hess
1600
This configure script is free software; the Free Software Foundation
1601
gives unlimited permission to copy, distribute and modify it.
1602
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1603
  exit
1 by Joey Hess
* Joey Hess
1604
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1605
1606
## ------------------------ ##
1607
## Autoconf initialization. ##
1608
## ------------------------ ##
1609
1610
# ac_fn_c_try_compile LINENO
1611
# --------------------------
1612
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613
ac_fn_c_try_compile ()
1614
{
1615
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616
  rm -f conftest.$ac_objext
1617
  if { { ac_try="$ac_compile"
1618
case "(($ac_try" in
1619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620
  *) ac_try_echo=$ac_try;;
1621
esac
1622
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623
$as_echo "$ac_try_echo"; } >&5
1624
  (eval "$ac_compile") 2>conftest.err
1625
  ac_status=$?
1626
  if test -s conftest.err; then
1627
    grep -v '^ *+' conftest.err >conftest.er1
1628
    cat conftest.er1 >&5
1629
    mv -f conftest.er1 conftest.err
1630
  fi
1631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632
  test $ac_status = 0; } && {
1633
	 test -z "$ac_c_werror_flag" ||
1634
	 test ! -s conftest.err
1635
       } && test -s conftest.$ac_objext; then :
1636
  ac_retval=0
1637
else
1638
  $as_echo "$as_me: failed program was:" >&5
1639
sed 's/^/| /' conftest.$ac_ext >&5
1640
1641
	ac_retval=1
1642
fi
1643
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1644
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1645
1646
} # ac_fn_c_try_compile
1647
1648
# ac_fn_c_try_link LINENO
1649
# -----------------------
1650
# Try to link conftest.$ac_ext, and return whether this succeeded.
1651
ac_fn_c_try_link ()
1652
{
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
  rm -f conftest.$ac_objext conftest$ac_exeext
1655
  if { { ac_try="$ac_link"
1656
case "(($ac_try" in
1657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658
  *) ac_try_echo=$ac_try;;
1659
esac
1660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661
$as_echo "$ac_try_echo"; } >&5
1662
  (eval "$ac_link") 2>conftest.err
1663
  ac_status=$?
1664
  if test -s conftest.err; then
1665
    grep -v '^ *+' conftest.err >conftest.er1
1666
    cat conftest.er1 >&5
1667
    mv -f conftest.er1 conftest.err
1668
  fi
1669
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670
  test $ac_status = 0; } && {
1671
	 test -z "$ac_c_werror_flag" ||
1672
	 test ! -s conftest.err
1673
       } && test -s conftest$ac_exeext && {
1674
	 test "$cross_compiling" = yes ||
1675
	 $as_test_x conftest$ac_exeext
1676
       }; then :
1677
  ac_retval=0
1678
else
1679
  $as_echo "$as_me: failed program was:" >&5
1680
sed 's/^/| /' conftest.$ac_ext >&5
1681
1682
	ac_retval=1
1683
fi
1684
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686
  # interfere with the next link command; also delete a directory that is
1687
  # left behind by Apple's compiler.  We do this before executing the actions.
1688
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1690
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1691
1692
} # ac_fn_c_try_link
1693
1694
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695
# -------------------------------------------------------
1696
# Tests whether HEADER exists and can be compiled using the include files in
1697
# INCLUDES, setting the cache variable VAR accordingly.
1698
ac_fn_c_check_header_compile ()
1699
{
1700
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702
$as_echo_n "checking for $2... " >&6; }
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1703
if eval "test \"\${$3+set}\"" = set; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1704
  $as_echo_n "(cached) " >&6
1705
else
1706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707
/* end confdefs.h.  */
1708
$4
1709
#include <$2>
1710
_ACEOF
1711
if ac_fn_c_try_compile "$LINENO"; then :
1712
  eval "$3=yes"
1713
else
1714
  eval "$3=no"
1715
fi
1716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717
fi
1718
eval ac_res=\$$3
1719
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720
$as_echo "$ac_res" >&6; }
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723
} # ac_fn_c_check_header_compile
1724
1725
# ac_fn_c_try_cpp LINENO
1726
# ----------------------
1727
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728
ac_fn_c_try_cpp ()
1729
{
1730
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1732
case "(($ac_try" in
1733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734
  *) ac_try_echo=$ac_try;;
1735
esac
1736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737
$as_echo "$ac_try_echo"; } >&5
1738
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739
  ac_status=$?
1740
  if test -s conftest.err; then
1741
    grep -v '^ *+' conftest.err >conftest.er1
1742
    cat conftest.er1 >&5
1743
    mv -f conftest.er1 conftest.err
1744
  fi
1745
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1746
  test $ac_status = 0; } > conftest.i && {
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1747
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748
	 test ! -s conftest.err
1749
       }; then :
1750
  ac_retval=0
1751
else
1752
  $as_echo "$as_me: failed program was:" >&5
1753
sed 's/^/| /' conftest.$ac_ext >&5
1754
1755
    ac_retval=1
1756
fi
1757
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1758
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1759
1760
} # ac_fn_c_try_cpp
1761
1762
# ac_fn_c_try_run LINENO
1763
# ----------------------
1764
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765
# that executables *can* be run.
1766
ac_fn_c_try_run ()
1767
{
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
  if { { ac_try="$ac_link"
1770
case "(($ac_try" in
1771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772
  *) ac_try_echo=$ac_try;;
1773
esac
1774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775
$as_echo "$ac_try_echo"; } >&5
1776
  (eval "$ac_link") 2>&5
1777
  ac_status=$?
1778
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780
  { { case "(($ac_try" in
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782
  *) ac_try_echo=$ac_try;;
1783
esac
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785
$as_echo "$ac_try_echo"; } >&5
1786
  (eval "$ac_try") 2>&5
1787
  ac_status=$?
1788
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789
  test $ac_status = 0; }; }; then :
1790
  ac_retval=0
1791
else
1792
  $as_echo "$as_me: program exited with status $ac_status" >&5
1793
       $as_echo "$as_me: failed program was:" >&5
1794
sed 's/^/| /' conftest.$ac_ext >&5
1795
1796
       ac_retval=$ac_status
1797
fi
1798
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
1800
  as_fn_set_status $ac_retval
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1801
1802
} # ac_fn_c_try_run
1803
1804
# ac_fn_c_check_func LINENO FUNC VAR
1805
# ----------------------------------
1806
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807
ac_fn_c_check_func ()
1808
{
1809
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
$as_echo_n "checking for $2... " >&6; }
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1812
if eval "test \"\${$3+set}\"" = set; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1813
  $as_echo_n "(cached) " >&6
1814
else
1815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h.  */
1817
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1819
#define $2 innocuous_$2
1820
1821
/* System header to define __stub macros and hopefully few prototypes,
1822
    which can conflict with char $2 (); below.
1823
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824
    <limits.h> exists even on freestanding compilers.  */
1825
1826
#ifdef __STDC__
1827
# include <limits.h>
1828
#else
1829
# include <assert.h>
1830
#endif
1831
1832
#undef $2
1833
1834
/* Override any GCC internal prototype to avoid an error.
1835
   Use char because int might match the return type of a GCC
1836
   builtin and then its argument prototype would still apply.  */
1837
#ifdef __cplusplus
1838
extern "C"
1839
#endif
1840
char $2 ();
1841
/* The GNU C library defines this for functions which it implements
1842
    to always fail with ENOSYS.  Some functions are actually named
1843
    something starting with __ and the normal name is an alias.  */
1844
#if defined __stub_$2 || defined __stub___$2
1845
choke me
1846
#endif
1847
1848
int
1849
main ()
1850
{
1851
return $2 ();
1852
  ;
1853
  return 0;
1854
}
1855
_ACEOF
1856
if ac_fn_c_try_link "$LINENO"; then :
1857
  eval "$3=yes"
1858
else
1859
  eval "$3=no"
1860
fi
1861
rm -f core conftest.err conftest.$ac_objext \
1862
    conftest$ac_exeext conftest.$ac_ext
1863
fi
1864
eval ac_res=\$$3
1865
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866
$as_echo "$ac_res" >&6; }
1867
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869
} # ac_fn_c_check_func
1870
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1871
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1872
# ---------------------------------------------
1873
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1874
# accordingly.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1875
ac_fn_c_check_decl ()
1876
{
1877
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1878
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1879
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1881
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1882
if eval "test \"\${$3+set}\"" = set; then :
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1883
  $as_echo_n "(cached) " >&6
1884
else
1885
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886
/* end confdefs.h.  */
1887
$4
1888
int
1889
main ()
1890
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1891
#ifndef $as_decl_name
1892
#ifdef __cplusplus
1893
  (void) $as_decl_use;
1894
#else
1895
  (void) $as_decl_name;
1896
#endif
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1897
#endif
1898
1899
  ;
1900
  return 0;
1901
}
1902
_ACEOF
1903
if ac_fn_c_try_compile "$LINENO"; then :
1904
  eval "$3=yes"
1905
else
1906
  eval "$3=no"
1907
fi
1908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909
fi
1910
eval ac_res=\$$3
1911
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912
$as_echo "$ac_res" >&6; }
1913
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915
} # ac_fn_c_check_decl
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1916
cat >config.log <<_ACEOF
1 by Joey Hess
* Joey Hess
1917
This file contains any messages produced by compilers while
1918
running configure, to aid debugging if configure makes a mistake.
1919
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
1920
It was created by libdebian-installer $as_me 0.77, which was
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
1921
generated by GNU Autoconf 2.67.  Invocation command line was
1 by Joey Hess
* Joey Hess
1922
1923
  $ $0 $@
1924
1925
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1926
exec 5>>config.log
1 by Joey Hess
* Joey Hess
1927
{
1928
cat <<_ASUNAME
1929
## --------- ##
1930
## Platform. ##
1931
## --------- ##
1932
1933
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1941
1942
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1943
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1944
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1945
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1 by Joey Hess
* Joey Hess
1946
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1947
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1948
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1949
1950
_ASUNAME
1951
1952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953
for as_dir in $PATH
1954
do
1955
  IFS=$as_save_IFS
1956
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1957
    $as_echo "PATH: $as_dir"
1958
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1959
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
1960
1961
} >&5
1962
1963
cat >&5 <<_ACEOF
1964
1965
1966
## ----------- ##
1967
## Core tests. ##
1968
## ----------- ##
1969
1970
_ACEOF
1971
1972
1973
# Keep a trace of the command line.
1974
# Strip out --no-create and --no-recursion so they do not pile up.
1975
# Strip out --silent because we don't want to record it for future runs.
1976
# Also quote any args containing shell meta-characters.
1977
# Make two passes to allow for proper duplicate-argument suppression.
1978
ac_configure_args=
1979
ac_configure_args0=
1980
ac_configure_args1=
1981
ac_must_keep_next=false
1982
for ac_pass in 1 2
1983
do
1984
  for ac_arg
1985
  do
1986
    case $ac_arg in
1987
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989
    | -silent | --silent | --silen | --sile | --sil)
1990
      continue ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
1991
    *\'*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
1992
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Joey Hess
* Joey Hess
1993
    esac
1994
    case $ac_pass in
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1995
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1 by Joey Hess
* Joey Hess
1996
    2)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
1997
      as_fn_append ac_configure_args1 " '$ac_arg'"
1 by Joey Hess
* Joey Hess
1998
      if test $ac_must_keep_next = true; then
1999
	ac_must_keep_next=false # Got value, back to normal.
2000
      else
2001
	case $ac_arg in
2002
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2003
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005
	  | -with-* | --with-* | -without-* | --without-* | --x)
2006
	    case "$ac_configure_args0 " in
2007
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008
	    esac
2009
	    ;;
2010
	  -* ) ac_must_keep_next=true ;;
2011
	esac
2012
      fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2013
      as_fn_append ac_configure_args " '$ac_arg'"
1 by Joey Hess
* Joey Hess
2014
      ;;
2015
    esac
2016
  done
2017
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2018
{ ac_configure_args0=; unset ac_configure_args0;}
2019
{ ac_configure_args1=; unset ac_configure_args1;}
1 by Joey Hess
* Joey Hess
2020
2021
# When interrupted or exit'd, cleanup temporary files, and complete
2022
# config.log.  We remove comments because anyway the quotes in there
2023
# would cause problems or look ugly.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2024
# WARNING: Use '\'' to represent an apostrophe within the trap.
2025
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1 by Joey Hess
* Joey Hess
2026
trap 'exit_status=$?
2027
  # Save into config.log some information that might help in debugging.
2028
  {
2029
    echo
2030
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2031
    $as_echo "## ---------------- ##
1 by Joey Hess
* Joey Hess
2032
## Cache variables. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2033
## ---------------- ##"
1 by Joey Hess
* Joey Hess
2034
    echo
2035
    # The following way of writing the cache mishandles newlines in values,
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2036
(
2037
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2038
    eval ac_val=\$$ac_var
2039
    case $ac_val in #(
2040
    *${as_nl}*)
2041
      case $ac_var in #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2042
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2043
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2044
      esac
2045
      case $ac_var in #(
2046
      _ | IFS | as_nl) ;; #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2047
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2048
      *) { eval $ac_var=; unset $ac_var;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2049
      esac ;;
2050
    esac
2051
  done
1 by Joey Hess
* Joey Hess
2052
  (set) 2>&1 |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2053
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2054
    *${as_nl}ac_space=\ *)
1 by Joey Hess
* Joey Hess
2055
      sed -n \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2056
	"s/'\''/'\''\\\\'\'''\''/g;
2057
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058
      ;; #(
1 by Joey Hess
* Joey Hess
2059
    *)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2060
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Joey Hess
* Joey Hess
2061
      ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2062
    esac |
2063
    sort
2064
)
1 by Joey Hess
* Joey Hess
2065
    echo
2066
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2067
    $as_echo "## ----------------- ##
1 by Joey Hess
* Joey Hess
2068
## Output variables. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2069
## ----------------- ##"
1 by Joey Hess
* Joey Hess
2070
    echo
2071
    for ac_var in $ac_subst_vars
2072
    do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2073
      eval ac_val=\$$ac_var
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2074
      case $ac_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2075
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2076
      esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2077
      $as_echo "$ac_var='\''$ac_val'\''"
1 by Joey Hess
* Joey Hess
2078
    done | sort
2079
    echo
2080
2081
    if test -n "$ac_subst_files"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2082
      $as_echo "## ------------------- ##
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2083
## File substitutions. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2084
## ------------------- ##"
1 by Joey Hess
* Joey Hess
2085
      echo
2086
      for ac_var in $ac_subst_files
2087
      do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2088
	eval ac_val=\$$ac_var
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2089
	case $ac_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2090
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2091
	esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2092
	$as_echo "$ac_var='\''$ac_val'\''"
1 by Joey Hess
* Joey Hess
2093
      done | sort
2094
      echo
2095
    fi
2096
2097
    if test -s confdefs.h; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2098
      $as_echo "## ----------- ##
1 by Joey Hess
* Joey Hess
2099
## confdefs.h. ##
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2100
## ----------- ##"
1 by Joey Hess
* Joey Hess
2101
      echo
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2102
      cat confdefs.h
1 by Joey Hess
* Joey Hess
2103
      echo
2104
    fi
2105
    test "$ac_signal" != 0 &&
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2106
      $as_echo "$as_me: caught signal $ac_signal"
2107
    $as_echo "$as_me: exit $exit_status"
1 by Joey Hess
* Joey Hess
2108
  } >&5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2109
  rm -f core *.core core.conftest.* &&
2110
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1 by Joey Hess
* Joey Hess
2111
    exit $exit_status
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2112
' 0
1 by Joey Hess
* Joey Hess
2113
for ac_signal in 1 2 13 15; do
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2114
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1 by Joey Hess
* Joey Hess
2115
done
2116
ac_signal=0
2117
2118
# confdefs.h avoids OS command line length limits that DEFS can exceed.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2119
rm -f -r conftest* confdefs.h
1 by Joey Hess
* Joey Hess
2120
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2121
$as_echo "/* confdefs.h */" > confdefs.h
2122
1 by Joey Hess
* Joey Hess
2123
# Predefined preprocessor variables.
2124
2125
cat >>confdefs.h <<_ACEOF
2126
#define PACKAGE_NAME "$PACKAGE_NAME"
2127
_ACEOF
2128
2129
cat >>confdefs.h <<_ACEOF
2130
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131
_ACEOF
2132
2133
cat >>confdefs.h <<_ACEOF
2134
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2135
_ACEOF
2136
2137
cat >>confdefs.h <<_ACEOF
2138
#define PACKAGE_STRING "$PACKAGE_STRING"
2139
_ACEOF
2140
2141
cat >>confdefs.h <<_ACEOF
2142
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143
_ACEOF
2144
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2145
cat >>confdefs.h <<_ACEOF
2146
#define PACKAGE_URL "$PACKAGE_URL"
2147
_ACEOF
2148
1 by Joey Hess
* Joey Hess
2149
2150
# Let the site file select an alternate cache file if it wants to.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2151
# Prefer an explicitly selected file to automatically selected ones.
2152
ac_site_file1=NONE
2153
ac_site_file2=NONE
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2154
if test -n "$CONFIG_SITE"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2155
  # We do not want a PATH search for config.site.
2156
  case $CONFIG_SITE in #((
2157
    -*)  ac_site_file1=./$CONFIG_SITE;;
2158
    */*) ac_site_file1=$CONFIG_SITE;;
2159
    *)   ac_site_file1=./$CONFIG_SITE;;
2160
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2161
elif test "x$prefix" != xNONE; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2162
  ac_site_file1=$prefix/share/config.site
2163
  ac_site_file2=$prefix/etc/config.site
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2164
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2165
  ac_site_file1=$ac_default_prefix/share/config.site
2166
  ac_site_file2=$ac_default_prefix/etc/config.site
1 by Joey Hess
* Joey Hess
2167
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2168
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2169
do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2170
  test "x$ac_site_file" = xNONE && continue
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2171
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2172
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2173
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1 by Joey Hess
* Joey Hess
2174
    sed 's/^/| /' "$ac_site_file" >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2175
    . "$ac_site_file" \
2176
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178
as_fn_error $? "failed to load site script $ac_site_file
2179
See \`config.log' for more details" "$LINENO" 5 ; }
1 by Joey Hess
* Joey Hess
2180
  fi
2181
done
2182
2183
if test -r "$cache_file"; then
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2184
  # Some versions of bash will fail to source /dev/null (special files
2185
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2186
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2187
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2188
$as_echo "$as_me: loading cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
2189
    case $cache_file in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2190
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191
      *)                      . "./$cache_file";;
1 by Joey Hess
* Joey Hess
2192
    esac
2193
  fi
2194
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2195
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2196
$as_echo "$as_me: creating cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
2197
  >$cache_file
2198
fi
2199
2200
# Check that the precious variables saved in the cache have kept the same
2201
# value.
2202
ac_cache_corrupted=false
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2203
for ac_var in $ac_precious_vars; do
1 by Joey Hess
* Joey Hess
2204
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205
  eval ac_new_set=\$ac_env_${ac_var}_set
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2206
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207
  eval ac_new_val=\$ac_env_${ac_var}_value
1 by Joey Hess
* Joey Hess
2208
  case $ac_old_set,$ac_new_set in
2209
    set,)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2210
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2211
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1 by Joey Hess
* Joey Hess
2212
      ac_cache_corrupted=: ;;
2213
    ,set)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2214
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2215
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1 by Joey Hess
* Joey Hess
2216
      ac_cache_corrupted=: ;;
2217
    ,);;
2218
    *)
2219
      if test "x$ac_old_val" != "x$ac_new_val"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2220
	# differences in whitespace do not lead to failure.
2221
	ac_old_val_w=`echo x $ac_old_val`
2222
	ac_new_val_w=`echo x $ac_new_val`
2223
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2224
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2225
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226
	  ac_cache_corrupted=:
2227
	else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2228
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2229
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230
	  eval $ac_var=\$ac_old_val
2231
	fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2232
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2233
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2234
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2235
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1 by Joey Hess
* Joey Hess
2236
      fi;;
2237
  esac
2238
  # Pass precious variables to config.status.
2239
  if test "$ac_new_set" = set; then
2240
    case $ac_new_val in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2241
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1 by Joey Hess
* Joey Hess
2242
    *) ac_arg=$ac_var=$ac_new_val ;;
2243
    esac
2244
    case " $ac_configure_args " in
2245
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2246
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1 by Joey Hess
* Joey Hess
2247
    esac
2248
  fi
2249
done
2250
if $ac_cache_corrupted; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2251
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2252
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2253
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2254
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2255
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2256
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2257
## -------------------- ##
2258
## Main body of script. ##
2259
## -------------------- ##
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2260
1 by Joey Hess
* Joey Hess
2261
ac_ext=c
2262
ac_cpp='$CPP $CPPFLAGS'
2263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2268
am__api_version='1.11'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2269
1 by Joey Hess
* Joey Hess
2270
ac_aux_dir=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2271
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2272
  if test -f "$ac_dir/install-sh"; then
2273
    ac_aux_dir=$ac_dir
2274
    ac_install_sh="$ac_aux_dir/install-sh -c"
2275
    break
2276
  elif test -f "$ac_dir/install.sh"; then
2277
    ac_aux_dir=$ac_dir
2278
    ac_install_sh="$ac_aux_dir/install.sh -c"
2279
    break
2280
  elif test -f "$ac_dir/shtool"; then
2281
    ac_aux_dir=$ac_dir
2282
    ac_install_sh="$ac_aux_dir/shtool install -c"
2283
    break
2284
  fi
1 by Joey Hess
* Joey Hess
2285
done
2286
if test -z "$ac_aux_dir"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2287
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2288
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2289
2290
# These three variables are undocumented and unsupported,
2291
# and are intended to be withdrawn in a future Autoconf release.
2292
# They can cause serious problems if a builder's source tree is in a directory
2293
# whose full name contains unusual characters.
2294
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2295
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2296
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2297
1 by Joey Hess
* Joey Hess
2298
2299
# Find a good install program.  We prefer a C program (faster),
2300
# so one script is as good as another.  But avoid the broken or
2301
# incompatible versions:
2302
# SysV /etc/install, /usr/sbin/install
2303
# SunOS /usr/etc/install
2304
# IRIX /sbin/install
2305
# AIX /bin/install
2306
# AmigaOS /C/install, which installs bootblocks on floppy discs
2307
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2308
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2309
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2310
# OS/2's system install, which has a completely different semantic
2311
# ./install, which can be erroneously created by make from ./install.sh.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2312
# Reject install programs that cannot install multiple files.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2314
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1 by Joey Hess
* Joey Hess
2315
if test -z "$INSTALL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2316
if test "${ac_cv_path_install+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2317
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2318
else
2319
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320
for as_dir in $PATH
2321
do
2322
  IFS=$as_save_IFS
2323
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2324
    # Account for people who put trailing slashes in PATH elements.
2325
case $as_dir/ in #((
2326
  ./ | .// | /[cC]/* | \
1 by Joey Hess
* Joey Hess
2327
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2328
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1 by Joey Hess
* Joey Hess
2329
  /usr/ucb/* ) ;;
2330
  *)
2331
    # OSF1 and SCO ODT 3.0 have their own names for install.
2332
    # Don't use installbsd from OSF since it installs stuff as root
2333
    # by default.
2334
    for ac_prog in ginstall scoinst install; do
2335
      for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2336
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2337
	  if test $ac_prog = install &&
2338
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339
	    # AIX install.  It has an incompatible calling convention.
2340
	    :
2341
	  elif test $ac_prog = install &&
2342
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2343
	    # program-specific install script used by HP pwplus--don't use.
2344
	    :
2345
	  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2346
	    rm -rf conftest.one conftest.two conftest.dir
2347
	    echo one > conftest.one
2348
	    echo two > conftest.two
2349
	    mkdir conftest.dir
2350
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2351
	      test -s conftest.one && test -s conftest.two &&
2352
	      test -s conftest.dir/conftest.one &&
2353
	      test -s conftest.dir/conftest.two
2354
	    then
2355
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2356
	      break 3
2357
	    fi
1 by Joey Hess
* Joey Hess
2358
	  fi
2359
	fi
2360
      done
2361
    done
2362
    ;;
2363
esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2364
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2365
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2366
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2367
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2368
rm -rf conftest.one conftest.two conftest.dir
1 by Joey Hess
* Joey Hess
2369
2370
fi
2371
  if test "${ac_cv_path_install+set}" = set; then
2372
    INSTALL=$ac_cv_path_install
2373
  else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2374
    # As a last resort, use the slow shell script.  Don't cache a
2375
    # value for INSTALL within a source directory, because that will
1 by Joey Hess
* Joey Hess
2376
    # break other packages using the cache if that directory is
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2377
    # removed, or if the value is a relative name.
1 by Joey Hess
* Joey Hess
2378
    INSTALL=$ac_install_sh
2379
  fi
2380
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2382
$as_echo "$INSTALL" >&6; }
1 by Joey Hess
* Joey Hess
2383
2384
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2385
# It thinks the first close brace ends the variable substitution.
2386
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2387
2388
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2389
2390
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2391
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2393
$as_echo_n "checking whether build environment is sane... " >&6; }
1 by Joey Hess
* Joey Hess
2394
# Just in case
2395
sleep 1
2396
echo timestamp > conftest.file
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2397
# Reject unsafe characters in $srcdir or the absolute working directory
2398
# name.  Accept space and tab only in the latter.
2399
am_lf='
2400
'
2401
case `pwd` in
2402
  *[\\\"\#\$\&\'\`$am_lf]*)
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2403
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2404
esac
2405
case $srcdir in
2406
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2407
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2408
esac
2409
1 by Joey Hess
* Joey Hess
2410
# Do `set' in a subshell so we don't clobber the current shell's
2411
# arguments.  Must try -L first in case configure is actually a
2412
# symlink; some systems play weird games with the mod time of symlinks
2413
# (eg FreeBSD returns the mod time of the symlink's containing
2414
# directory).
2415
if (
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2416
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Joey Hess
* Joey Hess
2417
   if test "$*" = "X"; then
2418
      # -L didn't work.
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2419
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Joey Hess
* Joey Hess
2420
   fi
2421
   rm -f conftest.file
2422
   if test "$*" != "X $srcdir/configure conftest.file" \
2423
      && test "$*" != "X conftest.file $srcdir/configure"; then
2424
2425
      # If neither matched, then we have a broken ls.  This can happen
2426
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2427
      # broken ls alias from the environment.  This has actually
2428
      # happened.  Such a system could not be considered "sane".
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2429
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2430
alias in your environment" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2431
   fi
2432
2433
   test "$2" = conftest.file
2434
   )
2435
then
2436
   # Ok.
2437
   :
2438
else
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2439
   as_fn_error $? "newly created file is older than distributed files!
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2440
Check your system clock" "$LINENO" 5
1 by Joey Hess
* Joey Hess
2441
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2443
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
2444
test "$program_prefix" != NONE &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2445
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1 by Joey Hess
* Joey Hess
2446
# Use a double $ so make ignores it.
2447
test "$program_suffix" != NONE &&
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2448
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2449
# Double any \ or $.
1 by Joey Hess
* Joey Hess
2450
# By default was `s,x,x', remove it if useless.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2451
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2452
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1 by Joey Hess
* Joey Hess
2453
2454
# expand $ac_aux_dir to an absolute path
2455
am_aux_dir=`cd $ac_aux_dir && pwd`
2456
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2457
if test x"${MISSING+set}" != xset; then
2458
  case $am_aux_dir in
2459
  *\ * | *\	*)
2460
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2461
  *)
2462
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2463
  esac
2464
fi
1 by Joey Hess
* Joey Hess
2465
# Use eval to expand $SHELL
2466
if eval "$MISSING --run true"; then
2467
  am_missing_run="$MISSING --run "
2468
else
2469
  am_missing_run=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2470
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2471
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1 by Joey Hess
* Joey Hess
2472
fi
2473
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2474
if test x"${install_sh}" != xset; then
2475
  case $am_aux_dir in
2476
  *\ * | *\	*)
2477
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2478
  *)
2479
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2480
  esac
2481
fi
2482
2483
# Installed binaries are usually stripped using `strip' when the user
2484
# run `make install-strip'.  However `strip' might not be the right
2485
# tool to use in cross-compilation environments, therefore Automake
2486
# will honor the `STRIP' environment variable to overrule this program.
2487
if test "$cross_compiling" != no; then
2488
  if test -n "$ac_tool_prefix"; then
2489
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490
set dummy ${ac_tool_prefix}strip; ac_word=$2
2491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492
$as_echo_n "checking for $ac_word... " >&6; }
2493
if test "${ac_cv_prog_STRIP+set}" = set; then :
2494
  $as_echo_n "(cached) " >&6
2495
else
2496
  if test -n "$STRIP"; then
2497
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2498
else
2499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500
for as_dir in $PATH
2501
do
2502
  IFS=$as_save_IFS
2503
  test -z "$as_dir" && as_dir=.
2504
    for ac_exec_ext in '' $ac_executable_extensions; do
2505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2507
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508
    break 2
2509
  fi
2510
done
2511
  done
2512
IFS=$as_save_IFS
2513
2514
fi
2515
fi
2516
STRIP=$ac_cv_prog_STRIP
2517
if test -n "$STRIP"; then
2518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2519
$as_echo "$STRIP" >&6; }
2520
else
2521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522
$as_echo "no" >&6; }
2523
fi
2524
2525
2526
fi
2527
if test -z "$ac_cv_prog_STRIP"; then
2528
  ac_ct_STRIP=$STRIP
2529
  # Extract the first word of "strip", so it can be a program name with args.
2530
set dummy strip; ac_word=$2
2531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532
$as_echo_n "checking for $ac_word... " >&6; }
2533
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2534
  $as_echo_n "(cached) " >&6
2535
else
2536
  if test -n "$ac_ct_STRIP"; then
2537
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2538
else
2539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540
for as_dir in $PATH
2541
do
2542
  IFS=$as_save_IFS
2543
  test -z "$as_dir" && as_dir=.
2544
    for ac_exec_ext in '' $ac_executable_extensions; do
2545
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546
    ac_cv_prog_ac_ct_STRIP="strip"
2547
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548
    break 2
2549
  fi
2550
done
2551
  done
2552
IFS=$as_save_IFS
2553
2554
fi
2555
fi
2556
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2557
if test -n "$ac_ct_STRIP"; then
2558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2559
$as_echo "$ac_ct_STRIP" >&6; }
2560
else
2561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562
$as_echo "no" >&6; }
2563
fi
2564
2565
  if test "x$ac_ct_STRIP" = x; then
2566
    STRIP=":"
2567
  else
2568
    case $cross_compiling:$ac_tool_warned in
2569
yes:)
2570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572
ac_tool_warned=yes ;;
2573
esac
2574
    STRIP=$ac_ct_STRIP
2575
  fi
2576
else
2577
  STRIP="$ac_cv_prog_STRIP"
2578
fi
2579
2580
fi
2581
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2584
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2585
if test -z "$MKDIR_P"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2586
  if test "${ac_cv_path_mkdir+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2587
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2588
else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2589
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2591
do
2592
  IFS=$as_save_IFS
2593
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2594
    for ac_prog in mkdir gmkdir; do
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2595
	 for ac_exec_ext in '' $ac_executable_extensions; do
2596
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2597
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2598
	     'mkdir (GNU coreutils) '* | \
2599
	     'mkdir (coreutils) '* | \
2600
	     'mkdir (fileutils) '4.1*)
2601
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602
	       break 3;;
2603
	   esac
2604
	 done
2605
       done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2606
  done
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2607
IFS=$as_save_IFS
2608
2609
fi
2610
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
2611
  test -d ./--version && rmdir ./--version
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2612
  if test "${ac_cv_path_mkdir+set}" = set; then
2613
    MKDIR_P="$ac_cv_path_mkdir -p"
1 by Joey Hess
* Joey Hess
2614
  else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2615
    # As a last resort, use the slow shell script.  Don't cache a
2616
    # value for MKDIR_P within a source directory, because that will
2617
    # break other packages using the cache if that directory is
2618
    # removed, or if the value is a relative name.
2619
    MKDIR_P="$ac_install_sh -d"
1 by Joey Hess
* Joey Hess
2620
  fi
2621
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2623
$as_echo "$MKDIR_P" >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2624
2625
mkdir_p="$MKDIR_P"
2626
case $mkdir_p in
2627
  [\\/$]* | ?:[\\/]*) ;;
2628
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2629
esac
1 by Joey Hess
* Joey Hess
2630
2631
for ac_prog in gawk mawk nawk awk
2632
do
2633
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2634
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2636
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2637
if test "${ac_cv_prog_AWK+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2638
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2639
else
2640
  if test -n "$AWK"; then
2641
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2642
else
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
for as_dir in $PATH
2645
do
2646
  IFS=$as_save_IFS
2647
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2648
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2650
    ac_cv_prog_AWK="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2651
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2652
    break 2
2653
  fi
2654
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2655
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2656
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2657
2658
fi
2659
fi
2660
AWK=$ac_cv_prog_AWK
2661
if test -n "$AWK"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2663
$as_echo "$AWK" >&6; }
1 by Joey Hess
* Joey Hess
2664
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2666
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2667
fi
2668
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2669
1 by Joey Hess
* Joey Hess
2670
  test -n "$AWK" && break
2671
done
2672
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2674
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2675
set x ${MAKE-make}
2676
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2677
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2678
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2679
else
2680
  cat >conftest.make <<\_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2681
SHELL = /bin/sh
1 by Joey Hess
* Joey Hess
2682
all:
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2683
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1 by Joey Hess
* Joey Hess
2684
_ACEOF
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2685
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2686
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2687
  *@@@%%%=?*=@@@%%%*)
2688
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2689
  *)
2690
    eval ac_cv_prog_make_${ac_make}_set=no;;
2691
esac
1 by Joey Hess
* Joey Hess
2692
rm -f conftest.make
2693
fi
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
2694
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2696
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
2697
  SET_MAKE=
2698
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2700
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2701
  SET_MAKE="MAKE=${MAKE-make}"
2702
fi
2703
2704
rm -rf .tst 2>/dev/null
2705
mkdir .tst 2>/dev/null
2706
if test -d .tst; then
2707
  am__leading_dot=.
2708
else
2709
  am__leading_dot=_
2710
fi
2711
rmdir .tst 2>/dev/null
2712
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2713
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2714
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2715
  # is not polluted with repeated "-I."
2716
  am__isrc=' -I$(srcdir)'
2717
  # test to see if srcdir already configured
2718
  if test -f $srcdir/config.status; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
2719
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2720
  fi
1 by Joey Hess
* Joey Hess
2721
fi
2722
2723
# test whether we have cygpath
2724
if test -z "$CYGPATH_W"; then
2725
  if (cygpath --version) >/dev/null 2>/dev/null; then
2726
    CYGPATH_W='cygpath -w'
2727
  else
2728
    CYGPATH_W=echo
2729
  fi
2730
fi
2731
2732
2733
# Define the identity of the package.
2734
 PACKAGE='libdebian-installer'
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
2735
 VERSION='0.77'
1 by Joey Hess
* Joey Hess
2736
2737
2738
cat >>confdefs.h <<_ACEOF
2739
#define PACKAGE "$PACKAGE"
2740
_ACEOF
2741
2742
2743
cat >>confdefs.h <<_ACEOF
2744
#define VERSION "$VERSION"
2745
_ACEOF
2746
2747
# Some tools Automake needs.
2748
2749
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763
# We need awk for the "check" target.  The system "awk" is bad on
2764
# some platforms.
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2765
# Always define AMTAR for backward compatibility.
2766
2767
AMTAR=${AMTAR-"${am_missing_run}tar"}
2768
2769
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2770
2771
1 by Joey Hess
* Joey Hess
2772
2773
2774
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
2775
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2777
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2778
    # Check whether --enable-maintainer-mode was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2779
if test "${enable_maintainer_mode+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2780
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1 by Joey Hess
* Joey Hess
2781
else
2782
  USE_MAINTAINER_MODE=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2783
fi
2784
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2786
$as_echo "$USE_MAINTAINER_MODE" >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
2787
   if test $USE_MAINTAINER_MODE = yes; then
1 by Joey Hess
* Joey Hess
2788
  MAINTAINER_MODE_TRUE=
2789
  MAINTAINER_MODE_FALSE='#'
2790
else
2791
  MAINTAINER_MODE_TRUE='#'
2792
  MAINTAINER_MODE_FALSE=
2793
fi
2794
2795
  MAINT=$MAINTAINER_MODE_TRUE
2796
2797
2798
2799
ac_ext=c
2800
ac_cpp='$CPP $CPPFLAGS'
2801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
if test -n "$ac_tool_prefix"; then
2805
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2806
set dummy ${ac_tool_prefix}gcc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2808
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2809
if test "${ac_cv_prog_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2810
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2811
else
2812
  if test -n "$CC"; then
2813
  ac_cv_prog_CC="$CC" # Let the user override the test.
2814
else
2815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
for as_dir in $PATH
2817
do
2818
  IFS=$as_save_IFS
2819
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2820
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2821
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2822
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2823
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2824
    break 2
2825
  fi
2826
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2827
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2828
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2829
2830
fi
2831
fi
2832
CC=$ac_cv_prog_CC
2833
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2835
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
2836
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2838
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2839
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2840
1 by Joey Hess
* Joey Hess
2841
2842
fi
2843
if test -z "$ac_cv_prog_CC"; then
2844
  ac_ct_CC=$CC
2845
  # Extract the first word of "gcc", so it can be a program name with args.
2846
set dummy gcc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2848
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2849
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2850
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2851
else
2852
  if test -n "$ac_ct_CC"; then
2853
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854
else
2855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856
for as_dir in $PATH
2857
do
2858
  IFS=$as_save_IFS
2859
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2860
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2862
    ac_cv_prog_ac_ct_CC="gcc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2863
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2864
    break 2
2865
  fi
2866
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2867
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2868
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2869
2870
fi
2871
fi
2872
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873
if test -n "$ac_ct_CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2875
$as_echo "$ac_ct_CC" >&6; }
1 by Joey Hess
* Joey Hess
2876
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2878
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2879
fi
2880
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2881
  if test "x$ac_ct_CC" = x; then
2882
    CC=""
2883
  else
2884
    case $cross_compiling:$ac_tool_warned in
2885
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2887
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2888
ac_tool_warned=yes ;;
2889
esac
2890
    CC=$ac_ct_CC
2891
  fi
1 by Joey Hess
* Joey Hess
2892
else
2893
  CC="$ac_cv_prog_CC"
2894
fi
2895
2896
if test -z "$CC"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2897
          if test -n "$ac_tool_prefix"; then
2898
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1 by Joey Hess
* Joey Hess
2899
set dummy ${ac_tool_prefix}cc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2901
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2902
if test "${ac_cv_prog_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2903
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2904
else
2905
  if test -n "$CC"; then
2906
  ac_cv_prog_CC="$CC" # Let the user override the test.
2907
else
2908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909
for as_dir in $PATH
2910
do
2911
  IFS=$as_save_IFS
2912
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2913
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2914
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2915
    ac_cv_prog_CC="${ac_tool_prefix}cc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2917
    break 2
2918
  fi
2919
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2920
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2921
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2922
2923
fi
2924
fi
2925
CC=$ac_cv_prog_CC
2926
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2928
$as_echo "$CC" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2929
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2931
$as_echo "no" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2932
fi
2933
2934
1 by Joey Hess
* Joey Hess
2935
  fi
2936
fi
2937
if test -z "$CC"; then
2938
  # Extract the first word of "cc", so it can be a program name with args.
2939
set dummy cc; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2941
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2942
if test "${ac_cv_prog_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2943
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
2944
else
2945
  if test -n "$CC"; then
2946
  ac_cv_prog_CC="$CC" # Let the user override the test.
2947
else
2948
  ac_prog_rejected=no
2949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950
for as_dir in $PATH
2951
do
2952
  IFS=$as_save_IFS
2953
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2954
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
2955
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
2956
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2957
       ac_prog_rejected=yes
2958
       continue
2959
     fi
2960
    ac_cv_prog_CC="cc"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2961
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
2962
    break 2
2963
  fi
2964
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2965
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2966
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
2967
2968
if test $ac_prog_rejected = yes; then
2969
  # We found a bogon in the path, so make sure we never use it.
2970
  set dummy $ac_cv_prog_CC
2971
  shift
2972
  if test $# != 0; then
2973
    # We chose a different compiler from the bogus one.
2974
    # However, it has the same basename, so the bogon will be chosen
2975
    # first if we set CC to just the basename; use the full file name.
2976
    shift
2977
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2978
  fi
2979
fi
2980
fi
2981
fi
2982
CC=$ac_cv_prog_CC
2983
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2985
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
2986
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
2988
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
2989
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2990
1 by Joey Hess
* Joey Hess
2991
2992
fi
2993
if test -z "$CC"; then
2994
  if test -n "$ac_tool_prefix"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
2995
  for ac_prog in cl.exe
1 by Joey Hess
* Joey Hess
2996
  do
2997
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3000
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3001
if test "${ac_cv_prog_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3002
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3003
else
3004
  if test -n "$CC"; then
3005
  ac_cv_prog_CC="$CC" # Let the user override the test.
3006
else
3007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008
for as_dir in $PATH
3009
do
3010
  IFS=$as_save_IFS
3011
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3012
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
3013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
3014
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
3016
    break 2
3017
  fi
3018
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3019
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3020
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
3021
3022
fi
3023
fi
3024
CC=$ac_cv_prog_CC
3025
if test -n "$CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3027
$as_echo "$CC" >&6; }
1 by Joey Hess
* Joey Hess
3028
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3030
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
3031
fi
3032
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3033
1 by Joey Hess
* Joey Hess
3034
    test -n "$CC" && break
3035
  done
3036
fi
3037
if test -z "$CC"; then
3038
  ac_ct_CC=$CC
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3039
  for ac_prog in cl.exe
1 by Joey Hess
* Joey Hess
3040
do
3041
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3042
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3044
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3045
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3046
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3047
else
3048
  if test -n "$ac_ct_CC"; then
3049
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050
else
3051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052
for as_dir in $PATH
3053
do
3054
  IFS=$as_save_IFS
3055
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3056
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
3057
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
3058
    ac_cv_prog_ac_ct_CC="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3059
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
3060
    break 2
3061
  fi
3062
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3063
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3064
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
3065
3066
fi
3067
fi
3068
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069
if test -n "$ac_ct_CC"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3071
$as_echo "$ac_ct_CC" >&6; }
1 by Joey Hess
* Joey Hess
3072
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3074
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
3075
fi
3076
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3077
1 by Joey Hess
* Joey Hess
3078
  test -n "$ac_ct_CC" && break
3079
done
3080
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3081
  if test "x$ac_ct_CC" = x; then
3082
    CC=""
3083
  else
3084
    case $cross_compiling:$ac_tool_warned in
3085
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3087
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3088
ac_tool_warned=yes ;;
3089
esac
3090
    CC=$ac_ct_CC
3091
  fi
1 by Joey Hess
* Joey Hess
3092
fi
3093
3094
fi
3095
3096
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3097
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3098
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3099
as_fn_error $? "no acceptable C compiler found in \$PATH
3100
See \`config.log' for more details" "$LINENO" 5 ; }
1 by Joey Hess
* Joey Hess
3101
3102
# Provide some information about the compiler.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3103
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3104
set X $ac_compile
3105
ac_compiler=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3106
for ac_option in --version -v -V -qversion; do
3107
  { { ac_try="$ac_compiler $ac_option >&5"
3108
case "(($ac_try" in
3109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110
  *) ac_try_echo=$ac_try;;
3111
esac
3112
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113
$as_echo "$ac_try_echo"; } >&5
3114
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3115
  ac_status=$?
3116
  if test -s conftest.err; then
3117
    sed '10a\
3118
... rest of stderr output deleted ...
3119
         10q' conftest.err >conftest.er1
3120
    cat conftest.er1 >&5
3121
  fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3122
  rm -f conftest.er1 conftest.err
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3123
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124
  test $ac_status = 0; }
3125
done
1 by Joey Hess
* Joey Hess
3126
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3128
/* end confdefs.h.  */
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3129
1 by Joey Hess
* Joey Hess
3130
int
3131
main ()
3132
{
3133
3134
  ;
3135
  return 0;
3136
}
3137
_ACEOF
3138
ac_clean_files_save=$ac_clean_files
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3139
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1 by Joey Hess
* Joey Hess
3140
# Try to create an executable without -o first, disregard a.out.
3141
# It will help us diagnose broken compilers, and finding out an intuition
3142
# of exeext.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3144
$as_echo_n "checking whether the C compiler works... " >&6; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3145
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146
3147
# The possible output files:
3148
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3149
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3150
ac_rmfiles=
3151
for ac_file in $ac_files
3152
do
3153
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3154
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3155
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3156
  esac
3157
done
3158
rm -f $ac_rmfiles
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3159
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3160
if { { ac_try="$ac_link_default"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3161
case "(($ac_try" in
3162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163
  *) ac_try_echo=$ac_try;;
3164
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3165
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3167
  (eval "$ac_link_default") 2>&5
1 by Joey Hess
* Joey Hess
3168
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3169
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170
  test $ac_status = 0; }; then :
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3171
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3172
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3173
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3174
# so that the user can short-circuit this test for compilers unknown to
3175
# Autoconf.
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3176
for ac_file in $ac_files ''
1 by Joey Hess
* Joey Hess
3177
do
3178
  test -f "$ac_file" || continue
3179
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3180
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3181
	;;
3182
    [ab].out )
3183
	# We found the default executable, but exeext='' is most
3184
	# certainly right.
3185
	break;;
3186
    *.* )
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3187
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3188
	then :; else
3189
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190
	fi
3191
	# We set ac_cv_exeext here because the later test for it is not
3192
	# safe: cross compilers may not add the suffix if given an `-o'
3193
	# argument, so we may need to know it at that point already.
3194
	# Even if this section looks crufty: it has the advantage of
3195
	# actually working.
3196
	break;;
3197
    * )
3198
	break;;
1 by Joey Hess
* Joey Hess
3199
  esac
3200
done
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3201
test "$ac_cv_exeext" = no && ac_cv_exeext=
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3202
1 by Joey Hess
* Joey Hess
3203
else
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3204
  ac_file=''
3205
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3206
if test -z "$ac_file"; then :
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3207
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208
$as_echo "no" >&6; }
3209
$as_echo "$as_me: failed program was:" >&5
1 by Joey Hess
* Joey Hess
3210
sed 's/^/| /' conftest.$ac_ext >&5
3211
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3212
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3213
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3214
as_fn_error 77 "C compiler cannot create executables
3215
See \`config.log' for more details" "$LINENO" 5 ; }
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3216
else
3217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218
$as_echo "yes" >&6; }
1 by Joey Hess
* Joey Hess
3219
fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3221
$as_echo_n "checking for C compiler default output file name... " >&6; }
27 by Colin Watson
Reupload with the right autotools bits.
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3223
$as_echo "$ac_file" >&6; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3224
ac_exeext=$ac_cv_exeext
3225
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3226
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3227
ac_clean_files=$ac_clean_files_save
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3229
$as_echo_n "checking for suffix of executables... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3230
if { { ac_try="$ac_link"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3231
case "(($ac_try" in
3232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233
  *) ac_try_echo=$ac_try;;
3234
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3235
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3237
  (eval "$ac_link") 2>&5
1 by Joey Hess
* Joey Hess
3238
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3239
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240
  test $ac_status = 0; }; then :
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3241
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243
# work properly (i.e., refer to `conftest.exe'), while it won't with
3244
# `rm'.
3245
for ac_file in conftest.exe conftest conftest.*; do
3246
  test -f "$ac_file" || continue
3247
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3248
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3249
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250
	  break;;
3251
    * ) break;;
3252
  esac
3253
done
1 by Joey Hess
* Joey Hess
3254
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3255
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3256
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3257
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3258
See \`config.log' for more details" "$LINENO" 5 ; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3259
fi
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3260
rm -f conftest conftest$ac_cv_exeext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3262
$as_echo "$ac_cv_exeext" >&6; }
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3263
3264
rm -f conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3265
EXEEXT=$ac_cv_exeext
3266
ac_exeext=$EXEEXT
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268
/* end confdefs.h.  */
3269
#include <stdio.h>
3270
int
3271
main ()
3272
{
3273
FILE *f = fopen ("conftest.out", "w");
3274
 return ferror (f) || fclose (f) != 0;
3275
3276
  ;
3277
  return 0;
3278
}
3279
_ACEOF
3280
ac_clean_files="$ac_clean_files conftest.out"
3281
# Check that the compiler produces executables we can run.  If not, either
3282
# the compiler is broken, or we cross compile.
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3284
$as_echo_n "checking whether we are cross compiling... " >&6; }
3285
if test "$cross_compiling" != yes; then
3286
  { { ac_try="$ac_link"
3287
case "(($ac_try" in
3288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289
  *) ac_try_echo=$ac_try;;
3290
esac
3291
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292
$as_echo "$ac_try_echo"; } >&5
3293
  (eval "$ac_link") 2>&5
3294
  ac_status=$?
3295
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296
  test $ac_status = 0; }
3297
  if { ac_try='./conftest$ac_cv_exeext'
3298
  { { case "(($ac_try" in
3299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300
  *) ac_try_echo=$ac_try;;
3301
esac
3302
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303
$as_echo "$ac_try_echo"; } >&5
3304
  (eval "$ac_try") 2>&5
3305
  ac_status=$?
3306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307
  test $ac_status = 0; }; }; then
3308
    cross_compiling=no
3309
  else
3310
    if test "$cross_compiling" = maybe; then
3311
	cross_compiling=yes
3312
    else
3313
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3315
as_fn_error $? "cannot run C compiled programs.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3316
If you meant to cross compile, use \`--host'.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3317
See \`config.log' for more details" "$LINENO" 5 ; }
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3318
    fi
3319
  fi
3320
fi
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3322
$as_echo "$cross_compiling" >&6; }
3323
3324
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3325
ac_clean_files=$ac_clean_files_save
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3327
$as_echo_n "checking for suffix of object files... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3328
if test "${ac_cv_objext+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3329
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3330
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3331
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3332
/* end confdefs.h.  */
3333
3334
int
3335
main ()
3336
{
3337
3338
  ;
3339
  return 0;
3340
}
3341
_ACEOF
3342
rm -f conftest.o conftest.obj
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3343
if { { ac_try="$ac_compile"
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3344
case "(($ac_try" in
3345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346
  *) ac_try_echo=$ac_try;;
3347
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3348
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349
$as_echo "$ac_try_echo"; } >&5
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3350
  (eval "$ac_compile") 2>&5
1 by Joey Hess
* Joey Hess
3351
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3352
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353
  test $ac_status = 0; }; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3354
  for ac_file in conftest.o conftest.obj conftest.*; do
3355
  test -f "$ac_file" || continue;
1 by Joey Hess
* Joey Hess
3356
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3357
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1 by Joey Hess
* Joey Hess
3358
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359
       break;;
3360
  esac
3361
done
3362
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3363
  $as_echo "$as_me: failed program was:" >&5
1 by Joey Hess
* Joey Hess
3364
sed 's/^/| /' conftest.$ac_ext >&5
3365
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3366
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3367
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3368
as_fn_error $? "cannot compute suffix of object files: cannot compile
3369
See \`config.log' for more details" "$LINENO" 5 ; }
1 by Joey Hess
* Joey Hess
3370
fi
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
3371
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3372
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3374
$as_echo "$ac_cv_objext" >&6; }
1 by Joey Hess
* Joey Hess
3375
OBJEXT=$ac_cv_objext
3376
ac_objext=$OBJEXT
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3378
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3379
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3380
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3381
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3382
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3383
/* end confdefs.h.  */
3384
3385
int
3386
main ()
3387
{
3388
#ifndef __GNUC__
3389
       choke me
3390
#endif
3391
3392
  ;
3393
  return 0;
3394
}
3395
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3396
if ac_fn_c_try_compile "$LINENO"; then :
1 by Joey Hess
* Joey Hess
3397
  ac_compiler_gnu=yes
3398
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3399
  ac_compiler_gnu=no
1 by Joey Hess
* Joey Hess
3400
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3402
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3403
3404
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3406
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3407
if test $ac_compiler_gnu = yes; then
3408
  GCC=yes
3409
else
3410
  GCC=
3411
fi
1 by Joey Hess
* Joey Hess
3412
ac_test_CFLAGS=${CFLAGS+set}
3413
ac_save_CFLAGS=$CFLAGS
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3415
$as_echo_n "checking whether $CC accepts -g... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3416
if test "${ac_cv_prog_cc_g+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3417
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3418
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3419
  ac_save_c_werror_flag=$ac_c_werror_flag
3420
   ac_c_werror_flag=yes
3421
   ac_cv_prog_cc_g=no
3422
   CFLAGS="-g"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3423
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3424
/* end confdefs.h.  */
3425
3426
int
3427
main ()
3428
{
3429
3430
  ;
3431
  return 0;
3432
}
3433
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3434
if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3435
  ac_cv_prog_cc_g=yes
3436
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3437
  CFLAGS=""
3438
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3439
/* end confdefs.h.  */
3440
3441
int
3442
main ()
3443
{
3444
3445
  ;
3446
  return 0;
3447
}
3448
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3449
if ac_fn_c_try_compile "$LINENO"; then :
3450
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3451
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3452
  ac_c_werror_flag=$ac_save_c_werror_flag
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3453
	 CFLAGS="-g"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3454
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3455
/* end confdefs.h.  */
3456
3457
int
3458
main ()
3459
{
3460
3461
  ;
3462
  return 0;
3463
}
3464
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3465
if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3466
  ac_cv_prog_cc_g=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3467
fi
3468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469
fi
3470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3473
   ac_c_werror_flag=$ac_save_c_werror_flag
3474
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3476
$as_echo "$ac_cv_prog_cc_g" >&6; }
1 by Joey Hess
* Joey Hess
3477
if test "$ac_test_CFLAGS" = set; then
3478
  CFLAGS=$ac_save_CFLAGS
3479
elif test $ac_cv_prog_cc_g = yes; then
3480
  if test "$GCC" = yes; then
3481
    CFLAGS="-g -O2"
3482
  else
3483
    CFLAGS="-g"
3484
  fi
3485
else
3486
  if test "$GCC" = yes; then
3487
    CFLAGS="-O2"
3488
  else
3489
    CFLAGS=
3490
  fi
3491
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3493
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3494
if test "${ac_cv_prog_cc_c89+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3495
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3496
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3497
  ac_cv_prog_cc_c89=no
1 by Joey Hess
* Joey Hess
3498
ac_save_CC=$CC
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3499
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3500
/* end confdefs.h.  */
3501
#include <stdarg.h>
3502
#include <stdio.h>
3503
#include <sys/types.h>
3504
#include <sys/stat.h>
3505
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3506
struct buf { int x; };
3507
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508
static char *e (p, i)
3509
     char **p;
3510
     int i;
3511
{
3512
  return p[i];
3513
}
3514
static char *f (char * (*g) (char **, int), char **p, ...)
3515
{
3516
  char *s;
3517
  va_list v;
3518
  va_start (v,p);
3519
  s = g (p, va_arg (v,int));
3520
  va_end (v);
3521
  return s;
3522
}
3523
3524
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3525
   function prototypes and stuff, but not '\xHH' hex character constants.
3526
   These don't provoke an error unfortunately, instead are silently treated
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3527
   as 'x'.  The following induces an error, until -std is added to get
1 by Joey Hess
* Joey Hess
3528
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3529
   array size at least.  It's necessary to write '\x00'==0 to get something
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3530
   that's true only with -std.  */
1 by Joey Hess
* Joey Hess
3531
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3532
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3533
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534
   inside strings and character constants.  */
3535
#define FOO(x) 'x'
3536
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3537
1 by Joey Hess
* Joey Hess
3538
int test (int i, double x);
3539
struct s1 {int (*f) (int a);};
3540
struct s2 {int (*f) (double a);};
3541
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542
int argc;
3543
char **argv;
3544
int
3545
main ()
3546
{
3547
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3548
  ;
3549
  return 0;
3550
}
3551
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3552
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1 by Joey Hess
* Joey Hess
3554
do
3555
  CC="$ac_save_CC $ac_arg"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3556
  if ac_fn_c_try_compile "$LINENO"; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3557
  ac_cv_prog_cc_c89=$ac_arg
1 by Joey Hess
* Joey Hess
3558
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
3559
rm -f core conftest.err conftest.$ac_objext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3560
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1 by Joey Hess
* Joey Hess
3561
done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3562
rm -f conftest.$ac_ext
1 by Joey Hess
* Joey Hess
3563
CC=$ac_save_CC
3564
3565
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3566
# AC_CACHE_VAL
3567
case "x$ac_cv_prog_cc_c89" in
3568
  x)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3569
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3570
$as_echo "none needed" >&6; } ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3571
  xno)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3572
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3573
$as_echo "unsupported" >&6; } ;;
1 by Joey Hess
* Joey Hess
3574
  *)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3575
    CC="$CC $ac_cv_prog_cc_c89"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3576
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3577
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1 by Joey Hess
* Joey Hess
3578
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3579
if test "x$ac_cv_prog_cc_c89" != xno; then :
1 by Joey Hess
* Joey Hess
3580
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3581
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3582
1 by Joey Hess
* Joey Hess
3583
ac_ext=c
3584
ac_cpp='$CPP $CPPFLAGS'
3585
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
DEPDIR="${am__leading_dot}deps"
3589
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3590
ac_config_commands="$ac_config_commands depfiles"
1 by Joey Hess
* Joey Hess
3591
3592
3593
am_make=${MAKE-make}
3594
cat > confinc << 'END'
3595
am__doit:
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3596
	@echo this is the am__doit target
1 by Joey Hess
* Joey Hess
3597
.PHONY: am__doit
3598
END
3599
# If we don't find an include directive, just comment out the code.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3601
$as_echo_n "checking for style of include used by $am_make... " >&6; }
1 by Joey Hess
* Joey Hess
3602
am__include="#"
3603
am__quote=
3604
_am_result=none
3605
# First try GNU make style include.
3606
echo "include confinc" > confmf
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3607
# Ignore all kinds of additional output from `make'.
3608
case `$am_make -s -f confmf 2> /dev/null` in #(
3609
*the\ am__doit\ target*)
3610
  am__include=include
3611
  am__quote=
3612
  _am_result=GNU
3613
  ;;
3614
esac
1 by Joey Hess
* Joey Hess
3615
# Now try BSD make style include.
3616
if test "$am__include" = "#"; then
3617
   echo '.include "confinc"' > confmf
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3618
   case `$am_make -s -f confmf 2> /dev/null` in #(
3619
   *the\ am__doit\ target*)
3620
     am__include=.include
3621
     am__quote="\""
3622
     _am_result=BSD
3623
     ;;
3624
   esac
1 by Joey Hess
* Joey Hess
3625
fi
3626
3627
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3629
$as_echo "$_am_result" >&6; }
1 by Joey Hess
* Joey Hess
3630
rm -f confinc confmf
3631
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3632
# Check whether --enable-dependency-tracking was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3633
if test "${enable_dependency_tracking+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3634
  enableval=$enable_dependency_tracking;
3635
fi
1 by Joey Hess
* Joey Hess
3636
3637
if test "x$enable_dependency_tracking" != xno; then
3638
  am_depcomp="$ac_aux_dir/depcomp"
3639
  AMDEPBACKSLASH='\'
3640
fi
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3641
 if test "x$enable_dependency_tracking" != xno; then
1 by Joey Hess
* Joey Hess
3642
  AMDEP_TRUE=
3643
  AMDEP_FALSE='#'
3644
else
3645
  AMDEP_TRUE='#'
3646
  AMDEP_FALSE=
3647
fi
3648
3649
3650
3651
depcc="$CC"   am_compiler_list=
3652
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3654
$as_echo_n "checking dependency style of $depcc... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3655
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3656
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3657
else
3658
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3659
  # We make a subdir and do the tests there.  Otherwise we can end up
3660
  # making bogus files that we don't know about and never remove.  For
3661
  # instance it was reported that on HP-UX the gcc test will end up
3662
  # making a dummy file named `D' -- because `-MD' means `put the output
3663
  # in D'.
3664
  mkdir conftest.dir
3665
  # Copy depcomp to subdir because otherwise we won't find it if we're
3666
  # using a relative directory.
3667
  cp "$am_depcomp" conftest.dir
3668
  cd conftest.dir
3669
  # We will build objects and dependencies in a subdirectory because
3670
  # it helps to detect inapplicable dependency modes.  For instance
3671
  # both Tru64's cc and ICC support -MD to output dependencies as a
3672
  # side effect of compilation, but ICC will put the dependencies in
3673
  # the current directory while Tru64 will put them in the object
3674
  # directory.
3675
  mkdir sub
3676
3677
  am_cv_CC_dependencies_compiler_type=none
3678
  if test "$am_compiler_list" = ""; then
3679
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3680
  fi
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3681
  am__universal=false
3682
  case " $depcc " in #(
3683
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3684
     esac
3685
1 by Joey Hess
* Joey Hess
3686
  for depmode in $am_compiler_list; do
3687
    # Setup a source with many dependencies, because some compilers
3688
    # like to wrap large dependency lists on column 80 (with \), and
3689
    # we should not choose a depcomp mode which is confused by this.
3690
    #
3691
    # We need to recreate these files for each test, as the compiler may
3692
    # overwrite some of them when testing with obscure command lines.
3693
    # This happens at least with the AIX C compiler.
3694
    : > sub/conftest.c
3695
    for i in 1 2 3 4 5 6; do
3696
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3697
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3698
      # Solaris 8's {/usr,}/bin/sh.
3699
      touch sub/conftst$i.h
3700
    done
3701
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3702
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3703
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3704
    # mode.  It turns out that the SunPro C++ compiler does not properly
3705
    # handle `-M -o', and we need to detect this.  Also, some Intel
3706
    # versions had trouble with output in subdirs
3707
    am__obj=sub/conftest.${OBJEXT-o}
3708
    am__minus_obj="-o $am__obj"
1 by Joey Hess
* Joey Hess
3709
    case $depmode in
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3710
    gcc)
3711
      # This depmode causes a compiler race in universal mode.
3712
      test "$am__universal" = false || continue
3713
      ;;
1 by Joey Hess
* Joey Hess
3714
    nosideeffect)
3715
      # after this tag, mechanisms are not by side-effect, so they'll
3716
      # only be used when explicitly requested
3717
      if test "x$enable_dependency_tracking" = xyes; then
3718
	continue
3719
      else
3720
	break
3721
      fi
3722
      ;;
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3723
    msvisualcpp | msvcmsys)
3724
      # This compiler won't grok `-c -o', but also, the minuso test has
3725
      # not run yet.  These depmodes are late enough in the game, and
3726
      # so weak that their functioning should not be impacted.
3727
      am__obj=conftest.${OBJEXT-o}
3728
      am__minus_obj=
3729
      ;;
1 by Joey Hess
* Joey Hess
3730
    none) break ;;
3731
    esac
3732
    if depmode=$depmode \
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3733
       source=sub/conftest.c object=$am__obj \
1 by Joey Hess
* Joey Hess
3734
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3735
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1 by Joey Hess
* Joey Hess
3736
         >/dev/null 2>conftest.err &&
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3737
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Joey Hess
* Joey Hess
3738
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
3739
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1 by Joey Hess
* Joey Hess
3740
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3741
      # icc doesn't choke on unknown options, it will just issue warnings
2 by Colin Watson
* Update GPL notices with the FSF's new address.
3742
      # or remarks (even with -Werror).  So we grep stderr for any message
3743
      # that says an option was ignored or not supported.
3744
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3745
      #   icc: Command line warning: ignoring option '-M'; no argument required
3746
      # The diagnosis changed in icc 8.0:
3747
      #   icc: Command line remark: option '-MP' not supported
3748
      if (grep 'ignoring option' conftest.err ||
3749
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1 by Joey Hess
* Joey Hess
3750
        am_cv_CC_dependencies_compiler_type=$depmode
3751
        break
3752
      fi
3753
    fi
3754
  done
3755
3756
  cd ..
3757
  rm -rf conftest.dir
3758
else
3759
  am_cv_CC_dependencies_compiler_type=none
3760
fi
3761
3762
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3764
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1 by Joey Hess
* Joey Hess
3765
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3766
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3767
 if
1 by Joey Hess
* Joey Hess
3768
  test "x$enable_dependency_tracking" != xno \
3769
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3770
  am__fastdepCC_TRUE=
3771
  am__fastdepCC_FALSE='#'
3772
else
3773
  am__fastdepCC_TRUE='#'
3774
  am__fastdepCC_FALSE=
3775
fi
3776
3777
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3778
case `pwd` in
3779
  *\ * | *\	*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3780
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3781
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3782
esac
3783
3784
3785
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
3786
macro_version='2.2.6b'
3787
macro_revision='1.3017'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
ltmain="$ac_aux_dir/ltmain.sh"
1 by Joey Hess
* Joey Hess
3802
3803
# Make sure we can run config.sub.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3804
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3805
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3806
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3808
$as_echo_n "checking build system type... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3809
if test "${ac_cv_build+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3810
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3811
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3812
  ac_build_alias=$build_alias
3813
test "x$ac_build_alias" = x &&
3814
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3815
test "x$ac_build_alias" = x &&
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3816
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3817
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3818
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3819
3820
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3822
$as_echo "$ac_cv_build" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3823
case $ac_cv_build in
3824
*-*-*) ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3825
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3826
esac
1 by Joey Hess
* Joey Hess
3827
build=$ac_cv_build
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3828
ac_save_IFS=$IFS; IFS='-'
3829
set x $ac_cv_build
3830
shift
3831
build_cpu=$1
3832
build_vendor=$2
3833
shift; shift
3834
# Remember, the first character of IFS is used to create $*,
3835
# except with old shells:
3836
build_os=$*
3837
IFS=$ac_save_IFS
3838
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3839
3840
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3842
$as_echo_n "checking host system type... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3843
if test "${ac_cv_host+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3844
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3845
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3846
  if test "x$host_alias" = x; then
3847
  ac_cv_host=$ac_cv_build
3848
else
3849
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3850
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3851
fi
1 by Joey Hess
* Joey Hess
3852
3853
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3855
$as_echo "$ac_cv_host" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3856
case $ac_cv_host in
3857
*-*-*) ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3858
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3859
esac
1 by Joey Hess
* Joey Hess
3860
host=$ac_cv_host
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3861
ac_save_IFS=$IFS; IFS='-'
3862
set x $ac_cv_host
3863
shift
3864
host_cpu=$1
3865
host_vendor=$2
3866
shift; shift
3867
# Remember, the first character of IFS is used to create $*,
3868
# except with old shells:
3869
host_os=$*
3870
IFS=$ac_save_IFS
3871
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3872
3873
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3875
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3876
if test "${ac_cv_path_SED+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3877
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
3878
else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3879
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3880
     for ac_i in 1 2 3 4 5 6 7; do
3881
       ac_script="$ac_script$as_nl$ac_script"
3882
     done
3883
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3884
     { ac_script=; unset ac_script;}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3885
     if test -z "$SED"; then
3886
  ac_path_SED_found=false
3887
  # Loop through the user's path and test for each of PROGNAME-LIST
3888
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1 by Joey Hess
* Joey Hess
3889
for as_dir in $PATH
3890
do
3891
  IFS=$as_save_IFS
3892
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3893
    for ac_prog in sed gsed; do
1 by Joey Hess
* Joey Hess
3894
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3895
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3896
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3897
# Check for GNU ac_path_SED and select it if it is found.
3898
  # Check for GNU $ac_path_SED
3899
case `"$ac_path_SED" --version 2>&1` in
3900
*GNU*)
3901
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3902
*)
3903
  ac_count=0
3904
  $as_echo_n 0123456789 >"conftest.in"
3905
  while :
3906
  do
3907
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3908
    mv "conftest.tmp" "conftest.in"
3909
    cp "conftest.in" "conftest.nl"
3910
    $as_echo '' >> "conftest.nl"
3911
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3913
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3914
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3915
      # Best one so far, save it but keep looking for a better one
3916
      ac_cv_path_SED="$ac_path_SED"
3917
      ac_path_SED_max=$ac_count
3918
    fi
3919
    # 10*(2^10) chars as input seems more than enough
3920
    test $ac_count -gt 10 && break
3921
  done
3922
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923
esac
3924
3925
      $ac_path_SED_found && break 3
1 by Joey Hess
* Joey Hess
3926
    done
3927
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3928
  done
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
3929
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3930
  if test -z "$ac_cv_path_SED"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
3931
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1 by Joey Hess
* Joey Hess
3932
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3933
else
3934
  ac_cv_path_SED=$SED
3935
fi
3936
3937
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3939
$as_echo "$ac_cv_path_SED" >&6; }
3940
 SED="$ac_cv_path_SED"
3941
  rm -f conftest.sed
3942
3943
test -z "$SED" && SED=sed
3944
Xsed="$SED -e 1s/^X//"
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3957
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3958
if test "${ac_cv_path_GREP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3959
  $as_echo_n "(cached) " >&6
3960
else
3961
  if test -z "$GREP"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3962
  ac_path_GREP_found=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3963
  # Loop through the user's path and test for each of PROGNAME-LIST
3964
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3965
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3966
do
3967
  IFS=$as_save_IFS
3968
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3969
    for ac_prog in grep ggrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3970
    for ac_exec_ext in '' $ac_executable_extensions; do
3971
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3972
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3973
# Check for GNU ac_path_GREP and select it if it is found.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3974
  # Check for GNU $ac_path_GREP
3975
case `"$ac_path_GREP" --version 2>&1` in
3976
*GNU*)
3977
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3978
*)
3979
  ac_count=0
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3980
  $as_echo_n 0123456789 >"conftest.in"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3981
  while :
3982
  do
3983
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3984
    mv "conftest.tmp" "conftest.in"
3985
    cp "conftest.in" "conftest.nl"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
3986
    $as_echo 'GREP' >> "conftest.nl"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3987
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3988
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
3989
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
3990
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3991
      # Best one so far, save it but keep looking for a better one
3992
      ac_cv_path_GREP="$ac_path_GREP"
3993
      ac_path_GREP_max=$ac_count
3994
    fi
3995
    # 10*(2^10) chars as input seems more than enough
3996
    test $ac_count -gt 10 && break
3997
  done
3998
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3999
esac
4000
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4001
      $ac_path_GREP_found && break 3
4002
    done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4003
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4004
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4005
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4006
  if test -z "$ac_cv_path_GREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4007
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4008
  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4009
else
4010
  ac_cv_path_GREP=$GREP
4011
fi
4012
4013
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4015
$as_echo "$ac_cv_path_GREP" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4016
 GREP="$ac_cv_path_GREP"
4017
4018
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4020
$as_echo_n "checking for egrep... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4021
if test "${ac_cv_path_EGREP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4022
  $as_echo_n "(cached) " >&6
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4023
else
4024
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4025
   then ac_cv_path_EGREP="$GREP -E"
4026
   else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4027
     if test -z "$EGREP"; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4028
  ac_path_EGREP_found=false
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4029
  # Loop through the user's path and test for each of PROGNAME-LIST
4030
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4031
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032
do
4033
  IFS=$as_save_IFS
4034
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4035
    for ac_prog in egrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4036
    for ac_exec_ext in '' $ac_executable_extensions; do
4037
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4039
# Check for GNU ac_path_EGREP and select it if it is found.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4040
  # Check for GNU $ac_path_EGREP
4041
case `"$ac_path_EGREP" --version 2>&1` in
4042
*GNU*)
4043
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044
*)
4045
  ac_count=0
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4046
  $as_echo_n 0123456789 >"conftest.in"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4047
  while :
4048
  do
4049
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4050
    mv "conftest.tmp" "conftest.in"
4051
    cp "conftest.in" "conftest.nl"
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4052
    $as_echo 'EGREP' >> "conftest.nl"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4053
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4055
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4056
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057
      # Best one so far, save it but keep looking for a better one
4058
      ac_cv_path_EGREP="$ac_path_EGREP"
4059
      ac_path_EGREP_max=$ac_count
4060
    fi
4061
    # 10*(2^10) chars as input seems more than enough
4062
    test $ac_count -gt 10 && break
4063
  done
4064
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065
esac
4066
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4067
      $ac_path_EGREP_found && break 3
4068
    done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4069
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4070
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4071
IFS=$as_save_IFS
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4072
  if test -z "$ac_cv_path_EGREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4073
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4074
  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4075
else
4076
  ac_cv_path_EGREP=$EGREP
4077
fi
4078
4079
   fi
4080
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4082
$as_echo "$ac_cv_path_EGREP" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4083
 EGREP="$ac_cv_path_EGREP"
4084
4085
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4087
$as_echo_n "checking for fgrep... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4088
if test "${ac_cv_path_FGREP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4089
  $as_echo_n "(cached) " >&6
4090
else
4091
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4092
   then ac_cv_path_FGREP="$GREP -F"
4093
   else
4094
     if test -z "$FGREP"; then
4095
  ac_path_FGREP_found=false
4096
  # Loop through the user's path and test for each of PROGNAME-LIST
4097
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099
do
4100
  IFS=$as_save_IFS
4101
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4102
    for ac_prog in fgrep; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4103
    for ac_exec_ext in '' $ac_executable_extensions; do
4104
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4105
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4106
# Check for GNU ac_path_FGREP and select it if it is found.
4107
  # Check for GNU $ac_path_FGREP
4108
case `"$ac_path_FGREP" --version 2>&1` in
4109
*GNU*)
4110
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4111
*)
4112
  ac_count=0
4113
  $as_echo_n 0123456789 >"conftest.in"
4114
  while :
4115
  do
4116
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4117
    mv "conftest.tmp" "conftest.in"
4118
    cp "conftest.in" "conftest.nl"
4119
    $as_echo 'FGREP' >> "conftest.nl"
4120
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4122
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4123
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4124
      # Best one so far, save it but keep looking for a better one
4125
      ac_cv_path_FGREP="$ac_path_FGREP"
4126
      ac_path_FGREP_max=$ac_count
4127
    fi
4128
    # 10*(2^10) chars as input seems more than enough
4129
    test $ac_count -gt 10 && break
4130
  done
4131
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132
esac
4133
4134
      $ac_path_FGREP_found && break 3
4135
    done
4136
  done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4137
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4138
IFS=$as_save_IFS
4139
  if test -z "$ac_cv_path_FGREP"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4140
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4141
  fi
4142
else
4143
  ac_cv_path_FGREP=$FGREP
4144
fi
4145
4146
   fi
4147
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4149
$as_echo "$ac_cv_path_FGREP" >&6; }
4150
 FGREP="$ac_cv_path_FGREP"
4151
4152
4153
test -z "$GREP" && GREP=grep
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4172
4173
# Check whether --with-gnu-ld was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4174
if test "${with_gnu_ld+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4175
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1 by Joey Hess
* Joey Hess
4176
else
4177
  with_gnu_ld=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4178
fi
4179
1 by Joey Hess
* Joey Hess
4180
ac_prog=ld
4181
if test "$GCC" = yes; then
4182
  # Check if gcc -print-prog-name=ld gives a path.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4183
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4184
$as_echo_n "checking for ld used by $CC... " >&6; }
1 by Joey Hess
* Joey Hess
4185
  case $host in
4186
  *-*-mingw*)
4187
    # gcc leaves a trailing carriage return which upsets mingw
4188
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4189
  *)
4190
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4191
  esac
4192
  case $ac_prog in
4193
    # Accept absolute paths.
4194
    [\\/]* | ?:[\\/]*)
4195
      re_direlt='/[^/][^/]*/\.\./'
4196
      # Canonicalize the pathname of ld
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4197
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4198
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4199
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Joey Hess
* Joey Hess
4200
      done
4201
      test -z "$LD" && LD="$ac_prog"
4202
      ;;
4203
  "")
4204
    # If it fails, then pretend we aren't using GCC.
4205
    ac_prog=ld
4206
    ;;
4207
  *)
4208
    # If it is relative, then search for the first ld in PATH.
4209
    with_gnu_ld=unknown
4210
    ;;
4211
  esac
4212
elif test "$with_gnu_ld" = yes; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4213
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4214
$as_echo_n "checking for GNU ld... " >&6; }
1 by Joey Hess
* Joey Hess
4215
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4216
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4217
$as_echo_n "checking for non-GNU ld... " >&6; }
1 by Joey Hess
* Joey Hess
4218
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4219
if test "${lt_cv_path_LD+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4220
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4221
else
4222
  if test -z "$LD"; then
4223
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4224
  for ac_dir in $PATH; do
4225
    IFS="$lt_save_ifs"
4226
    test -z "$ac_dir" && ac_dir=.
4227
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4228
      lt_cv_path_LD="$ac_dir/$ac_prog"
4229
      # Check to see if the program is GNU ld.  I'd rather use --version,
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4230
      # but apparently some variants of GNU ld only accept -v.
1 by Joey Hess
* Joey Hess
4231
      # Break only if it was the GNU/non-GNU ld that we prefer.
4232
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4233
      *GNU* | *'with BFD'*)
4234
	test "$with_gnu_ld" != no && break
4235
	;;
4236
      *)
4237
	test "$with_gnu_ld" != yes && break
4238
	;;
4239
      esac
4240
    fi
4241
  done
4242
  IFS="$lt_save_ifs"
4243
else
4244
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4245
fi
4246
fi
4247
4248
LD="$lt_cv_path_LD"
4249
if test -n "$LD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4251
$as_echo "$LD" >&6; }
1 by Joey Hess
* Joey Hess
4252
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4254
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
4255
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4256
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4258
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4259
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4260
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4261
else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4262
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
1 by Joey Hess
* Joey Hess
4263
case `$LD -v 2>&1 </dev/null` in
4264
*GNU* | *'with BFD'*)
4265
  lt_cv_prog_gnu_ld=yes
4266
  ;;
4267
*)
4268
  lt_cv_prog_gnu_ld=no
4269
  ;;
4270
esac
4271
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4273
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1 by Joey Hess
* Joey Hess
4274
with_gnu_ld=$lt_cv_prog_gnu_ld
4275
4276
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4277
4278
4279
4280
4281
4282
4283
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4285
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4286
if test "${lt_cv_path_NM+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4287
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4288
else
4289
  if test -n "$NM"; then
4290
  # Let the user override the test.
4291
  lt_cv_path_NM="$NM"
4292
else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4293
  lt_nm_to_check="${ac_tool_prefix}nm"
4294
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4295
    lt_nm_to_check="$lt_nm_to_check nm"
4296
  fi
4297
  for lt_tmp_nm in $lt_nm_to_check; do
4298
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4299
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4300
      IFS="$lt_save_ifs"
4301
      test -z "$ac_dir" && ac_dir=.
4302
      tmp_nm="$ac_dir/$lt_tmp_nm"
4303
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4304
	# Check to see if the nm accepts a BSD-compat flag.
4305
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4306
	#   nm: unknown option "B" ignored
4307
	# Tru64's nm complains that /dev/null is an invalid object file
4308
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4309
	*/dev/null* | *'Invalid file or object type'*)
4310
	  lt_cv_path_NM="$tmp_nm -B"
1 by Joey Hess
* Joey Hess
4311
	  break
4312
	  ;;
4313
	*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4314
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4315
	  */dev/null*)
4316
	    lt_cv_path_NM="$tmp_nm -p"
4317
	    break
4318
	    ;;
4319
	  *)
4320
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4321
	    continue # so that we can try to find one that supports BSD flags
4322
	    ;;
4323
	  esac
1 by Joey Hess
* Joey Hess
4324
	  ;;
4325
	esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4326
      fi
4327
    done
4328
    IFS="$lt_save_ifs"
1 by Joey Hess
* Joey Hess
4329
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4330
  : ${lt_cv_path_NM=no}
4331
fi
4332
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4334
$as_echo "$lt_cv_path_NM" >&6; }
4335
if test "$lt_cv_path_NM" != "no"; then
4336
  NM="$lt_cv_path_NM"
4337
else
4338
  # Didn't find any BSD compatible name lister, look for dumpbin.
4339
  if test -n "$ac_tool_prefix"; then
4340
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4341
  do
4342
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4343
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4345
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4346
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4347
  $as_echo_n "(cached) " >&6
4348
else
4349
  if test -n "$DUMPBIN"; then
4350
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4351
else
4352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353
for as_dir in $PATH
4354
do
4355
  IFS=$as_save_IFS
4356
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4357
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4360
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4361
    break 2
4362
  fi
4363
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4364
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4365
IFS=$as_save_IFS
4366
4367
fi
4368
fi
4369
DUMPBIN=$ac_cv_prog_DUMPBIN
4370
if test -n "$DUMPBIN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4372
$as_echo "$DUMPBIN" >&6; }
4373
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4374
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4375
$as_echo "no" >&6; }
4376
fi
4377
4378
4379
    test -n "$DUMPBIN" && break
4380
  done
4381
fi
4382
if test -z "$DUMPBIN"; then
4383
  ac_ct_DUMPBIN=$DUMPBIN
4384
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4385
do
4386
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4387
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4389
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4390
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4391
  $as_echo_n "(cached) " >&6
4392
else
4393
  if test -n "$ac_ct_DUMPBIN"; then
4394
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4395
else
4396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397
for as_dir in $PATH
4398
do
4399
  IFS=$as_save_IFS
4400
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4401
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4404
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4405
    break 2
4406
  fi
4407
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4408
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4409
IFS=$as_save_IFS
4410
4411
fi
4412
fi
4413
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4414
if test -n "$ac_ct_DUMPBIN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4416
$as_echo "$ac_ct_DUMPBIN" >&6; }
4417
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4419
$as_echo "no" >&6; }
4420
fi
4421
4422
4423
  test -n "$ac_ct_DUMPBIN" && break
4424
done
4425
4426
  if test "x$ac_ct_DUMPBIN" = x; then
4427
    DUMPBIN=":"
4428
  else
4429
    case $cross_compiling:$ac_tool_warned in
4430
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4431
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4432
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4433
ac_tool_warned=yes ;;
4434
esac
4435
    DUMPBIN=$ac_ct_DUMPBIN
4436
  fi
4437
fi
4438
4439
4440
  if test "$DUMPBIN" != ":"; then
4441
    NM="$DUMPBIN"
4442
  fi
4443
fi
4444
test -z "$NM" && NM=nm
4445
4446
4447
4448
4449
4450
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4452
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4453
if test "${lt_cv_nm_interface+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4454
  $as_echo_n "(cached) " >&6
4455
else
4456
  lt_cv_nm_interface="BSD nm"
4457
  echo "int some_variable = 0;" > conftest.$ac_ext
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4458
  (eval echo "\"\$as_me:4458: $ac_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4459
  (eval "$ac_compile" 2>conftest.err)
4460
  cat conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4461
  (eval echo "\"\$as_me:4461: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4462
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4463
  cat conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
4464
  (eval echo "\"\$as_me:4464: output\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4465
  cat conftest.out >&5
4466
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4467
    lt_cv_nm_interface="MS dumpbin"
4468
  fi
4469
  rm -f conftest*
4470
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4472
$as_echo "$lt_cv_nm_interface" >&6; }
4473
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4475
$as_echo_n "checking whether ln -s works... " >&6; }
1 by Joey Hess
* Joey Hess
4476
LN_S=$as_ln_s
4477
if test "$LN_S" = "ln -s"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4479
$as_echo "yes" >&6; }
4480
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4482
$as_echo "no, using $LN_S" >&6; }
4483
fi
4484
4485
# find the maximum length of command line arguments
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4487
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4488
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4489
  $as_echo_n "(cached) " >&6
4490
else
4491
    i=0
4492
  teststring="ABCD"
4493
4494
  case $build_os in
4495
  msdosdjgpp*)
4496
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4497
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4498
    # during glob expansion).  Even if it were fixed, the result of this
4499
    # check would be larger than it should be.
4500
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4501
    ;;
4502
4503
  gnu*)
4504
    # Under GNU Hurd, this test is not required because there is
4505
    # no limit to the length of command line arguments.
4506
    # Libtool will interpret -1 as no limit whatsoever
4507
    lt_cv_sys_max_cmd_len=-1;
4508
    ;;
4509
4510
  cygwin* | mingw* | cegcc*)
4511
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4512
    # about 5 minutes as the teststring grows exponentially.
4513
    # Worse, since 9x/ME are not pre-emptively multitasking,
4514
    # you end up with a "frozen" computer, even though with patience
4515
    # the test eventually succeeds (with a max line length of 256k).
4516
    # Instead, let's just punt: use the minimum linelength reported by
4517
    # all of the supported platforms: 8192 (on NT/2K/XP).
4518
    lt_cv_sys_max_cmd_len=8192;
4519
    ;;
4520
4521
  amigaos*)
4522
    # On AmigaOS with pdksh, this test takes hours, literally.
4523
    # So we just punt and use a minimum line length of 8192.
4524
    lt_cv_sys_max_cmd_len=8192;
4525
    ;;
4526
4527
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4528
    # This has been around since 386BSD, at least.  Likely further.
4529
    if test -x /sbin/sysctl; then
4530
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4531
    elif test -x /usr/sbin/sysctl; then
4532
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4533
    else
4534
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4535
    fi
4536
    # And add a safety zone
4537
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4538
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4539
    ;;
4540
4541
  interix*)
4542
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4543
    lt_cv_sys_max_cmd_len=196608
4544
    ;;
4545
4546
  osf*)
4547
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4548
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4549
    # nice to cause kernel panics so lets avoid the loop below.
4550
    # First set a reasonable default.
4551
    lt_cv_sys_max_cmd_len=16384
4552
    #
4553
    if test -x /sbin/sysconfig; then
4554
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4555
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4556
      esac
4557
    fi
4558
    ;;
4559
  sco3.2v5*)
4560
    lt_cv_sys_max_cmd_len=102400
4561
    ;;
4562
  sysv5* | sco5v6* | sysv4.2uw2*)
4563
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4564
    if test -n "$kargmax"; then
4565
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4566
    else
4567
      lt_cv_sys_max_cmd_len=32768
4568
    fi
4569
    ;;
4570
  *)
4571
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4572
    if test -n "$lt_cv_sys_max_cmd_len"; then
4573
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4574
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4575
    else
4576
      # Make teststring a little bigger before we do anything with it.
4577
      # a 1K string should be a reasonable start.
4578
      for i in 1 2 3 4 5 6 7 8 ; do
4579
        teststring=$teststring$teststring
4580
      done
4581
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4582
      # If test is not a shell built-in, we'll probably end up computing a
4583
      # maximum length that is only half of the actual maximum length, but
4584
      # we can't tell.
4585
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4586
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4587
	      test $i != 17 # 1/2 MB should be enough
4588
      do
4589
        i=`expr $i + 1`
4590
        teststring=$teststring$teststring
4591
      done
4592
      # Only check the string length outside the loop.
4593
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4594
      teststring=
4595
      # Add a significant safety factor because C++ compilers can tack on
4596
      # massive amounts of additional arguments before passing them to the
4597
      # linker.  It appears as though 1/2 is a usable value.
4598
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4599
    fi
4600
    ;;
4601
  esac
4602
4603
fi
4604
4605
if test -n $lt_cv_sys_max_cmd_len ; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4607
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4608
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4610
$as_echo "none" >&6; }
4611
fi
4612
max_cmd_len=$lt_cv_sys_max_cmd_len
4613
4614
4615
4616
4617
4618
4619
: ${CP="cp -f"}
4620
: ${MV="mv -f"}
4621
: ${RM="rm -f"}
4622
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4624
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4625
# Try some XSI features
4626
xsi_shell=no
4627
( _lt_dummy="a/b/c"
4628
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4629
      = c,a/b,, \
4630
    && eval 'test $(( 1 + 1 )) -eq 2 \
4631
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4632
  && xsi_shell=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4634
$as_echo "$xsi_shell" >&6; }
4635
4636
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4638
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4639
lt_shell_append=no
4640
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4641
    >/dev/null 2>&1 \
4642
  && lt_shell_append=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4644
$as_echo "$lt_shell_append" >&6; }
4645
4646
4647
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4648
  lt_unset=unset
4649
else
4650
  lt_unset=false
4651
fi
4652
4653
4654
4655
4656
4657
# test EBCDIC or ASCII
4658
case `echo X|tr X '\101'` in
4659
 A) # ASCII based system
4660
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4661
  lt_SP2NL='tr \040 \012'
4662
  lt_NL2SP='tr \015\012 \040\040'
4663
  ;;
4664
 *) # EBCDIC based system
4665
  lt_SP2NL='tr \100 \n'
4666
  lt_NL2SP='tr \r\n \100\100'
4667
  ;;
4668
esac
4669
4670
4671
4672
4673
4674
4675
4676
4677
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4679
$as_echo_n "checking for $LD option to reload object files... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4680
if test "${lt_cv_ld_reload_flag+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4681
  $as_echo_n "(cached) " >&6
4682
else
4683
  lt_cv_ld_reload_flag='-r'
4684
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4686
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4687
reload_flag=$lt_cv_ld_reload_flag
4688
case $reload_flag in
4689
"" | " "*) ;;
4690
*) reload_flag=" $reload_flag" ;;
4691
esac
4692
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4693
case $host_os in
4694
  darwin*)
4695
    if test "$GCC" = yes; then
4696
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4697
    else
4698
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4699
    fi
4700
    ;;
4701
esac
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
if test -n "$ac_tool_prefix"; then
4712
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4713
set dummy ${ac_tool_prefix}objdump; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4715
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4716
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4717
  $as_echo_n "(cached) " >&6
4718
else
4719
  if test -n "$OBJDUMP"; then
4720
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4721
else
4722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723
for as_dir in $PATH
4724
do
4725
  IFS=$as_save_IFS
4726
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4727
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4728
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4731
    break 2
4732
  fi
4733
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4734
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4735
IFS=$as_save_IFS
4736
4737
fi
4738
fi
4739
OBJDUMP=$ac_cv_prog_OBJDUMP
4740
if test -n "$OBJDUMP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4742
$as_echo "$OBJDUMP" >&6; }
4743
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4745
$as_echo "no" >&6; }
4746
fi
4747
4748
4749
fi
4750
if test -z "$ac_cv_prog_OBJDUMP"; then
4751
  ac_ct_OBJDUMP=$OBJDUMP
4752
  # Extract the first word of "objdump", so it can be a program name with args.
4753
set dummy objdump; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4755
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4756
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4757
  $as_echo_n "(cached) " >&6
4758
else
4759
  if test -n "$ac_ct_OBJDUMP"; then
4760
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4761
else
4762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763
for as_dir in $PATH
4764
do
4765
  IFS=$as_save_IFS
4766
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4767
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4770
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4771
    break 2
4772
  fi
4773
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4774
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4775
IFS=$as_save_IFS
4776
4777
fi
4778
fi
4779
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4780
if test -n "$ac_ct_OBJDUMP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4782
$as_echo "$ac_ct_OBJDUMP" >&6; }
4783
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4784
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4785
$as_echo "no" >&6; }
4786
fi
4787
4788
  if test "x$ac_ct_OBJDUMP" = x; then
4789
    OBJDUMP="false"
4790
  else
4791
    case $cross_compiling:$ac_tool_warned in
4792
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4793
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4794
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795
ac_tool_warned=yes ;;
4796
esac
4797
    OBJDUMP=$ac_ct_OBJDUMP
4798
  fi
4799
else
4800
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4801
fi
4802
4803
test -z "$OBJDUMP" && OBJDUMP=objdump
4804
4805
4806
4807
4808
4809
4810
4811
4812
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4814
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
4815
if test "${lt_cv_deplibs_check_method+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4816
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
4817
else
4818
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4819
lt_cv_file_magic_test_file=
4820
lt_cv_deplibs_check_method='unknown'
4821
# Need to set the preceding variable on all platforms that support
4822
# interlibrary dependencies.
4823
# 'none' -- dependencies not supported.
4824
# `unknown' -- same as none, but documents that we really don't know.
4825
# 'pass_all' -- all dependencies passed with no checks.
4826
# 'test_compile' -- check by making test program.
4827
# 'file_magic [[regex]]' -- check by looking for files in library path
4828
# which responds to the $file_magic_cmd with a given extended regex.
4829
# If you have `file' or equivalent on your system and you're not sure
4830
# whether `pass_all' will *always* work, you probably want this one.
4831
4832
case $host_os in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
4833
aix[4-9]*)
1 by Joey Hess
* Joey Hess
4834
  lt_cv_deplibs_check_method=pass_all
4835
  ;;
4836
4837
beos*)
4838
  lt_cv_deplibs_check_method=pass_all
4839
  ;;
4840
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4841
bsdi[45]*)
1 by Joey Hess
* Joey Hess
4842
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4843
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4844
  lt_cv_file_magic_test_file=/shlib/libc.so
4845
  ;;
4846
4847
cygwin*)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
4848
  # func_win32_libid is a shell function defined in ltmain.sh
1 by Joey Hess
* Joey Hess
4849
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2 by Colin Watson
* Update GPL notices with the FSF's new address.
4850
  lt_cv_file_magic_cmd='func_win32_libid'
1 by Joey Hess
* Joey Hess
4851
  ;;
4852
4853
mingw* | pw32*)
4854
  # Base MSYS/MinGW do not provide the 'file' command needed by
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4855
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4856
  # unless we find 'file', for example because we are cross-compiling.
4857
  if ( file / ) >/dev/null 2>&1; then
4858
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4859
    lt_cv_file_magic_cmd='func_win32_libid'
4860
  else
4861
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4862
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4863
  fi
1 by Joey Hess
* Joey Hess
4864
  ;;
4865
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4866
cegcc)
4867
  # use the weaker test based on 'objdump'. See mingw*.
4868
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4869
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4870
  ;;
4871
1 by Joey Hess
* Joey Hess
4872
darwin* | rhapsody*)
4873
  lt_cv_deplibs_check_method=pass_all
4874
  ;;
4875
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4876
freebsd* | dragonfly*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4877
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Joey Hess
* Joey Hess
4878
    case $host_cpu in
4879
    i*86 )
4880
      # Not sure whether the presence of OpenBSD here was a mistake.
4881
      # Let's accept both of them until this is cleared up.
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4882
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1 by Joey Hess
* Joey Hess
4883
      lt_cv_file_magic_cmd=/usr/bin/file
4884
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4885
      ;;
4886
    esac
4887
  else
4888
    lt_cv_deplibs_check_method=pass_all
4889
  fi
4890
  ;;
4891
4892
gnu*)
4893
  lt_cv_deplibs_check_method=pass_all
4894
  ;;
4895
4896
hpux10.20* | hpux11*)
4897
  lt_cv_file_magic_cmd=/usr/bin/file
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4898
  case $host_cpu in
1 by Joey Hess
* Joey Hess
4899
  ia64*)
4900
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4902
    ;;
4903
  hppa*64*)
4904
    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]'
4905
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4906
    ;;
4907
  *)
4908
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4909
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910
    ;;
4911
  esac
4912
  ;;
4913
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4914
interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4915
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4917
  ;;
4918
1 by Joey Hess
* Joey Hess
4919
irix5* | irix6* | nonstopux*)
4920
  case $LD in
4921
  *-32|*"-32 ") libmagic=32-bit;;
4922
  *-n32|*"-n32 ") libmagic=N32;;
4923
  *-64|*"-64 ") libmagic=64-bit;;
4924
  *) libmagic=never-match;;
4925
  esac
4926
  lt_cv_deplibs_check_method=pass_all
4927
  ;;
4928
4929
# This must be Linux ELF.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
4930
linux* | k*bsd*-gnu | kopensolaris*-gnu)
1 by Joey Hess
* Joey Hess
4931
  lt_cv_deplibs_check_method=pass_all
4932
  ;;
4933
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4934
netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4935
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Joey Hess
* Joey Hess
4936
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4937
  else
4938
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4939
  fi
4940
  ;;
4941
4942
newos6*)
4943
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944
  lt_cv_file_magic_cmd=/usr/bin/file
4945
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4946
  ;;
4947
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4948
*nto* | *qnx*)
4949
  lt_cv_deplibs_check_method=pass_all
1 by Joey Hess
* Joey Hess
4950
  ;;
4951
4952
openbsd*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4953
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4954
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1 by Joey Hess
* Joey Hess
4955
  else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
4956
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1 by Joey Hess
* Joey Hess
4957
  fi
4958
  ;;
4959
4960
osf3* | osf4* | osf5*)
4961
  lt_cv_deplibs_check_method=pass_all
4962
  ;;
4963
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
4964
rdos*)
4965
  lt_cv_deplibs_check_method=pass_all
4966
  ;;
4967
1 by Joey Hess
* Joey Hess
4968
solaris*)
4969
  lt_cv_deplibs_check_method=pass_all
4970
  ;;
4971
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
4972
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4973
  lt_cv_deplibs_check_method=pass_all
4974
  ;;
4975
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4976
sysv4 | sysv4.3*)
1 by Joey Hess
* Joey Hess
4977
  case $host_vendor in
4978
  motorola)
4979
    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]'
4980
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4981
    ;;
4982
  ncr)
4983
    lt_cv_deplibs_check_method=pass_all
4984
    ;;
4985
  sequent)
4986
    lt_cv_file_magic_cmd='/bin/file'
4987
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4988
    ;;
4989
  sni)
4990
    lt_cv_file_magic_cmd='/bin/file'
4991
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4992
    lt_cv_file_magic_test_file=/lib/libc.so
4993
    ;;
4994
  siemens)
4995
    lt_cv_deplibs_check_method=pass_all
4996
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
4997
  pc)
4998
    lt_cv_deplibs_check_method=pass_all
4999
    ;;
1 by Joey Hess
* Joey Hess
5000
  esac
5001
  ;;
5002
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5003
tpf*)
1 by Joey Hess
* Joey Hess
5004
  lt_cv_deplibs_check_method=pass_all
5005
  ;;
5006
esac
5007
5008
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5010
$as_echo "$lt_cv_deplibs_check_method" >&6; }
1 by Joey Hess
* Joey Hess
5011
file_magic_cmd=$lt_cv_file_magic_cmd
5012
deplibs_check_method=$lt_cv_deplibs_check_method
5013
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5014
5015
5016
5017
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5018
5019
5020
5021
5022
5023
5024
5025
5026
if test -n "$ac_tool_prefix"; then
5027
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5028
set dummy ${ac_tool_prefix}ar; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5030
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5031
if test "${ac_cv_prog_AR+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5032
  $as_echo_n "(cached) " >&6
5033
else
5034
  if test -n "$AR"; then
5035
  ac_cv_prog_AR="$AR" # Let the user override the test.
5036
else
5037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038
for as_dir in $PATH
5039
do
5040
  IFS=$as_save_IFS
5041
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5042
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5043
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044
    ac_cv_prog_AR="${ac_tool_prefix}ar"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5045
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5046
    break 2
5047
  fi
5048
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5049
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5050
IFS=$as_save_IFS
5051
5052
fi
5053
fi
5054
AR=$ac_cv_prog_AR
5055
if test -n "$AR"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5057
$as_echo "$AR" >&6; }
5058
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5060
$as_echo "no" >&6; }
5061
fi
5062
5063
5064
fi
5065
if test -z "$ac_cv_prog_AR"; then
5066
  ac_ct_AR=$AR
5067
  # Extract the first word of "ar", so it can be a program name with args.
5068
set dummy ar; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5070
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5071
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5072
  $as_echo_n "(cached) " >&6
5073
else
5074
  if test -n "$ac_ct_AR"; then
5075
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5076
else
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5082
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084
    ac_cv_prog_ac_ct_AR="ar"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5085
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5086
    break 2
5087
  fi
5088
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5089
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5090
IFS=$as_save_IFS
5091
5092
fi
5093
fi
5094
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5095
if test -n "$ac_ct_AR"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5097
$as_echo "$ac_ct_AR" >&6; }
5098
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5100
$as_echo "no" >&6; }
5101
fi
5102
5103
  if test "x$ac_ct_AR" = x; then
5104
    AR="false"
5105
  else
5106
    case $cross_compiling:$ac_tool_warned in
5107
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5108
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5109
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110
ac_tool_warned=yes ;;
5111
esac
5112
    AR=$ac_ct_AR
5113
  fi
5114
else
5115
  AR="$ac_cv_prog_AR"
5116
fi
5117
5118
test -z "$AR" && AR=ar
5119
test -z "$AR_FLAGS" && AR_FLAGS=cru
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
if test -n "$ac_tool_prefix"; then
5132
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5133
set dummy ${ac_tool_prefix}strip; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5135
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5136
if test "${ac_cv_prog_STRIP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5137
  $as_echo_n "(cached) " >&6
5138
else
5139
  if test -n "$STRIP"; then
5140
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5141
else
5142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143
for as_dir in $PATH
5144
do
5145
  IFS=$as_save_IFS
5146
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5147
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5148
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5150
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5151
    break 2
5152
  fi
5153
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5154
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5155
IFS=$as_save_IFS
5156
5157
fi
5158
fi
5159
STRIP=$ac_cv_prog_STRIP
5160
if test -n "$STRIP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5162
$as_echo "$STRIP" >&6; }
5163
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5165
$as_echo "no" >&6; }
5166
fi
5167
5168
5169
fi
5170
if test -z "$ac_cv_prog_STRIP"; then
5171
  ac_ct_STRIP=$STRIP
5172
  # Extract the first word of "strip", so it can be a program name with args.
5173
set dummy strip; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5175
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5176
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5177
  $as_echo_n "(cached) " >&6
5178
else
5179
  if test -n "$ac_ct_STRIP"; then
5180
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5181
else
5182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183
for as_dir in $PATH
5184
do
5185
  IFS=$as_save_IFS
5186
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5187
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189
    ac_cv_prog_ac_ct_STRIP="strip"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5190
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5191
    break 2
5192
  fi
5193
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5194
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5195
IFS=$as_save_IFS
5196
5197
fi
5198
fi
5199
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5200
if test -n "$ac_ct_STRIP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5202
$as_echo "$ac_ct_STRIP" >&6; }
5203
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5205
$as_echo "no" >&6; }
5206
fi
5207
5208
  if test "x$ac_ct_STRIP" = x; then
5209
    STRIP=":"
5210
  else
5211
    case $cross_compiling:$ac_tool_warned in
5212
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5213
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5214
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215
ac_tool_warned=yes ;;
5216
esac
5217
    STRIP=$ac_ct_STRIP
5218
  fi
5219
else
5220
  STRIP="$ac_cv_prog_STRIP"
5221
fi
5222
5223
test -z "$STRIP" && STRIP=:
5224
5225
5226
5227
5228
5229
5230
if test -n "$ac_tool_prefix"; then
5231
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5232
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5234
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5235
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5236
  $as_echo_n "(cached) " >&6
5237
else
5238
  if test -n "$RANLIB"; then
5239
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5240
else
5241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242
for as_dir in $PATH
5243
do
5244
  IFS=$as_save_IFS
5245
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5246
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5247
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5249
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5250
    break 2
5251
  fi
5252
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5253
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5254
IFS=$as_save_IFS
5255
5256
fi
5257
fi
5258
RANLIB=$ac_cv_prog_RANLIB
5259
if test -n "$RANLIB"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5261
$as_echo "$RANLIB" >&6; }
5262
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5264
$as_echo "no" >&6; }
5265
fi
5266
5267
5268
fi
5269
if test -z "$ac_cv_prog_RANLIB"; then
5270
  ac_ct_RANLIB=$RANLIB
5271
  # Extract the first word of "ranlib", so it can be a program name with args.
5272
set dummy ranlib; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5274
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5275
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5276
  $as_echo_n "(cached) " >&6
5277
else
5278
  if test -n "$ac_ct_RANLIB"; then
5279
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280
else
5281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282
for as_dir in $PATH
5283
do
5284
  IFS=$as_save_IFS
5285
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5286
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5287
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5290
    break 2
5291
  fi
5292
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5293
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5294
IFS=$as_save_IFS
5295
5296
fi
5297
fi
5298
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299
if test -n "$ac_ct_RANLIB"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5301
$as_echo "$ac_ct_RANLIB" >&6; }
5302
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5304
$as_echo "no" >&6; }
5305
fi
5306
5307
  if test "x$ac_ct_RANLIB" = x; then
5308
    RANLIB=":"
5309
  else
5310
    case $cross_compiling:$ac_tool_warned in
5311
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5313
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314
ac_tool_warned=yes ;;
5315
esac
5316
    RANLIB=$ac_ct_RANLIB
5317
  fi
5318
else
5319
  RANLIB="$ac_cv_prog_RANLIB"
5320
fi
5321
5322
test -z "$RANLIB" && RANLIB=:
5323
5324
5325
5326
5327
5328
5329
# Determine commands to create old-style static archives.
5330
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5331
old_postinstall_cmds='chmod 644 $oldlib'
5332
old_postuninstall_cmds=
5333
5334
if test -n "$RANLIB"; then
5335
  case $host_os in
5336
  openbsd*)
5337
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5338
    ;;
5339
  *)
5340
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5341
    ;;
5342
  esac
5343
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5344
fi
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
1 by Joey Hess
* Joey Hess
5379
# If no C compiler was specified, use CC.
5380
LTCC=${LTCC-"$CC"}
5381
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5382
# If no C compiler flags were specified, use CFLAGS.
5383
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5384
1 by Joey Hess
* Joey Hess
5385
# Allow CC to be a program name with arguments.
5386
compiler=$CC
5387
5388
5389
# Check for command to grab the raw symbol name followed by C symbol from nm.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5391
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5392
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5393
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
5394
else
5395
5396
# These are sane defaults that work on at least a few old systems.
5397
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5398
5399
# Character class describing NM global symbol codes.
5400
symcode='[BCDEGRST]'
5401
5402
# Regexp to match symbols that can be accessed directly from C.
5403
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5404
5405
# Define system-specific variables.
5406
case $host_os in
5407
aix*)
5408
  symcode='[BCDT]'
5409
  ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5410
cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
5411
  symcode='[ABCDGISTW]'
5412
  ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5413
hpux*)
1 by Joey Hess
* Joey Hess
5414
  if test "$host_cpu" = ia64; then
5415
    symcode='[ABCDEGRST]'
5416
  fi
3 by Colin Watson, Sven Luther
[ Sven Luther ]
5417
  ;;
1 by Joey Hess
* Joey Hess
5418
irix* | nonstopux*)
5419
  symcode='[BCDEGRST]'
5420
  ;;
5421
osf*)
5422
  symcode='[BCDEGQRST]'
5423
  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5424
solaris*)
1 by Joey Hess
* Joey Hess
5425
  symcode='[BDRT]'
5426
  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
5427
sco3.2v5*)
5428
  symcode='[DT]'
5429
  ;;
5430
sysv4.2uw2*)
5431
  symcode='[DT]'
5432
  ;;
5433
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5434
  symcode='[ABDT]'
5435
  ;;
1 by Joey Hess
* Joey Hess
5436
sysv4)
5437
  symcode='[DFNSTU]'
5438
  ;;
5439
esac
5440
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5441
# If we're using GNU nm, then use its standard symbol codes.
5442
case `$NM -V 2>&1` in
5443
*GNU* | *'with BFD'*)
5444
  symcode='[ABCDGIRSTW]' ;;
5445
esac
5446
5447
# Transform an extracted symbol line into a proper C declaration.
5448
# Some systems (esp. on ia64) link data and code symbols differently,
5449
# so use this general approach.
5450
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5451
5452
# Transform an extracted symbol line into symbol name and symbol address
5453
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5454
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5455
1 by Joey Hess
* Joey Hess
5456
# Handle CRLF in mingw tool chain
5457
opt_cr=
5458
case $build_os in
5459
mingw*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5460
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1 by Joey Hess
* Joey Hess
5461
  ;;
5462
esac
5463
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5464
# Try without a prefix underscore, then with it.
1 by Joey Hess
* Joey Hess
5465
for ac_symprfx in "" "_"; do
5466
3 by Colin Watson, Sven Luther
[ Sven Luther ]
5467
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5468
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5469
1 by Joey Hess
* Joey Hess
5470
  # Write the raw and C identifiers.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5471
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5472
    # Fake it for dumpbin and say T for any non-static function
5473
    # and D for any global variable.
5474
    # Also find C++ and __fastcall symbols from MSVC++,
5475
    # which start with @ or ?.
5476
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5477
"     {last_section=section; section=\$ 3};"\
5478
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5479
"     \$ 0!~/External *\|/{next};"\
5480
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5481
"     {if(hide[section]) next};"\
5482
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5483
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5484
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5485
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5486
"     ' prfx=^$ac_symprfx"
5487
  else
5488
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5489
  fi
1 by Joey Hess
* Joey Hess
5490
5491
  # Check to see that the pipe works correctly.
5492
  pipe_works=no
5493
5494
  rm -f conftest*
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5495
  cat > conftest.$ac_ext <<_LT_EOF
1 by Joey Hess
* Joey Hess
5496
#ifdef __cplusplus
5497
extern "C" {
5498
#endif
5499
char nm_test_var;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5500
void nm_test_func(void);
5501
void nm_test_func(void){}
1 by Joey Hess
* Joey Hess
5502
#ifdef __cplusplus
5503
}
5504
#endif
5505
int main(){nm_test_var='a';nm_test_func();return(0);}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5506
_LT_EOF
1 by Joey Hess
* Joey Hess
5507
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5508
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Joey Hess
* Joey Hess
5509
  (eval $ac_compile) 2>&5
5510
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5511
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512
  test $ac_status = 0; }; then
1 by Joey Hess
* Joey Hess
5513
    # Now try to grab the symbols.
5514
    nlist=conftest.nm
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5515
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1 by Joey Hess
* Joey Hess
5516
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5517
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5518
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519
  test $ac_status = 0; } && test -s "$nlist"; then
1 by Joey Hess
* Joey Hess
5520
      # Try sorting and uniquifying the output.
5521
      if sort "$nlist" | uniq > "$nlist"T; then
5522
	mv -f "$nlist"T "$nlist"
5523
      else
5524
	rm -f "$nlist"T
5525
      fi
5526
5527
      # Make sure that we snagged all the symbols we need.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5528
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5529
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5530
	  cat <<_LT_EOF > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
5531
#ifdef __cplusplus
5532
extern "C" {
5533
#endif
5534
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5535
_LT_EOF
1 by Joey Hess
* Joey Hess
5536
	  # Now generate the symbol file.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5537
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5538
5539
	  cat <<_LT_EOF >> conftest.$ac_ext
5540
5541
/* The mapping between symbol names and symbols.  */
1 by Joey Hess
* Joey Hess
5542
const struct {
5543
  const char *name;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5544
  void       *address;
1 by Joey Hess
* Joey Hess
5545
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5546
lt__PROGRAM__LTX_preloaded_symbols[] =
1 by Joey Hess
* Joey Hess
5547
{
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5548
  { "@PROGRAM@", (void *) 0 },
5549
_LT_EOF
5550
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5551
	  cat <<\_LT_EOF >> conftest.$ac_ext
5552
  {0, (void *) 0}
1 by Joey Hess
* Joey Hess
5553
};
5554
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5555
/* This works around a problem in FreeBSD linker */
5556
#ifdef FREEBSD_WORKAROUND
5557
static const void *lt_preloaded_setup() {
5558
  return lt__PROGRAM__LTX_preloaded_symbols;
5559
}
5560
#endif
5561
1 by Joey Hess
* Joey Hess
5562
#ifdef __cplusplus
5563
}
5564
#endif
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5565
_LT_EOF
1 by Joey Hess
* Joey Hess
5566
	  # Now try linking the two files.
5567
	  mv conftest.$ac_objext conftstm.$ac_objext
5568
	  lt_save_LIBS="$LIBS"
5569
	  lt_save_CFLAGS="$CFLAGS"
5570
	  LIBS="conftstm.$ac_objext"
5571
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5572
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
5573
  (eval $ac_link) 2>&5
5574
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5575
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1 by Joey Hess
* Joey Hess
5577
	    pipe_works=yes
5578
	  fi
5579
	  LIBS="$lt_save_LIBS"
5580
	  CFLAGS="$lt_save_CFLAGS"
5581
	else
5582
	  echo "cannot find nm_test_func in $nlist" >&5
5583
	fi
5584
      else
5585
	echo "cannot find nm_test_var in $nlist" >&5
5586
      fi
5587
    else
5588
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5589
    fi
5590
  else
5591
    echo "$progname: failed program was:" >&5
5592
    cat conftest.$ac_ext >&5
5593
  fi
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5594
  rm -rf conftest* conftst*
1 by Joey Hess
* Joey Hess
5595
5596
  # Do not use the global_symbol_pipe unless it works.
5597
  if test "$pipe_works" = yes; then
5598
    break
5599
  else
5600
    lt_cv_sys_global_symbol_pipe=
5601
  fi
5602
done
5603
5604
fi
5605
5606
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5607
  lt_cv_sys_global_symbol_to_cdecl=
5608
fi
5609
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5611
$as_echo "failed" >&6; }
5612
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5614
$as_echo "ok" >&6; }
5615
fi
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
# Check whether --enable-libtool-lock was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5640
if test "${enable_libtool_lock+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5641
  enableval=$enable_libtool_lock;
5642
fi
5643
5644
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5645
5646
# Some flags need to be propagated to the compiler or linker for good
5647
# libtool support.
5648
case $host in
5649
ia64-*-hpux*)
5650
  # Find out which ABI we are using.
5651
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5652
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5653
  (eval $ac_compile) 2>&5
5654
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5655
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5657
    case `/usr/bin/file conftest.$ac_objext` in
5658
      *ELF-32*)
5659
	HPUX_IA64_MODE="32"
5660
	;;
5661
      *ELF-64*)
5662
	HPUX_IA64_MODE="64"
5663
	;;
5664
    esac
5665
  fi
5666
  rm -rf conftest*
5667
  ;;
5668
*-*-irix6*)
5669
  # Find out which ABI we are using.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
5670
  echo '#line 5670 "configure"' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5671
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5672
  (eval $ac_compile) 2>&5
5673
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5674
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5676
    if test "$lt_cv_prog_gnu_ld" = yes; then
5677
      case `/usr/bin/file conftest.$ac_objext` in
5678
	*32-bit*)
5679
	  LD="${LD-ld} -melf32bsmip"
5680
	  ;;
5681
	*N32*)
5682
	  LD="${LD-ld} -melf32bmipn32"
5683
	  ;;
5684
	*64-bit*)
5685
	  LD="${LD-ld} -melf64bmip"
5686
	;;
5687
      esac
5688
    else
5689
      case `/usr/bin/file conftest.$ac_objext` in
5690
	*32-bit*)
5691
	  LD="${LD-ld} -32"
5692
	  ;;
5693
	*N32*)
5694
	  LD="${LD-ld} -n32"
5695
	  ;;
5696
	*64-bit*)
5697
	  LD="${LD-ld} -64"
5698
	  ;;
5699
      esac
5700
    fi
5701
  fi
5702
  rm -rf conftest*
5703
  ;;
5704
5705
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5706
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5707
  # Find out which ABI we are using.
5708
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5709
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5710
  (eval $ac_compile) 2>&5
5711
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5714
    case `/usr/bin/file conftest.o` in
5715
      *32-bit*)
5716
	case $host in
5717
	  x86_64-*kfreebsd*-gnu)
5718
	    LD="${LD-ld} -m elf_i386_fbsd"
5719
	    ;;
5720
	  x86_64-*linux*)
5721
	    LD="${LD-ld} -m elf_i386"
5722
	    ;;
5723
	  ppc64-*linux*|powerpc64-*linux*)
5724
	    LD="${LD-ld} -m elf32ppclinux"
5725
	    ;;
5726
	  s390x-*linux*)
5727
	    LD="${LD-ld} -m elf_s390"
5728
	    ;;
5729
	  sparc64-*linux*)
5730
	    LD="${LD-ld} -m elf32_sparc"
5731
	    ;;
5732
	esac
5733
	;;
5734
      *64-bit*)
5735
	case $host in
5736
	  x86_64-*kfreebsd*-gnu)
5737
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5738
	    ;;
5739
	  x86_64-*linux*)
5740
	    LD="${LD-ld} -m elf_x86_64"
5741
	    ;;
5742
	  ppc*-*linux*|powerpc*-*linux*)
5743
	    LD="${LD-ld} -m elf64ppc"
5744
	    ;;
5745
	  s390*-*linux*|s390*-*tpf*)
5746
	    LD="${LD-ld} -m elf64_s390"
5747
	    ;;
5748
	  sparc*-*linux*)
5749
	    LD="${LD-ld} -m elf64_sparc"
5750
	    ;;
5751
	esac
5752
	;;
5753
    esac
5754
  fi
5755
  rm -rf conftest*
5756
  ;;
5757
5758
*-*-sco3.2v5*)
5759
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5760
  SAVE_CFLAGS="$CFLAGS"
5761
  CFLAGS="$CFLAGS -belf"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5762
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5763
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5764
if test "${lt_cv_cc_needs_belf+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5765
  $as_echo_n "(cached) " >&6
5766
else
5767
  ac_ext=c
5768
ac_cpp='$CPP $CPPFLAGS'
5769
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5773
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5774
/* end confdefs.h.  */
5775
5776
int
5777
main ()
5778
{
5779
5780
  ;
5781
  return 0;
5782
}
5783
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5784
if ac_fn_c_try_link "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5785
  lt_cv_cc_needs_belf=yes
5786
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5787
  lt_cv_cc_needs_belf=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5788
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5789
rm -f core conftest.err conftest.$ac_objext \
5790
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5791
     ac_ext=c
5792
ac_cpp='$CPP $CPPFLAGS'
5793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796
5797
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5799
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5800
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5801
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5802
    CFLAGS="$SAVE_CFLAGS"
5803
  fi
5804
  ;;
5805
sparc*-*solaris*)
5806
  # Find out which ABI we are using.
5807
  echo 'int i;' > conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5808
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5809
  (eval $ac_compile) 2>&5
5810
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5811
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5812
  test $ac_status = 0; }; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5813
    case `/usr/bin/file conftest.o` in
5814
    *64-bit*)
5815
      case $lt_cv_prog_gnu_ld in
5816
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5817
      *)
5818
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5819
	  LD="${LD-ld} -64"
5820
	fi
5821
	;;
5822
      esac
5823
      ;;
5824
    esac
5825
  fi
5826
  rm -rf conftest*
5827
  ;;
5828
esac
5829
5830
need_locks="$enable_libtool_lock"
1 by Joey Hess
* Joey Hess
5831
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5832
5833
  case $host_os in
5834
    rhapsody* | darwin*)
5835
    if test -n "$ac_tool_prefix"; then
5836
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5837
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5839
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5840
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5841
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5842
else
5843
  if test -n "$DSYMUTIL"; then
5844
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5845
else
5846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847
for as_dir in $PATH
5848
do
5849
  IFS=$as_save_IFS
5850
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5851
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5852
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5854
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5855
    break 2
5856
  fi
5857
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5858
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5859
IFS=$as_save_IFS
5860
5861
fi
5862
fi
5863
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5864
if test -n "$DSYMUTIL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5866
$as_echo "$DSYMUTIL" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5867
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5869
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5870
fi
5871
5872
5873
fi
5874
if test -z "$ac_cv_prog_DSYMUTIL"; then
5875
  ac_ct_DSYMUTIL=$DSYMUTIL
5876
  # Extract the first word of "dsymutil", so it can be a program name with args.
5877
set dummy dsymutil; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5879
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5880
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5881
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5882
else
5883
  if test -n "$ac_ct_DSYMUTIL"; then
5884
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5885
else
5886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887
for as_dir in $PATH
5888
do
5889
  IFS=$as_save_IFS
5890
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5891
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5894
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5895
    break 2
5896
  fi
5897
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5898
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5899
IFS=$as_save_IFS
5900
5901
fi
5902
fi
5903
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5904
if test -n "$ac_ct_DSYMUTIL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5906
$as_echo "$ac_ct_DSYMUTIL" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5907
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5908
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5909
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5910
fi
5911
5912
  if test "x$ac_ct_DSYMUTIL" = x; then
5913
    DSYMUTIL=":"
5914
  else
5915
    case $cross_compiling:$ac_tool_warned in
5916
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5917
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5918
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5919
ac_tool_warned=yes ;;
5920
esac
5921
    DSYMUTIL=$ac_ct_DSYMUTIL
5922
  fi
5923
else
5924
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5925
fi
5926
5927
    if test -n "$ac_tool_prefix"; then
5928
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5929
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5931
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5932
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5933
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5934
else
5935
  if test -n "$NMEDIT"; then
5936
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5937
else
5938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939
for as_dir in $PATH
5940
do
5941
  IFS=$as_save_IFS
5942
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5943
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5944
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5946
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5947
    break 2
5948
  fi
5949
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5950
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5951
IFS=$as_save_IFS
5952
5953
fi
5954
fi
5955
NMEDIT=$ac_cv_prog_NMEDIT
5956
if test -n "$NMEDIT"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5958
$as_echo "$NMEDIT" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5959
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5961
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5962
fi
5963
5964
5965
fi
5966
if test -z "$ac_cv_prog_NMEDIT"; then
5967
  ac_ct_NMEDIT=$NMEDIT
5968
  # Extract the first word of "nmedit", so it can be a program name with args.
5969
set dummy nmedit; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5971
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5972
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5973
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5974
else
5975
  if test -n "$ac_ct_NMEDIT"; then
5976
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5977
else
5978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979
for as_dir in $PATH
5980
do
5981
  IFS=$as_save_IFS
5982
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5983
    for ac_exec_ext in '' $ac_executable_extensions; do
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5986
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5987
    break 2
5988
  fi
5989
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5990
  done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5991
IFS=$as_save_IFS
5992
5993
fi
5994
fi
5995
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5996
if test -n "$ac_ct_NMEDIT"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
5997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
5998
$as_echo "$ac_ct_NMEDIT" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
5999
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6001
$as_echo "no" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6002
fi
6003
6004
  if test "x$ac_ct_NMEDIT" = x; then
6005
    NMEDIT=":"
6006
  else
6007
    case $cross_compiling:$ac_tool_warned in
6008
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6009
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6010
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6011
ac_tool_warned=yes ;;
6012
esac
6013
    NMEDIT=$ac_ct_NMEDIT
6014
  fi
6015
else
6016
  NMEDIT="$ac_cv_prog_NMEDIT"
6017
fi
6018
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6019
    if test -n "$ac_tool_prefix"; then
6020
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6021
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6023
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6024
if test "${ac_cv_prog_LIPO+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6025
  $as_echo_n "(cached) " >&6
6026
else
6027
  if test -n "$LIPO"; then
6028
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6029
else
6030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031
for as_dir in $PATH
6032
do
6033
  IFS=$as_save_IFS
6034
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6035
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6036
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6038
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6039
    break 2
6040
  fi
6041
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6042
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6043
IFS=$as_save_IFS
6044
6045
fi
6046
fi
6047
LIPO=$ac_cv_prog_LIPO
6048
if test -n "$LIPO"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6050
$as_echo "$LIPO" >&6; }
6051
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6053
$as_echo "no" >&6; }
6054
fi
6055
6056
6057
fi
6058
if test -z "$ac_cv_prog_LIPO"; then
6059
  ac_ct_LIPO=$LIPO
6060
  # Extract the first word of "lipo", so it can be a program name with args.
6061
set dummy lipo; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6063
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6064
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6065
  $as_echo_n "(cached) " >&6
6066
else
6067
  if test -n "$ac_ct_LIPO"; then
6068
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6069
else
6070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071
for as_dir in $PATH
6072
do
6073
  IFS=$as_save_IFS
6074
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6075
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077
    ac_cv_prog_ac_ct_LIPO="lipo"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6079
    break 2
6080
  fi
6081
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6082
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6083
IFS=$as_save_IFS
6084
6085
fi
6086
fi
6087
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6088
if test -n "$ac_ct_LIPO"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6090
$as_echo "$ac_ct_LIPO" >&6; }
6091
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6093
$as_echo "no" >&6; }
6094
fi
6095
6096
  if test "x$ac_ct_LIPO" = x; then
6097
    LIPO=":"
6098
  else
6099
    case $cross_compiling:$ac_tool_warned in
6100
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103
ac_tool_warned=yes ;;
6104
esac
6105
    LIPO=$ac_ct_LIPO
6106
  fi
6107
else
6108
  LIPO="$ac_cv_prog_LIPO"
6109
fi
6110
6111
    if test -n "$ac_tool_prefix"; then
6112
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6113
set dummy ${ac_tool_prefix}otool; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6115
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6116
if test "${ac_cv_prog_OTOOL+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6117
  $as_echo_n "(cached) " >&6
6118
else
6119
  if test -n "$OTOOL"; then
6120
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6121
else
6122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123
for as_dir in $PATH
6124
do
6125
  IFS=$as_save_IFS
6126
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6127
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6128
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6130
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6131
    break 2
6132
  fi
6133
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6134
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6135
IFS=$as_save_IFS
6136
6137
fi
6138
fi
6139
OTOOL=$ac_cv_prog_OTOOL
6140
if test -n "$OTOOL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6142
$as_echo "$OTOOL" >&6; }
6143
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6145
$as_echo "no" >&6; }
6146
fi
6147
6148
6149
fi
6150
if test -z "$ac_cv_prog_OTOOL"; then
6151
  ac_ct_OTOOL=$OTOOL
6152
  # Extract the first word of "otool", so it can be a program name with args.
6153
set dummy otool; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6155
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6156
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6157
  $as_echo_n "(cached) " >&6
6158
else
6159
  if test -n "$ac_ct_OTOOL"; then
6160
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6161
else
6162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163
for as_dir in $PATH
6164
do
6165
  IFS=$as_save_IFS
6166
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6167
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6168
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169
    ac_cv_prog_ac_ct_OTOOL="otool"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6170
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6171
    break 2
6172
  fi
6173
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6174
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6175
IFS=$as_save_IFS
6176
6177
fi
6178
fi
6179
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6180
if test -n "$ac_ct_OTOOL"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6182
$as_echo "$ac_ct_OTOOL" >&6; }
6183
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6185
$as_echo "no" >&6; }
6186
fi
6187
6188
  if test "x$ac_ct_OTOOL" = x; then
6189
    OTOOL=":"
6190
  else
6191
    case $cross_compiling:$ac_tool_warned in
6192
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195
ac_tool_warned=yes ;;
6196
esac
6197
    OTOOL=$ac_ct_OTOOL
6198
  fi
6199
else
6200
  OTOOL="$ac_cv_prog_OTOOL"
6201
fi
6202
6203
    if test -n "$ac_tool_prefix"; then
6204
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6205
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6207
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6208
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6209
  $as_echo_n "(cached) " >&6
6210
else
6211
  if test -n "$OTOOL64"; then
6212
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6213
else
6214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215
for as_dir in $PATH
6216
do
6217
  IFS=$as_save_IFS
6218
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6219
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6222
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6223
    break 2
6224
  fi
6225
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6226
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6227
IFS=$as_save_IFS
6228
6229
fi
6230
fi
6231
OTOOL64=$ac_cv_prog_OTOOL64
6232
if test -n "$OTOOL64"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6234
$as_echo "$OTOOL64" >&6; }
6235
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6237
$as_echo "no" >&6; }
6238
fi
6239
6240
6241
fi
6242
if test -z "$ac_cv_prog_OTOOL64"; then
6243
  ac_ct_OTOOL64=$OTOOL64
6244
  # Extract the first word of "otool64", so it can be a program name with args.
6245
set dummy otool64; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6247
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6248
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6249
  $as_echo_n "(cached) " >&6
6250
else
6251
  if test -n "$ac_ct_OTOOL64"; then
6252
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6253
else
6254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255
for as_dir in $PATH
6256
do
6257
  IFS=$as_save_IFS
6258
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6259
    for ac_exec_ext in '' $ac_executable_extensions; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6262
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6263
    break 2
6264
  fi
6265
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6266
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6267
IFS=$as_save_IFS
6268
6269
fi
6270
fi
6271
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6272
if test -n "$ac_ct_OTOOL64"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6274
$as_echo "$ac_ct_OTOOL64" >&6; }
6275
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6277
$as_echo "no" >&6; }
6278
fi
6279
6280
  if test "x$ac_ct_OTOOL64" = x; then
6281
    OTOOL64=":"
6282
  else
6283
    case $cross_compiling:$ac_tool_warned in
6284
yes:)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6285
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6286
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287
ac_tool_warned=yes ;;
6288
esac
6289
    OTOOL64=$ac_ct_OTOOL64
6290
  fi
6291
else
6292
  OTOOL64="$ac_cv_prog_OTOOL64"
6293
fi
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6321
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6322
$as_echo_n "checking for -single_module linker flag... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6323
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6324
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6325
else
6326
  lt_cv_apple_cc_single_mod=no
6327
      if test -z "${LT_MULTI_MODULE}"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6328
	# By default we will add the -single_module flag. You can override
6329
	# by either setting the environment variable LT_MULTI_MODULE
6330
	# non-empty at configure time, or by adding -multi_module to the
6331
	# link flags.
6332
	rm -rf libconftest.dylib*
6333
	echo "int foo(void){return 1;}" > conftest.c
6334
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6335
-dynamiclib -Wl,-single_module conftest.c" >&5
6336
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6337
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6338
        _lt_result=$?
6339
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6340
	  lt_cv_apple_cc_single_mod=yes
6341
	else
6342
	  cat conftest.err >&5
6343
	fi
6344
	rm -rf libconftest.dylib*
6345
	rm -f conftest.*
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6346
      fi
6347
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6349
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6350
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6351
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6352
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6353
  $as_echo_n "(cached) " >&6
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6354
else
6355
  lt_cv_ld_exported_symbols_list=no
6356
      save_LDFLAGS=$LDFLAGS
6357
      echo "_main" > conftest.sym
6358
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6359
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6360
/* end confdefs.h.  */
6361
6362
int
6363
main ()
6364
{
6365
6366
  ;
6367
  return 0;
6368
}
6369
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6370
if ac_fn_c_try_link "$LINENO"; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6371
  lt_cv_ld_exported_symbols_list=yes
6372
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6373
  lt_cv_ld_exported_symbols_list=no
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6374
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6375
rm -f core conftest.err conftest.$ac_objext \
6376
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6377
	LDFLAGS="$save_LDFLAGS"
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6378
6379
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6381
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6382
    case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6383
    rhapsody* | darwin1.[012])
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6384
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6385
    darwin1.*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6386
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6387
    darwin*) # darwin 5.x on
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6388
      # if running on 10.5 or later, the deployment target defaults
6389
      # to the OS version, if on x86, and 10.4, the deployment
6390
      # target defaults to 10.4. Don't you love it?
6391
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6392
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6393
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6394
	10.[012]*)
6395
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6396
	10.*)
6397
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6398
      esac
6399
    ;;
6400
  esac
6401
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6402
      _lt_dar_single_mod='$single_module'
6403
    fi
6404
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6405
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6406
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6407
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6408
    fi
6409
    if test "$DSYMUTIL" != ":"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6410
      _lt_dsymutil='~$DSYMUTIL $lib || :'
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
6411
    else
6412
      _lt_dsymutil=
6413
    fi
6414
    ;;
6415
  esac
6416
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6417
ac_ext=c
6418
ac_cpp='$CPP $CPPFLAGS'
6419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6423
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6424
# On Suns, sometimes $CPP names a directory.
6425
if test -n "$CPP" && test -d "$CPP"; then
6426
  CPP=
6427
fi
6428
if test -z "$CPP"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6429
  if test "${ac_cv_prog_CPP+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6430
  $as_echo_n "(cached) " >&6
6431
else
6432
      # Double quotes because CPP needs to be expanded
6433
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6434
    do
6435
      ac_preproc_ok=false
6436
for ac_c_preproc_warn_flag in '' yes
6437
do
6438
  # Use a header file that comes with gcc, so configuring glibc
6439
  # with a fresh cross-compiler works.
6440
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6441
  # <limits.h> exists even on freestanding compilers.
6442
  # On the NeXT, cc -E runs the code through the compiler's parser,
6443
  # not just through cpp. "Syntax error" is here to catch this case.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6445
/* end confdefs.h.  */
6446
#ifdef __STDC__
6447
# include <limits.h>
6448
#else
6449
# include <assert.h>
6450
#endif
6451
		     Syntax error
6452
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6453
if ac_fn_c_try_cpp "$LINENO"; then :
6454
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6455
else
6456
  # Broken: fails on valid input.
6457
continue
6458
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6459
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6460
6461
  # OK, works on sane cases.  Now check whether nonexistent headers
6462
  # can be detected and how.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6463
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6464
/* end confdefs.h.  */
6465
#include <ac_nonexistent.h>
6466
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6467
if ac_fn_c_try_cpp "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6468
  # Broken: success on invalid input.
6469
continue
6470
else
6471
  # Passes both tests.
6472
ac_preproc_ok=:
6473
break
6474
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6475
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6476
6477
done
6478
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6479
rm -f conftest.i conftest.err conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6480
if $ac_preproc_ok; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6481
  break
6482
fi
6483
6484
    done
6485
    ac_cv_prog_CPP=$CPP
6486
6487
fi
6488
  CPP=$ac_cv_prog_CPP
6489
else
6490
  ac_cv_prog_CPP=$CPP
6491
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6493
$as_echo "$CPP" >&6; }
6494
ac_preproc_ok=false
6495
for ac_c_preproc_warn_flag in '' yes
6496
do
6497
  # Use a header file that comes with gcc, so configuring glibc
6498
  # with a fresh cross-compiler works.
6499
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500
  # <limits.h> exists even on freestanding compilers.
6501
  # On the NeXT, cc -E runs the code through the compiler's parser,
6502
  # not just through cpp. "Syntax error" is here to catch this case.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6503
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6504
/* end confdefs.h.  */
6505
#ifdef __STDC__
6506
# include <limits.h>
6507
#else
6508
# include <assert.h>
6509
#endif
6510
		     Syntax error
6511
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6512
if ac_fn_c_try_cpp "$LINENO"; then :
6513
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6514
else
6515
  # Broken: fails on valid input.
6516
continue
6517
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6518
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6519
6520
  # OK, works on sane cases.  Now check whether nonexistent headers
6521
  # can be detected and how.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6522
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6523
/* end confdefs.h.  */
6524
#include <ac_nonexistent.h>
6525
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6526
if ac_fn_c_try_cpp "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6527
  # Broken: success on invalid input.
6528
continue
6529
else
6530
  # Passes both tests.
6531
ac_preproc_ok=:
6532
break
6533
fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6534
rm -f conftest.err conftest.i conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6535
6536
done
6537
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6538
rm -f conftest.i conftest.err conftest.$ac_ext
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6539
if $ac_preproc_ok; then :
6540
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6541
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6542
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6544
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6545
See \`config.log' for more details" "$LINENO" 5 ; }
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6546
fi
6547
6548
ac_ext=c
6549
ac_cpp='$CPP $CPPFLAGS'
6550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553
6554
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6556
$as_echo_n "checking for ANSI C header files... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6557
if test "${ac_cv_header_stdc+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6558
  $as_echo_n "(cached) " >&6
6559
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6560
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6561
/* end confdefs.h.  */
6562
#include <stdlib.h>
6563
#include <stdarg.h>
6564
#include <string.h>
6565
#include <float.h>
6566
6567
int
6568
main ()
6569
{
6570
6571
  ;
6572
  return 0;
6573
}
6574
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6575
if ac_fn_c_try_compile "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6576
  ac_cv_header_stdc=yes
6577
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6578
  ac_cv_header_stdc=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6579
fi
6580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581
6582
if test $ac_cv_header_stdc = yes; then
6583
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6584
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6585
/* end confdefs.h.  */
6586
#include <string.h>
6587
6588
_ACEOF
6589
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6590
  $EGREP "memchr" >/dev/null 2>&1; then :
6591
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6592
else
6593
  ac_cv_header_stdc=no
6594
fi
6595
rm -f conftest*
6596
6597
fi
6598
6599
if test $ac_cv_header_stdc = yes; then
6600
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6602
/* end confdefs.h.  */
6603
#include <stdlib.h>
6604
6605
_ACEOF
6606
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6607
  $EGREP "free" >/dev/null 2>&1; then :
6608
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6609
else
6610
  ac_cv_header_stdc=no
6611
fi
6612
rm -f conftest*
6613
6614
fi
6615
6616
if test $ac_cv_header_stdc = yes; then
6617
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6618
  if test "$cross_compiling" = yes; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6619
  :
6620
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6621
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6622
/* end confdefs.h.  */
6623
#include <ctype.h>
6624
#include <stdlib.h>
6625
#if ((' ' & 0x0FF) == 0x020)
6626
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6627
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6628
#else
6629
# define ISLOWER(c) \
6630
		   (('a' <= (c) && (c) <= 'i') \
6631
		     || ('j' <= (c) && (c) <= 'r') \
6632
		     || ('s' <= (c) && (c) <= 'z'))
6633
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6634
#endif
6635
6636
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6637
int
6638
main ()
6639
{
6640
  int i;
6641
  for (i = 0; i < 256; i++)
6642
    if (XOR (islower (i), ISLOWER (i))
6643
	|| toupper (i) != TOUPPER (i))
6644
      return 2;
6645
  return 0;
6646
}
6647
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6648
if ac_fn_c_try_run "$LINENO"; then :
6649
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6650
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6651
  ac_cv_header_stdc=no
6652
fi
6653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6654
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6655
fi
6656
6657
fi
6658
fi
6659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6660
$as_echo "$ac_cv_header_stdc" >&6; }
6661
if test $ac_cv_header_stdc = yes; then
6662
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6663
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6664
6665
fi
6666
6667
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6668
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6669
		  inttypes.h stdint.h unistd.h
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6670
do :
6671
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6672
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6673
"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
6674
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6675
  cat >>confdefs.h <<_ACEOF
6676
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677
_ACEOF
6678
6679
fi
6680
6681
done
6682
6683
6684
for ac_header in dlfcn.h
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6685
do :
6686
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6687
"
6688
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6689
  cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6690
#define HAVE_DLFCN_H 1
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6691
_ACEOF
6692
6693
fi
6694
6695
done
6696
6697
6698
6699
# Set options
6700
6701
6702
6703
        enable_dlopen=no
6704
6705
6706
  enable_win32_dll=no
6707
6708
6709
            # Check whether --enable-shared was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6710
if test "${enable_shared+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6711
  enableval=$enable_shared; p=${PACKAGE-default}
6712
    case $enableval in
6713
    yes) enable_shared=yes ;;
6714
    no) enable_shared=no ;;
6715
    *)
6716
      enable_shared=no
6717
      # Look at the argument we got.  We use all the common list separators.
6718
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6719
      for pkg in $enableval; do
6720
	IFS="$lt_save_ifs"
6721
	if test "X$pkg" = "X$p"; then
6722
	  enable_shared=yes
6723
	fi
6724
      done
6725
      IFS="$lt_save_ifs"
6726
      ;;
6727
    esac
6728
else
6729
  enable_shared=yes
6730
fi
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
  # Check whether --enable-static was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6741
if test "${enable_static+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6742
  enableval=$enable_static; p=${PACKAGE-default}
6743
    case $enableval in
6744
    yes) enable_static=yes ;;
6745
    no) enable_static=no ;;
6746
    *)
6747
     enable_static=no
6748
      # Look at the argument we got.  We use all the common list separators.
6749
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6750
      for pkg in $enableval; do
6751
	IFS="$lt_save_ifs"
6752
	if test "X$pkg" = "X$p"; then
6753
	  enable_static=yes
6754
	fi
6755
      done
6756
      IFS="$lt_save_ifs"
6757
      ;;
6758
    esac
6759
else
6760
  enable_static=yes
6761
fi
6762
6763
6764
6765
6766
6767
6768
6769
1 by Joey Hess
* Joey Hess
6770
6771
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
6772
# Check whether --with-pic was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6773
if test "${with_pic+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
6774
  withval=$with_pic; pic_mode="$withval"
1 by Joey Hess
* Joey Hess
6775
else
6776
  pic_mode=default
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
6777
fi
6778
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6779
1 by Joey Hess
* Joey Hess
6780
test -z "$pic_mode" && pic_mode=default
6781
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6782
6783
6784
6785
6786
6787
6788
  # Check whether --enable-fast-install was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6789
if test "${enable_fast_install+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6790
  enableval=$enable_fast_install; p=${PACKAGE-default}
6791
    case $enableval in
6792
    yes) enable_fast_install=yes ;;
6793
    no) enable_fast_install=no ;;
6794
    *)
6795
      enable_fast_install=no
6796
      # Look at the argument we got.  We use all the common list separators.
6797
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6798
      for pkg in $enableval; do
6799
	IFS="$lt_save_ifs"
6800
	if test "X$pkg" = "X$p"; then
6801
	  enable_fast_install=yes
6802
	fi
6803
      done
6804
      IFS="$lt_save_ifs"
6805
      ;;
6806
    esac
6807
else
6808
  enable_fast_install=yes
6809
fi
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
# This can be used to rebuild libtool when needed
6822
LIBTOOL_DEPS="$ltmain"
6823
6824
# Always use our own libtool.
6825
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
test -z "$LN_S" && LN_S="ln -s"
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
if test -n "${ZSH_VERSION+set}" ; then
6867
   setopt NO_GLOB_SUBST
6868
fi
6869
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6871
$as_echo_n "checking for objdir... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6872
if test "${lt_cv_objdir+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6873
  $as_echo_n "(cached) " >&6
6874
else
6875
  rm -f .libs 2>/dev/null
6876
mkdir .libs 2>/dev/null
6877
if test -d .libs; then
6878
  lt_cv_objdir=.libs
6879
else
6880
  # MS-DOS does not allow filenames that begin with a dot.
6881
  lt_cv_objdir=_libs
6882
fi
6883
rmdir .libs 2>/dev/null
6884
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6886
$as_echo "$lt_cv_objdir" >&6; }
6887
objdir=$lt_cv_objdir
6888
6889
6890
6891
6892
6893
cat >>confdefs.h <<_ACEOF
6894
#define LT_OBJDIR "$lt_cv_objdir/"
6895
_ACEOF
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
case $host_os in
6914
aix3*)
6915
  # AIX sometimes has problems with the GCC collect2 program.  For some
6916
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6917
  # vanish in a puff of smoke.
6918
  if test "X${COLLECT_NAMES+set}" != Xset; then
6919
    COLLECT_NAMES=
6920
    export COLLECT_NAMES
6921
  fi
6922
  ;;
6923
esac
6924
6925
# Sed substitution that helps us do robust quoting.  It backslashifies
6926
# metacharacters that are still active within double-quoted strings.
6927
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6928
6929
# Same as above, but do not quote variable references.
6930
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6931
6932
# Sed substitution to delay expansion of an escaped shell variable in a
6933
# double_quote_subst'ed string.
6934
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6935
6936
# Sed substitution to delay expansion of an escaped single quote.
6937
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6938
6939
# Sed substitution to avoid accidental globbing in evaled expressions
6940
no_glob_subst='s/\*/\\\*/g'
6941
6942
# Global variables:
6943
ofile=libtool
6944
can_build_shared=yes
6945
6946
# All known linkers require a `.a' archive for static linking (except MSVC,
6947
# which needs '.lib').
6948
libext=a
6949
6950
with_gnu_ld="$lt_cv_prog_gnu_ld"
6951
6952
old_CC="$CC"
6953
old_CFLAGS="$CFLAGS"
6954
6955
# Set sane defaults for various variables
6956
test -z "$CC" && CC=cc
6957
test -z "$LTCC" && LTCC=$CC
6958
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6959
test -z "$LD" && LD=ld
6960
test -z "$ac_objext" && ac_objext=o
6961
6962
for cc_temp in $compiler""; do
6963
  case $cc_temp in
6964
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6965
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6966
    \-*) ;;
6967
    *) break;;
6968
  esac
6969
done
6970
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6971
6972
6973
# Only perform the check for file, if the check method requires it
6974
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6975
case $deplibs_check_method in
6976
file_magic*)
6977
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6978
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6979
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
6980
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
6981
  $as_echo_n "(cached) " >&6
6982
else
6983
  case $MAGIC_CMD in
6984
[\\/*] |  ?:[\\/]*)
6985
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6986
  ;;
6987
*)
6988
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6989
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6990
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6991
  for ac_dir in $ac_dummy; do
6992
    IFS="$lt_save_ifs"
6993
    test -z "$ac_dir" && ac_dir=.
6994
    if test -f $ac_dir/${ac_tool_prefix}file; then
6995
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6996
      if test -n "$file_magic_test_file"; then
6997
	case $deplibs_check_method in
6998
	"file_magic "*)
6999
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7000
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7002
	    $EGREP "$file_magic_regex" > /dev/null; then
7003
	    :
7004
	  else
7005
	    cat <<_LT_EOF 1>&2
7006
7007
*** Warning: the command libtool uses to detect shared libraries,
7008
*** $file_magic_cmd, produces output that libtool cannot recognize.
7009
*** The result is that libtool may fail to recognize shared libraries
7010
*** as such.  This will affect the creation of libtool libraries that
7011
*** depend on shared libraries, but programs linked with such libtool
7012
*** libraries will work regardless of this problem.  Nevertheless, you
7013
*** may want to report the problem to your system manager and/or to
7014
*** bug-libtool@gnu.org
7015
7016
_LT_EOF
7017
	  fi ;;
7018
	esac
7019
      fi
7020
      break
7021
    fi
7022
  done
7023
  IFS="$lt_save_ifs"
7024
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7025
  ;;
7026
esac
7027
fi
7028
7029
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7030
if test -n "$MAGIC_CMD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7032
$as_echo "$MAGIC_CMD" >&6; }
7033
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7035
$as_echo "no" >&6; }
7036
fi
7037
7038
7039
7040
7041
7042
if test -z "$lt_cv_path_MAGIC_CMD"; then
7043
  if test -n "$ac_tool_prefix"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7044
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7045
$as_echo_n "checking for file... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7046
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7047
  $as_echo_n "(cached) " >&6
7048
else
7049
  case $MAGIC_CMD in
7050
[\\/*] |  ?:[\\/]*)
7051
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7052
  ;;
7053
*)
7054
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7055
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7056
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7057
  for ac_dir in $ac_dummy; do
7058
    IFS="$lt_save_ifs"
7059
    test -z "$ac_dir" && ac_dir=.
7060
    if test -f $ac_dir/file; then
7061
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7062
      if test -n "$file_magic_test_file"; then
7063
	case $deplibs_check_method in
7064
	"file_magic "*)
7065
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7066
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7067
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7068
	    $EGREP "$file_magic_regex" > /dev/null; then
7069
	    :
7070
	  else
7071
	    cat <<_LT_EOF 1>&2
7072
7073
*** Warning: the command libtool uses to detect shared libraries,
7074
*** $file_magic_cmd, produces output that libtool cannot recognize.
7075
*** The result is that libtool may fail to recognize shared libraries
7076
*** as such.  This will affect the creation of libtool libraries that
7077
*** depend on shared libraries, but programs linked with such libtool
7078
*** libraries will work regardless of this problem.  Nevertheless, you
7079
*** may want to report the problem to your system manager and/or to
7080
*** bug-libtool@gnu.org
7081
7082
_LT_EOF
7083
	  fi ;;
7084
	esac
7085
      fi
7086
      break
7087
    fi
7088
  done
7089
  IFS="$lt_save_ifs"
7090
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7091
  ;;
7092
esac
7093
fi
7094
7095
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7096
if test -n "$MAGIC_CMD"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7098
$as_echo "$MAGIC_CMD" >&6; }
7099
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7101
$as_echo "no" >&6; }
7102
fi
7103
7104
7105
  else
7106
    MAGIC_CMD=:
7107
  fi
7108
fi
7109
7110
  fi
7111
  ;;
7112
esac
7113
1 by Joey Hess
* Joey Hess
7114
# Use C for the default configuration in the libtool script
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7115
1 by Joey Hess
* Joey Hess
7116
lt_save_CC="$CC"
7117
ac_ext=c
7118
ac_cpp='$CPP $CPPFLAGS'
7119
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122
7123
7124
# Source file extension for C test sources.
7125
ac_ext=c
7126
7127
# Object file extension for compiled C test sources.
7128
objext=o
7129
objext=$objext
7130
7131
# Code to be used in simple compile tests
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7132
lt_simple_compile_test_code="int some_variable = 0;"
1 by Joey Hess
* Joey Hess
7133
7134
# Code to be used in simple link tests
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7135
lt_simple_link_test_code='int main(){return(0);}'
1 by Joey Hess
* Joey Hess
7136
7137
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7138
7139
7140
7141
7142
1 by Joey Hess
* Joey Hess
7143
# If no C compiler was specified, use CC.
7144
LTCC=${LTCC-"$CC"}
7145
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7146
# If no C compiler flags were specified, use CFLAGS.
7147
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148
1 by Joey Hess
* Joey Hess
7149
# Allow CC to be a program name with arguments.
7150
compiler=$CC
7151
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7152
# Save the default compiler, since it gets overwritten when the other
7153
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7154
compiler_DEFAULT=$CC
1 by Joey Hess
* Joey Hess
7155
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7156
# save warnings/boilerplate of simple test code
7157
ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7158
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7159
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7160
_lt_compiler_boilerplate=`cat conftest.err`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7161
$RM conftest*
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7162
7163
ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7164
echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7165
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7166
_lt_linker_boilerplate=`cat conftest.err`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7167
$RM -r conftest*
7168
7169
7170
if test -n "$compiler"; then
1 by Joey Hess
* Joey Hess
7171
7172
lt_prog_compiler_no_builtin_flag=
7173
7174
if test "$GCC" = yes; then
7175
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7176
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7177
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7178
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7179
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7180
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
7181
else
7182
  lt_cv_prog_compiler_rtti_exceptions=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7183
   ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7184
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
7185
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7186
   # Insert the option either (1) after the last *FLAGS variable, or
7187
   # (2) before a word containing "conftest.", or (3) at the end.
7188
   # Note that $ac_compile itself does not contain backslashes and begins
7189
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7190
   # The option is referenced via a variable to avoid confusing sed.
7191
   lt_compile=`echo "$ac_compile" | $SED \
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7192
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Joey Hess
* Joey Hess
7193
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7194
   -e 's:$: $lt_compiler_flag:'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7195
   (eval echo "\"\$as_me:7195: $lt_compile\"" >&5)
1 by Joey Hess
* Joey Hess
7196
   (eval "$lt_compile" 2>conftest.err)
7197
   ac_status=$?
7198
   cat conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7199
   echo "$as_me:7199: \$? = $ac_status" >&5
1 by Joey Hess
* Joey Hess
7200
   if (exit $ac_status) && test -s "$ac_outfile"; then
7201
     # The compiler can only warn and ignore the option if not recognized
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7202
     # So say no if there are warnings other than the usual output.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7203
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7204
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7205
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1 by Joey Hess
* Joey Hess
7206
       lt_cv_prog_compiler_rtti_exceptions=yes
7207
     fi
7208
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7209
   $RM conftest*
1 by Joey Hess
* Joey Hess
7210
7211
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7213
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1 by Joey Hess
* Joey Hess
7214
7215
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7216
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7217
else
7218
    :
7219
fi
7220
7221
fi
7222
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7223
7224
7225
7226
7227
7228
  lt_prog_compiler_wl=
1 by Joey Hess
* Joey Hess
7229
lt_prog_compiler_pic=
7230
lt_prog_compiler_static=
7231
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7233
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1 by Joey Hess
* Joey Hess
7234
7235
  if test "$GCC" = yes; then
7236
    lt_prog_compiler_wl='-Wl,'
7237
    lt_prog_compiler_static='-static'
7238
7239
    case $host_os in
7240
      aix*)
7241
      # All AIX code is PIC.
7242
      if test "$host_cpu" = ia64; then
7243
	# AIX 5 now supports IA64 processor
7244
	lt_prog_compiler_static='-Bstatic'
7245
      fi
7246
      ;;
7247
7248
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7249
      case $host_cpu in
7250
      powerpc)
7251
            # see comment about AmigaOS4 .so support
7252
            lt_prog_compiler_pic='-fPIC'
7253
        ;;
7254
      m68k)
7255
            # FIXME: we need at least 68020 code to build shared libraries, but
7256
            # adding the `-m68020' flag to GCC prevents building anything better,
7257
            # like `-m68040'.
7258
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7259
        ;;
7260
      esac
1 by Joey Hess
* Joey Hess
7261
      ;;
7262
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7263
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Joey Hess
* Joey Hess
7264
      # PIC is the default for these OSes.
7265
      ;;
7266
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7267
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Joey Hess
* Joey Hess
7268
      # This hack is so that the source file can tell whether it is being
7269
      # built for inclusion in a dll (and should export symbols for example).
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7270
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7271
      # (--disable-auto-import) libraries
1 by Joey Hess
* Joey Hess
7272
      lt_prog_compiler_pic='-DDLL_EXPORT'
7273
      ;;
7274
7275
    darwin* | rhapsody*)
7276
      # PIC is the default on this platform
7277
      # Common symbols not allowed in MH_DYLIB files
7278
      lt_prog_compiler_pic='-fno-common'
7279
      ;;
7280
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7281
    hpux*)
7282
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7283
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7284
      # sets the default TLS model and affects inlining.
7285
      case $host_cpu in
7286
      hppa*64*)
7287
	# +Z the default
7288
	;;
7289
      *)
7290
	lt_prog_compiler_pic='-fPIC'
7291
	;;
7292
      esac
7293
      ;;
7294
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7295
    interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7296
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7297
      # Instead, we relocate shared libraries at runtime.
7298
      ;;
7299
1 by Joey Hess
* Joey Hess
7300
    msdosdjgpp*)
7301
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7302
      # on systems that don't support them.
7303
      lt_prog_compiler_can_build_shared=no
7304
      enable_shared=no
7305
      ;;
7306
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7307
    *nto* | *qnx*)
7308
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7309
      # it will coredump.
7310
      lt_prog_compiler_pic='-fPIC -shared'
7311
      ;;
7312
1 by Joey Hess
* Joey Hess
7313
    sysv4*MP*)
7314
      if test -d /usr/nec; then
7315
	lt_prog_compiler_pic=-Kconform_pic
7316
      fi
7317
      ;;
7318
7319
    *)
7320
      lt_prog_compiler_pic='-fPIC'
7321
      ;;
7322
    esac
7323
  else
7324
    # PORTME Check for flag to pass linker flags through the system compiler.
7325
    case $host_os in
7326
    aix*)
7327
      lt_prog_compiler_wl='-Wl,'
7328
      if test "$host_cpu" = ia64; then
7329
	# AIX 5 now supports IA64 processor
7330
	lt_prog_compiler_static='-Bstatic'
7331
      else
7332
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7333
      fi
7334
      ;;
7335
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7336
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Joey Hess
* Joey Hess
7337
      # This hack is so that the source file can tell whether it is being
7338
      # built for inclusion in a dll (and should export symbols for example).
7339
      lt_prog_compiler_pic='-DDLL_EXPORT'
7340
      ;;
7341
7342
    hpux9* | hpux10* | hpux11*)
7343
      lt_prog_compiler_wl='-Wl,'
7344
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7345
      # not for PA HP-UX.
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7346
      case $host_cpu in
1 by Joey Hess
* Joey Hess
7347
      hppa*64*|ia64*)
7348
	# +Z the default
7349
	;;
7350
      *)
7351
	lt_prog_compiler_pic='+Z'
7352
	;;
7353
      esac
7354
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7355
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7356
      ;;
7357
7358
    irix5* | irix6* | nonstopux*)
7359
      lt_prog_compiler_wl='-Wl,'
7360
      # PIC (with -KPIC) is the default.
7361
      lt_prog_compiler_static='-non_shared'
7362
      ;;
7363
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
7364
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7365
      case $cc_basename in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7366
      # old Intel for x86_64 which still supported -KPIC.
7367
      ecc*)
1 by Joey Hess
* Joey Hess
7368
	lt_prog_compiler_wl='-Wl,'
7369
	lt_prog_compiler_pic='-KPIC'
7370
	lt_prog_compiler_static='-static'
7371
        ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7372
      # icc used to be incompatible with GCC.
7373
      # ICC 10 doesn't accept -KPIC any more.
7374
      icc* | ifort*)
7375
	lt_prog_compiler_wl='-Wl,'
7376
	lt_prog_compiler_pic='-fPIC'
7377
	lt_prog_compiler_static='-static'
7378
        ;;
7379
      # Lahey Fortran 8.1.
7380
      lf95*)
7381
	lt_prog_compiler_wl='-Wl,'
7382
	lt_prog_compiler_pic='--shared'
7383
	lt_prog_compiler_static='--static'
7384
	;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7385
      pgcc* | pgf77* | pgf90* | pgf95*)
7386
        # Portland Group compilers (*not* the Pentium gcc compiler,
7387
	# which looks to be a dead project)
7388
	lt_prog_compiler_wl='-Wl,'
7389
	lt_prog_compiler_pic='-fpic'
7390
	lt_prog_compiler_static='-Bstatic'
7391
        ;;
1 by Joey Hess
* Joey Hess
7392
      ccc*)
7393
        lt_prog_compiler_wl='-Wl,'
7394
        # All Alpha code is PIC.
7395
        lt_prog_compiler_static='-non_shared'
7396
        ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7397
      xl*)
7398
	# IBM XL C 8.0/Fortran 10.1 on PPC
7399
	lt_prog_compiler_wl='-Wl,'
7400
	lt_prog_compiler_pic='-qpic'
7401
	lt_prog_compiler_static='-qstaticlink'
7402
	;;
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7403
      *)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7404
	case `$CC -V 2>&1 | sed 5q` in
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7405
	*Sun\ C*)
7406
	  # Sun C 5.9
7407
	  lt_prog_compiler_pic='-KPIC'
7408
	  lt_prog_compiler_static='-Bstatic'
7409
	  lt_prog_compiler_wl='-Wl,'
7410
	  ;;
7411
	*Sun\ F*)
7412
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7413
	  lt_prog_compiler_pic='-KPIC'
7414
	  lt_prog_compiler_static='-Bstatic'
7415
	  lt_prog_compiler_wl=''
7416
	  ;;
7417
	esac
7418
	;;
1 by Joey Hess
* Joey Hess
7419
      esac
7420
      ;;
7421
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7422
    newsos6)
7423
      lt_prog_compiler_pic='-KPIC'
7424
      lt_prog_compiler_static='-Bstatic'
7425
      ;;
7426
7427
    *nto* | *qnx*)
7428
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7429
      # it will coredump.
7430
      lt_prog_compiler_pic='-fPIC -shared'
7431
      ;;
7432
1 by Joey Hess
* Joey Hess
7433
    osf3* | osf4* | osf5*)
7434
      lt_prog_compiler_wl='-Wl,'
7435
      # All OSF/1 code is PIC.
7436
      lt_prog_compiler_static='-non_shared'
7437
      ;;
7438
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7439
    rdos*)
7440
      lt_prog_compiler_static='-non_shared'
7441
      ;;
7442
1 by Joey Hess
* Joey Hess
7443
    solaris*)
7444
      lt_prog_compiler_pic='-KPIC'
7445
      lt_prog_compiler_static='-Bstatic'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7446
      case $cc_basename in
7447
      f77* | f90* | f95*)
7448
	lt_prog_compiler_wl='-Qoption ld ';;
7449
      *)
7450
	lt_prog_compiler_wl='-Wl,';;
7451
      esac
1 by Joey Hess
* Joey Hess
7452
      ;;
7453
7454
    sunos4*)
7455
      lt_prog_compiler_wl='-Qoption ld '
7456
      lt_prog_compiler_pic='-PIC'
7457
      lt_prog_compiler_static='-Bstatic'
7458
      ;;
7459
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7460
    sysv4 | sysv4.2uw2* | sysv4.3*)
1 by Joey Hess
* Joey Hess
7461
      lt_prog_compiler_wl='-Wl,'
7462
      lt_prog_compiler_pic='-KPIC'
7463
      lt_prog_compiler_static='-Bstatic'
7464
      ;;
7465
7466
    sysv4*MP*)
7467
      if test -d /usr/nec ;then
7468
	lt_prog_compiler_pic='-Kconform_pic'
7469
	lt_prog_compiler_static='-Bstatic'
7470
      fi
7471
      ;;
7472
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7473
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7474
      lt_prog_compiler_wl='-Wl,'
7475
      lt_prog_compiler_pic='-KPIC'
7476
      lt_prog_compiler_static='-Bstatic'
7477
      ;;
7478
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7479
    unicos*)
7480
      lt_prog_compiler_wl='-Wl,'
7481
      lt_prog_compiler_can_build_shared=no
7482
      ;;
7483
1 by Joey Hess
* Joey Hess
7484
    uts4*)
7485
      lt_prog_compiler_pic='-pic'
7486
      lt_prog_compiler_static='-Bstatic'
7487
      ;;
7488
7489
    *)
7490
      lt_prog_compiler_can_build_shared=no
7491
      ;;
7492
    esac
7493
  fi
7494
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7495
case $host_os in
7496
  # For platforms which do not support PIC, -DPIC is meaningless:
7497
  *djgpp*)
7498
    lt_prog_compiler_pic=
7499
    ;;
7500
  *)
7501
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7502
    ;;
7503
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7505
$as_echo "$lt_prog_compiler_pic" >&6; }
7506
7507
7508
7509
7510
1 by Joey Hess
* Joey Hess
7511
7512
#
7513
# Check to make sure the PIC flag actually works.
7514
#
7515
if test -n "$lt_prog_compiler_pic"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7516
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7517
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7518
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7519
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
7520
else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7521
  lt_cv_prog_compiler_pic_works=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7522
   ac_outfile=conftest.$ac_objext
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7523
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
7524
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7525
   # Insert the option either (1) after the last *FLAGS variable, or
7526
   # (2) before a word containing "conftest.", or (3) at the end.
7527
   # Note that $ac_compile itself does not contain backslashes and begins
7528
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7529
   # The option is referenced via a variable to avoid confusing sed.
7530
   lt_compile=`echo "$ac_compile" | $SED \
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7531
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Joey Hess
* Joey Hess
7532
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7533
   -e 's:$: $lt_compiler_flag:'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7534
   (eval echo "\"\$as_me:7534: $lt_compile\"" >&5)
1 by Joey Hess
* Joey Hess
7535
   (eval "$lt_compile" 2>conftest.err)
7536
   ac_status=$?
7537
   cat conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7538
   echo "$as_me:7538: \$? = $ac_status" >&5
1 by Joey Hess
* Joey Hess
7539
   if (exit $ac_status) && test -s "$ac_outfile"; then
7540
     # The compiler can only warn and ignore the option if not recognized
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7541
     # So say no if there are warnings other than the usual output.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7542
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7543
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7544
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7545
       lt_cv_prog_compiler_pic_works=yes
1 by Joey Hess
* Joey Hess
7546
     fi
7547
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7548
   $RM conftest*
1 by Joey Hess
* Joey Hess
7549
7550
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7552
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1 by Joey Hess
* Joey Hess
7553
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7554
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1 by Joey Hess
* Joey Hess
7555
    case $lt_prog_compiler_pic in
7556
     "" | " "*) ;;
7557
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7558
     esac
7559
else
7560
    lt_prog_compiler_pic=
7561
     lt_prog_compiler_can_build_shared=no
7562
fi
7563
7564
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7565
7566
7567
7568
7569
1 by Joey Hess
* Joey Hess
7570
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7571
#
7572
# Check to make sure the static flag actually works.
7573
#
7574
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7576
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7577
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7578
  $as_echo_n "(cached) " >&6
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7579
else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7580
  lt_cv_prog_compiler_static_works=no
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7581
   save_LDFLAGS="$LDFLAGS"
7582
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7583
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7584
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7585
     # The linker can only warn and ignore the option if not recognized
7586
     # So say no if there are warnings
7587
     if test -s conftest.err; then
7588
       # Append any errors to the config.log.
7589
       cat conftest.err 1>&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7590
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7591
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7592
       if diff conftest.exp conftest.er2 >/dev/null; then
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7593
         lt_cv_prog_compiler_static_works=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7594
       fi
7595
     else
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7596
       lt_cv_prog_compiler_static_works=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7597
     fi
7598
   fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7599
   $RM -r conftest*
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7600
   LDFLAGS="$save_LDFLAGS"
7601
7602
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7604
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7605
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7606
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7607
    :
7608
else
7609
    lt_prog_compiler_static=
7610
fi
7611
7612
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7613
7614
7615
7616
7617
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7619
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7620
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7621
  $as_echo_n "(cached) " >&6
7622
else
7623
  lt_cv_prog_compiler_c_o=no
7624
   $RM -r conftest 2>/dev/null
7625
   mkdir conftest
7626
   cd conftest
7627
   mkdir out
7628
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7629
7630
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7631
   # Insert the option either (1) after the last *FLAGS variable, or
7632
   # (2) before a word containing "conftest.", or (3) at the end.
7633
   # Note that $ac_compile itself does not contain backslashes and begins
7634
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7635
   lt_compile=`echo "$ac_compile" | $SED \
7636
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7637
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7638
   -e 's:$: $lt_compiler_flag:'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7639
   (eval echo "\"\$as_me:7639: $lt_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7640
   (eval "$lt_compile" 2>out/conftest.err)
7641
   ac_status=$?
7642
   cat out/conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7643
   echo "$as_me:7643: \$? = $ac_status" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7644
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7645
   then
7646
     # The compiler can only warn and ignore the option if not recognized
7647
     # So say no if there are warnings
7648
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7649
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7650
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7651
       lt_cv_prog_compiler_c_o=yes
7652
     fi
7653
   fi
7654
   chmod u+w . 2>&5
7655
   $RM conftest*
7656
   # SGI C++ compiler will create directory out/ii_files/ for
7657
   # template instantiation
7658
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7659
   $RM out/* && rmdir out
7660
   cd ..
7661
   $RM -r conftest
7662
   $RM conftest*
7663
7664
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7666
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7667
7668
7669
7670
7671
7672
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7674
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7675
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7676
  $as_echo_n "(cached) " >&6
7677
else
7678
  lt_cv_prog_compiler_c_o=no
7679
   $RM -r conftest 2>/dev/null
7680
   mkdir conftest
7681
   cd conftest
7682
   mkdir out
7683
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7684
7685
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7686
   # Insert the option either (1) after the last *FLAGS variable, or
7687
   # (2) before a word containing "conftest.", or (3) at the end.
7688
   # Note that $ac_compile itself does not contain backslashes and begins
7689
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7690
   lt_compile=`echo "$ac_compile" | $SED \
7691
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7692
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7693
   -e 's:$: $lt_compiler_flag:'`
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7694
   (eval echo "\"\$as_me:7694: $lt_compile\"" >&5)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7695
   (eval "$lt_compile" 2>out/conftest.err)
7696
   ac_status=$?
7697
   cat out/conftest.err >&5
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
7698
   echo "$as_me:7698: \$? = $ac_status" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7699
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7700
   then
7701
     # The compiler can only warn and ignore the option if not recognized
7702
     # So say no if there are warnings
7703
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7704
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7705
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7706
       lt_cv_prog_compiler_c_o=yes
7707
     fi
7708
   fi
7709
   chmod u+w . 2>&5
7710
   $RM conftest*
7711
   # SGI C++ compiler will create directory out/ii_files/ for
7712
   # template instantiation
7713
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7714
   $RM out/* && rmdir out
7715
   cd ..
7716
   $RM -r conftest
7717
   $RM conftest*
7718
7719
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7721
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7722
7723
1 by Joey Hess
* Joey Hess
7724
7725
7726
hard_links="nottested"
7727
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7728
  # do not overwrite the value of need_locks provided by the user
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7729
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7730
$as_echo_n "checking if we can lock with hard links... " >&6; }
1 by Joey Hess
* Joey Hess
7731
  hard_links=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7732
  $RM conftest*
1 by Joey Hess
* Joey Hess
7733
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7734
  touch conftest.a
7735
  ln conftest.a conftest.b 2>&5 || hard_links=no
7736
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7738
$as_echo "$hard_links" >&6; }
1 by Joey Hess
* Joey Hess
7739
  if test "$hard_links" = no; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7740
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7741
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1 by Joey Hess
* Joey Hess
7742
    need_locks=warn
7743
  fi
7744
else
7745
  need_locks=no
7746
fi
7747
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7748
7749
7750
7751
7752
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
7753
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7754
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1 by Joey Hess
* Joey Hess
7755
7756
  runpath_var=
7757
  allow_undefined_flag=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7758
  always_export_symbols=no
1 by Joey Hess
* Joey Hess
7759
  archive_cmds=
7760
  archive_expsym_cmds=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7761
  compiler_needs_object=no
7762
  enable_shared_with_static_runtimes=no
1 by Joey Hess
* Joey Hess
7763
  export_dynamic_flag_spec=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7764
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7765
  hardcode_automatic=no
7766
  hardcode_direct=no
7767
  hardcode_direct_absolute=no
1 by Joey Hess
* Joey Hess
7768
  hardcode_libdir_flag_spec=
7769
  hardcode_libdir_flag_spec_ld=
7770
  hardcode_libdir_separator=
7771
  hardcode_minus_L=no
7772
  hardcode_shlibpath_var=unsupported
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7773
  inherit_rpath=no
1 by Joey Hess
* Joey Hess
7774
  link_all_deplibs=unknown
7775
  module_cmds=
7776
  module_expsym_cmds=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7777
  old_archive_from_new_cmds=
7778
  old_archive_from_expsyms_cmds=
7779
  thread_safe_flag_spec=
7780
  whole_archive_flag_spec=
1 by Joey Hess
* Joey Hess
7781
  # include_expsyms should be a list of space-separated symbols to be *always*
7782
  # included in the symbol list
7783
  include_expsyms=
7784
  # exclude_expsyms can be an extended regexp of symbols to exclude
7785
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7786
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7787
  # as well as any symbol that contains `d'.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7788
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1 by Joey Hess
* Joey Hess
7789
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7790
  # platforms (ab)use it in PIC code, but their linkers get confused if
7791
  # the symbol is explicitly referenced.  Since portable code cannot
7792
  # rely on this symbol name, it's probably fine to never include it in
7793
  # preloaded symbol tables.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7794
  # Exclude shared library initialization/finalization symbols.
1 by Joey Hess
* Joey Hess
7795
  extract_expsyms_cmds=
7796
7797
  case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7798
  cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
7799
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7800
    # When not using gcc, we currently assume that we are using
7801
    # Microsoft Visual C++.
7802
    if test "$GCC" != yes; then
7803
      with_gnu_ld=no
7804
    fi
7805
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7806
  interix*)
7807
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7808
    with_gnu_ld=yes
7809
    ;;
1 by Joey Hess
* Joey Hess
7810
  openbsd*)
7811
    with_gnu_ld=no
7812
    ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7813
  linux* | k*bsd*-gnu)
7814
    link_all_deplibs=no
7815
    ;;
1 by Joey Hess
* Joey Hess
7816
  esac
7817
7818
  ld_shlibs=yes
7819
  if test "$with_gnu_ld" = yes; then
7820
    # If archive_cmds runs LD, not CC, wlarc should be empty
7821
    wlarc='${wl}'
7822
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7823
    # Set some defaults for GNU ld with shared library support. These
7824
    # are reset later if shared libraries are not supported. Putting them
7825
    # here allows them to be overridden if necessary.
7826
    runpath_var=LD_RUN_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7827
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7828
    export_dynamic_flag_spec='${wl}--export-dynamic'
7829
    # ancient GNU ld didn't support --whole-archive et. al.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7830
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7831
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7832
    else
7833
      whole_archive_flag_spec=
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7834
    fi
7835
    supports_anon_versioning=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7836
    case `$LD -v 2>&1` in
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
7837
      *GNU\ gold*) supports_anon_versioning=yes ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7838
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7839
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7840
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7841
      *\ 2.11.*) ;; # other 2.11 versions
7842
      *) supports_anon_versioning=yes ;;
7843
    esac
7844
1 by Joey Hess
* Joey Hess
7845
    # See if GNU ld supports shared libraries.
7846
    case $host_os in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
7847
    aix[3-9]*)
1 by Joey Hess
* Joey Hess
7848
      # On AIX/PPC, the GNU linker is very broken
7849
      if test "$host_cpu" != ia64; then
7850
	ld_shlibs=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7851
	cat <<_LT_EOF 1>&2
1 by Joey Hess
* Joey Hess
7852
7853
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7854
*** to be unable to reliably create shared libraries on AIX.
7855
*** Therefore, libtool is disabling shared libraries support.  If you
7856
*** really care for shared libraries, you may want to modify your PATH
7857
*** so that a non-GNU linker is found, and then restart.
7858
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7859
_LT_EOF
1 by Joey Hess
* Joey Hess
7860
      fi
7861
      ;;
7862
7863
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7864
      case $host_cpu in
7865
      powerpc)
7866
            # see comment about AmigaOS4 .so support
7867
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7868
            archive_expsym_cmds=''
7869
        ;;
7870
      m68k)
7871
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7872
            hardcode_libdir_flag_spec='-L$libdir'
7873
            hardcode_minus_L=yes
7874
        ;;
7875
      esac
1 by Joey Hess
* Joey Hess
7876
      ;;
7877
7878
    beos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7879
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Joey Hess
* Joey Hess
7880
	allow_undefined_flag=unsupported
7881
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7882
	# support --undefined.  This deserves some investigation.  FIXME
7883
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7884
      else
7885
	ld_shlibs=no
7886
      fi
7887
      ;;
7888
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7889
    cygwin* | mingw* | pw32* | cegcc*)
7890
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
1 by Joey Hess
* Joey Hess
7891
      # as there is no search path for DLLs.
7892
      hardcode_libdir_flag_spec='-L$libdir'
7893
      allow_undefined_flag=unsupported
7894
      always_export_symbols=no
7895
      enable_shared_with_static_runtimes=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7896
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1 by Joey Hess
* Joey Hess
7897
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7898
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7899
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1 by Joey Hess
* Joey Hess
7900
	# If the export-symbols file already is a .def file (1st line
7901
	# is EXPORTS), use it as is; otherwise, prepend...
7902
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7903
	  cp $export_symbols $output_objdir/$soname.def;
7904
	else
7905
	  echo EXPORTS > $output_objdir/$soname.def;
7906
	  cat $export_symbols >> $output_objdir/$soname.def;
7907
	fi~
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7908
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1 by Joey Hess
* Joey Hess
7909
      else
7910
	ld_shlibs=no
7911
      fi
7912
      ;;
7913
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7914
    interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7915
      hardcode_direct=no
7916
      hardcode_shlibpath_var=no
7917
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7918
      export_dynamic_flag_spec='${wl}-E'
7919
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7920
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7921
      # default) and relocated if they conflict, which is a slow very memory
7922
      # consuming and fragmenting process.  To avoid this, we pick a random,
7923
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7924
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7925
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7926
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7927
      ;;
7928
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
7929
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7930
      tmp_diet=no
7931
      if test "$host_os" = linux-dietlibc; then
7932
	case $cc_basename in
7933
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7934
	esac
7935
      fi
7936
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7937
	 && test "$tmp_diet" = no
7938
      then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7939
	tmp_addflag=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7940
	tmp_sharedflag='-shared'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7941
	case $cc_basename,$host_cpu in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7942
        pgcc*)				# Portland Group C compiler
7943
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7944
	  tmp_addflag=' $pic_flag'
7945
	  ;;
7946
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7947
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7948
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7949
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7950
	  tmp_addflag=' -i_dynamic' ;;
7951
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7952
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7953
	ifc* | ifort*)			# Intel Fortran compiler
7954
	  tmp_addflag=' -nofor_main' ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7955
	lf95*)				# Lahey Fortran 8.1
7956
	  whole_archive_flag_spec=
7957
	  tmp_sharedflag='--shared' ;;
7958
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7959
	  tmp_sharedflag='-qmkshrobj'
7960
	  tmp_addflag= ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7961
	esac
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7962
	case `$CC -V 2>&1 | sed 5q` in
7963
	*Sun\ C*)			# Sun C 5.9
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7964
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7965
	  compiler_needs_object=yes
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
7966
	  tmp_sharedflag='-G' ;;
7967
	*Sun\ F*)			# Sun Fortran 8.3
7968
	  tmp_sharedflag='-G' ;;
7969
	esac
7970
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7971
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7972
        if test "x$supports_anon_versioning" = xyes; then
7973
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7974
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7975
	    echo "local: *; };" >> $output_objdir/$libname.ver~
7976
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7977
        fi
7978
7979
	case $cc_basename in
7980
	xlf*)
7981
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7982
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7983
	  hardcode_libdir_flag_spec=
7984
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7985
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7986
	  if test "x$supports_anon_versioning" = xyes; then
7987
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7988
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7989
	      echo "local: *; };" >> $output_objdir/$libname.ver~
7990
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7991
	  fi
7992
	  ;;
7993
	esac
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7994
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
7995
        ld_shlibs=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
7996
      fi
7997
      ;;
7998
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
7999
    netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8000
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
8001
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8002
	wlarc=
8003
      else
8004
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8005
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8006
      fi
8007
      ;;
8008
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8009
    solaris*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8010
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1 by Joey Hess
* Joey Hess
8011
	ld_shlibs=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8012
	cat <<_LT_EOF 1>&2
1 by Joey Hess
* Joey Hess
8013
8014
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8015
*** create shared libraries on Solaris systems.  Therefore, libtool
8016
*** is disabling shared libraries support.  We urge you to upgrade GNU
8017
*** binutils to release 2.9.1 or newer.  Another option is to modify
8018
*** your PATH or compiler configuration so that the native linker is
8019
*** used, and then restart.
8020
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8021
_LT_EOF
8022
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Joey Hess
* Joey Hess
8023
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8025
      else
8026
	ld_shlibs=no
8027
      fi
8028
      ;;
8029
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8030
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8031
      case `$LD -v 2>&1` in
8032
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8033
	ld_shlibs=no
8034
	cat <<_LT_EOF 1>&2
8035
8036
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8037
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8038
*** is disabling shared libraries support.  We urge you to upgrade GNU
8039
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8040
*** your PATH or compiler configuration so that the native linker is
8041
*** used, and then restart.
8042
8043
_LT_EOF
8044
	;;
8045
	*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8046
	  # For security reasons, it is highly recommended that you always
8047
	  # use absolute paths for naming shared libraries, and exclude the
8048
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8049
	  # requires that you compile everything twice, which is a pain.
8050
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8051
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8054
	  else
8055
	    ld_shlibs=no
8056
	  fi
8057
	;;
8058
      esac
8059
      ;;
8060
1 by Joey Hess
* Joey Hess
8061
    sunos4*)
8062
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8063
      wlarc=
8064
      hardcode_direct=yes
8065
      hardcode_shlibpath_var=no
8066
      ;;
8067
8068
    *)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8069
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1 by Joey Hess
* Joey Hess
8070
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8071
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8072
      else
8073
	ld_shlibs=no
8074
      fi
8075
      ;;
8076
    esac
8077
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8078
    if test "$ld_shlibs" = no; then
8079
      runpath_var=
8080
      hardcode_libdir_flag_spec=
8081
      export_dynamic_flag_spec=
8082
      whole_archive_flag_spec=
1 by Joey Hess
* Joey Hess
8083
    fi
8084
  else
8085
    # PORTME fill in a description of your system's linker (not GNU ld)
8086
    case $host_os in
8087
    aix3*)
8088
      allow_undefined_flag=unsupported
8089
      always_export_symbols=yes
8090
      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'
8091
      # Note: this linker hardcodes the directories in LIBPATH if there
8092
      # are no directories specified by -L.
8093
      hardcode_minus_L=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8094
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1 by Joey Hess
* Joey Hess
8095
	# Neither direct hardcoding nor static linking is supported with a
8096
	# broken collect2.
8097
	hardcode_direct=unsupported
8098
      fi
8099
      ;;
8100
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8101
    aix[4-9]*)
1 by Joey Hess
* Joey Hess
8102
      if test "$host_cpu" = ia64; then
8103
	# On IA64, the linker does run time linking by default, so we don't
8104
	# have to do anything special.
8105
	aix_use_runtimelinking=no
8106
	exp_sym_flag='-Bexport'
8107
	no_entry_flag=""
8108
      else
8109
	# If we're using GNU nm, then we don't want the "-C" option.
8110
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8111
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8112
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Joey Hess
* Joey Hess
8113
	else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8114
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Joey Hess
* Joey Hess
8115
	fi
8116
	aix_use_runtimelinking=no
8117
8118
	# Test if we are trying to use run time linking or normal
8119
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8120
	# need to do runtime linking.
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
8121
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1 by Joey Hess
* Joey Hess
8122
	  for ld_flag in $LDFLAGS; do
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8123
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8124
	    aix_use_runtimelinking=yes
8125
	    break
8126
	  fi
1 by Joey Hess
* Joey Hess
8127
	  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8128
	  ;;
1 by Joey Hess
* Joey Hess
8129
	esac
8130
8131
	exp_sym_flag='-bexport'
8132
	no_entry_flag='-bnoentry'
8133
      fi
8134
8135
      # When large executables or shared objects are built, AIX ld can
8136
      # have problems creating the table of contents.  If linking a library
8137
      # or program results in "error TOC overflow" add -mminimal-toc to
8138
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8139
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8140
8141
      archive_cmds=''
8142
      hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8143
      hardcode_direct_absolute=yes
1 by Joey Hess
* Joey Hess
8144
      hardcode_libdir_separator=':'
8145
      link_all_deplibs=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8146
      file_list_spec='${wl}-f,'
1 by Joey Hess
* Joey Hess
8147
8148
      if test "$GCC" = yes; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8149
	case $host_os in aix4.[012]|aix4.[012].*)
1 by Joey Hess
* Joey Hess
8150
	# We only want to do this on AIX 4.2 and lower, the check
8151
	# below for broken collect2 doesn't work under 4.3+
8152
	  collect2name=`${CC} -print-prog-name=collect2`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8153
	  if test -f "$collect2name" &&
8154
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1 by Joey Hess
* Joey Hess
8155
	  then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8156
	  # We have reworked collect2
8157
	  :
1 by Joey Hess
* Joey Hess
8158
	  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8159
	  # We have old collect2
8160
	  hardcode_direct=unsupported
8161
	  # It fails to find uninstalled libraries when the uninstalled
8162
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8163
	  # to unsupported forces relinking
8164
	  hardcode_minus_L=yes
8165
	  hardcode_libdir_flag_spec='-L$libdir'
8166
	  hardcode_libdir_separator=
1 by Joey Hess
* Joey Hess
8167
	  fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8168
	  ;;
1 by Joey Hess
* Joey Hess
8169
	esac
8170
	shared_flag='-shared'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8171
	if test "$aix_use_runtimelinking" = yes; then
8172
	  shared_flag="$shared_flag "'${wl}-G'
8173
	fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8174
	link_all_deplibs=no
1 by Joey Hess
* Joey Hess
8175
      else
8176
	# not using gcc
8177
	if test "$host_cpu" = ia64; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8178
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8179
	# chokes on -Wl,-G. The following line is correct:
1 by Joey Hess
* Joey Hess
8180
	  shared_flag='-G'
8181
	else
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8182
	  if test "$aix_use_runtimelinking" = yes; then
1 by Joey Hess
* Joey Hess
8183
	    shared_flag='${wl}-G'
8184
	  else
8185
	    shared_flag='${wl}-bM:SRE'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8186
	  fi
1 by Joey Hess
* Joey Hess
8187
	fi
8188
      fi
8189
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8190
      export_dynamic_flag_spec='${wl}-bexpall'
1 by Joey Hess
* Joey Hess
8191
      # It seems that -bexpall does not export symbols beginning with
8192
      # underscore (_), so it is better to generate a list of symbols to export.
8193
      always_export_symbols=yes
8194
      if test "$aix_use_runtimelinking" = yes; then
8195
	# Warning - without using the other runtime loading flags (-brtl),
8196
	# -berok will link without error, but may produce a broken library.
8197
	allow_undefined_flag='-berok'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8198
        # Determine the default libpath from the value encoded in an
8199
        # empty executable.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8200
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8201
/* end confdefs.h.  */
8202
8203
int
8204
main ()
8205
{
8206
8207
  ;
8208
  return 0;
8209
}
8210
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8211
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
8212
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8213
lt_aix_libpath_sed='
8214
    /Import File Strings/,/^$/ {
8215
	/^0/ {
8216
	    s/^0  *\(.*\)$/\1/
8217
	    p
8218
	}
8219
    }'
8220
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Joey Hess
* Joey Hess
8221
# Check for a 64-bit object if we didn't find anything.
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8222
if test -z "$aix_libpath"; then
8223
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8224
fi
1 by Joey Hess
* Joey Hess
8225
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8226
rm -f core conftest.err conftest.$ac_objext \
8227
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8229
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8230
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8231
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8232
      else
1 by Joey Hess
* Joey Hess
8233
	if test "$host_cpu" = ia64; then
8234
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8235
	  allow_undefined_flag="-z nodefs"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8236
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1 by Joey Hess
* Joey Hess
8237
	else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8238
	 # Determine the default libpath from the value encoded in an
8239
	 # empty executable.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8240
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8241
/* end confdefs.h.  */
8242
8243
int
8244
main ()
8245
{
8246
8247
  ;
8248
  return 0;
8249
}
8250
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8251
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
8252
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8253
lt_aix_libpath_sed='
8254
    /Import File Strings/,/^$/ {
8255
	/^0/ {
8256
	    s/^0  *\(.*\)$/\1/
8257
	    p
8258
	}
8259
    }'
8260
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Joey Hess
* Joey Hess
8261
# Check for a 64-bit object if we didn't find anything.
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8262
if test -z "$aix_libpath"; then
8263
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8264
fi
1 by Joey Hess
* Joey Hess
8265
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8266
rm -f core conftest.err conftest.$ac_objext \
8267
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8268
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8269
8270
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8271
	  # Warning - without using the other run time loading flags,
8272
	  # -berok will link without error, but may produce a broken library.
8273
	  no_undefined_flag=' ${wl}-bernotok'
8274
	  allow_undefined_flag=' ${wl}-berok'
8275
	  # Exported symbols can be pulled into shared objects from archives
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8276
	  whole_archive_flag_spec='$convenience'
1 by Joey Hess
* Joey Hess
8277
	  archive_cmds_need_lc=yes
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8278
	  # This is similar to how AIX traditionally builds its shared libraries.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8279
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1 by Joey Hess
* Joey Hess
8280
	fi
8281
      fi
8282
      ;;
8283
8284
    amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8285
      case $host_cpu in
8286
      powerpc)
8287
            # see comment about AmigaOS4 .so support
8288
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289
            archive_expsym_cmds=''
8290
        ;;
8291
      m68k)
8292
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8293
            hardcode_libdir_flag_spec='-L$libdir'
8294
            hardcode_minus_L=yes
8295
        ;;
8296
      esac
1 by Joey Hess
* Joey Hess
8297
      ;;
8298
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8299
    bsdi[45]*)
1 by Joey Hess
* Joey Hess
8300
      export_dynamic_flag_spec=-rdynamic
8301
      ;;
8302
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8303
    cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
8304
      # When not using gcc, we currently assume that we are using
8305
      # Microsoft Visual C++.
8306
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8307
      # no search path for DLLs.
8308
      hardcode_libdir_flag_spec=' '
8309
      allow_undefined_flag=unsupported
8310
      # Tell ltmain to make .lib files, not .a files.
8311
      libext=lib
8312
      # Tell ltmain to make .dll files, not .so files.
2 by Colin Watson
* Update GPL notices with the FSF's new address.
8313
      shrext_cmds=".dll"
1 by Joey Hess
* Joey Hess
8314
      # FIXME: Setting linknames here is a bad hack.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8315
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1 by Joey Hess
* Joey Hess
8316
      # The linker will automatically build a .lib file if we build a DLL.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8317
      old_archive_from_new_cmds='true'
1 by Joey Hess
* Joey Hess
8318
      # FIXME: Should let the user specify the lib program.
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8319
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1 by Joey Hess
* Joey Hess
8320
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8321
      enable_shared_with_static_runtimes=yes
8322
      ;;
8323
8324
    darwin* | rhapsody*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8325
8326
8327
  archive_cmds_need_lc=no
8328
  hardcode_direct=no
8329
  hardcode_automatic=yes
8330
  hardcode_shlibpath_var=unsupported
8331
  whole_archive_flag_spec=''
8332
  link_all_deplibs=yes
8333
  allow_undefined_flag="$_lt_dar_allow_undefined"
8334
  case $cc_basename in
8335
     ifort*) _lt_dar_can_shared=yes ;;
8336
     *) _lt_dar_can_shared=$GCC ;;
8337
  esac
8338
  if test "$_lt_dar_can_shared" = "yes"; then
8339
    output_verbose_link_cmd=echo
8340
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8341
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8342
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8343
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8344
8345
  else
8346
  ld_shlibs=no
8347
  fi
8348
1 by Joey Hess
* Joey Hess
8349
      ;;
8350
8351
    dgux*)
8352
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8353
      hardcode_libdir_flag_spec='-L$libdir'
8354
      hardcode_shlibpath_var=no
8355
      ;;
8356
8357
    freebsd1*)
8358
      ld_shlibs=no
8359
      ;;
8360
8361
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8362
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8363
    # does not break anything, and helps significantly (at the cost of a little
8364
    # extra space).
8365
    freebsd2.2*)
8366
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8367
      hardcode_libdir_flag_spec='-R$libdir'
8368
      hardcode_direct=yes
8369
      hardcode_shlibpath_var=no
8370
      ;;
8371
8372
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8373
    freebsd2*)
8374
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8375
      hardcode_direct=yes
8376
      hardcode_minus_L=yes
8377
      hardcode_shlibpath_var=no
8378
      ;;
8379
8380
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8381
    freebsd* | dragonfly*)
1 by Joey Hess
* Joey Hess
8382
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8383
      hardcode_libdir_flag_spec='-R$libdir'
8384
      hardcode_direct=yes
8385
      hardcode_shlibpath_var=no
8386
      ;;
8387
8388
    hpux9*)
8389
      if test "$GCC" = yes; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8390
	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'
1 by Joey Hess
* Joey Hess
8391
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8392
	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'
1 by Joey Hess
* Joey Hess
8393
      fi
8394
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8395
      hardcode_libdir_separator=:
8396
      hardcode_direct=yes
8397
8398
      # hardcode_minus_L: Not really in the search PATH,
8399
      # but as the default location of the library.
8400
      hardcode_minus_L=yes
8401
      export_dynamic_flag_spec='${wl}-E'
8402
      ;;
8403
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8404
    hpux10*)
8405
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8406
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8407
      else
8408
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8409
      fi
8410
      if test "$with_gnu_ld" = no; then
8411
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8412
	hardcode_libdir_flag_spec_ld='+b $libdir'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8413
	hardcode_libdir_separator=:
8414
	hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8415
	hardcode_direct_absolute=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8416
	export_dynamic_flag_spec='${wl}-E'
8417
	# hardcode_minus_L: Not really in the search PATH,
8418
	# but as the default location of the library.
8419
	hardcode_minus_L=yes
8420
      fi
8421
      ;;
8422
8423
    hpux11*)
1 by Joey Hess
* Joey Hess
8424
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8425
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8426
	hppa*64*)
1 by Joey Hess
* Joey Hess
8427
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8428
	  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8429
	ia64*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8430
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8431
	  ;;
1 by Joey Hess
* Joey Hess
8432
	*)
8433
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8434
	  ;;
8435
	esac
8436
      else
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8437
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8438
	hppa*64*)
8439
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440
	  ;;
8441
	ia64*)
8442
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1 by Joey Hess
* Joey Hess
8443
	  ;;
8444
	*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8445
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1 by Joey Hess
* Joey Hess
8446
	  ;;
8447
	esac
8448
      fi
8449
      if test "$with_gnu_ld" = no; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8450
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8451
	hardcode_libdir_separator=:
8452
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8453
	case $host_cpu in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8454
	hppa*64*|ia64*)
8455
	  hardcode_direct=no
8456
	  hardcode_shlibpath_var=no
1 by Joey Hess
* Joey Hess
8457
	  ;;
8458
	*)
8459
	  hardcode_direct=yes
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8460
	  hardcode_direct_absolute=yes
1 by Joey Hess
* Joey Hess
8461
	  export_dynamic_flag_spec='${wl}-E'
8462
8463
	  # hardcode_minus_L: Not really in the search PATH,
8464
	  # but as the default location of the library.
8465
	  hardcode_minus_L=yes
8466
	  ;;
8467
	esac
8468
      fi
8469
      ;;
8470
8471
    irix5* | irix6* | nonstopux*)
8472
      if test "$GCC" = yes; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8473
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8474
	# Try to use the -exported_symbol ld option, if it does not
8475
	# work, assume that -exports_file does not work either and
8476
	# implicitly export all symbols.
8477
        save_LDFLAGS="$LDFLAGS"
8478
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8479
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480
/* end confdefs.h.  */
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8481
int foo(void) {}
8482
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8483
if ac_fn_c_try_link "$LINENO"; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8484
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8485
8486
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8487
rm -f core conftest.err conftest.$ac_objext \
8488
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8489
        LDFLAGS="$save_LDFLAGS"
1 by Joey Hess
* Joey Hess
8490
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8491
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8492
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1 by Joey Hess
* Joey Hess
8493
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8494
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
8495
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8496
      hardcode_libdir_separator=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8497
      inherit_rpath=yes
1 by Joey Hess
* Joey Hess
8498
      link_all_deplibs=yes
8499
      ;;
8500
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8501
    netbsd* | netbsdelf*-gnu)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8502
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
8503
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8504
      else
8505
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8506
      fi
8507
      hardcode_libdir_flag_spec='-R$libdir'
8508
      hardcode_direct=yes
8509
      hardcode_shlibpath_var=no
8510
      ;;
8511
8512
    newsos6)
8513
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514
      hardcode_direct=yes
8515
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8516
      hardcode_libdir_separator=:
8517
      hardcode_shlibpath_var=no
8518
      ;;
8519
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8520
    *nto* | *qnx*)
8521
      ;;
8522
1 by Joey Hess
* Joey Hess
8523
    openbsd*)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8524
      if test -f /usr/libexec/ld.so; then
8525
	hardcode_direct=yes
8526
	hardcode_shlibpath_var=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8527
	hardcode_direct_absolute=yes
8528
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8529
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8530
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8531
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532
	  export_dynamic_flag_spec='${wl}-E'
8533
	else
8534
	  case $host_os in
8535
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8536
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8537
	     hardcode_libdir_flag_spec='-R$libdir'
8538
	     ;;
8539
	   *)
8540
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8541
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542
	     ;;
8543
	  esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8544
	fi
1 by Joey Hess
* Joey Hess
8545
      else
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8546
	ld_shlibs=no
1 by Joey Hess
* Joey Hess
8547
      fi
8548
      ;;
8549
8550
    os2*)
8551
      hardcode_libdir_flag_spec='-L$libdir'
8552
      hardcode_minus_L=yes
8553
      allow_undefined_flag=unsupported
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8554
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8555
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1 by Joey Hess
* Joey Hess
8556
      ;;
8557
8558
    osf3*)
8559
      if test "$GCC" = yes; then
8560
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8561
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Joey Hess
* Joey Hess
8562
      else
8563
	allow_undefined_flag=' -expect_unresolved \*'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8564
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
1 by Joey Hess
* Joey Hess
8565
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8566
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
8567
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8568
      hardcode_libdir_separator=:
8569
      ;;
8570
8571
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8572
      if test "$GCC" = yes; then
8573
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8574
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Joey Hess
* Joey Hess
8575
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576
      else
8577
	allow_undefined_flag=' -expect_unresolved \*'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8578
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8579
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8580
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1 by Joey Hess
* Joey Hess
8581
8582
	# Both c and cxx compiler support -rpath directly
8583
	hardcode_libdir_flag_spec='-rpath $libdir'
8584
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8585
      archive_cmds_need_lc='no'
1 by Joey Hess
* Joey Hess
8586
      hardcode_libdir_separator=:
8587
      ;;
8588
8589
    solaris*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8590
      no_undefined_flag=' -z defs'
1 by Joey Hess
* Joey Hess
8591
      if test "$GCC" = yes; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8592
	wlarc='${wl}'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8593
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8595
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1 by Joey Hess
* Joey Hess
8596
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8597
	case `$CC -V 2>&1` in
8598
	*"Compilers 5.0"*)
8599
	  wlarc=''
8600
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8602
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8603
	  ;;
8604
	*)
8605
	  wlarc='${wl}'
8606
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8607
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8608
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8609
	  ;;
8610
	esac
1 by Joey Hess
* Joey Hess
8611
      fi
8612
      hardcode_libdir_flag_spec='-R$libdir'
8613
      hardcode_shlibpath_var=no
8614
      case $host_os in
8615
      solaris2.[0-5] | solaris2.[0-5].*) ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
8616
      *)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8617
	# The compiler driver will combine and reorder linker options,
8618
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8619
	# but is careful enough not to reorder.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8620
	# Supported since Solaris 2.6 (maybe 2.5.1?)
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8621
	if test "$GCC" = yes; then
8622
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8623
	else
8624
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8625
	fi
8626
	;;
1 by Joey Hess
* Joey Hess
8627
      esac
8628
      link_all_deplibs=yes
8629
      ;;
8630
8631
    sunos4*)
8632
      if test "x$host_vendor" = xsequent; then
8633
	# Use $CC to link under sequent, because it throws in some extra .o
8634
	# files that make .init and .fini sections work.
8635
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8636
      else
8637
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8638
      fi
8639
      hardcode_libdir_flag_spec='-L$libdir'
8640
      hardcode_direct=yes
8641
      hardcode_minus_L=yes
8642
      hardcode_shlibpath_var=no
8643
      ;;
8644
8645
    sysv4)
8646
      case $host_vendor in
8647
	sni)
8648
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649
	  hardcode_direct=yes # is this really true???
8650
	;;
8651
	siemens)
8652
	  ## LD is ld it makes a PLAMLIB
8653
	  ## CC just makes a GrossModule.
8654
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8655
	  reload_cmds='$CC -r -o $output$reload_objs'
8656
	  hardcode_direct=no
8657
        ;;
8658
	motorola)
8659
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8661
	;;
8662
      esac
8663
      runpath_var='LD_RUN_PATH'
8664
      hardcode_shlibpath_var=no
8665
      ;;
8666
8667
    sysv4.3*)
8668
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669
      hardcode_shlibpath_var=no
8670
      export_dynamic_flag_spec='-Bexport'
8671
      ;;
8672
8673
    sysv4*MP*)
8674
      if test -d /usr/nec; then
8675
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676
	hardcode_shlibpath_var=no
8677
	runpath_var=LD_RUN_PATH
8678
	hardcode_runpath_var=yes
8679
	ld_shlibs=yes
8680
      fi
8681
      ;;
8682
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8683
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8684
      no_undefined_flag='${wl}-z,text'
8685
      archive_cmds_need_lc=no
8686
      hardcode_shlibpath_var=no
8687
      runpath_var='LD_RUN_PATH'
8688
8689
      if test "$GCC" = yes; then
8690
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8691
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692
      else
8693
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8694
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695
      fi
8696
      ;;
8697
8698
    sysv5* | sco3.2v5* | sco5v6*)
8699
      # Note: We can NOT use -z defs as we might desire, because we do not
8700
      # link with -lc, and that would cause any symbols used from libc to
8701
      # always be unresolved, which means just about no library would
8702
      # ever link correctly.  If we're not using GNU ld we use -z text
8703
      # though, which does catch some bad symbols but isn't as heavy-handed
8704
      # as -z defs.
8705
      no_undefined_flag='${wl}-z,text'
8706
      allow_undefined_flag='${wl}-z,nodefs'
8707
      archive_cmds_need_lc=no
8708
      hardcode_shlibpath_var=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8709
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8710
      hardcode_libdir_separator=':'
8711
      link_all_deplibs=yes
8712
      export_dynamic_flag_spec='${wl}-Bexport'
8713
      runpath_var='LD_RUN_PATH'
8714
8715
      if test "$GCC" = yes; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8716
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8717
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8718
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8719
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8721
      fi
1 by Joey Hess
* Joey Hess
8722
      ;;
8723
8724
    uts4*)
8725
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726
      hardcode_libdir_flag_spec='-L$libdir'
8727
      hardcode_shlibpath_var=no
8728
      ;;
8729
8730
    *)
8731
      ld_shlibs=no
8732
      ;;
8733
    esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8734
8735
    if test x$host_vendor = xsni; then
8736
      case $host in
8737
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8738
	export_dynamic_flag_spec='${wl}-Blargedynsym'
8739
	;;
8740
      esac
8741
    fi
1 by Joey Hess
* Joey Hess
8742
  fi
8743
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8745
$as_echo "$ld_shlibs" >&6; }
1 by Joey Hess
* Joey Hess
8746
test "$ld_shlibs" = no && can_build_shared=no
8747
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8748
with_gnu_ld=$with_gnu_ld
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
1 by Joey Hess
* Joey Hess
8764
#
8765
# Do we need to explicitly link libc?
8766
#
8767
case "x$archive_cmds_need_lc" in
8768
x|xyes)
8769
  # Assume -lc should be added
8770
  archive_cmds_need_lc=yes
8771
8772
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8773
    case $archive_cmds in
8774
    *'~'*)
8775
      # FIXME: we may have to deal with multi-command sequences.
8776
      ;;
8777
    '$CC '*)
8778
      # Test whether the compiler implicitly links with -lc since on some
8779
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8780
      # to ld, don't add -lc before -lgcc.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8781
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8782
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8783
      $RM conftest*
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8784
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Joey Hess
* Joey Hess
8785
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8786
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1 by Joey Hess
* Joey Hess
8787
  (eval $ac_compile) 2>&5
8788
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8789
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8790
  test $ac_status = 0; } 2>conftest.err; then
1 by Joey Hess
* Joey Hess
8791
        soname=conftest
8792
        lib=conftest
8793
        libobjs=conftest.$ac_objext
8794
        deplibs=
8795
        wl=$lt_prog_compiler_wl
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
8796
	pic_flag=$lt_prog_compiler_pic
1 by Joey Hess
* Joey Hess
8797
        compiler_flags=-v
8798
        linker_flags=-v
8799
        verstring=
8800
        output_objdir=.
8801
        libname=conftest
8802
        lt_save_allow_undefined_flag=$allow_undefined_flag
8803
        allow_undefined_flag=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8804
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8805
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1 by Joey Hess
* Joey Hess
8806
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8807
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8808
  test $ac_status = 0; }
1 by Joey Hess
* Joey Hess
8809
        then
8810
	  archive_cmds_need_lc=no
8811
        else
8812
	  archive_cmds_need_lc=yes
8813
        fi
8814
        allow_undefined_flag=$lt_save_allow_undefined_flag
8815
      else
8816
        cat conftest.err 1>&5
8817
      fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8818
      $RM conftest*
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8819
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8820
$as_echo "$archive_cmds_need_lc" >&6; }
1 by Joey Hess
* Joey Hess
8821
      ;;
8822
    esac
8823
  fi
8824
  ;;
8825
esac
8826
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
8983
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8984
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8985
1 by Joey Hess
* Joey Hess
8986
if test "$GCC" = yes; then
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
8987
  case $host_os in
8988
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8989
    *) lt_awk_arg="/^libraries:/" ;;
8990
  esac
8991
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8992
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1 by Joey Hess
* Joey Hess
8993
    # if the path contains ";" then we assume it to be the separator
8994
    # otherwise default to the standard path separator (i.e. ":") - it is
8995
    # assumed that no part of a normal pathname contains ";" but that should
8996
    # okay in the real world where ";" in dirpaths is itself problematic.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8997
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1 by Joey Hess
* Joey Hess
8998
  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
8999
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Joey Hess
* Joey Hess
9000
  fi
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9001
  # Ok, now we have the path, separated by spaces, we can step through it
9002
  # and add multilib dir if necessary.
9003
  lt_tmp_lt_search_path_spec=
9004
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9005
  for lt_sys_path in $lt_search_path_spec; do
9006
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9007
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9008
    else
9009
      test -d "$lt_sys_path" && \
9010
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9011
    fi
9012
  done
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9013
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9014
BEGIN {RS=" "; FS="/|\n";} {
9015
  lt_foo="";
9016
  lt_count=0;
9017
  for (lt_i = NF; lt_i > 0; lt_i--) {
9018
    if ($lt_i != "" && $lt_i != ".") {
9019
      if ($lt_i == "..") {
9020
        lt_count++;
9021
      } else {
9022
        if (lt_count == 0) {
9023
          lt_foo="/" $lt_i lt_foo;
9024
        } else {
9025
          lt_count--;
9026
        }
9027
      }
9028
    }
9029
  }
9030
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9031
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9032
}'`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9033
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1 by Joey Hess
* Joey Hess
9034
else
9035
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9036
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9037
library_names_spec=
9038
libname_spec='lib$name'
9039
soname_spec=
9040
shrext_cmds=".so"
9041
postinstall_cmds=
9042
postuninstall_cmds=
9043
finish_cmds=
9044
finish_eval=
9045
shlibpath_var=
9046
shlibpath_overrides_runpath=unknown
9047
version_type=none
9048
dynamic_linker="$host_os ld.so"
9049
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1 by Joey Hess
* Joey Hess
9050
need_lib_prefix=unknown
9051
hardcode_into_libs=no
9052
9053
# when you set need_version to no, make sure it does not cause -set_version
9054
# flags to be left without arguments
9055
need_version=unknown
9056
9057
case $host_os in
9058
aix3*)
9059
  version_type=linux
9060
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9061
  shlibpath_var=LIBPATH
9062
9063
  # AIX 3 has no versioning support, so we append a major version to the name.
9064
  soname_spec='${libname}${release}${shared_ext}$major'
9065
  ;;
9066
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
9067
aix[4-9]*)
1 by Joey Hess
* Joey Hess
9068
  version_type=linux
9069
  need_lib_prefix=no
9070
  need_version=no
9071
  hardcode_into_libs=yes
9072
  if test "$host_cpu" = ia64; then
9073
    # AIX 5 supports IA64
9074
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9075
    shlibpath_var=LD_LIBRARY_PATH
9076
  else
9077
    # With GCC up to 2.95.x, collect2 would create an import file
9078
    # for dependence libraries.  The import file would start with
9079
    # the line `#! .'.  This would cause the generated library to
9080
    # depend on `.', always an invalid library.  This was fixed in
9081
    # development snapshots of GCC prior to 3.0.
9082
    case $host_os in
9083
      aix4 | aix4.[01] | aix4.[01].*)
9084
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9085
	   echo ' yes '
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9086
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1 by Joey Hess
* Joey Hess
9087
	:
9088
      else
9089
	can_build_shared=no
9090
      fi
9091
      ;;
9092
    esac
9093
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9094
    # soname into executable. Probably we can add versioning support to
9095
    # collect2, so additional links can be useful in future.
9096
    if test "$aix_use_runtimelinking" = yes; then
9097
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9098
      # instead of lib<name>.a to let people know that these are not
9099
      # typical AIX shared libraries.
9100
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101
    else
9102
      # We preserve .a as extension for shared libraries through AIX4.2
9103
      # and later when we are not doing run time linking.
9104
      library_names_spec='${libname}${release}.a $libname.a'
9105
      soname_spec='${libname}${release}${shared_ext}$major'
9106
    fi
9107
    shlibpath_var=LIBPATH
9108
  fi
9109
  ;;
9110
9111
amigaos*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9112
  case $host_cpu in
9113
  powerpc)
9114
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9115
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9116
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117
    ;;
9118
  m68k)
9119
    library_names_spec='$libname.ixlibrary $libname.a'
9120
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9121
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9122
    ;;
9123
  esac
1 by Joey Hess
* Joey Hess
9124
  ;;
9125
9126
beos*)
9127
  library_names_spec='${libname}${shared_ext}'
9128
  dynamic_linker="$host_os ld.so"
9129
  shlibpath_var=LIBRARY_PATH
9130
  ;;
9131
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9132
bsdi[45]*)
1 by Joey Hess
* Joey Hess
9133
  version_type=linux
9134
  need_version=no
9135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136
  soname_spec='${libname}${release}${shared_ext}$major'
9137
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9138
  shlibpath_var=LD_LIBRARY_PATH
9139
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9140
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9141
  # the default ld.so.conf also contains /usr/contrib/lib and
9142
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9143
  # libtool to hard-code these into programs
9144
  ;;
9145
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9146
cygwin* | mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
9147
  version_type=windows
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9148
  shrext_cmds=".dll"
1 by Joey Hess
* Joey Hess
9149
  need_version=no
9150
  need_lib_prefix=no
9151
9152
  case $GCC,$host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9153
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1 by Joey Hess
* Joey Hess
9154
    library_names_spec='$libname.dll.a'
9155
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9156
    postinstall_cmds='base_file=`basename \${file}`~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9157
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1 by Joey Hess
* Joey Hess
9158
      dldir=$destdir/`dirname \$dlpath`~
9159
      test -d \$dldir || mkdir -p \$dldir~
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9160
      $install_prog $dir/$dlname \$dldir/$dlname~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9161
      chmod a+x \$dldir/$dlname~
9162
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9163
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9164
      fi'
1 by Joey Hess
* Joey Hess
9165
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9166
      dlpath=$dir/\$dldll~
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9167
       $RM \$dlpath'
1 by Joey Hess
* Joey Hess
9168
    shlibpath_overrides_runpath=yes
9169
9170
    case $host_os in
9171
    cygwin*)
9172
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9173
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9174
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9175
      ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9176
    mingw* | cegcc*)
1 by Joey Hess
* Joey Hess
9177
      # MinGW DLLs use traditional 'lib' prefix
9178
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9179
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9180
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1 by Joey Hess
* Joey Hess
9181
        # It is most probably a Windows format PATH printed by
9182
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9183
        # path with ; separators, and with drive letters. We can handle the
9184
        # drive letters (cygwin fileutils understands them), so leave them,
9185
        # especially as we might pass files found there to a mingw objdump,
9186
        # which wouldn't understand a cygwinified path. Ahh.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9187
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1 by Joey Hess
* Joey Hess
9188
      else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9189
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Joey Hess
* Joey Hess
9190
      fi
9191
      ;;
9192
    pw32*)
9193
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9194
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1 by Joey Hess
* Joey Hess
9195
      ;;
9196
    esac
9197
    ;;
9198
9199
  *)
9200
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9201
    ;;
9202
  esac
9203
  dynamic_linker='Win32 ld.exe'
9204
  # FIXME: first we should search . and the directory the executable is in
9205
  shlibpath_var=PATH
9206
  ;;
9207
9208
darwin* | rhapsody*)
9209
  dynamic_linker="$host_os dyld"
9210
  version_type=darwin
9211
  need_lib_prefix=no
9212
  need_version=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9213
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1 by Joey Hess
* Joey Hess
9214
  soname_spec='${libname}${release}${major}$shared_ext'
9215
  shlibpath_overrides_runpath=yes
9216
  shlibpath_var=DYLD_LIBRARY_PATH
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9217
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9218
9219
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1 by Joey Hess
* Joey Hess
9220
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9221
  ;;
9222
9223
dgux*)
9224
  version_type=linux
9225
  need_lib_prefix=no
9226
  need_version=no
9227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9228
  soname_spec='${libname}${release}${shared_ext}$major'
9229
  shlibpath_var=LD_LIBRARY_PATH
9230
  ;;
9231
9232
freebsd1*)
9233
  dynamic_linker=no
9234
  ;;
9235
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9236
freebsd* | dragonfly*)
9237
  # DragonFly does not have aout.  When/if they implement a new
9238
  # versioning mechanism, adjust this.
9239
  if test -x /usr/bin/objformat; then
9240
    objformat=`/usr/bin/objformat`
9241
  else
9242
    case $host_os in
9243
    freebsd[123]*) objformat=aout ;;
9244
    *) objformat=elf ;;
9245
    esac
9246
  fi
1 by Joey Hess
* Joey Hess
9247
  version_type=freebsd-$objformat
9248
  case $version_type in
9249
    freebsd-elf*)
9250
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9251
      need_version=no
9252
      need_lib_prefix=no
9253
      ;;
9254
    freebsd-*)
9255
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9256
      need_version=yes
9257
      ;;
9258
  esac
9259
  shlibpath_var=LD_LIBRARY_PATH
9260
  case $host_os in
9261
  freebsd2*)
9262
    shlibpath_overrides_runpath=yes
9263
    ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9264
  freebsd3.[01]* | freebsdelf3.[01]*)
1 by Joey Hess
* Joey Hess
9265
    shlibpath_overrides_runpath=yes
9266
    hardcode_into_libs=yes
9267
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9268
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9269
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1 by Joey Hess
* Joey Hess
9270
    shlibpath_overrides_runpath=no
9271
    hardcode_into_libs=yes
9272
    ;;
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9273
  *) # from 4.6 on, and DragonFly
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9274
    shlibpath_overrides_runpath=yes
9275
    hardcode_into_libs=yes
9276
    ;;
1 by Joey Hess
* Joey Hess
9277
  esac
9278
  ;;
9279
9280
gnu*)
9281
  version_type=linux
9282
  need_lib_prefix=no
9283
  need_version=no
9284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9285
  soname_spec='${libname}${release}${shared_ext}$major'
9286
  shlibpath_var=LD_LIBRARY_PATH
9287
  hardcode_into_libs=yes
9288
  ;;
9289
9290
hpux9* | hpux10* | hpux11*)
9291
  # Give a soname corresponding to the major version so that dld.sl refuses to
9292
  # link against other versions.
9293
  version_type=sunos
9294
  need_lib_prefix=no
9295
  need_version=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9296
  case $host_cpu in
1 by Joey Hess
* Joey Hess
9297
  ia64*)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9298
    shrext_cmds='.so'
1 by Joey Hess
* Joey Hess
9299
    hardcode_into_libs=yes
9300
    dynamic_linker="$host_os dld.so"
9301
    shlibpath_var=LD_LIBRARY_PATH
9302
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9303
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304
    soname_spec='${libname}${release}${shared_ext}$major'
9305
    if test "X$HPUX_IA64_MODE" = X32; then
9306
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9307
    else
9308
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9309
    fi
9310
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9311
    ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9312
  hppa*64*)
9313
    shrext_cmds='.sl'
9314
    hardcode_into_libs=yes
9315
    dynamic_linker="$host_os dld.sl"
9316
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9317
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9318
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319
    soname_spec='${libname}${release}${shared_ext}$major'
9320
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9321
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9322
    ;;
9323
  *)
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9324
    shrext_cmds='.sl'
1 by Joey Hess
* Joey Hess
9325
    dynamic_linker="$host_os dld.sl"
9326
    shlibpath_var=SHLIB_PATH
9327
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9328
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329
    soname_spec='${libname}${release}${shared_ext}$major'
9330
    ;;
9331
  esac
9332
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9333
  postinstall_cmds='chmod 555 $lib'
9334
  ;;
9335
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9336
interix[3-9]*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9337
  version_type=linux
9338
  need_lib_prefix=no
9339
  need_version=no
9340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341
  soname_spec='${libname}${release}${shared_ext}$major'
9342
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9343
  shlibpath_var=LD_LIBRARY_PATH
9344
  shlibpath_overrides_runpath=no
9345
  hardcode_into_libs=yes
9346
  ;;
9347
1 by Joey Hess
* Joey Hess
9348
irix5* | irix6* | nonstopux*)
9349
  case $host_os in
9350
    nonstopux*) version_type=nonstopux ;;
9351
    *)
9352
	if test "$lt_cv_prog_gnu_ld" = yes; then
9353
		version_type=linux
9354
	else
9355
		version_type=irix
9356
	fi ;;
9357
  esac
9358
  need_lib_prefix=no
9359
  need_version=no
9360
  soname_spec='${libname}${release}${shared_ext}$major'
9361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9362
  case $host_os in
9363
  irix5* | nonstopux*)
9364
    libsuff= shlibsuff=
9365
    ;;
9366
  *)
9367
    case $LD in # libtool.m4 will add one of these switches to LD
9368
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9369
      libsuff= shlibsuff= libmagic=32-bit;;
9370
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9371
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9372
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9373
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9374
    *) libsuff= shlibsuff= libmagic=never-match;;
9375
    esac
9376
    ;;
9377
  esac
9378
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9379
  shlibpath_overrides_runpath=no
9380
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9381
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9382
  hardcode_into_libs=yes
9383
  ;;
9384
9385
# No shared lib support for Linux oldld, aout, or coff.
9386
linux*oldld* | linux*aout* | linux*coff*)
9387
  dynamic_linker=no
9388
  ;;
9389
9390
# This must be Linux ELF.
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
9391
linux* | k*bsd*-gnu | kopensolaris*-gnu)
1 by Joey Hess
* Joey Hess
9392
  version_type=linux
9393
  need_lib_prefix=no
9394
  need_version=no
9395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396
  soname_spec='${libname}${release}${shared_ext}$major'
9397
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9398
  shlibpath_var=LD_LIBRARY_PATH
9399
  shlibpath_overrides_runpath=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9400
  # Some binutils ld are patched to set DT_RUNPATH
9401
  save_LDFLAGS=$LDFLAGS
9402
  save_libdir=$libdir
9403
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9404
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9405
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9406
/* end confdefs.h.  */
9407
9408
int
9409
main ()
9410
{
9411
9412
  ;
9413
  return 0;
9414
}
9415
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9416
if ac_fn_c_try_link "$LINENO"; then :
9417
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9418
  shlibpath_overrides_runpath=yes
9419
fi
9420
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9421
rm -f core conftest.err conftest.$ac_objext \
9422
    conftest$ac_exeext conftest.$ac_ext
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9423
  LDFLAGS=$save_LDFLAGS
9424
  libdir=$save_libdir
9425
1 by Joey Hess
* Joey Hess
9426
  # This implies no fast_install, which is unacceptable.
9427
  # Some rework will be needed to allow for fast_install
9428
  # before this can be enabled.
9429
  hardcode_into_libs=yes
9430
9431
  # Append ld.so.conf contents to the search path
9432
  if test -f /etc/ld.so.conf; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9433
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9434
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1 by Joey Hess
* Joey Hess
9435
  fi
9436
9437
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9438
  # powerpc, because MkLinux only supported shared libraries with the
9439
  # GNU dynamic linker.  Since this was broken with cross compilers,
9440
  # most powerpc-linux boxes support dynamic linking these days and
9441
  # people can always --disable-shared, the test was removed, and we
9442
  # assume the GNU/Linux dynamic linker is in use.
9443
  dynamic_linker='GNU/Linux ld.so'
9444
  ;;
9445
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9446
netbsdelf*-gnu)
9447
  version_type=linux
9448
  need_lib_prefix=no
9449
  need_version=no
9450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451
  soname_spec='${libname}${release}${shared_ext}$major'
9452
  shlibpath_var=LD_LIBRARY_PATH
9453
  shlibpath_overrides_runpath=no
9454
  hardcode_into_libs=yes
9455
  dynamic_linker='NetBSD ld.elf_so'
9456
  ;;
9457
1 by Joey Hess
* Joey Hess
9458
netbsd*)
9459
  version_type=sunos
9460
  need_lib_prefix=no
9461
  need_version=no
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9462
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Joey Hess
* Joey Hess
9463
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9464
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9465
    dynamic_linker='NetBSD (a.out) ld.so'
9466
  else
9467
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9468
    soname_spec='${libname}${release}${shared_ext}$major'
9469
    dynamic_linker='NetBSD ld.elf_so'
9470
  fi
9471
  shlibpath_var=LD_LIBRARY_PATH
9472
  shlibpath_overrides_runpath=yes
9473
  hardcode_into_libs=yes
9474
  ;;
9475
9476
newsos6)
9477
  version_type=linux
9478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479
  shlibpath_var=LD_LIBRARY_PATH
9480
  shlibpath_overrides_runpath=yes
9481
  ;;
9482
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9483
*nto* | *qnx*)
9484
  version_type=qnx
1 by Joey Hess
* Joey Hess
9485
  need_lib_prefix=no
9486
  need_version=no
9487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488
  soname_spec='${libname}${release}${shared_ext}$major'
9489
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9490
  shlibpath_overrides_runpath=no
9491
  hardcode_into_libs=yes
9492
  dynamic_linker='ldqnx.so'
1 by Joey Hess
* Joey Hess
9493
  ;;
9494
9495
openbsd*)
9496
  version_type=sunos
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9497
  sys_lib_dlsearch_path_spec="/usr/lib"
1 by Joey Hess
* Joey Hess
9498
  need_lib_prefix=no
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9499
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9500
  case $host_os in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9501
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9502
    *)				need_version=no  ;;
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9503
  esac
1 by Joey Hess
* Joey Hess
9504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9506
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9507
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Joey Hess
* Joey Hess
9508
    case $host_os in
9509
      openbsd2.[89] | openbsd2.[89].*)
9510
	shlibpath_overrides_runpath=no
9511
	;;
9512
      *)
9513
	shlibpath_overrides_runpath=yes
9514
	;;
9515
      esac
9516
  else
9517
    shlibpath_overrides_runpath=yes
9518
  fi
9519
  ;;
9520
9521
os2*)
9522
  libname_spec='$name'
2 by Colin Watson
* Update GPL notices with the FSF's new address.
9523
  shrext_cmds=".dll"
1 by Joey Hess
* Joey Hess
9524
  need_lib_prefix=no
9525
  library_names_spec='$libname${shared_ext} $libname.a'
9526
  dynamic_linker='OS/2 ld.exe'
9527
  shlibpath_var=LIBPATH
9528
  ;;
9529
9530
osf3* | osf4* | osf5*)
9531
  version_type=osf
9532
  need_lib_prefix=no
9533
  need_version=no
9534
  soname_spec='${libname}${release}${shared_ext}$major'
9535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536
  shlibpath_var=LD_LIBRARY_PATH
9537
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9538
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9539
  ;;
9540
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
9541
rdos*)
9542
  dynamic_linker=no
9543
  ;;
9544
1 by Joey Hess
* Joey Hess
9545
solaris*)
9546
  version_type=linux
9547
  need_lib_prefix=no
9548
  need_version=no
9549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550
  soname_spec='${libname}${release}${shared_ext}$major'
9551
  shlibpath_var=LD_LIBRARY_PATH
9552
  shlibpath_overrides_runpath=yes
9553
  hardcode_into_libs=yes
9554
  # ldd complains unless libraries are executable
9555
  postinstall_cmds='chmod +x $lib'
9556
  ;;
9557
9558
sunos4*)
9559
  version_type=sunos
9560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9561
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9562
  shlibpath_var=LD_LIBRARY_PATH
9563
  shlibpath_overrides_runpath=yes
9564
  if test "$with_gnu_ld" = yes; then
9565
    need_lib_prefix=no
9566
  fi
9567
  need_version=yes
9568
  ;;
9569
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9570
sysv4 | sysv4.3*)
1 by Joey Hess
* Joey Hess
9571
  version_type=linux
9572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573
  soname_spec='${libname}${release}${shared_ext}$major'
9574
  shlibpath_var=LD_LIBRARY_PATH
9575
  case $host_vendor in
9576
    sni)
9577
      shlibpath_overrides_runpath=no
9578
      need_lib_prefix=no
9579
      runpath_var=LD_RUN_PATH
9580
      ;;
9581
    siemens)
9582
      need_lib_prefix=no
9583
      ;;
9584
    motorola)
9585
      need_lib_prefix=no
9586
      need_version=no
9587
      shlibpath_overrides_runpath=no
9588
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9589
      ;;
9590
  esac
9591
  ;;
9592
9593
sysv4*MP*)
9594
  if test -d /usr/nec ;then
9595
    version_type=linux
9596
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9597
    soname_spec='$libname${shared_ext}.$major'
9598
    shlibpath_var=LD_LIBRARY_PATH
9599
  fi
9600
  ;;
9601
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9602
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9603
  version_type=freebsd-elf
9604
  need_lib_prefix=no
9605
  need_version=no
9606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9607
  soname_spec='${libname}${release}${shared_ext}$major'
9608
  shlibpath_var=LD_LIBRARY_PATH
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9609
  shlibpath_overrides_runpath=yes
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9610
  hardcode_into_libs=yes
9611
  if test "$with_gnu_ld" = yes; then
9612
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9613
  else
9614
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9615
    case $host_os in
9616
      sco3.2v5*)
9617
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9618
	;;
9619
    esac
9620
  fi
9621
  sys_lib_dlsearch_path_spec='/usr/lib'
9622
  ;;
9623
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9624
tpf*)
9625
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9626
  version_type=linux
9627
  need_lib_prefix=no
9628
  need_version=no
9629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630
  shlibpath_var=LD_LIBRARY_PATH
9631
  shlibpath_overrides_runpath=no
9632
  hardcode_into_libs=yes
9633
  ;;
9634
1 by Joey Hess
* Joey Hess
9635
uts4*)
9636
  version_type=linux
9637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638
  soname_spec='${libname}${release}${shared_ext}$major'
9639
  shlibpath_var=LD_LIBRARY_PATH
9640
  ;;
9641
9642
*)
9643
  dynamic_linker=no
9644
  ;;
9645
esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9647
$as_echo "$dynamic_linker" >&6; }
1 by Joey Hess
* Joey Hess
9648
test "$dynamic_linker" = no && can_build_shared=no
9649
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9650
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9651
if test "$GCC" = yes; then
9652
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9653
fi
9654
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9655
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9656
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9657
fi
9658
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9659
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9660
fi
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9748
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9749
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1 by Joey Hess
* Joey Hess
9750
hardcode_action=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9751
if test -n "$hardcode_libdir_flag_spec" ||
9752
   test -n "$runpath_var" ||
3 by Colin Watson, Sven Luther
[ Sven Luther ]
9753
   test "X$hardcode_automatic" = "Xyes" ; then
1 by Joey Hess
* Joey Hess
9754
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9755
  # We can hardcode non-existent directories.
1 by Joey Hess
* Joey Hess
9756
  if test "$hardcode_direct" != no &&
9757
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9758
     # have to relink, otherwise we might link with an installed library
9759
     # when we should be linking with a yet-to-be-installed one
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9760
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1 by Joey Hess
* Joey Hess
9761
     test "$hardcode_minus_L" != no; then
9762
    # Linking always hardcodes the temporary library directory.
9763
    hardcode_action=relink
9764
  else
9765
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9766
    hardcode_action=immediate
9767
  fi
9768
else
9769
  # We cannot hardcode anything, or else we can only hardcode existing
9770
  # directories.
9771
  hardcode_action=unsupported
9772
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9774
$as_echo "$hardcode_action" >&6; }
1 by Joey Hess
* Joey Hess
9775
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9776
if test "$hardcode_action" = relink ||
9777
   test "$inherit_rpath" = yes; then
1 by Joey Hess
* Joey Hess
9778
  # Fast installation is not supported
9779
  enable_fast_install=no
9780
elif test "$shlibpath_overrides_runpath" = yes ||
9781
     test "$enable_shared" = no; then
9782
  # Fast installation is not necessary
9783
  enable_fast_install=needless
9784
fi
9785
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9786
9787
9788
9789
9790
9791
  if test "x$enable_dlopen" != xyes; then
1 by Joey Hess
* Joey Hess
9792
  enable_dlopen=unknown
9793
  enable_dlopen_self=unknown
9794
  enable_dlopen_self_static=unknown
9795
else
9796
  lt_cv_dlopen=no
9797
  lt_cv_dlopen_libs=
9798
9799
  case $host_os in
9800
  beos*)
9801
    lt_cv_dlopen="load_add_on"
9802
    lt_cv_dlopen_libs=
9803
    lt_cv_dlopen_self=yes
9804
    ;;
9805
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9806
  mingw* | pw32* | cegcc*)
1 by Joey Hess
* Joey Hess
9807
    lt_cv_dlopen="LoadLibrary"
9808
    lt_cv_dlopen_libs=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9809
    ;;
1 by Joey Hess
* Joey Hess
9810
9811
  cygwin*)
9812
    lt_cv_dlopen="dlopen"
9813
    lt_cv_dlopen_libs=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9814
    ;;
1 by Joey Hess
* Joey Hess
9815
9816
  darwin*)
9817
  # if libdl is installed we need to link against it
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9818
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9819
$as_echo_n "checking for dlopen in -ldl... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9820
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9821
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
9822
else
9823
  ac_check_lib_save_LIBS=$LIBS
9824
LIBS="-ldl  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9826
/* end confdefs.h.  */
9827
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9828
/* Override any GCC internal prototype to avoid an error.
9829
   Use char because int might match the return type of a GCC
9830
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
9831
#ifdef __cplusplus
9832
extern "C"
9833
#endif
9834
char dlopen ();
9835
int
9836
main ()
9837
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9838
return dlopen ();
1 by Joey Hess
* Joey Hess
9839
  ;
9840
  return 0;
9841
}
9842
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9843
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
9844
  ac_cv_lib_dl_dlopen=yes
9845
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9846
  ac_cv_lib_dl_dlopen=no
1 by Joey Hess
* Joey Hess
9847
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9848
rm -f core conftest.err conftest.$ac_objext \
9849
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9850
LIBS=$ac_check_lib_save_LIBS
9851
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9853
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9854
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1 by Joey Hess
* Joey Hess
9855
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9856
else
9857
9858
    lt_cv_dlopen="dyld"
9859
    lt_cv_dlopen_libs=
9860
    lt_cv_dlopen_self=yes
9861
9862
fi
9863
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9864
    ;;
1 by Joey Hess
* Joey Hess
9865
9866
  *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9867
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9868
if test "x$ac_cv_func_shl_load" = x""yes; then :
1 by Joey Hess
* Joey Hess
9869
  lt_cv_dlopen="shl_load"
9870
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9871
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9872
$as_echo_n "checking for shl_load in -ldld... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9873
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9874
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
9875
else
9876
  ac_check_lib_save_LIBS=$LIBS
9877
LIBS="-ldld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9879
/* end confdefs.h.  */
9880
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9881
/* Override any GCC internal prototype to avoid an error.
9882
   Use char because int might match the return type of a GCC
9883
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
9884
#ifdef __cplusplus
9885
extern "C"
9886
#endif
9887
char shl_load ();
9888
int
9889
main ()
9890
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9891
return shl_load ();
1 by Joey Hess
* Joey Hess
9892
  ;
9893
  return 0;
9894
}
9895
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9896
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
9897
  ac_cv_lib_dld_shl_load=yes
9898
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9899
  ac_cv_lib_dld_shl_load=no
1 by Joey Hess
* Joey Hess
9900
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9901
rm -f core conftest.err conftest.$ac_objext \
9902
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9903
LIBS=$ac_check_lib_save_LIBS
9904
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9906
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9907
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
9908
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1 by Joey Hess
* Joey Hess
9909
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9910
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9911
if test "x$ac_cv_func_dlopen" = x""yes; then :
1 by Joey Hess
* Joey Hess
9912
  lt_cv_dlopen="dlopen"
9913
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9914
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9915
$as_echo_n "checking for dlopen in -ldl... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9916
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9917
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
9918
else
9919
  ac_check_lib_save_LIBS=$LIBS
9920
LIBS="-ldl  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9922
/* end confdefs.h.  */
9923
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9924
/* Override any GCC internal prototype to avoid an error.
9925
   Use char because int might match the return type of a GCC
9926
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
9927
#ifdef __cplusplus
9928
extern "C"
9929
#endif
9930
char dlopen ();
9931
int
9932
main ()
9933
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9934
return dlopen ();
1 by Joey Hess
* Joey Hess
9935
  ;
9936
  return 0;
9937
}
9938
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9939
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
9940
  ac_cv_lib_dl_dlopen=yes
9941
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9942
  ac_cv_lib_dl_dlopen=no
1 by Joey Hess
* Joey Hess
9943
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9944
rm -f core conftest.err conftest.$ac_objext \
9945
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9946
LIBS=$ac_check_lib_save_LIBS
9947
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9949
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9950
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1 by Joey Hess
* Joey Hess
9951
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9952
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9953
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9954
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9955
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9956
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
9957
else
9958
  ac_check_lib_save_LIBS=$LIBS
9959
LIBS="-lsvld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9961
/* end confdefs.h.  */
9962
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9963
/* Override any GCC internal prototype to avoid an error.
9964
   Use char because int might match the return type of a GCC
9965
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
9966
#ifdef __cplusplus
9967
extern "C"
9968
#endif
9969
char dlopen ();
9970
int
9971
main ()
9972
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
9973
return dlopen ();
1 by Joey Hess
* Joey Hess
9974
  ;
9975
  return 0;
9976
}
9977
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9978
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
9979
  ac_cv_lib_svld_dlopen=yes
9980
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9981
  ac_cv_lib_svld_dlopen=no
1 by Joey Hess
* Joey Hess
9982
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9983
rm -f core conftest.err conftest.$ac_objext \
9984
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
9985
LIBS=$ac_check_lib_save_LIBS
9986
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9988
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9989
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1 by Joey Hess
* Joey Hess
9990
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9991
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9993
$as_echo_n "checking for dld_link in -ldld... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9994
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
9995
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
9996
else
9997
  ac_check_lib_save_LIBS=$LIBS
9998
LIBS="-ldld  $LIBS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
9999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10000
/* end confdefs.h.  */
10001
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10002
/* Override any GCC internal prototype to avoid an error.
10003
   Use char because int might match the return type of a GCC
10004
   builtin and then its argument prototype would still apply.  */
1 by Joey Hess
* Joey Hess
10005
#ifdef __cplusplus
10006
extern "C"
10007
#endif
10008
char dld_link ();
10009
int
10010
main ()
10011
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10012
return dld_link ();
1 by Joey Hess
* Joey Hess
10013
  ;
10014
  return 0;
10015
}
10016
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10017
if ac_fn_c_try_link "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10018
  ac_cv_lib_dld_dld_link=yes
10019
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10020
  ac_cv_lib_dld_dld_link=no
1 by Joey Hess
* Joey Hess
10021
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10022
rm -f core conftest.err conftest.$ac_objext \
10023
    conftest$ac_exeext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10024
LIBS=$ac_check_lib_save_LIBS
10025
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10027
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10028
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
10029
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1 by Joey Hess
* Joey Hess
10030
fi
10031
10032
10033
fi
10034
10035
10036
fi
10037
10038
10039
fi
10040
10041
10042
fi
10043
10044
10045
fi
10046
10047
    ;;
10048
  esac
10049
10050
  if test "x$lt_cv_dlopen" != xno; then
10051
    enable_dlopen=yes
10052
  else
10053
    enable_dlopen=no
10054
  fi
10055
10056
  case $lt_cv_dlopen in
10057
  dlopen)
10058
    save_CPPFLAGS="$CPPFLAGS"
10059
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10060
10061
    save_LDFLAGS="$LDFLAGS"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10062
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1 by Joey Hess
* Joey Hess
10063
10064
    save_LIBS="$LIBS"
10065
    LIBS="$lt_cv_dlopen_libs $LIBS"
10066
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10067
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10068
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10069
if test "${lt_cv_dlopen_self+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10070
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10071
else
10072
  	  if test "$cross_compiling" = yes; then :
10073
  lt_cv_dlopen_self=cross
10074
else
10075
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10076
  lt_status=$lt_dlunknown
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10077
  cat > conftest.$ac_ext <<_LT_EOF
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10078
#line 10078 "configure"
1 by Joey Hess
* Joey Hess
10079
#include "confdefs.h"
10080
10081
#if HAVE_DLFCN_H
10082
#include <dlfcn.h>
10083
#endif
10084
10085
#include <stdio.h>
10086
10087
#ifdef RTLD_GLOBAL
10088
#  define LT_DLGLOBAL		RTLD_GLOBAL
10089
#else
10090
#  ifdef DL_GLOBAL
10091
#    define LT_DLGLOBAL		DL_GLOBAL
10092
#  else
10093
#    define LT_DLGLOBAL		0
10094
#  endif
10095
#endif
10096
10097
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10098
   find out it does not work in some platform. */
10099
#ifndef LT_DLLAZY_OR_NOW
10100
#  ifdef RTLD_LAZY
10101
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10102
#  else
10103
#    ifdef DL_LAZY
10104
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10105
#    else
10106
#      ifdef RTLD_NOW
10107
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10108
#      else
10109
#        ifdef DL_NOW
10110
#          define LT_DLLAZY_OR_NOW	DL_NOW
10111
#        else
10112
#          define LT_DLLAZY_OR_NOW	0
10113
#        endif
10114
#      endif
10115
#    endif
10116
#  endif
10117
#endif
10118
10119
void fnord() { int i=42;}
10120
int main ()
10121
{
10122
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10123
  int status = $lt_dlunknown;
10124
10125
  if (self)
10126
    {
10127
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10128
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10129
      /* dlclose (self); */
10130
    }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10131
  else
10132
    puts (dlerror ());
1 by Joey Hess
* Joey Hess
10133
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10134
  return status;
1 by Joey Hess
* Joey Hess
10135
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10136
_LT_EOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10137
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
10138
  (eval $ac_link) 2>&5
10139
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10140
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10141
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10142
    (./conftest; exit; ) >&5 2>/dev/null
1 by Joey Hess
* Joey Hess
10143
    lt_status=$?
10144
    case x$lt_status in
10145
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10146
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10147
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1 by Joey Hess
* Joey Hess
10148
    esac
10149
  else :
10150
    # compilation failed
10151
    lt_cv_dlopen_self=no
10152
  fi
10153
fi
10154
rm -fr conftest*
10155
10156
10157
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10159
$as_echo "$lt_cv_dlopen_self" >&6; }
1 by Joey Hess
* Joey Hess
10160
10161
    if test "x$lt_cv_dlopen_self" = xyes; then
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10162
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10163
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10164
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10165
if test "${lt_cv_dlopen_self_static+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10166
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10167
else
10168
  	  if test "$cross_compiling" = yes; then :
10169
  lt_cv_dlopen_self_static=cross
10170
else
10171
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10172
  lt_status=$lt_dlunknown
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10173
  cat > conftest.$ac_ext <<_LT_EOF
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10174
#line 10174 "configure"
1 by Joey Hess
* Joey Hess
10175
#include "confdefs.h"
10176
10177
#if HAVE_DLFCN_H
10178
#include <dlfcn.h>
10179
#endif
10180
10181
#include <stdio.h>
10182
10183
#ifdef RTLD_GLOBAL
10184
#  define LT_DLGLOBAL		RTLD_GLOBAL
10185
#else
10186
#  ifdef DL_GLOBAL
10187
#    define LT_DLGLOBAL		DL_GLOBAL
10188
#  else
10189
#    define LT_DLGLOBAL		0
10190
#  endif
10191
#endif
10192
10193
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10194
   find out it does not work in some platform. */
10195
#ifndef LT_DLLAZY_OR_NOW
10196
#  ifdef RTLD_LAZY
10197
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10198
#  else
10199
#    ifdef DL_LAZY
10200
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10201
#    else
10202
#      ifdef RTLD_NOW
10203
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10204
#      else
10205
#        ifdef DL_NOW
10206
#          define LT_DLLAZY_OR_NOW	DL_NOW
10207
#        else
10208
#          define LT_DLLAZY_OR_NOW	0
10209
#        endif
10210
#      endif
10211
#    endif
10212
#  endif
10213
#endif
10214
10215
void fnord() { int i=42;}
10216
int main ()
10217
{
10218
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10219
  int status = $lt_dlunknown;
10220
10221
  if (self)
10222
    {
10223
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10224
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10225
      /* dlclose (self); */
10226
    }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10227
  else
10228
    puts (dlerror ());
1 by Joey Hess
* Joey Hess
10229
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10230
  return status;
1 by Joey Hess
* Joey Hess
10231
}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10232
_LT_EOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10233
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1 by Joey Hess
* Joey Hess
10234
  (eval $ac_link) 2>&5
10235
  ac_status=$?
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10236
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
3 by Colin Watson, Sven Luther
[ Sven Luther ]
10238
    (./conftest; exit; ) >&5 2>/dev/null
1 by Joey Hess
* Joey Hess
10239
    lt_status=$?
10240
    case x$lt_status in
10241
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10242
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10243
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1 by Joey Hess
* Joey Hess
10244
    esac
10245
  else :
10246
    # compilation failed
10247
    lt_cv_dlopen_self_static=no
10248
  fi
10249
fi
10250
rm -fr conftest*
10251
10252
10253
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10255
$as_echo "$lt_cv_dlopen_self_static" >&6; }
1 by Joey Hess
* Joey Hess
10256
    fi
10257
10258
    CPPFLAGS="$save_CPPFLAGS"
10259
    LDFLAGS="$save_LDFLAGS"
10260
    LIBS="$save_LIBS"
10261
    ;;
10262
  esac
10263
10264
  case $lt_cv_dlopen_self in
10265
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10266
  *) enable_dlopen_self=unknown ;;
10267
  esac
10268
10269
  case $lt_cv_dlopen_self_static in
10270
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10271
  *) enable_dlopen_self_static=unknown ;;
10272
  esac
10273
fi
10274
10275
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
striplib=
10292
old_striplib=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10294
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10295
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10296
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10297
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10299
$as_echo "yes" >&6; }
10300
else
10301
# FIXME - insert some real tests, host_os isn't really good enough
10302
  case $host_os in
10303
  darwin*)
10304
    if test -n "$STRIP" ; then
10305
      striplib="$STRIP -x"
10306
      old_striplib="$STRIP -S"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10307
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10308
$as_echo "yes" >&6; }
10309
    else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10310
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10311
$as_echo "no" >&6; }
10312
    fi
10313
    ;;
10314
  *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10315
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10316
$as_echo "no" >&6; }
10317
    ;;
10318
  esac
10319
fi
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
  # Report which library types will actually be built
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10333
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10334
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10336
$as_echo "$can_build_shared" >&6; }
10337
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10339
$as_echo_n "checking whether to build shared libraries... " >&6; }
10340
  test "$can_build_shared" = "no" && enable_shared=no
10341
10342
  # On AIX, shared libraries and static libraries use the same namespace, and
10343
  # are all built from PIC.
10344
  case $host_os in
10345
  aix3*)
10346
    test "$enable_shared" = yes && enable_static=no
10347
    if test -n "$RANLIB"; then
10348
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10349
      postinstall_cmds='$RANLIB $lib'
10350
    fi
10351
    ;;
10352
10353
  aix[4-9]*)
10354
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10355
      test "$enable_shared" = yes && enable_static=no
10356
    fi
10357
    ;;
10358
  esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10360
$as_echo "$enable_shared" >&6; }
10361
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10362
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10363
$as_echo_n "checking whether to build static libraries... " >&6; }
10364
  # Make sure either enable_shared or enable_static is yes.
10365
  test "$enable_shared" = yes || enable_static=yes
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10367
$as_echo "$enable_static" >&6; }
10368
10369
10370
10371
10372
fi
10373
ac_ext=c
10374
ac_cpp='$CPP $CPPFLAGS'
10375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10378
10379
CC="$lt_save_CC"
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
        ac_config_commands="$ac_config_commands libtool"
10394
10395
10396
10397
10398
# Only expand once:
1 by Joey Hess
* Joey Hess
10399
10400
10401
10402
for ac_func in memrchr
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10403
do :
10404
  ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
10405
if test "x$ac_cv_func_memrchr" = x""yes; then :
1 by Joey Hess
* Joey Hess
10406
  cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10407
#define HAVE_MEMRCHR 1
1 by Joey Hess
* Joey Hess
10408
_ACEOF
10409
10410
fi
10411
done
10412
10413
10414
for ac_prog in doxygen
10415
do
10416
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10417
set dummy $ac_prog; ac_word=$2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10419
$as_echo_n "checking for $ac_word... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10420
if test "${ac_cv_prog_DOXYGEN+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10421
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10422
else
10423
  if test -n "$DOXYGEN"; then
10424
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
10425
else
10426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427
for as_dir in $PATH
10428
do
10429
  IFS=$as_save_IFS
10430
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10431
    for ac_exec_ext in '' $ac_executable_extensions; do
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
10432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1 by Joey Hess
* Joey Hess
10433
    ac_cv_prog_DOXYGEN="$ac_prog"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1 by Joey Hess
* Joey Hess
10435
    break 2
10436
  fi
10437
done
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10438
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10439
IFS=$as_save_IFS
1 by Joey Hess
* Joey Hess
10440
10441
fi
10442
fi
10443
DOXYGEN=$ac_cv_prog_DOXYGEN
10444
if test -n "$DOXYGEN"; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10446
$as_echo "$DOXYGEN" >&6; }
1 by Joey Hess
* Joey Hess
10447
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10449
$as_echo "no" >&6; }
1 by Joey Hess
* Joey Hess
10450
fi
10451
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10452
1 by Joey Hess
* Joey Hess
10453
  test -n "$DOXYGEN" && break
10454
done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
10455
test -n "$DOXYGEN" || DOXYGEN="true"
1 by Joey Hess
* Joey Hess
10456
10457
10458
LIBRARY_VERSION_MAJOR=4
10459
LIBRARY_VERSION_MINOR=0
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10460
LIBRARY_VERSION_REVISION=7
1 by Joey Hess
* Joey Hess
10461
LIBRARY_VERSION="$LIBRARY_VERSION_MAJOR.$LIBRARY_VERSION_MINOR.$LIBRARY_VERSION_REVISION"
10462
LIBRARY_VERSION_LIBTOOL="$LIBRARY_VERSION_MAJOR:$LIBRARY_VERSION_MINOR:$LIBRARY_VERSION_REVISION"
10463
10464
10465
10466
10467
10468
cat >>confdefs.h <<_ACEOF
10469
#define LIBDI_VERSION_MAJOR $LIBRARY_VERSION_MAJOR
10470
_ACEOF
10471
10472
10473
cat >>confdefs.h <<_ACEOF
10474
#define LIBDI_VERSION_MINOR $LIBRARY_VERSION_MINOR
10475
_ACEOF
10476
10477
10478
cat >>confdefs.h <<_ACEOF
10479
#define LIBDI_VERSION_REVISION $LIBRARY_VERSION_REVISION
10480
_ACEOF
10481
10482
10483
cat >>confdefs.h <<_ACEOF
10484
#define LIBDI_VERSION $LIBRARY_VERSION
10485
_ACEOF
10486
10487
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __attribute__((alias))" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10489
$as_echo_n "checking whether $CC supports __attribute__((alias))... " >&6; }
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10490
if test "${di_cv_support_cc_attribute_alias+set}" = set; then :
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10491
  $as_echo_n "(cached) " >&6
1 by Joey Hess
* Joey Hess
10492
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10493
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10494
/* end confdefs.h.  */
10495
10496
int
10497
main ()
10498
{
10499
10500
		void test_alias() __attribute__ ((alias("test")));
10501
10502
  ;
10503
  return 0;
10504
}
10505
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10506
if ac_fn_c_try_compile "$LINENO"; then :
1 by Joey Hess
* Joey Hess
10507
  di_cv_support_cc_attribute_alias=yes
10508
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10509
  di_cv_support_cc_attribute_alias=no
1 by Joey Hess
* Joey Hess
10510
fi
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
10511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Joey Hess
* Joey Hess
10512
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $di_cv_support_cc_attribute_alias" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10514
$as_echo "$di_cv_support_cc_attribute_alias" >&6; }
1 by Joey Hess
* Joey Hess
10515
if test $di_cv_support_cc_attribute_alias = yes; then
10516
	HAVE_ATTRIBUTE_ALIAS=1
10517
10518
cat >>confdefs.h <<_ACEOF
10519
#define HAVE_ATTRIBUTE_ALIAS 1
10520
_ACEOF
10521
10522
fi
10523
10524
10525
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10526
ac_fn_c_check_decl "$LINENO" "PATH_MAX" "ac_cv_have_decl_PATH_MAX" "
1 by Joey Hess
* Joey Hess
10527
#include <limits.h>
10528
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10529
"
10530
if test "x$ac_cv_have_decl_PATH_MAX" = x""yes; then :
10531
  ac_have_decl=1
1 by Joey Hess
* Joey Hess
10532
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10533
  ac_have_decl=0
10534
fi
1 by Joey Hess
* Joey Hess
10535
10536
cat >>confdefs.h <<_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10537
#define HAVE_DECL_PATH_MAX $ac_have_decl
1 by Joey Hess
* Joey Hess
10538
_ACEOF
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10539
if test $ac_have_decl = 1; then :
1 by Joey Hess
* Joey Hess
10540
10541
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10542
  $as_echo "#define PATH_MAX 4096" >>confdefs.h
1 by Joey Hess
* Joey Hess
10543
10544
fi
10545
10546
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10547
# Check whether --enable-extensive-debug was given.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10548
if test "${enable_extensive_debug+set}" = set; then :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10549
  enableval=$enable_extensive_debug;
10550
fi
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10551
10552
if test "$enable_extensive_debug" = yes; then
10553
10554
cat >>confdefs.h <<_ACEOF
10555
#define ENABLE_EXTENSIVE_DEBUG 1
10556
_ACEOF
10557
10558
fi
10559
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Debian CPU name" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10561
$as_echo_n "checking Debian CPU name... " >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10562
DEB_HOST_ARCH_CPU="`dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null`"
10563
# Take account of old dpkg-architecture output.
10564
if test -z "$DEB_HOST_ARCH_CPU"; then
10565
	DEB_HOST_ARCH_CPU="`dpkg-architecture -qDEB_HOST_GNU_CPU`"
10566
	if test "$DEB_HOST_ARCH_CPU" = x86_64; then
10567
		DEB_HOST_ARCH_CPU=amd64
10568
	fi
10569
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEB_HOST_ARCH_CPU" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10571
$as_echo "$DEB_HOST_ARCH_CPU" >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10572
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Debian system name" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10574
$as_echo_n "checking Debian system name... " >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10575
DEB_HOST_ARCH_OS="`dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null`"
10576
# Take account of old dpkg-architecture output.
10577
if test -z "$DEB_HOST_ARCH_OS"; then
10578
	DEB_HOST_ARCH_OS="`dpkg-architecture -qDEB_HOST_GNU_SYSTEM | sed 's/-gnu//g'`"
10579
	if test "$DEB_HOST_ARCH_OS" = gnu; then
10580
		DEB_HOST_ARCH_OS=hurd
10581
	fi
10582
fi
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEB_HOST_ARCH_OS" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10584
$as_echo "$DEB_HOST_ARCH_OS" >&6; }
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10585
10586
if test -f "$srcdir/src/system/subarch-$DEB_HOST_ARCH_CPU-$DEB_HOST_ARCH_OS.c"; then
10587
	SUBARCH_SYSTEM="subarch-$DEB_HOST_ARCH_CPU-$DEB_HOST_ARCH_OS.lo"
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
10588
elif (test "$DEB_HOST_ARCH_CPU" = i386 || test "$DEB_HOST_ARCH_CPU" = amd64) && test -f "$srcdir/src/system/subarch-x86-$DEB_HOST_ARCH_OS.c"; then
10589
	SUBARCH_SYSTEM="subarch-x86-$DEB_HOST_ARCH_OS.lo"
2 by Colin Watson
* Update GPL notices with the FSF's new address.
10590
else
10591
	SUBARCH_SYSTEM="subarch-generic.lo"
10592
fi
10593
10594
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10595
ac_config_headers="$ac_config_headers config.h include/debian-installer/config.h"
10596
10597
10598
ac_config_files="$ac_config_files Makefile doc/Doxyfile doc/Makefile include/Makefile include/debian-installer/Makefile include/debian-installer/system/Makefile src/Makefile src/system/Makefile libdebian-installer.pc libdebian-installer-extra.pc"
1 by Joey Hess
* Joey Hess
10599
10600
10601
cat >confcache <<\_ACEOF
10602
# This file is a shell script that caches the results of configure
10603
# tests run on this system so they can be shared between configure
10604
# scripts and configure runs, see configure's option --config-cache.
10605
# It is not useful on other systems.  If it contains results you don't
10606
# want to keep, you may remove or edit it.
10607
#
10608
# config.status only pays attention to the cache file if you give it
10609
# the --recheck option to rerun configure.
10610
#
10611
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10612
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10613
# following values.
10614
10615
_ACEOF
10616
10617
# The following way of writing the cache mishandles newlines in values,
10618
# but we know of no workaround that is simple, portable, and efficient.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10619
# So, we kill variables containing newlines.
1 by Joey Hess
* Joey Hess
10620
# Ultrix sh set writes to stderr and can't be redirected directly,
10621
# and sets the high bit in the cache file unless we assign to the vars.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10622
(
10623
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10624
    eval ac_val=\$$ac_var
10625
    case $ac_val in #(
10626
    *${as_nl}*)
10627
      case $ac_var in #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10628
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10629
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10630
      esac
10631
      case $ac_var in #(
10632
      _ | IFS | as_nl) ;; #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10633
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10634
      *) { eval $ac_var=; unset $ac_var;} ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10635
      esac ;;
10636
    esac
10637
  done
10638
1 by Joey Hess
* Joey Hess
10639
  (set) 2>&1 |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10640
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10641
    *${as_nl}ac_space=\ *)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10642
      # `set' does not quote correctly, so add quotes: double-quote
10643
      # substitution turns \\\\ into \\, and sed turns \\ into \.
1 by Joey Hess
* Joey Hess
10644
      sed -n \
10645
	"s/'/'\\\\''/g;
10646
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10647
      ;; #(
1 by Joey Hess
* Joey Hess
10648
    *)
10649
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10650
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1 by Joey Hess
* Joey Hess
10651
      ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10652
    esac |
10653
    sort
10654
) |
1 by Joey Hess
* Joey Hess
10655
  sed '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10656
     /^ac_cv_env_/b end
1 by Joey Hess
* Joey Hess
10657
     t clear
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10658
     :clear
1 by Joey Hess
* Joey Hess
10659
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10660
     t end
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10661
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10662
     :end' >>confcache
10663
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10664
  if test -w "$cache_file"; then
10665
    test "x$cache_file" != "x/dev/null" &&
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10666
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10667
$as_echo "$as_me: updating cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
10668
    cat confcache >$cache_file
10669
  else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10670
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10671
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1 by Joey Hess
* Joey Hess
10672
  fi
10673
fi
10674
rm -f confcache
10675
10676
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10677
# Let make expand exec_prefix.
10678
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10679
10680
DEFS=-DHAVE_CONFIG_H
10681
10682
ac_libobjs=
10683
ac_ltlibobjs=
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10684
U=
1 by Joey Hess
* Joey Hess
10685
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10686
  # 1. Remove the extension, and $U if already installed.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10687
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10688
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10689
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10690
  #    will be set to the directory where LIBOBJS objects are built.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10691
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10692
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1 by Joey Hess
* Joey Hess
10693
done
10694
LIBOBJS=$ac_libobjs
10695
10696
LTLIBOBJS=$ac_ltlibobjs
10697
10698
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
10699
 if test -n "$EXEEXT"; then
10700
  am__EXEEXT_TRUE=
10701
  am__EXEEXT_FALSE='#'
10702
else
10703
  am__EXEEXT_TRUE='#'
10704
  am__EXEEXT_FALSE=
10705
fi
10706
1 by Joey Hess
* Joey Hess
10707
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10708
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10709
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
10710
fi
10711
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10712
  as_fn_error $? "conditional \"AMDEP\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10713
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
10714
fi
10715
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10716
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10717
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1 by Joey Hess
* Joey Hess
10718
fi
10719
10720
: ${CONFIG_STATUS=./config.status}
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10721
ac_write_fail=0
1 by Joey Hess
* Joey Hess
10722
ac_clean_files_save=$ac_clean_files
10723
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10724
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10725
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10726
as_write_fail=0
10727
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1 by Joey Hess
* Joey Hess
10728
#! $SHELL
10729
# Generated by $as_me.
10730
# Run this file to recreate the current configuration.
10731
# Compiler output produced by configure, useful for debugging
10732
# configure, is in config.log if it exists.
10733
10734
debug=false
10735
ac_cs_recheck=false
10736
ac_cs_silent=false
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10737
1 by Joey Hess
* Joey Hess
10738
SHELL=\${CONFIG_SHELL-$SHELL}
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10739
export SHELL
10740
_ASEOF
10741
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10742
## -------------------- ##
10743
## M4sh Initialization. ##
10744
## -------------------- ##
1 by Joey Hess
* Joey Hess
10745
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
10746
# Be more Bourne compatible
10747
DUALCASE=1; export DUALCASE # for MKS sh
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10748
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1 by Joey Hess
* Joey Hess
10749
  emulate sh
10750
  NULLCMD=:
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10751
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1 by Joey Hess
* Joey Hess
10752
  # is contrary to our usage.  Disable this feature.
10753
  alias -g '${1+"$@"}'='"$@"'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10754
  setopt NO_GLOB_SUBST
10755
else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10756
  case `(set -o) 2>/dev/null` in #(
10757
  *posix*) :
10758
    set -o posix ;; #(
10759
  *) :
10760
     ;;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
10761
esac
1 by Joey Hess
* Joey Hess
10762
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
10763
10764
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10765
as_nl='
10766
'
10767
export as_nl
10768
# Printing a long string crashes Solaris 7 /usr/bin/printf.
10769
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10770
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10771
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10772
# Prefer a ksh shell builtin over an external printf program on Solaris,
10773
# but without wasting forks for bash or zsh.
10774
if test -z "$BASH_VERSION$ZSH_VERSION" \
10775
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10776
  as_echo='print -r --'
10777
  as_echo_n='print -rn --'
10778
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10779
  as_echo='printf %s\n'
10780
  as_echo_n='printf %s'
10781
else
10782
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10783
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10784
    as_echo_n='/usr/ucb/echo -n'
10785
  else
10786
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10787
    as_echo_n_body='eval
10788
      arg=$1;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10789
      case $arg in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10790
      *"$as_nl"*)
10791
	expr "X$arg" : "X\\(.*\\)$as_nl";
10792
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10793
      esac;
10794
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10795
    '
10796
    export as_echo_n_body
10797
    as_echo_n='sh -c $as_echo_n_body as_echo'
10798
  fi
10799
  export as_echo_body
10800
  as_echo='sh -c $as_echo_body as_echo'
10801
fi
10802
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10803
# The user is always right.
10804
if test "${PATH_SEPARATOR+set}" != set; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10805
  PATH_SEPARATOR=:
10806
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10807
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10808
      PATH_SEPARATOR=';'
10809
  }
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10810
fi
10811
1 by Joey Hess
* Joey Hess
10812
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10813
# IFS
10814
# We need space, tab and new line, in precisely that order.  Quoting is
10815
# there to prevent editors from complaining about space-tab.
10816
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10817
# splitting by setting IFS to empty value.)
10818
IFS=" ""	$as_nl"
10819
10820
# Find who we are.  Look in the path if we contain no directory separator.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10821
case $0 in #((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10822
  *[\\/]* ) as_myself=$0 ;;
10823
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824
for as_dir in $PATH
10825
do
10826
  IFS=$as_save_IFS
10827
  test -z "$as_dir" && as_dir=.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10828
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10829
  done
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10830
IFS=$as_save_IFS
10831
10832
     ;;
10833
esac
10834
# We did not find ourselves, most probably we were run as `sh COMMAND'
10835
# in which case we are not to be found in the path.
10836
if test "x$as_myself" = x; then
10837
  as_myself=$0
10838
fi
10839
if test ! -f "$as_myself"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10840
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10841
  exit 1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10842
fi
10843
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10844
# Unset variables that we do not need and which cause bugs (e.g. in
10845
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10846
# suppresses any "Segmentation fault" message there.  '((' could
10847
# trigger a bug in pdksh 5.2.14.
10848
for as_var in BASH_ENV ENV MAIL MAILPATH
10849
do eval test x\${$as_var+set} = xset \
10850
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10851
done
1 by Joey Hess
* Joey Hess
10852
PS1='$ '
10853
PS2='> '
10854
PS4='+ '
10855
10856
# NLS nuisances.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10857
LC_ALL=C
10858
export LC_ALL
10859
LANGUAGE=C
10860
export LANGUAGE
1 by Joey Hess
* Joey Hess
10861
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10862
# CDPATH.
10863
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10864
10865
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10866
# as_fn_error STATUS ERROR [LINENO LOG_FD]
10867
# ----------------------------------------
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10868
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10869
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10870
# script with STATUS, using 1 if that was 0.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10871
as_fn_error ()
10872
{
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10873
  as_status=$1; test $as_status -eq 0 && as_status=1
10874
  if test "$4"; then
10875
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10876
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10877
  fi
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
10878
  $as_echo "$as_me: error: $2" >&2
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10879
  as_fn_exit $as_status
10880
} # as_fn_error
10881
10882
10883
# as_fn_set_status STATUS
10884
# -----------------------
10885
# Set $? to STATUS, without forking.
10886
as_fn_set_status ()
10887
{
10888
  return $1
10889
} # as_fn_set_status
10890
10891
# as_fn_exit STATUS
10892
# -----------------
10893
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10894
as_fn_exit ()
10895
{
10896
  set +e
10897
  as_fn_set_status $1
10898
  exit $1
10899
} # as_fn_exit
10900
10901
# as_fn_unset VAR
10902
# ---------------
10903
# Portably unset VAR.
10904
as_fn_unset ()
10905
{
10906
  { eval $1=; unset $1;}
10907
}
10908
as_unset=as_fn_unset
10909
# as_fn_append VAR VALUE
10910
# ----------------------
10911
# Append the text in VALUE to the end of the definition contained in VAR. Take
10912
# advantage of any shell optimizations that allow amortized linear growth over
10913
# repeated appends, instead of the typical quadratic growth present in naive
10914
# implementations.
10915
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10916
  eval 'as_fn_append ()
10917
  {
10918
    eval $1+=\$2
10919
  }'
10920
else
10921
  as_fn_append ()
10922
  {
10923
    eval $1=\$$1\$2
10924
  }
10925
fi # as_fn_append
10926
10927
# as_fn_arith ARG...
10928
# ------------------
10929
# Perform arithmetic evaluation on the ARGs, and store the result in the
10930
# global $as_val. Take advantage of shells that can avoid forks. The arguments
10931
# must be portable across $(()) and expr.
10932
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10933
  eval 'as_fn_arith ()
10934
  {
10935
    as_val=$(( $* ))
10936
  }'
10937
else
10938
  as_fn_arith ()
10939
  {
10940
    as_val=`expr "$@" || test $? -eq 1`
10941
  }
10942
fi # as_fn_arith
10943
10944
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10945
if expr a : '\(a\)' >/dev/null 2>&1 &&
10946
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1 by Joey Hess
* Joey Hess
10947
  as_expr=expr
10948
else
10949
  as_expr=false
10950
fi
10951
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10952
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1 by Joey Hess
* Joey Hess
10953
  as_basename=basename
10954
else
10955
  as_basename=false
10956
fi
10957
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10958
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10959
  as_dirname=dirname
10960
else
10961
  as_dirname=false
10962
fi
1 by Joey Hess
* Joey Hess
10963
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10964
as_me=`$as_basename -- "$0" ||
1 by Joey Hess
* Joey Hess
10965
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10966
	 X"$0" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10967
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
10968
$as_echo X/"$0" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10969
    sed '/^.*\/\([^/][^/]*\)\/*$/{
10970
	    s//\1/
10971
	    q
10972
	  }
10973
	  /^X\/\(\/\/\)$/{
10974
	    s//\1/
10975
	    q
10976
	  }
10977
	  /^X\/\(\/\).*/{
10978
	    s//\1/
10979
	    q
10980
	  }
10981
	  s/.*/./; q'`
10982
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10983
# Avoid depending upon Character Ranges.
10984
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10985
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10986
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10987
as_cr_digits='0123456789'
10988
as_cr_alnum=$as_cr_Letters$as_cr_digits
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10989
10990
ECHO_C= ECHO_N= ECHO_T=
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10991
case `echo -n x` in #(((((
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10992
-n*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10993
  case `echo 'xy\c'` in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10994
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
10995
  xy)  ECHO_C='\c';;
10996
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10997
       ECHO_T='	';;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
10998
  esac;;
10999
*)
11000
  ECHO_N='-n';;
1 by Joey Hess
* Joey Hess
11001
esac
11002
11003
rm -f conf$$ conf$$.exe conf$$.file
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11004
if test -d conf$$.dir; then
11005
  rm -f conf$$.dir/conf$$.file
11006
else
11007
  rm -f conf$$.dir
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11008
  mkdir conf$$.dir 2>/dev/null
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11009
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11010
if (echo >conf$$.file) 2>/dev/null; then
11011
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11012
    as_ln_s='ln -s'
11013
    # ... but there are two gotchas:
11014
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11015
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11016
    # In both cases, we have to default to `cp -p'.
11017
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11018
      as_ln_s='cp -p'
11019
  elif ln conf$$.file conf$$ 2>/dev/null; then
11020
    as_ln_s=ln
11021
  else
1 by Joey Hess
* Joey Hess
11022
    as_ln_s='cp -p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11023
  fi
1 by Joey Hess
* Joey Hess
11024
else
11025
  as_ln_s='cp -p'
11026
fi
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11027
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11028
rmdir conf$$.dir 2>/dev/null
1 by Joey Hess
* Joey Hess
11029
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11030
11031
# as_fn_mkdir_p
11032
# -------------
11033
# Create "$as_dir" as a directory, including parents if necessary.
11034
as_fn_mkdir_p ()
11035
{
11036
11037
  case $as_dir in #(
11038
  -*) as_dir=./$as_dir;;
11039
  esac
11040
  test -d "$as_dir" || eval $as_mkdir_p || {
11041
    as_dirs=
11042
    while :; do
11043
      case $as_dir in #(
11044
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11045
      *) as_qdir=$as_dir;;
11046
      esac
11047
      as_dirs="'$as_qdir' $as_dirs"
11048
      as_dir=`$as_dirname -- "$as_dir" ||
11049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11050
	 X"$as_dir" : 'X\(//\)[^/]' \| \
11051
	 X"$as_dir" : 'X\(//\)$' \| \
11052
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11053
$as_echo X"$as_dir" |
11054
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11055
	    s//\1/
11056
	    q
11057
	  }
11058
	  /^X\(\/\/\)[^/].*/{
11059
	    s//\1/
11060
	    q
11061
	  }
11062
	  /^X\(\/\/\)$/{
11063
	    s//\1/
11064
	    q
11065
	  }
11066
	  /^X\(\/\).*/{
11067
	    s//\1/
11068
	    q
11069
	  }
11070
	  s/.*/./; q'`
11071
      test -d "$as_dir" && break
11072
    done
11073
    test -z "$as_dirs" || eval "mkdir $as_dirs"
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11074
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11075
11076
11077
} # as_fn_mkdir_p
1 by Joey Hess
* Joey Hess
11078
if mkdir -p . 2>/dev/null; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11079
  as_mkdir_p='mkdir -p "$as_dir"'
1 by Joey Hess
* Joey Hess
11080
else
11081
  test -d ./-p && rmdir ./-p
11082
  as_mkdir_p=false
11083
fi
11084
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11085
if test -x / >/dev/null 2>&1; then
11086
  as_test_x='test -x'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11087
else
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11088
  if ls -dL / >/dev/null 2>&1; then
11089
    as_ls_L_option=L
11090
  else
11091
    as_ls_L_option=
11092
  fi
11093
  as_test_x='
11094
    eval sh -c '\''
11095
      if test -d "$1"; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11096
	test -d "$1/.";
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11097
      else
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11098
	case $1 in #(
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11099
	-*)set "./$1";;
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11100
	esac;
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11101
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11102
	???[sx]*):;;*)false;;esac;fi
11103
    '\'' sh
11104
  '
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11105
fi
9 by Colin Watson
archdetect: Add the i386/mac and amd64/mac platforms, using reduced code
11106
as_executable_p=$as_test_x
1 by Joey Hess
* Joey Hess
11107
11108
# Sed expression to map a string onto a valid CPP name.
11109
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11110
11111
# Sed expression to map a string onto a valid variable name.
11112
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11113
11114
11115
exec 6>&1
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11116
## ----------------------------------- ##
11117
## Main body of $CONFIG_STATUS script. ##
11118
## ----------------------------------- ##
11119
_ASEOF
11120
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11121
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11122
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11123
# Save the log message, to keep $0 and so on meaningful, and to
1 by Joey Hess
* Joey Hess
11124
# report actual input values of CONFIG_FILES etc. instead of their
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11125
# values after options handling.
11126
ac_log="
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
11127
This file was extended by libdebian-installer $as_me 0.77, which was
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11128
generated by GNU Autoconf 2.67.  Invocation command line was
1 by Joey Hess
* Joey Hess
11129
11130
  CONFIG_FILES    = $CONFIG_FILES
11131
  CONFIG_HEADERS  = $CONFIG_HEADERS
11132
  CONFIG_LINKS    = $CONFIG_LINKS
11133
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11134
  $ $0 $@
11135
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11136
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11137
"
11138
1 by Joey Hess
* Joey Hess
11139
_ACEOF
11140
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11141
case $ac_config_files in *"
11142
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11143
esac
11144
11145
case $ac_config_headers in *"
11146
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11147
esac
11148
11149
11150
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11151
# Files that config.status was made for.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11152
config_files="$ac_config_files"
11153
config_headers="$ac_config_headers"
11154
config_commands="$ac_config_commands"
11155
11156
_ACEOF
1 by Joey Hess
* Joey Hess
11157
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11158
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11159
ac_cs_usage="\
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11160
\`$as_me' instantiates files and other configuration actions
11161
from templates according to the current configuration.  Unless the files
11162
and actions are specified as TAGs, all are instantiated by default.
1 by Joey Hess
* Joey Hess
11163
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11164
Usage: $0 [OPTION]... [TAG]...
1 by Joey Hess
* Joey Hess
11165
11166
  -h, --help       print this help, then exit
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
11167
  -V, --version    print version number and configuration settings, then exit
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11168
      --config     print configuration, then exit
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11169
  -q, --quiet, --silent
11170
                   do not print progress messages
1 by Joey Hess
* Joey Hess
11171
  -d, --debug      don't remove temporary files
11172
      --recheck    update $as_me by reconfiguring in the same conditions
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11173
      --file=FILE[:TEMPLATE]
11174
                   instantiate the configuration file FILE
11175
      --header=FILE[:TEMPLATE]
11176
                   instantiate the configuration header FILE
1 by Joey Hess
* Joey Hess
11177
11178
Configuration files:
11179
$config_files
11180
11181
Configuration headers:
11182
$config_headers
11183
11184
Configuration commands:
11185
$config_commands
11186
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11187
Report bugs to the package provider."
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11188
1 by Joey Hess
* Joey Hess
11189
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11190
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11191
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1 by Joey Hess
* Joey Hess
11192
ac_cs_version="\\
8.2.10 by Otavio Salvador, Milan Kupcevic
[ Milan Kupcevic ]
11193
libdebian-installer config.status 0.77
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11194
configured by $0, generated by GNU Autoconf 2.67,
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11195
  with options \\"\$ac_cs_config\\"
1 by Joey Hess
* Joey Hess
11196
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11197
Copyright (C) 2010 Free Software Foundation, Inc.
1 by Joey Hess
* Joey Hess
11198
This config.status script is free software; the Free Software Foundation
11199
gives unlimited permission to copy, distribute and modify it."
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11200
11201
ac_pwd='$ac_pwd'
11202
srcdir='$srcdir'
11203
INSTALL='$INSTALL'
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
11204
MKDIR_P='$MKDIR_P'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11205
AWK='$AWK'
11206
test -n "\$AWK" || AWK=awk
1 by Joey Hess
* Joey Hess
11207
_ACEOF
11208
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11209
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11210
# The default lists apply if the user does not specify any file.
1 by Joey Hess
* Joey Hess
11211
ac_need_defaults=:
11212
while test $# != 0
11213
do
11214
  case $1 in
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11215
  --*=?*)
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11216
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11217
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1 by Joey Hess
* Joey Hess
11218
    ac_shift=:
11219
    ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11220
  --*=)
11221
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11222
    ac_optarg=
11223
    ac_shift=:
11224
    ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11225
  *)
1 by Joey Hess
* Joey Hess
11226
    ac_option=$1
11227
    ac_optarg=$2
11228
    ac_shift=shift
11229
    ;;
11230
  esac
11231
11232
  case $ac_option in
11233
  # Handling of the options.
11234
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11235
    ac_cs_recheck=: ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11236
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11237
    $as_echo "$ac_cs_version"; exit ;;
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11238
  --config | --confi | --conf | --con | --co | --c )
11239
    $as_echo "$ac_cs_config"; exit ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11240
  --debug | --debu | --deb | --de | --d | -d )
1 by Joey Hess
* Joey Hess
11241
    debug=: ;;
11242
  --file | --fil | --fi | --f )
11243
    $ac_shift
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11244
    case $ac_optarg in
11245
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11246
    '') as_fn_error $? "missing file argument" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11247
    esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11248
    as_fn_append CONFIG_FILES " '$ac_optarg'"
1 by Joey Hess
* Joey Hess
11249
    ac_need_defaults=false;;
11250
  --header | --heade | --head | --hea )
11251
    $ac_shift
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11252
    case $ac_optarg in
11253
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11254
    esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11255
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1 by Joey Hess
* Joey Hess
11256
    ac_need_defaults=false;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11257
  --he | --h)
11258
    # Conflict between --help and --header
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11259
    as_fn_error $? "ambiguous option: \`$1'
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11260
Try \`$0 --help' for more information.";;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11261
  --help | --hel | -h )
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11262
    $as_echo "$ac_cs_usage"; exit ;;
1 by Joey Hess
* Joey Hess
11263
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11264
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11265
    ac_cs_silent=: ;;
11266
11267
  # This is an error.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11268
  -*) as_fn_error $? "unrecognized option: \`$1'
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11269
Try \`$0 --help' for more information." ;;
1 by Joey Hess
* Joey Hess
11270
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11271
  *) as_fn_append ac_config_targets " $1"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11272
     ac_need_defaults=false ;;
1 by Joey Hess
* Joey Hess
11273
11274
  esac
11275
  shift
11276
done
11277
11278
ac_configure_extra_args=
11279
11280
if $ac_cs_silent; then
11281
  exec 6>/dev/null
11282
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11283
fi
11284
11285
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11286
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11287
if \$ac_cs_recheck; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11288
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11289
  shift
11290
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11291
  CONFIG_SHELL='$SHELL'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11292
  export CONFIG_SHELL
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11293
  exec "\$@"
1 by Joey Hess
* Joey Hess
11294
fi
11295
11296
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11298
exec 5>>config.log
11299
{
11300
  echo
11301
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11302
## Running $as_me. ##
11303
_ASBOX
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11304
  $as_echo "$ac_log"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11305
} >&5
1 by Joey Hess
* Joey Hess
11306
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11307
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11308
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11309
#
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11310
# INIT-COMMANDS
1 by Joey Hess
* Joey Hess
11311
#
11312
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11313
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11314
11315
# The HP-UX ksh and POSIX shell print the target directory to stdout
11316
# if CDPATH is set.
11317
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11318
11319
sed_quote_subst='$sed_quote_subst'
11320
double_quote_subst='$double_quote_subst'
11321
delay_variable_subst='$delay_variable_subst'
11322
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11323
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11324
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11325
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11326
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11327
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11328
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11329
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11330
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11331
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11332
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11333
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11334
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11335
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11336
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11337
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11338
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11339
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11340
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11341
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11342
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11343
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11344
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11345
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11346
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11347
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11348
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11349
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11350
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11351
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11352
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11353
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11354
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11355
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11356
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11357
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11358
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11359
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11360
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11361
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11362
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11363
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11364
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11365
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11366
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11367
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11368
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11369
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11370
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11371
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11372
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11373
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11374
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11375
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11376
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11377
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11378
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11379
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11380
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11381
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11382
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11383
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11384
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11385
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11386
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11387
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11388
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11389
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11390
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11391
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11392
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11393
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11394
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11395
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11396
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11397
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11398
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11399
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11400
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11401
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11402
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11403
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11404
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11405
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11406
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11407
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11408
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11409
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11410
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11411
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11412
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11413
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11414
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11415
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11416
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11417
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11418
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11419
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11420
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11421
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11422
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11423
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11424
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11425
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11426
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11427
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11428
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11429
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11430
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11431
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11432
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11433
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11434
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11435
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11436
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11437
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11438
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11439
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11440
11441
LTCC='$LTCC'
11442
LTCFLAGS='$LTCFLAGS'
11443
compiler='$compiler_DEFAULT'
11444
11445
# Quote evaled strings.
11446
for var in SED \
11447
GREP \
11448
EGREP \
11449
FGREP \
11450
LD \
11451
NM \
11452
LN_S \
11453
lt_SP2NL \
11454
lt_NL2SP \
11455
reload_flag \
11456
OBJDUMP \
11457
deplibs_check_method \
11458
file_magic_cmd \
11459
AR \
11460
AR_FLAGS \
11461
STRIP \
11462
RANLIB \
11463
CC \
11464
CFLAGS \
11465
compiler \
11466
lt_cv_sys_global_symbol_pipe \
11467
lt_cv_sys_global_symbol_to_cdecl \
11468
lt_cv_sys_global_symbol_to_c_name_address \
11469
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11470
SHELL \
11471
ECHO \
11472
lt_prog_compiler_no_builtin_flag \
11473
lt_prog_compiler_wl \
11474
lt_prog_compiler_pic \
11475
lt_prog_compiler_static \
11476
lt_cv_prog_compiler_c_o \
11477
need_locks \
11478
DSYMUTIL \
11479
NMEDIT \
11480
LIPO \
11481
OTOOL \
11482
OTOOL64 \
11483
shrext_cmds \
11484
export_dynamic_flag_spec \
11485
whole_archive_flag_spec \
11486
compiler_needs_object \
11487
with_gnu_ld \
11488
allow_undefined_flag \
11489
no_undefined_flag \
11490
hardcode_libdir_flag_spec \
11491
hardcode_libdir_flag_spec_ld \
11492
hardcode_libdir_separator \
11493
fix_srcfile_path \
11494
exclude_expsyms \
11495
include_expsyms \
11496
file_list_spec \
11497
variables_saved_for_relink \
11498
libname_spec \
11499
library_names_spec \
11500
soname_spec \
11501
finish_eval \
11502
old_striplib \
11503
striplib; do
11504
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11505
    *[\\\\\\\`\\"\\\$]*)
11506
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11507
      ;;
11508
    *)
11509
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11510
      ;;
11511
    esac
11512
done
11513
11514
# Double-quote double-evaled strings.
11515
for var in reload_cmds \
11516
old_postinstall_cmds \
11517
old_postuninstall_cmds \
11518
old_archive_cmds \
11519
extract_expsyms_cmds \
11520
old_archive_from_new_cmds \
11521
old_archive_from_expsyms_cmds \
11522
archive_cmds \
11523
archive_expsym_cmds \
11524
module_cmds \
11525
module_expsym_cmds \
11526
export_symbols_cmds \
11527
prelink_cmds \
11528
postinstall_cmds \
11529
postuninstall_cmds \
11530
finish_cmds \
11531
sys_lib_search_path_spec \
11532
sys_lib_dlsearch_path_spec; do
11533
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11534
    *[\\\\\\\`\\"\\\$]*)
11535
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11536
      ;;
11537
    *)
11538
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11539
      ;;
11540
    esac
11541
done
11542
11543
# Fix-up fallback echo if it was mangled by the above quoting rules.
11544
case \$lt_ECHO in
11545
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11546
  ;;
11547
esac
11548
11549
ac_aux_dir='$ac_aux_dir'
11550
xsi_shell='$xsi_shell'
11551
lt_shell_append='$lt_shell_append'
11552
11553
# See if we are running on zsh, and set the options which allow our
11554
# commands through without removal of \ escapes INIT.
11555
if test -n "\${ZSH_VERSION+set}" ; then
11556
   setopt NO_GLOB_SUBST
11557
fi
11558
11559
11560
    PACKAGE='$PACKAGE'
11561
    VERSION='$VERSION'
11562
    TIMESTAMP='$TIMESTAMP'
11563
    RM='$RM'
11564
    ofile='$ofile'
11565
11566
11567
11568
1 by Joey Hess
* Joey Hess
11569
_ACEOF
11570
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11572
11573
# Handling of arguments.
1 by Joey Hess
* Joey Hess
11574
for ac_config_target in $ac_config_targets
11575
do
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11576
  case $ac_config_target in
11577
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11578
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11579
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11580
    "include/debian-installer/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/debian-installer/config.h" ;;
11581
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11582
    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
11583
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11584
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11585
    "include/debian-installer/Makefile") CONFIG_FILES="$CONFIG_FILES include/debian-installer/Makefile" ;;
11586
    "include/debian-installer/system/Makefile") CONFIG_FILES="$CONFIG_FILES include/debian-installer/system/Makefile" ;;
11587
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11588
    "src/system/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/Makefile" ;;
11589
    "libdebian-installer.pc") CONFIG_FILES="$CONFIG_FILES libdebian-installer.pc" ;;
11590
    "libdebian-installer-extra.pc") CONFIG_FILES="$CONFIG_FILES libdebian-installer-extra.pc" ;;
11591
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11592
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1 by Joey Hess
* Joey Hess
11593
  esac
11594
done
11595
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11596
1 by Joey Hess
* Joey Hess
11597
# If the user did not use the arguments to specify the items to instantiate,
11598
# then the envvar interface is used.  Set only those that are not.
11599
# We use the long form for the default assignment because of an extremely
11600
# bizarre bug on SunOS 4.1.3.
11601
if $ac_need_defaults; then
11602
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11603
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11604
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11605
fi
11606
11607
# Have a temporary directory for convenience.  Make it in the build tree
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11608
# simply because there is no reason against having it here, and in addition,
1 by Joey Hess
* Joey Hess
11609
# creating and moving files from /tmp can sometimes cause problems.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11610
# Hook for its removal unless debugging.
11611
# Note that there is a small window in which the directory will not be cleaned:
11612
# after its creation but before its name has been assigned to `$tmp'.
1 by Joey Hess
* Joey Hess
11613
$debug ||
11614
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11615
  tmp=
11616
  trap 'exit_status=$?
11617
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11618
' 0
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11619
  trap 'as_fn_exit 1' 1 2 13 15
1 by Joey Hess
* Joey Hess
11620
}
11621
# Create a (secure) tmp directory for tmp files.
11622
11623
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11624
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1 by Joey Hess
* Joey Hess
11625
  test -n "$tmp" && test -d "$tmp"
11626
}  ||
11627
{
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11628
  tmp=./conf$$-$RANDOM
11629
  (umask 077 && mkdir "$tmp")
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11630
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1 by Joey Hess
* Joey Hess
11631
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11632
# Set up the scripts for CONFIG_FILES section.
11633
# No need to generate them if there are no CONFIG_FILES.
11634
# This happens for instance with `./config.status config.h'.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11635
if test -n "$CONFIG_FILES"; then
11636
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11637
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11638
ac_cr=`echo X | tr X '\015'`
11639
# On cygwin, bash can eat \r inside `` if the user requested igncr.
11640
# But we know of no other shell where ac_cr would be empty at this
11641
# point, so we can use a bashism as a fallback.
11642
if test "x$ac_cr" = x; then
11643
  eval ac_cr=\$\'\\r\'
11644
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11645
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11646
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11647
  ac_cs_awk_cr='\\r'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11648
else
11649
  ac_cs_awk_cr=$ac_cr
11650
fi
11651
11652
echo 'BEGIN {' >"$tmp/subs1.awk" &&
11653
_ACEOF
11654
11655
11656
{
11657
  echo "cat >conf$$subs.awk <<_ACEOF" &&
11658
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11659
  echo "_ACEOF"
11660
} >conf$$subs.sh ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11661
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11662
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11663
ac_delim='%!_!# '
11664
for ac_last_try in false false false false false :; do
11665
  . ./conf$$subs.sh ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11666
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11667
11668
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11669
  if test $ac_delim_n = $ac_delim_num; then
11670
    break
11671
  elif $ac_last_try; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11672
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11673
  else
11674
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11675
  fi
11676
done
11677
rm -f conf$$subs.sh
11678
11679
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11680
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11681
_ACEOF
11682
sed -n '
11683
h
11684
s/^/S["/; s/!.*/"]=/
11685
p
11686
g
11687
s/^[^!]*!//
11688
:repl
11689
t repl
11690
s/'"$ac_delim"'$//
11691
t delim
11692
:nl
11693
h
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11694
s/\(.\{148\}\)..*/\1/
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11695
t more1
11696
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11697
p
11698
n
11699
b repl
11700
:more1
11701
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11702
p
11703
g
11704
s/.\{148\}//
11705
t nl
11706
:delim
11707
h
8.2.4 by Aurelien Jarno
Add support for SH4 RTS7751R2D and SH7785LCR boards.
11708
s/\(.\{148\}\)..*/\1/
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11709
t more2
11710
s/["\\]/\\&/g; s/^/"/; s/$/"/
11711
p
11712
b
11713
:more2
11714
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11715
p
11716
g
11717
s/.\{148\}//
11718
t delim
11719
' <conf$$subs.awk | sed '
11720
/^[^""]/{
11721
  N
11722
  s/\n//
11723
}
11724
' >>$CONFIG_STATUS || ac_write_fail=1
11725
rm -f conf$$subs.awk
11726
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11727
_ACAWK
11728
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11729
  for (key in S) S_is_set[key] = 1
11730
  FS = ""
11731
11732
}
11733
{
11734
  line = $ 0
11735
  nfields = split(line, field, "@")
11736
  substed = 0
11737
  len = length(field[1])
11738
  for (i = 2; i < nfields; i++) {
11739
    key = field[i]
11740
    keylen = length(key)
11741
    if (S_is_set[key]) {
11742
      value = S[key]
11743
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11744
      len += length(value) + length(field[++i])
11745
      substed = 1
11746
    } else
11747
      len += 1 + keylen
11748
  }
11749
11750
  print line
11751
}
11752
11753
_ACAWK
11754
_ACEOF
11755
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11756
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11757
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11758
else
11759
  cat
11760
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11761
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11762
_ACEOF
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11763
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11764
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11765
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11766
# trailing colons and then remove the whole line if VPATH becomes empty
11767
# (actually we leave an empty line to preserve line numbers).
11768
if test "x$srcdir" = x.; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11769
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11770
h
11771
s///
11772
s/^/:/
11773
s/[	 ]*$/:/
11774
s/:\$(srcdir):/:/g
11775
s/:\${srcdir}:/:/g
11776
s/:@srcdir@:/:/g
11777
s/^:*//
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11778
s/:*$//
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11779
x
11780
s/\(=[	 ]*\).*/\1/
11781
G
11782
s/\n//
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11783
s/^[^=]*=[	 ]*$//
11784
}'
11785
fi
11786
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11787
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
11788
fi # test -n "$CONFIG_FILES"
11789
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11790
# Set up the scripts for CONFIG_HEADERS section.
11791
# No need to generate them if there are no CONFIG_HEADERS.
11792
# This happens for instance with `./config.status Makefile'.
11793
if test -n "$CONFIG_HEADERS"; then
11794
cat >"$tmp/defines.awk" <<\_ACAWK ||
11795
BEGIN {
11796
_ACEOF
11797
11798
# Transform confdefs.h into an awk script `defines.awk', embedded as
11799
# here-document in config.status, that substitutes the proper values into
11800
# config.h.in to produce config.h.
11801
11802
# Create a delimiter string that does not exist in confdefs.h, to ease
11803
# handling of long lines.
11804
ac_delim='%!_!# '
11805
for ac_last_try in false false :; do
11806
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11807
  if test -z "$ac_t"; then
11808
    break
11809
  elif $ac_last_try; then
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11810
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11811
  else
11812
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11813
  fi
11814
done
11815
11816
# For the awk script, D is an array of macro values keyed by name,
11817
# likewise P contains macro parameters if any.  Preserve backslash
11818
# newline sequences.
11819
11820
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11821
sed -n '
11822
s/.\{148\}/&'"$ac_delim"'/g
11823
t rset
11824
:rset
11825
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11826
t def
11827
d
11828
:def
11829
s/\\$//
11830
t bsnl
11831
s/["\\]/\\&/g
11832
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11833
D["\1"]=" \3"/p
11834
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11835
d
11836
:bsnl
11837
s/["\\]/\\&/g
11838
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11839
D["\1"]=" \3\\\\\\n"\\/p
11840
t cont
11841
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11842
t cont
11843
d
11844
:cont
11845
n
11846
s/.\{148\}/&'"$ac_delim"'/g
11847
t clear
11848
:clear
11849
s/\\$//
11850
t bsnlc
11851
s/["\\]/\\&/g; s/^/"/; s/$/"/p
11852
d
11853
:bsnlc
11854
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11855
b cont
11856
' <confdefs.h | sed '
11857
s/'"$ac_delim"'/"\\\
11858
"/g' >>$CONFIG_STATUS || ac_write_fail=1
11859
11860
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11861
  for (key in D) D_is_set[key] = 1
11862
  FS = ""
11863
}
11864
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11865
  line = \$ 0
11866
  split(line, arg, " ")
11867
  if (arg[1] == "#") {
11868
    defundef = arg[2]
11869
    mac1 = arg[3]
11870
  } else {
11871
    defundef = substr(arg[1], 2)
11872
    mac1 = arg[2]
11873
  }
11874
  split(mac1, mac2, "(") #)
11875
  macro = mac2[1]
11876
  prefix = substr(line, 1, index(line, defundef) - 1)
11877
  if (D_is_set[macro]) {
11878
    # Preserve the white space surrounding the "#".
11879
    print prefix "define", macro P[macro] D[macro]
11880
    next
11881
  } else {
11882
    # Replace #undef with comments.  This is necessary, for example,
11883
    # in the case of _POSIX_SOURCE, which is predefined and required
11884
    # on some systems where configure will not decide to define it.
11885
    if (defundef == "undef") {
11886
      print "/*", prefix defundef, macro, "*/"
11887
      next
11888
    }
11889
  }
11890
}
11891
{ print }
11892
_ACAWK
11893
_ACEOF
11894
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11895
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11896
fi # test -n "$CONFIG_HEADERS"
11897
11898
11899
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11900
shift
11901
for ac_tag
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11902
do
11903
  case $ac_tag in
11904
  :[FHLC]) ac_mode=$ac_tag; continue;;
11905
  esac
11906
  case $ac_mode$ac_tag in
11907
  :[FHL]*:*);;
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11908
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11909
  :[FH]-) ac_tag=-:-;;
11910
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11911
  esac
11912
  ac_save_IFS=$IFS
11913
  IFS=:
11914
  set x $ac_tag
11915
  IFS=$ac_save_IFS
11916
  shift
11917
  ac_file=$1
11918
  shift
11919
11920
  case $ac_mode in
11921
  :L) ac_source=$1;;
11922
  :[FH])
11923
    ac_file_inputs=
11924
    for ac_f
11925
    do
11926
      case $ac_f in
11927
      -) ac_f="$tmp/stdin";;
11928
      *) # Look for the file first in the build tree, then in the source tree
11929
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11930
	 # because $ac_f cannot contain `:'.
11931
	 test -f "$ac_f" ||
11932
	   case $ac_f in
11933
	   [\\/$]*) false;;
11934
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11935
	   esac ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11936
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11937
      esac
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11938
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11939
      as_fn_append ac_file_inputs " '$ac_f'"
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11940
    done
11941
11942
    # Let's still pretend it is `configure' which instantiates (i.e., don't
11943
    # use $as_me), people would be surprised to read:
11944
    #    /* config.h.  Generated by config.status.  */
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11945
    configure_input='Generated from '`
11946
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11947
	`' by configure.'
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11948
    if test x"$ac_file" != x-; then
11949
      configure_input="$ac_file.  $configure_input"
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11950
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11951
$as_echo "$as_me: creating $ac_file" >&6;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11952
    fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11953
    # Neutralize special characters interpreted by sed in replacement strings.
11954
    case $configure_input in #(
11955
    *\&* | *\|* | *\\* )
11956
       ac_sed_conf_input=`$as_echo "$configure_input" |
11957
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11958
    *) ac_sed_conf_input=$configure_input;;
11959
    esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11960
11961
    case $ac_tag in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11962
    *:-:* | *:-) cat >"$tmp/stdin" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
11963
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11964
    esac
11965
    ;;
11966
  esac
11967
11968
  ac_dir=`$as_dirname -- "$ac_file" ||
1 by Joey Hess
* Joey Hess
11969
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11970
	 X"$ac_file" : 'X\(//\)[^/]' \| \
11971
	 X"$ac_file" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11972
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11973
$as_echo X"$ac_file" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11974
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11975
	    s//\1/
11976
	    q
11977
	  }
11978
	  /^X\(\/\/\)[^/].*/{
11979
	    s//\1/
11980
	    q
11981
	  }
11982
	  /^X\(\/\/\)$/{
11983
	    s//\1/
11984
	    q
11985
	  }
11986
	  /^X\(\/\).*/{
11987
	    s//\1/
11988
	    q
11989
	  }
11990
	  s/.*/./; q'`
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
11991
  as_dir="$ac_dir"; as_fn_mkdir_p
1 by Joey Hess
* Joey Hess
11992
  ac_builddir=.
11993
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11994
case "$ac_dir" in
11995
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11996
*)
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11997
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
11998
  # A ".." for each directory in $ac_dir_suffix.
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
11999
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12000
  case $ac_top_builddir_sub in
12001
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12002
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12003
  esac ;;
12004
esac
12005
ac_abs_top_builddir=$ac_pwd
12006
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12007
# for backward compatibility:
12008
ac_top_builddir=$ac_top_build_prefix
1 by Joey Hess
* Joey Hess
12009
12010
case $srcdir in
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12011
  .)  # We are building in place.
1 by Joey Hess
* Joey Hess
12012
    ac_srcdir=.
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12013
    ac_top_srcdir=$ac_top_builddir_sub
12014
    ac_abs_top_srcdir=$ac_pwd ;;
12015
  [\\/]* | ?:[\\/]* )  # Absolute name.
1 by Joey Hess
* Joey Hess
12016
    ac_srcdir=$srcdir$ac_dir_suffix;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12017
    ac_top_srcdir=$srcdir
12018
    ac_abs_top_srcdir=$srcdir ;;
12019
  *) # Relative name.
12020
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12021
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12022
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12023
esac
12024
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12025
12026
12027
  case $ac_mode in
12028
  :F)
12029
  #
12030
  # CONFIG_FILE
12031
  #
1 by Joey Hess
* Joey Hess
12032
12033
  case $INSTALL in
12034
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12035
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1 by Joey Hess
* Joey Hess
12036
  esac
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
12037
  ac_MKDIR_P=$MKDIR_P
12038
  case $MKDIR_P in
12039
  [\\/$]* | ?:[\\/]* ) ;;
12040
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12041
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12042
_ACEOF
12043
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12044
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12045
# If the template does not know about datarootdir, expand it.
12046
# FIXME: This hack should be removed a few years after 2.60.
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12047
ac_datarootdir_hack=; ac_datarootdir_seen=
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12048
ac_sed_dataroot='
12049
/datarootdir/ {
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12050
  p
12051
  q
12052
}
12053
/@datadir@/p
12054
/@docdir@/p
12055
/@infodir@/p
12056
/@localedir@/p
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12057
/@mandir@/p'
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12058
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12059
*datarootdir*) ac_datarootdir_seen=yes;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12060
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12061
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12062
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12063
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12064
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12065
  ac_datarootdir_hack='
12066
  s&@datadir@&$datadir&g
12067
  s&@docdir@&$docdir&g
12068
  s&@infodir@&$infodir&g
12069
  s&@localedir@&$localedir&g
12070
  s&@mandir@&$mandir&g
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12071
  s&\\\${datarootdir}&$datarootdir&g' ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12072
esac
12073
_ACEOF
12074
12075
# Neutralize VPATH when `$srcdir' = `.'.
12076
# Shell code in configure.ac might set extrasub.
12077
# FIXME: do we really want to maintain this feature?
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12078
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12079
ac_sed_extra="$ac_vpsub
1 by Joey Hess
* Joey Hess
12080
$extrasub
12081
_ACEOF
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12082
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1 by Joey Hess
* Joey Hess
12083
:t
12084
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12085
s|@configure_input@|$ac_sed_conf_input|;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12086
s&@top_builddir@&$ac_top_builddir_sub&;t t
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12087
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12088
s&@srcdir@&$ac_srcdir&;t t
12089
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12090
s&@top_srcdir@&$ac_top_srcdir&;t t
12091
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12092
s&@builddir@&$ac_builddir&;t t
12093
s&@abs_builddir@&$ac_abs_builddir&;t t
12094
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12095
s&@INSTALL@&$ac_INSTALL&;t t
14 by Colin Watson
* Remove compatibility with ancient dpkg-architecture; build-depend on
12096
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12097
$ac_datarootdir_hack
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12098
"
12099
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12100
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12101
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12102
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12103
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8 by Thiemo Seufer
Fix FTBFS on mips/mipsel.
12104
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12105
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12106
which seems to be undefined.  Please make sure it is defined" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12107
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12108
which seems to be undefined.  Please make sure it is defined" >&2;}
6 by Joey Hess
* Add mapping for I20 hard disks. Patch from Robert Millan
12109
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12110
  rm -f "$tmp/stdin"
12111
  case $ac_file in
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12112
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12113
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12114
  esac \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12115
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12116
 ;;
12117
  :H)
12118
  #
12119
  # CONFIG_HEADER
12120
  #
1 by Joey Hess
* Joey Hess
12121
  if test x"$ac_file" != x-; then
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12122
    {
12123
      $as_echo "/* $configure_input  */" \
12124
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12125
    } >"$tmp/config.h" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12126
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12127
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12128
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12129
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1 by Joey Hess
* Joey Hess
12130
    else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12131
      rm -f "$ac_file"
12132
      mv "$tmp/config.h" "$ac_file" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12133
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12134
    fi
12135
  else
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12136
    $as_echo "/* $configure_input  */" \
12137
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12138
      || as_fn_error $? "could not create -" "$LINENO" 5
1 by Joey Hess
* Joey Hess
12139
  fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12140
# Compute "$ac_file"'s index in $config_headers.
12141
_am_arg="$ac_file"
1 by Joey Hess
* Joey Hess
12142
_am_stamp_count=1
12143
for _am_header in $config_headers :; do
12144
  case $_am_header in
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
12145
    $_am_arg | $_am_arg:* )
1 by Joey Hess
* Joey Hess
12146
      break ;;
12147
    * )
12148
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12149
  esac
12150
done
16 by Martin Michlmayr, Frans Pop, Martin Michlmayr
[ Frans Pop ]
12151
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12152
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12154
	 X"$_am_arg" : 'X\(//\)$' \| \
12155
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12156
$as_echo X"$_am_arg" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12157
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12158
	    s//\1/
12159
	    q
12160
	  }
12161
	  /^X\(\/\/\)[^/].*/{
12162
	    s//\1/
12163
	    q
12164
	  }
12165
	  /^X\(\/\/\)$/{
12166
	    s//\1/
12167
	    q
12168
	  }
12169
	  /^X\(\/\).*/{
12170
	    s//\1/
12171
	    q
12172
	  }
12173
	  s/.*/./; q'`/stamp-h$_am_stamp_count
12174
 ;;
12175
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12176
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12177
$as_echo "$as_me: executing $ac_file commands" >&6;}
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12178
 ;;
12179
  esac
12180
12181
12182
  case $ac_file$ac_mode in
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
12183
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12184
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12185
  # are listed without --file.  Let's play safe and only enable the eval
12186
  # if we detect the quoting.
12187
  case $CONFIG_FILES in
12188
  *\'*) eval set x "$CONFIG_FILES" ;;
12189
  *)   set x $CONFIG_FILES ;;
12190
  esac
12191
  shift
12192
  for mf
12193
  do
12194
    # Strip MF so we end up with the name of the file.
12195
    mf=`echo "$mf" | sed -e 's/:.*$//'`
12196
    # Check whether this is an Automake generated Makefile or not.
12197
    # We used to match only the files named `Makefile.in', but
12198
    # some people rename them; so instead we look at the file content.
12199
    # Grep'ing the first line is not enough: some people post-process
12200
    # each Makefile.in and add a new line on top of each file to say so.
12201
    # Grep'ing the whole file is not good either: AIX grep has a line
12202
    # limit of 2048, but all sed's we know have understand at least 4000.
12203
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12204
      dirpart=`$as_dirname -- "$mf" ||
1 by Joey Hess
* Joey Hess
12205
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12206
	 X"$mf" : 'X\(//\)[^/]' \| \
12207
	 X"$mf" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12208
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12209
$as_echo X"$mf" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12210
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12211
	    s//\1/
12212
	    q
12213
	  }
12214
	  /^X\(\/\/\)[^/].*/{
12215
	    s//\1/
12216
	    q
12217
	  }
12218
	  /^X\(\/\/\)$/{
12219
	    s//\1/
12220
	    q
12221
	  }
12222
	  /^X\(\/\).*/{
12223
	    s//\1/
12224
	    q
12225
	  }
12226
	  s/.*/./; q'`
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
12227
    else
12228
      continue
12229
    fi
12230
    # Extract the definition of DEPDIR, am__include, and am__quote
12231
    # from the Makefile without running `make'.
12232
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12233
    test -z "$DEPDIR" && continue
12234
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12235
    test -z "am__include" && continue
12236
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12237
    # When using ansi2knr, U may be empty or an underscore; expand it
12238
    U=`sed -n 's/^U = //p' < "$mf"`
12239
    # Find all dependency output files, they are included files with
12240
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12241
    # simplest approach to changing $(DEPDIR) to its actual value in the
12242
    # expansion.
12243
    for file in `sed -n "
12244
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12245
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12246
      # Make sure the directory exists.
12247
      test -f "$dirpart/$file" && continue
12248
      fdir=`$as_dirname -- "$file" ||
1 by Joey Hess
* Joey Hess
12249
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12250
	 X"$file" : 'X\(//\)[^/]' \| \
12251
	 X"$file" : 'X\(//\)$' \| \
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12252
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12253
$as_echo X"$file" |
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12254
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12255
	    s//\1/
12256
	    q
12257
	  }
12258
	  /^X\(\/\/\)[^/].*/{
12259
	    s//\1/
12260
	    q
12261
	  }
12262
	  /^X\(\/\/\)$/{
12263
	    s//\1/
12264
	    q
12265
	  }
12266
	  /^X\(\/\).*/{
12267
	    s//\1/
12268
	    q
12269
	  }
12270
	  s/.*/./; q'`
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
12271
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12272
      # echo "creating $dirpart/$file"
12273
      echo '# dummy' > "$dirpart/$file"
12274
    done
1 by Joey Hess
* Joey Hess
12275
  done
8.1.6 by Aurelien Jarno, Colin Watson, Aurelien Jarno
[ Colin Watson ]
12276
}
1 by Joey Hess
* Joey Hess
12277
 ;;
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12278
    "libtool":C)
12279
12280
    # See if we are running on zsh, and set the options which allow our
12281
    # commands through without removal of \ escapes.
12282
    if test -n "${ZSH_VERSION+set}" ; then
12283
      setopt NO_GLOB_SUBST
12284
    fi
12285
12286
    cfgfile="${ofile}T"
12287
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12288
    $RM "$cfgfile"
12289
12290
    cat <<_LT_EOF >> "$cfgfile"
12291
#! $SHELL
12292
12293
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12294
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12295
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12296
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12297
#
12298
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12299
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12300
#   Written by Gordon Matzigkeit, 1996
12301
#
12302
#   This file is part of GNU Libtool.
12303
#
12304
# GNU Libtool is free software; you can redistribute it and/or
12305
# modify it under the terms of the GNU General Public License as
12306
# published by the Free Software Foundation; either version 2 of
12307
# the License, or (at your option) any later version.
12308
#
12309
# As a special exception to the GNU General Public License,
12310
# if you distribute this file as part of a program or library that
12311
# is built using GNU Libtool, you may include this file under the
12312
# same distribution terms that you use for the rest of that program.
12313
#
12314
# GNU Libtool is distributed in the hope that it will be useful,
12315
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12316
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12317
# GNU General Public License for more details.
12318
#
12319
# You should have received a copy of the GNU General Public License
12320
# along with GNU Libtool; see the file COPYING.  If not, a copy
12321
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12322
# obtained by writing to the Free Software Foundation, Inc.,
12323
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12324
12325
12326
# The names of the tagged configurations supported by this script.
12327
available_tags=""
12328
12329
# ### BEGIN LIBTOOL CONFIG
12330
12331
# Which release of libtool.m4 was used?
12332
macro_version=$macro_version
12333
macro_revision=$macro_revision
12334
12335
# Whether or not to build shared libraries.
12336
build_libtool_libs=$enable_shared
12337
12338
# Whether or not to build static libraries.
12339
build_old_libs=$enable_static
12340
12341
# What type of objects to build.
12342
pic_mode=$pic_mode
12343
12344
# Whether or not to optimize for fast installation.
12345
fast_install=$enable_fast_install
12346
12347
# The host system.
12348
host_alias=$host_alias
12349
host=$host
12350
host_os=$host_os
12351
12352
# The build system.
12353
build_alias=$build_alias
12354
build=$build
12355
build_os=$build_os
12356
12357
# A sed program that does not truncate output.
12358
SED=$lt_SED
12359
12360
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12361
Xsed="\$SED -e 1s/^X//"
12362
12363
# A grep program that handles long lines.
12364
GREP=$lt_GREP
12365
12366
# An ERE matcher.
12367
EGREP=$lt_EGREP
12368
12369
# A literal string matcher.
12370
FGREP=$lt_FGREP
12371
12372
# A BSD- or MS-compatible name lister.
12373
NM=$lt_NM
12374
12375
# Whether we need soft or hard links.
12376
LN_S=$lt_LN_S
12377
12378
# What is the maximum length of a command?
12379
max_cmd_len=$max_cmd_len
12380
12381
# Object file suffix (normally "o").
12382
objext=$ac_objext
12383
12384
# Executable file suffix (normally "").
12385
exeext=$exeext
12386
12387
# whether the shell understands "unset".
12388
lt_unset=$lt_unset
12389
12390
# turn spaces into newlines.
12391
SP2NL=$lt_lt_SP2NL
12392
12393
# turn newlines into spaces.
12394
NL2SP=$lt_lt_NL2SP
12395
12396
# How to create reloadable object files.
12397
reload_flag=$lt_reload_flag
12398
reload_cmds=$lt_reload_cmds
12399
12400
# An object symbol dumper.
12401
OBJDUMP=$lt_OBJDUMP
12402
12403
# Method to check whether dependent libraries are shared objects.
12404
deplibs_check_method=$lt_deplibs_check_method
12405
12406
# Command to use when deplibs_check_method == "file_magic".
12407
file_magic_cmd=$lt_file_magic_cmd
12408
12409
# The archiver.
12410
AR=$lt_AR
12411
AR_FLAGS=$lt_AR_FLAGS
12412
12413
# A symbol stripping program.
12414
STRIP=$lt_STRIP
12415
12416
# Commands used to install an old-style archive.
12417
RANLIB=$lt_RANLIB
12418
old_postinstall_cmds=$lt_old_postinstall_cmds
12419
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12420
12421
# A C compiler.
12422
LTCC=$lt_CC
12423
12424
# LTCC compiler flags.
12425
LTCFLAGS=$lt_CFLAGS
12426
12427
# Take the output of nm and produce a listing of raw symbols and C names.
12428
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12429
12430
# Transform the output of nm in a proper C declaration.
12431
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12432
12433
# Transform the output of nm in a C name address pair.
12434
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12435
12436
# Transform the output of nm in a C name address pair when lib prefix is needed.
12437
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12438
12439
# The name of the directory that contains temporary libtool files.
12440
objdir=$objdir
12441
12442
# Shell to use when invoking shell scripts.
12443
SHELL=$lt_SHELL
12444
12445
# An echo program that does not interpret backslashes.
12446
ECHO=$lt_ECHO
12447
12448
# Used to examine libraries when file_magic_cmd begins with "file".
12449
MAGIC_CMD=$MAGIC_CMD
12450
12451
# Must we lock files when doing compilation?
12452
need_locks=$lt_need_locks
12453
12454
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12455
DSYMUTIL=$lt_DSYMUTIL
12456
12457
# Tool to change global to local symbols on Mac OS X.
12458
NMEDIT=$lt_NMEDIT
12459
12460
# Tool to manipulate fat objects and archives on Mac OS X.
12461
LIPO=$lt_LIPO
12462
12463
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12464
OTOOL=$lt_OTOOL
12465
12466
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12467
OTOOL64=$lt_OTOOL64
12468
12469
# Old archive suffix (normally "a").
12470
libext=$libext
12471
12472
# Shared library suffix (normally ".so").
12473
shrext_cmds=$lt_shrext_cmds
12474
12475
# The commands to extract the exported symbol list from a shared archive.
12476
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12477
12478
# Variables whose values should be saved in libtool wrapper scripts and
12479
# restored at link time.
12480
variables_saved_for_relink=$lt_variables_saved_for_relink
12481
12482
# Do we need the "lib" prefix for modules?
12483
need_lib_prefix=$need_lib_prefix
12484
12485
# Do we need a version for libraries?
12486
need_version=$need_version
12487
12488
# Library versioning type.
12489
version_type=$version_type
12490
12491
# Shared library runtime path variable.
12492
runpath_var=$runpath_var
12493
12494
# Shared library path variable.
12495
shlibpath_var=$shlibpath_var
12496
12497
# Is shlibpath searched before the hard-coded library search path?
12498
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12499
12500
# Format of library name prefix.
12501
libname_spec=$lt_libname_spec
12502
12503
# List of archive names.  First name is the real one, the rest are links.
12504
# The last name is the one that the linker finds with -lNAME
12505
library_names_spec=$lt_library_names_spec
12506
12507
# The coded name of the library, if different from the real name.
12508
soname_spec=$lt_soname_spec
12509
12510
# Command to use after installation of a shared archive.
12511
postinstall_cmds=$lt_postinstall_cmds
12512
12513
# Command to use after uninstallation of a shared archive.
12514
postuninstall_cmds=$lt_postuninstall_cmds
12515
12516
# Commands used to finish a libtool library installation in a directory.
12517
finish_cmds=$lt_finish_cmds
12518
12519
# As "finish_cmds", except a single script fragment to be evaled but
12520
# not shown.
12521
finish_eval=$lt_finish_eval
12522
12523
# Whether we should hardcode library paths into libraries.
12524
hardcode_into_libs=$hardcode_into_libs
12525
12526
# Compile-time system search path for libraries.
12527
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12528
12529
# Run-time system search path for libraries.
12530
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12531
12532
# Whether dlopen is supported.
12533
dlopen_support=$enable_dlopen
12534
12535
# Whether dlopen of programs is supported.
12536
dlopen_self=$enable_dlopen_self
12537
12538
# Whether dlopen of statically linked programs is supported.
12539
dlopen_self_static=$enable_dlopen_self_static
12540
12541
# Commands to strip libraries.
12542
old_striplib=$lt_old_striplib
12543
striplib=$lt_striplib
12544
12545
12546
# The linker used to build libraries.
12547
LD=$lt_LD
12548
12549
# Commands used to build an old-style archive.
12550
old_archive_cmds=$lt_old_archive_cmds
12551
12552
# A language specific compiler.
12553
CC=$lt_compiler
12554
12555
# Is the compiler the GNU compiler?
12556
with_gcc=$GCC
12557
12558
# Compiler flag to turn off builtin functions.
12559
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12560
12561
# How to pass a linker flag through the compiler.
12562
wl=$lt_lt_prog_compiler_wl
12563
12564
# Additional compiler flags for building library objects.
12565
pic_flag=$lt_lt_prog_compiler_pic
12566
12567
# Compiler flag to prevent dynamic linking.
12568
link_static_flag=$lt_lt_prog_compiler_static
12569
12570
# Does compiler simultaneously support -c and -o options?
12571
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12572
12573
# Whether or not to add -lc for building shared libraries.
12574
build_libtool_need_lc=$archive_cmds_need_lc
12575
12576
# Whether or not to disallow shared libs when runtime libs are static.
12577
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12578
12579
# Compiler flag to allow reflexive dlopens.
12580
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12581
12582
# Compiler flag to generate shared objects directly from archives.
12583
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12584
12585
# Whether the compiler copes with passing no objects directly.
12586
compiler_needs_object=$lt_compiler_needs_object
12587
12588
# Create an old-style archive from a shared archive.
12589
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12590
12591
# Create a temporary old-style archive to link instead of a shared archive.
12592
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12593
12594
# Commands used to build a shared archive.
12595
archive_cmds=$lt_archive_cmds
12596
archive_expsym_cmds=$lt_archive_expsym_cmds
12597
12598
# Commands used to build a loadable module if different from building
12599
# a shared archive.
12600
module_cmds=$lt_module_cmds
12601
module_expsym_cmds=$lt_module_expsym_cmds
12602
12603
# Whether we are building with GNU ld or not.
12604
with_gnu_ld=$lt_with_gnu_ld
12605
12606
# Flag that allows shared libraries with undefined symbols to be built.
12607
allow_undefined_flag=$lt_allow_undefined_flag
12608
12609
# Flag that enforces no undefined symbols.
12610
no_undefined_flag=$lt_no_undefined_flag
12611
12612
# Flag to hardcode \$libdir into a binary during linking.
12613
# This must work even if \$libdir does not exist
12614
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12615
12616
# If ld is used when linking, flag to hardcode \$libdir into a binary
12617
# during linking.  This must work even if \$libdir does not exist.
12618
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12619
12620
# Whether we need a single "-rpath" flag with a separated argument.
12621
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12622
12623
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12624
# DIR into the resulting binary.
12625
hardcode_direct=$hardcode_direct
12626
12627
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12628
# DIR into the resulting binary and the resulting library dependency is
12629
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12630
# library is relocated.
12631
hardcode_direct_absolute=$hardcode_direct_absolute
12632
12633
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12634
# into the resulting binary.
12635
hardcode_minus_L=$hardcode_minus_L
12636
12637
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12638
# into the resulting binary.
12639
hardcode_shlibpath_var=$hardcode_shlibpath_var
12640
12641
# Set to "yes" if building a shared library automatically hardcodes DIR
12642
# into the library and all subsequent libraries and executables linked
12643
# against it.
12644
hardcode_automatic=$hardcode_automatic
12645
12646
# Set to yes if linker adds runtime paths of dependent libraries
12647
# to runtime path list.
12648
inherit_rpath=$inherit_rpath
12649
12650
# Whether libtool must link a program against all its dependency libraries.
12651
link_all_deplibs=$link_all_deplibs
12652
12653
# Fix the shell variable \$srcfile for the compiler.
12654
fix_srcfile_path=$lt_fix_srcfile_path
12655
12656
# Set to "yes" if exported symbols are required.
12657
always_export_symbols=$always_export_symbols
12658
12659
# The commands to list exported symbols.
12660
export_symbols_cmds=$lt_export_symbols_cmds
12661
12662
# Symbols that should not be listed in the preloaded symbols.
12663
exclude_expsyms=$lt_exclude_expsyms
12664
12665
# Symbols that must always be exported.
12666
include_expsyms=$lt_include_expsyms
12667
12668
# Commands necessary for linking programs (against libraries) with templates.
12669
prelink_cmds=$lt_prelink_cmds
12670
12671
# Specify filename containing input files.
12672
file_list_spec=$lt_file_list_spec
12673
12674
# How to hardcode a shared library path into an executable.
12675
hardcode_action=$hardcode_action
12676
12677
# ### END LIBTOOL CONFIG
12678
12679
_LT_EOF
12680
12681
  case $host_os in
12682
  aix3*)
12683
    cat <<\_LT_EOF >> "$cfgfile"
12684
# AIX sometimes has problems with the GCC collect2 program.  For some
12685
# reason, if we set the COLLECT_NAMES environment variable, the problems
12686
# vanish in a puff of smoke.
12687
if test "X${COLLECT_NAMES+set}" != Xset; then
12688
  COLLECT_NAMES=
12689
  export COLLECT_NAMES
12690
fi
12691
_LT_EOF
12692
    ;;
12693
  esac
12694
12695
12696
ltmain="$ac_aux_dir/ltmain.sh"
12697
12698
12699
  # We use sed instead of cat because bash on DJGPP gets confused if
12700
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12701
  # text mode, it properly converts lines to CR/LF.  This bash problem
12702
  # is reportedly fixed, but why not run on old versions too?
12703
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12704
    || (rm -f "$cfgfile"; exit 1)
12705
12706
  case $xsi_shell in
12707
  yes)
12708
    cat << \_LT_EOF >> "$cfgfile"
12709
12710
# func_dirname file append nondir_replacement
12711
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12712
# otherwise set result to NONDIR_REPLACEMENT.
12713
func_dirname ()
12714
{
12715
  case ${1} in
12716
    */*) func_dirname_result="${1%/*}${2}" ;;
12717
    *  ) func_dirname_result="${3}" ;;
12718
  esac
12719
}
12720
12721
# func_basename file
12722
func_basename ()
12723
{
12724
  func_basename_result="${1##*/}"
12725
}
12726
12727
# func_dirname_and_basename file append nondir_replacement
12728
# perform func_basename and func_dirname in a single function
12729
# call:
12730
#   dirname:  Compute the dirname of FILE.  If nonempty,
12731
#             add APPEND to the result, otherwise set result
12732
#             to NONDIR_REPLACEMENT.
12733
#             value returned in "$func_dirname_result"
12734
#   basename: Compute filename of FILE.
12735
#             value retuned in "$func_basename_result"
12736
# Implementation must be kept synchronized with func_dirname
12737
# and func_basename. For efficiency, we do not delegate to
12738
# those functions but instead duplicate the functionality here.
12739
func_dirname_and_basename ()
12740
{
12741
  case ${1} in
12742
    */*) func_dirname_result="${1%/*}${2}" ;;
12743
    *  ) func_dirname_result="${3}" ;;
12744
  esac
12745
  func_basename_result="${1##*/}"
12746
}
12747
12748
# func_stripname prefix suffix name
12749
# strip PREFIX and SUFFIX off of NAME.
12750
# PREFIX and SUFFIX must not contain globbing or regex special
12751
# characters, hashes, percent signs, but SUFFIX may contain a leading
12752
# dot (in which case that matches only a dot).
12753
func_stripname ()
12754
{
12755
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12756
  # positional parameters, so assign one to ordinary parameter first.
12757
  func_stripname_result=${3}
12758
  func_stripname_result=${func_stripname_result#"${1}"}
12759
  func_stripname_result=${func_stripname_result%"${2}"}
12760
}
12761
12762
# func_opt_split
12763
func_opt_split ()
12764
{
12765
  func_opt_split_opt=${1%%=*}
12766
  func_opt_split_arg=${1#*=}
12767
}
12768
12769
# func_lo2o object
12770
func_lo2o ()
12771
{
12772
  case ${1} in
12773
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12774
    *)    func_lo2o_result=${1} ;;
12775
  esac
12776
}
12777
12778
# func_xform libobj-or-source
12779
func_xform ()
12780
{
12781
  func_xform_result=${1%.*}.lo
12782
}
12783
12784
# func_arith arithmetic-term...
12785
func_arith ()
12786
{
12787
  func_arith_result=$(( $* ))
12788
}
12789
12790
# func_len string
12791
# STRING may not start with a hyphen.
12792
func_len ()
12793
{
12794
  func_len_result=${#1}
12795
}
12796
12797
_LT_EOF
12798
    ;;
12799
  *) # Bourne compatible functions.
12800
    cat << \_LT_EOF >> "$cfgfile"
12801
12802
# func_dirname file append nondir_replacement
12803
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12804
# otherwise set result to NONDIR_REPLACEMENT.
12805
func_dirname ()
12806
{
12807
  # Extract subdirectory from the argument.
12808
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12809
  if test "X$func_dirname_result" = "X${1}"; then
12810
    func_dirname_result="${3}"
12811
  else
12812
    func_dirname_result="$func_dirname_result${2}"
12813
  fi
12814
}
12815
12816
# func_basename file
12817
func_basename ()
12818
{
12819
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12820
}
12821
12822
12823
# func_stripname prefix suffix name
12824
# strip PREFIX and SUFFIX off of NAME.
12825
# PREFIX and SUFFIX must not contain globbing or regex special
12826
# characters, hashes, percent signs, but SUFFIX may contain a leading
12827
# dot (in which case that matches only a dot).
12828
# func_strip_suffix prefix name
12829
func_stripname ()
12830
{
12831
  case ${2} in
12832
    .*) func_stripname_result=`$ECHO "X${3}" \
12833
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12834
    *)  func_stripname_result=`$ECHO "X${3}" \
12835
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12836
  esac
12837
}
12838
12839
# sed scripts:
12840
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12841
my_sed_long_arg='1s/^-[^=]*=//'
12842
12843
# func_opt_split
12844
func_opt_split ()
12845
{
12846
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12847
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12848
}
12849
12850
# func_lo2o object
12851
func_lo2o ()
12852
{
12853
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12854
}
12855
12856
# func_xform libobj-or-source
12857
func_xform ()
12858
{
12859
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12860
}
12861
12862
# func_arith arithmetic-term...
12863
func_arith ()
12864
{
12865
  func_arith_result=`expr "$@"`
12866
}
12867
12868
# func_len string
12869
# STRING may not start with a hyphen.
12870
func_len ()
12871
{
12872
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12873
}
12874
12875
_LT_EOF
12876
esac
12877
12878
case $lt_shell_append in
12879
  yes)
12880
    cat << \_LT_EOF >> "$cfgfile"
12881
12882
# func_append var value
12883
# Append VALUE to the end of shell variable VAR.
12884
func_append ()
12885
{
12886
  eval "$1+=\$2"
12887
}
12888
_LT_EOF
12889
    ;;
12890
  *)
12891
    cat << \_LT_EOF >> "$cfgfile"
12892
12893
# func_append var value
12894
# Append VALUE to the end of shell variable VAR.
12895
func_append ()
12896
{
12897
  eval "$1=\$$1\$2"
12898
}
12899
12900
_LT_EOF
12901
    ;;
12902
  esac
12903
12904
12905
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12906
    || (rm -f "$cfgfile"; exit 1)
12907
12908
  mv -f "$cfgfile" "$ofile" ||
12909
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12910
  chmod +x "$ofile"
12911
12912
 ;;
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12913
1 by Joey Hess
* Joey Hess
12914
  esac
5 by Bastian Blank, Bastian Blank, Martin Michlmayr, Colin Watson, Joey Hess
[ Bastian Blank ]
12915
done # for ac_tag
1 by Joey Hess
* Joey Hess
12916
12917
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12918
as_fn_exit 0
1 by Joey Hess
* Joey Hess
12919
_ACEOF
12920
ac_clean_files=$ac_clean_files_save
12921
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12922
test $ac_write_fail = 0 ||
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12923
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12924
1 by Joey Hess
* Joey Hess
12925
12926
# configure is writing to config.log, and then calls config.status.
12927
# config.status does its own redirection, appending to config.log.
12928
# Unfortunately, on DOS this fails, as config.log is still kept open
12929
# by configure, so config.status won't be able to write to it; its
12930
# output is simply discarded.  So we exec the FD to /dev/null,
12931
# effectively closing config.log, so it can be properly (re)opened and
12932
# appended to by config.status.  When coming back to configure, we
12933
# need to make the FD available again.
12934
if test "$no_create" != yes; then
12935
  ac_cs_success=:
12936
  ac_config_status_args=
12937
  test "$silent" = yes &&
12938
    ac_config_status_args="$ac_config_status_args --quiet"
12939
  exec 5>/dev/null
12940
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12941
  exec 5>>config.log
12942
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12943
  # would make configure fail if this is the last instruction.
8.2.9 by Colin Watson, Martin Michlmayr, Michael Casadevall
[ Martin Michlmayr ]
12944
  $ac_cs_success || as_fn_exit 1
1 by Joey Hess
* Joey Hess
12945
fi
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12946
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8.1.5 by Aurelien Jarno, Aurelien Jarno
[ Aurelien Jarno ]
12947
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8.1.4 by Otavio Salvador, Colin Watson, Luca Favatella, Wouter Verhelst
[ Colin Watson ]
12948
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12949
fi
1 by Joey Hess
* Joey Hess
12950