blob: 1e7e628fde5ce6853405dfb16b3d82b9c35669d7 [file] [log] [blame]
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jonathan Santos5a45b152011-08-17 15:33:57 -04003# Generated by GNU Autoconf 2.68 for openbsc 0.9.14.
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004#
5# Report bugs to <openbsc-devel@lists.openbsc.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Jonathan Santos5a45b152011-08-17 15:33:57 -040094as_myself=
Jonathan Santos03fd8d02011-05-25 13:54:02 -040095case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
Jonathan Santos5a45b152011-08-17 15:33:57 -0400220 # Preserve -v and -x to the replacement shell.
Jonathan Santos03fd8d02011-05-25 13:54:02 -0400221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
Jonathan Santos5a45b152011-08-17 15:33:57 -0400225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Jonathan Santos03fd8d02011-05-25 13:54:02 -0400232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: openbsc-devel@lists.openbsc.org about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='openbsc'
562PACKAGE_TARNAME='openbsc'
Jonathan Santos5a45b152011-08-17 15:33:57 -0400563PACKAGE_VERSION='0.9.14'
564PACKAGE_STRING='openbsc 0.9.14'
Jonathan Santos03fd8d02011-05-25 13:54:02 -0400565PACKAGE_BUGREPORT='openbsc-devel@lists.openbsc.org'
566PACKAGE_URL=''
567
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#ifdef HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#ifdef HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#ifdef STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# ifdef HAVE_STDLIB_H
582# include <stdlib.h>
583# endif
584#endif
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
591#ifdef HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#ifdef HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_subst_vars='am__EXEEXT_FALSE
605am__EXEEXT_TRUE
606LTLIBOBJS
607LIBOBJS
608COVERAGE_LDFLAGS
609COVERAGE_CFLAGS
610SYMBOL_VISIBILITY
611EGREP
612GREP
613CPP
Jonathan Santos5a45b152011-08-17 15:33:57 -0400614LIBOSMOGSM_LIBS
615LIBOSMOGSM_CFLAGS
Jonathan Santos03fd8d02011-05-25 13:54:02 -0400616LIBOSMOVTY_LIBS
617LIBOSMOVTY_CFLAGS
618LIBOSMOCORE_LIBS
619LIBOSMOCORE_CFLAGS
620BUILD_BSC_FALSE
621BUILD_BSC_TRUE
622BUILD_NAT_FALSE
623BUILD_NAT_TRUE
624LIBOSMOSCCP_LIBS
625LIBOSMOSCCP_CFLAGS
626PKG_CONFIG_LIBDIR
627PKG_CONFIG_PATH
628PKG_CONFIG
629HAVE_LIBGTP_FALSE
630HAVE_LIBGTP_TRUE
631GPRS_LIBGTP
632RANLIB
633am__fastdepCC_FALSE
634am__fastdepCC_TRUE
635CCDEPMODE
636AMDEPBACKSLASH
637AMDEP_FALSE
638AMDEP_TRUE
639am__quote
640am__include
641DEPDIR
642OBJEXT
643EXEEXT
644ac_ct_CC
645CPPFLAGS
646LDFLAGS
647CFLAGS
648CC
649AM_BACKSLASH
650AM_DEFAULT_VERBOSITY
651am__untar
652am__tar
653AMTAR
654am__leading_dot
655SET_MAKE
656AWK
657mkdir_p
658MKDIR_P
659INSTALL_STRIP_PROGRAM
660STRIP
661install_sh
662MAKEINFO
663AUTOHEADER
664AUTOMAKE
665AUTOCONF
666ACLOCAL
667VERSION
668PACKAGE
669CYGPATH_W
670am__isrc
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674target_alias
675host_alias
676build_alias
677LIBS
678ECHO_T
679ECHO_N
680ECHO_C
681DEFS
682mandir
683localedir
684libdir
685psdir
686pdfdir
687dvidir
688htmldir
689infodir
690docdir
691oldincludedir
692includedir
693localstatedir
694sharedstatedir
695sysconfdir
696datadir
697datarootdir
698libexecdir
699sbindir
700bindir
701program_transform_name
702prefix
703exec_prefix
704PACKAGE_URL
705PACKAGE_BUGREPORT
706PACKAGE_STRING
707PACKAGE_VERSION
708PACKAGE_TARNAME
709PACKAGE_NAME
710PATH_SEPARATOR
711SHELL'
712ac_subst_files=''
713ac_user_opts='
714enable_option_checking
715enable_silent_rules
716enable_dependency_tracking
717enable_nat
718enable_osmo_bsc
719enable_coverage
720'
721 ac_precious_vars='build_alias
722host_alias
723target_alias
724CC
725CFLAGS
726LDFLAGS
727LIBS
728CPPFLAGS
729PKG_CONFIG
730PKG_CONFIG_PATH
731PKG_CONFIG_LIBDIR
732LIBOSMOSCCP_CFLAGS
733LIBOSMOSCCP_LIBS
734LIBOSMOCORE_CFLAGS
735LIBOSMOCORE_LIBS
736LIBOSMOVTY_CFLAGS
737LIBOSMOVTY_LIBS
Jonathan Santos5a45b152011-08-17 15:33:57 -0400738LIBOSMOGSM_CFLAGS
739LIBOSMOGSM_LIBS
Jonathan Santos03fd8d02011-05-25 13:54:02 -0400740CPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
807
808 # Accept the important Cygnus configure options, so we can diagnose typos.
809
810 case $ac_dashdash$ac_option in
811 --)
812 ac_dashdash=yes ;;
813
814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 ac_prev=bindir ;;
816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 bindir=$ac_optarg ;;
818
819 -build | --build | --buil | --bui | --bu)
820 ac_prev=build_alias ;;
821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822 build_alias=$ac_optarg ;;
823
824 -cache-file | --cache-file | --cache-fil | --cache-fi \
825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826 ac_prev=cache_file ;;
827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829 cache_file=$ac_optarg ;;
830
831 --config-cache | -C)
832 cache_file=config.cache ;;
833
834 -datadir | --datadir | --datadi | --datad)
835 ac_prev=datadir ;;
836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
837 datadir=$ac_optarg ;;
838
839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840 | --dataroo | --dataro | --datar)
841 ac_prev=datarootdir ;;
842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844 datarootdir=$ac_optarg ;;
845
846 -disable-* | --disable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855"enable_$ac_useropt"
856"*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
861
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
866
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
871
872 -enable-* | --enable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881"enable_$ac_useropt"
882"*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=\$ac_optarg ;;
887
888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890 | --exec | --exe | --ex)
891 ac_prev=exec_prefix ;;
892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894 | --exec=* | --exe=* | --ex=*)
895 exec_prefix=$ac_optarg ;;
896
897 -gas | --gas | --ga | --g)
898 # Obsolete; use --with-gas.
899 with_gas=yes ;;
900
901 -help | --help | --hel | --he | -h)
902 ac_init_help=long ;;
903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904 ac_init_help=recursive ;;
905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906 ac_init_help=short ;;
907
908 -host | --host | --hos | --ho)
909 ac_prev=host_alias ;;
910 -host=* | --host=* | --hos=* | --ho=*)
911 host_alias=$ac_optarg ;;
912
913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 ac_prev=htmldir ;;
915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 | --ht=*)
917 htmldir=$ac_optarg ;;
918
919 -includedir | --includedir | --includedi | --included | --include \
920 | --includ | --inclu | --incl | --inc)
921 ac_prev=includedir ;;
922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923 | --includ=* | --inclu=* | --incl=* | --inc=*)
924 includedir=$ac_optarg ;;
925
926 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 ac_prev=infodir ;;
928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929 infodir=$ac_optarg ;;
930
931 -libdir | --libdir | --libdi | --libd)
932 ac_prev=libdir ;;
933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 libdir=$ac_optarg ;;
935
936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937 | --libexe | --libex | --libe)
938 ac_prev=libexecdir ;;
939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940 | --libexe=* | --libex=* | --libe=*)
941 libexecdir=$ac_optarg ;;
942
943 -localedir | --localedir | --localedi | --localed | --locale)
944 ac_prev=localedir ;;
945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946 localedir=$ac_optarg ;;
947
948 -localstatedir | --localstatedir | --localstatedi | --localstated \
949 | --localstate | --localstat | --localsta | --localst | --locals)
950 ac_prev=localstatedir ;;
951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953 localstatedir=$ac_optarg ;;
954
955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 ac_prev=mandir ;;
957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 mandir=$ac_optarg ;;
959
960 -nfp | --nfp | --nf)
961 # Obsolete; use --without-fp.
962 with_fp=no ;;
963
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c | -n)
966 no_create=yes ;;
967
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 no_recursion=yes ;;
971
972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974 | --oldin | --oldi | --old | --ol | --o)
975 ac_prev=oldincludedir ;;
976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979 oldincludedir=$ac_optarg ;;
980
981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 ac_prev=prefix ;;
983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 prefix=$ac_optarg ;;
985
986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
987 | --program-pre | --program-pr | --program-p)
988 ac_prev=program_prefix ;;
989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991 program_prefix=$ac_optarg ;;
992
993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
994 | --program-suf | --program-su | --program-s)
995 ac_prev=program_suffix ;;
996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998 program_suffix=$ac_optarg ;;
999
1000 -program-transform-name | --program-transform-name \
1001 | --program-transform-nam | --program-transform-na \
1002 | --program-transform-n | --program-transform- \
1003 | --program-transform | --program-transfor \
1004 | --program-transfo | --program-transf \
1005 | --program-trans | --program-tran \
1006 | --progr-tra | --program-tr | --program-t)
1007 ac_prev=program_transform_name ;;
1008 -program-transform-name=* | --program-transform-name=* \
1009 | --program-transform-nam=* | --program-transform-na=* \
1010 | --program-transform-n=* | --program-transform-=* \
1011 | --program-transform=* | --program-transfor=* \
1012 | --program-transfo=* | --program-transf=* \
1013 | --program-trans=* | --program-tran=* \
1014 | --progr-tra=* | --program-tr=* | --program-t=*)
1015 program_transform_name=$ac_optarg ;;
1016
1017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 ac_prev=pdfdir ;;
1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020 pdfdir=$ac_optarg ;;
1021
1022 -psdir | --psdir | --psdi | --psd | --ps)
1023 ac_prev=psdir ;;
1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 psdir=$ac_optarg ;;
1026
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 silent=yes ;;
1030
1031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1032 ac_prev=sbindir ;;
1033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1034 | --sbi=* | --sb=*)
1035 sbindir=$ac_optarg ;;
1036
1037 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1039 | --sharedst | --shareds | --shared | --share | --shar \
1040 | --sha | --sh)
1041 ac_prev=sharedstatedir ;;
1042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1045 | --sha=* | --sh=*)
1046 sharedstatedir=$ac_optarg ;;
1047
1048 -site | --site | --sit)
1049 ac_prev=site ;;
1050 -site=* | --site=* | --sit=*)
1051 site=$ac_optarg ;;
1052
1053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1054 ac_prev=srcdir ;;
1055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1056 srcdir=$ac_optarg ;;
1057
1058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1059 | --syscon | --sysco | --sysc | --sys | --sy)
1060 ac_prev=sysconfdir ;;
1061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1063 sysconfdir=$ac_optarg ;;
1064
1065 -target | --target | --targe | --targ | --tar | --ta | --t)
1066 ac_prev=target_alias ;;
1067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1068 target_alias=$ac_optarg ;;
1069
1070 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1071 verbose=yes ;;
1072
1073 -version | --version | --versio | --versi | --vers | -V)
1074 ac_init_version=: ;;
1075
1076 -with-* | --with-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085"with_$ac_useropt"
1086"*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval with_$ac_useropt=\$ac_optarg ;;
1091
1092 -without-* | --without-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101"with_$ac_useropt"
1102"*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=no ;;
1107
1108 --x)
1109 # Obsolete; use --with-x.
1110 with_x=yes ;;
1111
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1118
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1125
1126 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1127Try \`$0 --help' for more information"
1128 ;;
1129
1130 *=*)
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 case $ac_envvar in #(
1134 '' | [0-9]* | *[!_$as_cr_alnum]* )
1135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1136 esac
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1139
1140 *)
1141 # FIXME: should be removed in autoconf 3.0.
1142 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Jonathan Santos5a45b152011-08-17 15:33:57 -04001145 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001146 ;;
1147
1148 esac
1149done
1150
1151if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 as_fn_error $? "missing argument to $ac_option"
1154fi
1155
1156if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1158 no) ;;
1159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1160 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161 esac
1162fi
1163
1164# Check all directory arguments for consistency.
1165for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1169do
1170 eval ac_val=\$$ac_var
1171 # Remove trailing slashes.
1172 case $ac_val in
1173 */ )
1174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1175 eval $ac_var=\$ac_val;;
1176 esac
1177 # Be sure to have absolute directory names.
1178 case $ac_val in
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 esac
1182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1183done
1184
1185# There might be people who depend on the old broken behavior: `$host'
1186# used to hold the argument of --host etc.
1187# FIXME: To remove some day.
1188build=$build_alias
1189host=$host_alias
1190target=$target_alias
1191
1192# FIXME: To remove some day.
1193if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1197 If a cross compiler is detected then cross compile mode will be used" >&2
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1200 fi
1201fi
1202
1203ac_tool_prefix=
1204test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206test "$silent" = yes && exec 6>/dev/null
1207
1208
1209ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210ac_ls_di=`ls -di .` &&
1211ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 as_fn_error $? "working directory cannot be determined"
1213test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 as_fn_error $? "pwd does not report name of working directory"
1215
1216
1217# Find the source files, if location was not specified.
1218if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$as_myself" ||
1222$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$as_myself" : 'X\(//\)[^/]' \| \
1224 X"$as_myself" : 'X\(//\)$' \| \
1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226$as_echo X"$as_myself" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\).*/{
1240 s//\1/
1241 q
1242 }
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1247 fi
1248else
1249 ac_srcdir_defaulted=no
1250fi
1251if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1254fi
1255ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 pwd)`
1259# When building in place, set srcdir=.
1260if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1262fi
1263# Remove unnecessary trailing slashes from srcdir.
1264# Double slashes in file names in object file debugging info
1265# mess up M-x gdb in Emacs.
1266case $srcdir in
1267*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268esac
1269for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274done
1275
1276#
1277# Report the --help message.
1278#
1279if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
Jonathan Santos5a45b152011-08-17 15:33:57 -04001283\`configure' configures openbsc 0.9.14 to adapt to many kinds of systems.
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001284
1285Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288VAR=VALUE. See below for descriptions of some of the useful variables.
1289
1290Defaults for the options are specified in brackets.
1291
1292Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking ...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302
1303Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1308
1309By default, \`make install' will install all the files in
1310\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312for instance \`--prefix=\$HOME'.
1313
1314For better control, use the options below.
1315
1316Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsc]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336_ACEOF
1337
1338 cat <<\_ACEOF
1339
1340Program names:
1341 --program-prefix=PREFIX prepend PREFIX to installed program names
1342 --program-suffix=SUFFIX append SUFFIX to installed program names
1343 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1344_ACEOF
1345fi
1346
1347if test -n "$ac_init_help"; then
1348 case $ac_init_help in
Jonathan Santos5a45b152011-08-17 15:33:57 -04001349 short | recursive ) echo "Configuration of openbsc 0.9.14:";;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001350 esac
1351 cat <<\_ACEOF
1352
1353Optional Features:
1354 --disable-option-checking ignore unrecognized --enable/--with options
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --enable-silent-rules less verbose build output (undo: `make V=1')
1358 --disable-silent-rules verbose build output (undo: `make V=0')
1359 --disable-dependency-tracking speeds up one-time build
1360 --enable-dependency-tracking do not reject slow dependency extractors
1361 --enable-nat Build the BSC NAT. Requires SCCP
1362 --enable-osmo-bsc Build the Osmo BSC
1363 --enable-coverage enable code coverage support [default=no]
1364
1365Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 PKG_CONFIG path to pkg-config utility
1374 PKG_CONFIG_PATH
1375 directories to add to pkg-config's search path
1376 PKG_CONFIG_LIBDIR
1377 path overriding pkg-config's built-in search path
1378 LIBOSMOSCCP_CFLAGS
1379 C compiler flags for LIBOSMOSCCP, overriding pkg-config
1380 LIBOSMOSCCP_LIBS
1381 linker flags for LIBOSMOSCCP, overriding pkg-config
1382 LIBOSMOCORE_CFLAGS
1383 C compiler flags for LIBOSMOCORE, overriding pkg-config
1384 LIBOSMOCORE_LIBS
1385 linker flags for LIBOSMOCORE, overriding pkg-config
1386 LIBOSMOVTY_CFLAGS
1387 C compiler flags for LIBOSMOVTY, overriding pkg-config
1388 LIBOSMOVTY_LIBS
1389 linker flags for LIBOSMOVTY, overriding pkg-config
Jonathan Santos5a45b152011-08-17 15:33:57 -04001390 LIBOSMOGSM_CFLAGS
1391 C compiler flags for LIBOSMOGSM, overriding pkg-config
1392 LIBOSMOGSM_LIBS
1393 linker flags for LIBOSMOGSM, overriding pkg-config
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001394 CPP C preprocessor
1395
1396Use these variables to override the choices made by `configure' or to help
1397it to find libraries and programs with nonstandard names/locations.
1398
1399Report bugs to <openbsc-devel@lists.openbsc.org>.
1400_ACEOF
1401ac_status=$?
1402fi
1403
1404if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" ||
1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 continue
1410 ac_builddir=.
1411
1412case "$ac_dir" in
1413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414*)
1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422esac
1423ac_abs_top_builddir=$ac_pwd
1424ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425# for backward compatibility:
1426ac_top_builddir=$ac_top_build_prefix
1427
1428case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441esac
1442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1457fi
1458
1459test -n "$ac_init_help" && exit $ac_status
1460if $ac_init_version; then
1461 cat <<\_ACEOF
Jonathan Santos5a45b152011-08-17 15:33:57 -04001462openbsc configure 0.9.14
1463generated by GNU Autoconf 2.68
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001464
1465Copyright (C) 2010 Free Software Foundation, Inc.
1466This configure script is free software; the Free Software Foundation
1467gives unlimited permission to copy, distribute and modify it.
1468_ACEOF
1469 exit
1470fi
1471
1472## ------------------------ ##
1473## Autoconf initialization. ##
1474## ------------------------ ##
1475
1476# ac_fn_c_try_compile LINENO
1477# --------------------------
1478# Try to compile conftest.$ac_ext, and return whether this succeeded.
1479ac_fn_c_try_compile ()
1480{
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 rm -f conftest.$ac_objext
1483 if { { ac_try="$ac_compile"
1484case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487esac
1488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489$as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_compile") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1496 fi
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && {
1499 test -z "$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 } && test -s conftest.$ac_objext; then :
1502 ac_retval=0
1503else
1504 $as_echo "$as_me: failed program was:" >&5
1505sed 's/^/| /' conftest.$ac_ext >&5
1506
1507 ac_retval=1
1508fi
Jonathan Santos5a45b152011-08-17 15:33:57 -04001509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001510 as_fn_set_status $ac_retval
1511
1512} # ac_fn_c_try_compile
1513
1514# ac_fn_c_try_link LINENO
1515# -----------------------
1516# Try to link conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_link ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext conftest$ac_exeext
1521 if { { ac_try="$ac_link"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest$ac_exeext && {
1540 test "$cross_compiling" = yes ||
1541 $as_test_x conftest$ac_exeext
1542 }; then :
1543 ac_retval=0
1544else
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549fi
1550 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1551 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1552 # interfere with the next link command; also delete a directory that is
1553 # left behind by Apple's compiler. We do this before executing the actions.
1554 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jonathan Santos5a45b152011-08-17 15:33:57 -04001555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001556 as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_link
1559
1560# ac_fn_c_try_cpp LINENO
1561# ----------------------
1562# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_cpp ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586else
1587 $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591fi
Jonathan Santos5a45b152011-08-17 15:33:57 -04001592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001593 as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_cpp
1596
1597# ac_fn_c_try_run LINENO
1598# ----------------------
1599# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600# that executables *can* be run.
1601ac_fn_c_try_run ()
1602{
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1605case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1612 ac_status=$?
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: program exited with status $ac_status" >&5
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=$ac_status
1632fi
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jonathan Santos5a45b152011-08-17 15:33:57 -04001634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001635 as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_run
1638
1639# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640# -------------------------------------------------------
1641# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642# the include files in INCLUDES and setting the cache variable VAR
1643# accordingly.
1644ac_fn_c_check_header_mongrel ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Jonathan Santos5a45b152011-08-17 15:33:57 -04001647 if eval \${$3+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04001650if eval \${$3+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001651 $as_echo_n "(cached) " >&6
1652fi
1653eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; }
1656else
1657 # Is the header compilable?
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659$as_echo_n "checking $2 usability... " >&6; }
1660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h. */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667else
1668 ac_header_compiler=no
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672$as_echo "$ac_header_compiler" >&6; }
1673
1674# Is the header present?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676$as_echo_n "checking $2 presence... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h. */
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683else
1684 ac_header_preproc=no
1685fi
1686rm -f conftest.err conftest.i conftest.$ac_ext
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688$as_echo "$ac_header_preproc" >&6; }
1689
1690# So? What about this header?
1691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ;;
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709( $as_echo "## ---------------------------------------------- ##
1710## Report this to openbsc-devel@lists.openbsc.org ##
1711## ---------------------------------------------- ##"
1712 ) | sed "s/^/$as_me: WARNING: /" >&2
1713 ;;
1714esac
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04001717if eval \${$3+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001718 $as_echo_n "(cached) " >&6
1719else
1720 eval "$3=\$ac_header_compiler"
1721fi
1722eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725fi
Jonathan Santos5a45b152011-08-17 15:33:57 -04001726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001727
1728} # ac_fn_c_check_header_mongrel
1729
1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists and can be compiled using the include files in
1733# INCLUDES, setting the cache variable VAR accordingly.
1734ac_fn_c_check_header_compile ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04001739if eval \${$3+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001740 $as_echo_n "(cached) " >&6
1741else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h. */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749else
1750 eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04001757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001758
1759} # ac_fn_c_check_header_compile
1760cat >config.log <<_ACEOF
1761This file contains any messages produced by compilers while
1762running configure, to aid debugging if configure makes a mistake.
1763
Jonathan Santos5a45b152011-08-17 15:33:57 -04001764It was created by openbsc $as_me 0.9.14, which was
1765generated by GNU Autoconf 2.68. Invocation command line was
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001766
1767 $ $0 $@
1768
1769_ACEOF
1770exec 5>>config.log
1771{
1772cat <<_ASUNAME
1773## --------- ##
1774## Platform. ##
1775## --------- ##
1776
1777hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1778uname -m = `(uname -m) 2>/dev/null || echo unknown`
1779uname -r = `(uname -r) 2>/dev/null || echo unknown`
1780uname -s = `(uname -s) 2>/dev/null || echo unknown`
1781uname -v = `(uname -v) 2>/dev/null || echo unknown`
1782
1783/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1784/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1785
1786/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1787/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1788/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1789/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1790/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1791/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1792/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1793
1794_ASUNAME
1795
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 $as_echo "PATH: $as_dir"
1802 done
1803IFS=$as_save_IFS
1804
1805} >&5
1806
1807cat >&5 <<_ACEOF
1808
1809
1810## ----------- ##
1811## Core tests. ##
1812## ----------- ##
1813
1814_ACEOF
1815
1816
1817# Keep a trace of the command line.
1818# Strip out --no-create and --no-recursion so they do not pile up.
1819# Strip out --silent because we don't want to record it for future runs.
1820# Also quote any args containing shell meta-characters.
1821# Make two passes to allow for proper duplicate-argument suppression.
1822ac_configure_args=
1823ac_configure_args0=
1824ac_configure_args1=
1825ac_must_keep_next=false
1826for ac_pass in 1 2
1827do
1828 for ac_arg
1829 do
1830 case $ac_arg in
1831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1833 | -silent | --silent | --silen | --sile | --sil)
1834 continue ;;
1835 *\'*)
1836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 esac
1838 case $ac_pass in
1839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1840 2)
1841 as_fn_append ac_configure_args1 " '$ac_arg'"
1842 if test $ac_must_keep_next = true; then
1843 ac_must_keep_next=false # Got value, back to normal.
1844 else
1845 case $ac_arg in
1846 *=* | --config-cache | -C | -disable-* | --disable-* \
1847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1849 | -with-* | --with-* | -without-* | --without-* | --x)
1850 case "$ac_configure_args0 " in
1851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1852 esac
1853 ;;
1854 -* ) ac_must_keep_next=true ;;
1855 esac
1856 fi
1857 as_fn_append ac_configure_args " '$ac_arg'"
1858 ;;
1859 esac
1860 done
1861done
1862{ ac_configure_args0=; unset ac_configure_args0;}
1863{ ac_configure_args1=; unset ac_configure_args1;}
1864
1865# When interrupted or exit'd, cleanup temporary files, and complete
1866# config.log. We remove comments because anyway the quotes in there
1867# would cause problems or look ugly.
1868# WARNING: Use '\'' to represent an apostrophe within the trap.
1869# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1870trap 'exit_status=$?
1871 # Save into config.log some information that might help in debugging.
1872 {
1873 echo
1874
1875 $as_echo "## ---------------- ##
1876## Cache variables. ##
1877## ---------------- ##"
1878 echo
1879 # The following way of writing the cache mishandles newlines in values,
1880(
1881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1882 eval ac_val=\$$ac_var
1883 case $ac_val in #(
1884 *${as_nl}*)
1885 case $ac_var in #(
1886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1887$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1888 esac
1889 case $ac_var in #(
1890 _ | IFS | as_nl) ;; #(
1891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1892 *) { eval $ac_var=; unset $ac_var;} ;;
1893 esac ;;
1894 esac
1895 done
1896 (set) 2>&1 |
1897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1898 *${as_nl}ac_space=\ *)
1899 sed -n \
1900 "s/'\''/'\''\\\\'\'''\''/g;
1901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1902 ;; #(
1903 *)
1904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1905 ;;
1906 esac |
1907 sort
1908)
1909 echo
1910
1911 $as_echo "## ----------------- ##
1912## Output variables. ##
1913## ----------------- ##"
1914 echo
1915 for ac_var in $ac_subst_vars
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924
1925 if test -n "$ac_subst_files"; then
1926 $as_echo "## ------------------- ##
1927## File substitutions. ##
1928## ------------------- ##"
1929 echo
1930 for ac_var in $ac_subst_files
1931 do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in
1934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 esac
1936 $as_echo "$ac_var='\''$ac_val'\''"
1937 done | sort
1938 echo
1939 fi
1940
1941 if test -s confdefs.h; then
1942 $as_echo "## ----------- ##
1943## confdefs.h. ##
1944## ----------- ##"
1945 echo
1946 cat confdefs.h
1947 echo
1948 fi
1949 test "$ac_signal" != 0 &&
1950 $as_echo "$as_me: caught signal $ac_signal"
1951 $as_echo "$as_me: exit $exit_status"
1952 } >&5
1953 rm -f core *.core core.conftest.* &&
1954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1955 exit $exit_status
1956' 0
1957for ac_signal in 1 2 13 15; do
1958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1959done
1960ac_signal=0
1961
1962# confdefs.h avoids OS command line length limits that DEFS can exceed.
1963rm -f -r conftest* confdefs.h
1964
1965$as_echo "/* confdefs.h */" > confdefs.h
1966
1967# Predefined preprocessor variables.
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_NAME "$PACKAGE_NAME"
1971_ACEOF
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1975_ACEOF
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_VERSION "$PACKAGE_VERSION"
1979_ACEOF
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_STRING "$PACKAGE_STRING"
1983_ACEOF
1984
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1987_ACEOF
1988
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_URL "$PACKAGE_URL"
1991_ACEOF
1992
1993
1994# Let the site file select an alternate cache file if it wants to.
1995# Prefer an explicitly selected file to automatically selected ones.
1996ac_site_file1=NONE
1997ac_site_file2=NONE
1998if test -n "$CONFIG_SITE"; then
1999 # We do not want a PATH search for config.site.
2000 case $CONFIG_SITE in #((
2001 -*) ac_site_file1=./$CONFIG_SITE;;
2002 */*) ac_site_file1=$CONFIG_SITE;;
2003 *) ac_site_file1=./$CONFIG_SITE;;
2004 esac
2005elif test "x$prefix" != xNONE; then
2006 ac_site_file1=$prefix/share/config.site
2007 ac_site_file2=$prefix/etc/config.site
2008else
2009 ac_site_file1=$ac_default_prefix/share/config.site
2010 ac_site_file2=$ac_default_prefix/etc/config.site
2011fi
2012for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2013do
2014 test "x$ac_site_file" = xNONE && continue
2015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2017$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2018 sed 's/^/| /' "$ac_site_file" >&5
2019 . "$ac_site_file" \
2020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2022as_fn_error $? "failed to load site script $ac_site_file
Jonathan Santos5a45b152011-08-17 15:33:57 -04002023See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002024 fi
2025done
2026
2027if test -r "$cache_file"; then
2028 # Some versions of bash will fail to source /dev/null (special files
2029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2032$as_echo "$as_me: loading cache $cache_file" >&6;}
2033 case $cache_file in
2034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035 *) . "./$cache_file";;
2036 esac
2037 fi
2038else
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2040$as_echo "$as_me: creating cache $cache_file" >&6;}
2041 >$cache_file
2042fi
2043
2044# Check that the precious variables saved in the cache have kept the same
2045# value.
2046ac_cache_corrupted=false
2047for ac_var in $ac_precious_vars; do
2048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2049 eval ac_new_set=\$ac_env_${ac_var}_set
2050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2051 eval ac_new_val=\$ac_env_${ac_var}_value
2052 case $ac_old_set,$ac_new_set in
2053 set,)
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2055$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2056 ac_cache_corrupted=: ;;
2057 ,set)
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2059$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2060 ac_cache_corrupted=: ;;
2061 ,);;
2062 *)
2063 if test "x$ac_old_val" != "x$ac_new_val"; then
2064 # differences in whitespace do not lead to failure.
2065 ac_old_val_w=`echo x $ac_old_val`
2066 ac_new_val_w=`echo x $ac_new_val`
2067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2069$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2070 ac_cache_corrupted=:
2071 else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2073$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2074 eval $ac_var=\$ac_old_val
2075 fi
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2077$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2079$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2080 fi;;
2081 esac
2082 # Pass precious variables to config.status.
2083 if test "$ac_new_set" = set; then
2084 case $ac_new_val in
2085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 *) ac_arg=$ac_var=$ac_new_val ;;
2087 esac
2088 case " $ac_configure_args " in
2089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2090 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2091 esac
2092 fi
2093done
2094if $ac_cache_corrupted; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2098$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2099 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2100fi
2101## -------------------- ##
2102## Main body of script. ##
2103## -------------------- ##
2104
2105ac_ext=c
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112
2113am__api_version='1.11'
2114
2115ac_aux_dir=
2116for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2117 if test -f "$ac_dir/install-sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 break
2121 elif test -f "$ac_dir/install.sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 break
2125 elif test -f "$ac_dir/shtool"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 break
2129 fi
2130done
2131if test -z "$ac_aux_dir"; then
2132 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2133fi
2134
2135# These three variables are undocumented and unsupported,
2136# and are intended to be withdrawn in a future Autoconf release.
2137# They can cause serious problems if a builder's source tree is in a directory
2138# whose full name contains unusual characters.
2139ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2140ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2141ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142
2143
2144# Find a good install program. We prefer a C program (faster),
2145# so one script is as good as another. But avoid the broken or
2146# incompatible versions:
2147# SysV /etc/install, /usr/sbin/install
2148# SunOS /usr/etc/install
2149# IRIX /sbin/install
2150# AIX /bin/install
2151# AmigaOS /C/install, which installs bootblocks on floppy discs
2152# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2153# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2154# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2155# OS/2's system install, which has a completely different semantic
2156# ./install, which can be erroneously created by make from ./install.sh.
2157# Reject install programs that cannot install multiple files.
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2159$as_echo_n "checking for a BSD-compatible install... " >&6; }
2160if test -z "$INSTALL"; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04002161if ${ac_cv_path_install+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002162 $as_echo_n "(cached) " >&6
2163else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 # Account for people who put trailing slashes in PATH elements.
2170case $as_dir/ in #((
2171 ./ | .// | /[cC]/* | \
2172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2174 /usr/ucb/* ) ;;
2175 *)
2176 # OSF1 and SCO ODT 3.0 have their own names for install.
2177 # Don't use installbsd from OSF since it installs stuff as root
2178 # by default.
2179 for ac_prog in ginstall scoinst install; do
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2182 if test $ac_prog = install &&
2183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2184 # AIX install. It has an incompatible calling convention.
2185 :
2186 elif test $ac_prog = install &&
2187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188 # program-specific install script used by HP pwplus--don't use.
2189 :
2190 else
2191 rm -rf conftest.one conftest.two conftest.dir
2192 echo one > conftest.one
2193 echo two > conftest.two
2194 mkdir conftest.dir
2195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2196 test -s conftest.one && test -s conftest.two &&
2197 test -s conftest.dir/conftest.one &&
2198 test -s conftest.dir/conftest.two
2199 then
2200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2201 break 3
2202 fi
2203 fi
2204 fi
2205 done
2206 done
2207 ;;
2208esac
2209
2210 done
2211IFS=$as_save_IFS
2212
2213rm -rf conftest.one conftest.two conftest.dir
2214
2215fi
2216 if test "${ac_cv_path_install+set}" = set; then
2217 INSTALL=$ac_cv_path_install
2218 else
2219 # As a last resort, use the slow shell script. Don't cache a
2220 # value for INSTALL within a source directory, because that will
2221 # break other packages using the cache if that directory is
2222 # removed, or if the value is a relative name.
2223 INSTALL=$ac_install_sh
2224 fi
2225fi
2226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2227$as_echo "$INSTALL" >&6; }
2228
2229# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230# It thinks the first close brace ends the variable substitution.
2231test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2232
2233test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2234
2235test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2236
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2238$as_echo_n "checking whether build environment is sane... " >&6; }
2239# Just in case
2240sleep 1
2241echo timestamp > conftest.file
2242# Reject unsafe characters in $srcdir or the absolute working directory
2243# name. Accept space and tab only in the latter.
2244am_lf='
2245'
2246case `pwd` in
2247 *[\\\"\#\$\&\'\`$am_lf]*)
Jonathan Santos5a45b152011-08-17 15:33:57 -04002248 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002249esac
2250case $srcdir in
2251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Jonathan Santos5a45b152011-08-17 15:33:57 -04002252 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002253esac
2254
2255# Do `set' in a subshell so we don't clobber the current shell's
2256# arguments. Must try -L first in case configure is actually a
2257# symlink; some systems play weird games with the mod time of symlinks
2258# (eg FreeBSD returns the mod time of the symlink's containing
2259# directory).
2260if (
2261 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2262 if test "$*" = "X"; then
2263 # -L didn't work.
2264 set X `ls -t "$srcdir/configure" conftest.file`
2265 fi
2266 rm -f conftest.file
2267 if test "$*" != "X $srcdir/configure conftest.file" \
2268 && test "$*" != "X conftest.file $srcdir/configure"; then
2269
2270 # If neither matched, then we have a broken ls. This can happen
2271 # if, for instance, CONFIG_SHELL is bash and it inherits a
2272 # broken ls alias from the environment. This has actually
2273 # happened. Such a system could not be considered "sane".
2274 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2275alias in your environment" "$LINENO" 5
2276 fi
2277
2278 test "$2" = conftest.file
2279 )
2280then
2281 # Ok.
2282 :
2283else
2284 as_fn_error $? "newly created file is older than distributed files!
2285Check your system clock" "$LINENO" 5
2286fi
2287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2288$as_echo "yes" >&6; }
2289test "$program_prefix" != NONE &&
2290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291# Use a double $ so make ignores it.
2292test "$program_suffix" != NONE &&
2293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294# Double any \ or $.
2295# By default was `s,x,x', remove it if useless.
2296ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2297program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2298
2299# expand $ac_aux_dir to an absolute path
2300am_aux_dir=`cd $ac_aux_dir && pwd`
2301
2302if test x"${MISSING+set}" != xset; then
2303 case $am_aux_dir in
2304 *\ * | *\ *)
2305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2306 *)
2307 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2308 esac
2309fi
2310# Use eval to expand $SHELL
2311if eval "$MISSING --run true"; then
2312 am_missing_run="$MISSING --run "
2313else
2314 am_missing_run=
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2316$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2317fi
2318
2319if test x"${install_sh}" != xset; then
2320 case $am_aux_dir in
2321 *\ * | *\ *)
2322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2323 *)
2324 install_sh="\${SHELL} $am_aux_dir/install-sh"
2325 esac
2326fi
2327
2328# Installed binaries are usually stripped using `strip' when the user
2329# run `make install-strip'. However `strip' might not be the right
2330# tool to use in cross-compilation environments, therefore Automake
2331# will honor the `STRIP' environment variable to overrule this program.
2332if test "$cross_compiling" != no; then
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2335set dummy ${ac_tool_prefix}strip; ac_word=$2
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002338if ${ac_cv_prog_STRIP+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002339 $as_echo_n "(cached) " >&6
2340else
2341 if test -n "$STRIP"; then
2342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356 done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361STRIP=$ac_cv_prog_STRIP
2362if test -n "$STRIP"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2364$as_echo "$STRIP" >&6; }
2365else
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367$as_echo "no" >&6; }
2368fi
2369
2370
2371fi
2372if test -z "$ac_cv_prog_STRIP"; then
2373 ac_ct_STRIP=$STRIP
2374 # Extract the first word of "strip", so it can be a program name with args.
2375set dummy strip; ac_word=$2
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002378if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002379 $as_echo_n "(cached) " >&6
2380else
2381 if test -n "$ac_ct_STRIP"; then
2382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 ac_cv_prog_ac_ct_STRIP="strip"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395done
2396 done
2397IFS=$as_save_IFS
2398
2399fi
2400fi
2401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2402if test -n "$ac_ct_STRIP"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2404$as_echo "$ac_ct_STRIP" >&6; }
2405else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407$as_echo "no" >&6; }
2408fi
2409
2410 if test "x$ac_ct_STRIP" = x; then
2411 STRIP=":"
2412 else
2413 case $cross_compiling:$ac_tool_warned in
2414yes:)
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2417ac_tool_warned=yes ;;
2418esac
2419 STRIP=$ac_ct_STRIP
2420 fi
2421else
2422 STRIP="$ac_cv_prog_STRIP"
2423fi
2424
2425fi
2426INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2429$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2430if test -z "$MKDIR_P"; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04002431 if ${ac_cv_path_mkdir+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002432 $as_echo_n "(cached) " >&6
2433else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_prog in mkdir gmkdir; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2443 'mkdir (GNU coreutils) '* | \
2444 'mkdir (coreutils) '* | \
2445 'mkdir (fileutils) '4.1*)
2446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2447 break 3;;
2448 esac
2449 done
2450 done
2451 done
2452IFS=$as_save_IFS
2453
2454fi
2455
2456 test -d ./--version && rmdir ./--version
2457 if test "${ac_cv_path_mkdir+set}" = set; then
2458 MKDIR_P="$ac_cv_path_mkdir -p"
2459 else
2460 # As a last resort, use the slow shell script. Don't cache a
2461 # value for MKDIR_P within a source directory, because that will
2462 # break other packages using the cache if that directory is
2463 # removed, or if the value is a relative name.
2464 MKDIR_P="$ac_install_sh -d"
2465 fi
2466fi
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2468$as_echo "$MKDIR_P" >&6; }
2469
2470mkdir_p="$MKDIR_P"
2471case $mkdir_p in
2472 [\\/$]* | ?:[\\/]*) ;;
2473 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2474esac
2475
2476for ac_prog in gawk mawk nawk awk
2477do
2478 # Extract the first word of "$ac_prog", so it can be a program name with args.
2479set dummy $ac_prog; ac_word=$2
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002482if ${ac_cv_prog_AWK+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002483 $as_echo_n "(cached) " >&6
2484else
2485 if test -n "$AWK"; then
2486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_AWK="$ac_prog"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500 done
2501IFS=$as_save_IFS
2502
2503fi
2504fi
2505AWK=$ac_cv_prog_AWK
2506if test -n "$AWK"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2508$as_echo "$AWK" >&6; }
2509else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511$as_echo "no" >&6; }
2512fi
2513
2514
2515 test -n "$AWK" && break
2516done
2517
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2520set x ${MAKE-make}
2521ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Jonathan Santos5a45b152011-08-17 15:33:57 -04002522if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002523 $as_echo_n "(cached) " >&6
2524else
2525 cat >conftest.make <<\_ACEOF
2526SHELL = /bin/sh
2527all:
2528 @echo '@@@%%%=$(MAKE)=@@@%%%'
2529_ACEOF
2530# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2531case `${MAKE-make} -f conftest.make 2>/dev/null` in
2532 *@@@%%%=?*=@@@%%%*)
2533 eval ac_cv_prog_make_${ac_make}_set=yes;;
2534 *)
2535 eval ac_cv_prog_make_${ac_make}_set=no;;
2536esac
2537rm -f conftest.make
2538fi
2539if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541$as_echo "yes" >&6; }
2542 SET_MAKE=
2543else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
2546 SET_MAKE="MAKE=${MAKE-make}"
2547fi
2548
2549rm -rf .tst 2>/dev/null
2550mkdir .tst 2>/dev/null
2551if test -d .tst; then
2552 am__leading_dot=.
2553else
2554 am__leading_dot=_
2555fi
2556rmdir .tst 2>/dev/null
2557
2558if test "`cd $srcdir && pwd`" != "`pwd`"; then
2559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2560 # is not polluted with repeated "-I."
2561 am__isrc=' -I$(srcdir)'
2562 # test to see if srcdir already configured
2563 if test -f $srcdir/config.status; then
2564 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2565 fi
2566fi
2567
2568# test whether we have cygpath
2569if test -z "$CYGPATH_W"; then
2570 if (cygpath --version) >/dev/null 2>/dev/null; then
2571 CYGPATH_W='cygpath -w'
2572 else
2573 CYGPATH_W=echo
2574 fi
2575fi
2576
2577
2578# Define the identity of the package.
2579 PACKAGE='openbsc'
Jonathan Santos5a45b152011-08-17 15:33:57 -04002580 VERSION='0.9.14'
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002581
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE "$PACKAGE"
2585_ACEOF
2586
2587
2588cat >>confdefs.h <<_ACEOF
2589#define VERSION "$VERSION"
2590_ACEOF
2591
2592# Some tools Automake needs.
2593
2594ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2595
2596
2597AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2598
2599
2600AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2601
2602
2603AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2604
2605
2606MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2607
2608# We need awk for the "check" target. The system "awk" is bad on
2609# some platforms.
2610# Always define AMTAR for backward compatibility.
2611
2612AMTAR=${AMTAR-"${am_missing_run}tar"}
2613
2614am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2615
2616
2617
2618
2619
2620
2621# Check whether --enable-silent-rules was given.
2622if test "${enable_silent_rules+set}" = set; then :
2623 enableval=$enable_silent_rules;
2624fi
2625
2626case $enable_silent_rules in
2627yes) AM_DEFAULT_VERBOSITY=0;;
2628no) AM_DEFAULT_VERBOSITY=1;;
2629*) AM_DEFAULT_VERBOSITY=0;;
2630esac
2631AM_BACKSLASH='\'
2632
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636set x ${MAKE-make}
2637ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Jonathan Santos5a45b152011-08-17 15:33:57 -04002638if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002639 $as_echo_n "(cached) " >&6
2640else
2641 cat >conftest.make <<\_ACEOF
2642SHELL = /bin/sh
2643all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645_ACEOF
2646# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652esac
2653rm -f conftest.make
2654fi
2655if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
2658 SET_MAKE=
2659else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663fi
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}gcc; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002675if ${ac_cv_prog_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698CC=$ac_cv_prog_CC
2699if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701$as_echo "$CC" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_CC"; then
2710 ac_ct_CC=$CC
2711 # Extract the first word of "gcc", so it can be a program name with args.
2712set dummy gcc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002715if ${ac_cv_prog_ac_ct_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002716 $as_echo_n "(cached) " >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_ac_ct_CC="gcc"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733 done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741$as_echo "$ac_ct_CC" >&6; }
2742else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
2758else
2759 CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002768if ${ac_cv_prog_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794$as_echo "$CC" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801 fi
2802fi
2803if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002808if ${ac_cv_prog_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002809 $as_echo_n "(cached) " >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814 ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831 done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002867if ${ac_cv_prog_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002868 $as_echo_n "(cached) " >&6
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
2894else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902fi
2903if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04002911if ${ac_cv_prog_ac_ct_CC+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937$as_echo "$ac_ct_CC" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956 CC=$ac_ct_CC
2957 fi
2958fi
2959
2960fi
2961
2962
2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error $? "no acceptable C compiler found in \$PATH
Jonathan Santos5a45b152011-08-17 15:33:57 -04002966See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04002967
2968# Provide some information about the compiler.
2969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970set X $ac_compile
2971ac_compiler=$2
2972for ac_option in --version -v -V -qversion; do
2973 { { ac_try="$ac_compiler $ac_option >&5"
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981 ac_status=$?
2982 if test -s conftest.err; then
2983 sed '10a\
2984... rest of stderr output deleted ...
2985 10q' conftest.err >conftest.er1
2986 cat conftest.er1 >&5
2987 fi
2988 rm -f conftest.er1 conftest.err
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }
2991done
2992
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h. */
2995
2996int
2997main ()
2998{
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004ac_clean_files_save=$ac_clean_files
3005ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3006# Try to create an executable without -o first, disregard a.out.
3007# It will help us diagnose broken compilers, and finding out an intuition
3008# of exeext.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3010$as_echo_n "checking whether the C compiler works... " >&6; }
3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013# The possible output files:
3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016ac_rmfiles=
3017for ac_file in $ac_files
3018do
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022 esac
3023done
3024rm -f $ac_rmfiles
3025
3026if { { ac_try="$ac_link_default"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link_default") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3038# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3039# in a Makefile. We should not override ac_cv_exeext if it was cached,
3040# so that the user can short-circuit this test for compilers unknown to
3041# Autoconf.
3042for ac_file in $ac_files ''
3043do
3044 test -f "$ac_file" || continue
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 ;;
3048 [ab].out )
3049 # We found the default executable, but exeext='' is most
3050 # certainly right.
3051 break;;
3052 *.* )
3053 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3054 then :; else
3055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 fi
3057 # We set ac_cv_exeext here because the later test for it is not
3058 # safe: cross compilers may not add the suffix if given an `-o'
3059 # argument, so we may need to know it at that point already.
3060 # Even if this section looks crufty: it has the advantage of
3061 # actually working.
3062 break;;
3063 * )
3064 break;;
3065 esac
3066done
3067test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069else
3070 ac_file=''
3071fi
3072if test -z "$ac_file"; then :
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075$as_echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error 77 "C compiler cannot create executables
Jonathan Santos5a45b152011-08-17 15:33:57 -04003081See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089$as_echo "$ac_file" >&6; }
3090ac_exeext=$ac_cv_exeext
3091
3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095$as_echo_n "checking for suffix of executables... " >&6; }
3096if { { ac_try="$ac_link"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3109# work properly (i.e., refer to `conftest.exe'), while it won't with
3110# `rm'.
3111for ac_file in conftest.exe conftest conftest.*; do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 break;;
3117 * ) break;;
3118 esac
3119done
3120else
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Jonathan Santos5a45b152011-08-17 15:33:57 -04003124See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003125fi
3126rm -f conftest conftest$ac_cv_exeext
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128$as_echo "$ac_cv_exeext" >&6; }
3129
3130rm -f conftest.$ac_ext
3131EXEEXT=$ac_cv_exeext
3132ac_exeext=$EXEEXT
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
3135#include <stdio.h>
3136int
3137main ()
3138{
3139FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146ac_clean_files="$ac_clean_files conftest.out"
3147# Check that the compiler produces executables we can run. If not, either
3148# the compiler is broken, or we cross compile.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150$as_echo_n "checking whether we are cross compiling... " >&6; }
3151if test "$cross_compiling" != yes; then
3152 { { ac_try="$ac_link"
3153case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158$as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 if { ac_try='./conftest$ac_cv_exeext'
3164 { { case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; }; then
3174 cross_compiling=no
3175 else
3176 if test "$cross_compiling" = maybe; then
3177 cross_compiling=yes
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181as_fn_error $? "cannot run C compiled programs.
3182If you meant to cross compile, use \`--host'.
Jonathan Santos5a45b152011-08-17 15:33:57 -04003183See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003184 fi
3185 fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191ac_clean_files=$ac_clean_files_save
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193$as_echo_n "checking for suffix of object files... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003194if ${ac_cv_objext+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003195 $as_echo_n "(cached) " >&6
3196else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199
3200int
3201main ()
3202{
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208rm -f conftest.o conftest.obj
3209if { { ac_try="$ac_compile"
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227done
3228else
3229 $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "cannot compute suffix of object files: cannot compile
Jonathan Santos5a45b152011-08-17 15:33:57 -04003235See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003236fi
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_objext=$OBJEXT
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003245if ${ac_cv_c_compiler_gnu+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003246 $as_echo_n "(cached) " >&6
3247else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255 choke me
3256#endif
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264else
3265 ac_compiler_gnu=no
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275else
3276 GCC=
3277fi
3278ac_test_CFLAGS=${CFLAGS+set}
3279ac_save_CFLAGS=$CFLAGS
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281$as_echo_n "checking whether $CC accepts -g... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003282if ${ac_cv_prog_cc_g+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003283 $as_echo_n "(cached) " >&6
3284else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316
3317else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h. */
3322
3323int
3324main ()
3325{
3326
3327 ;
3328 return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342$as_echo "$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003360if ${ac_cv_prog_cc_c89+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003361 $as_echo_n "(cached) " >&6
3362else
3363 ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367#include <stdarg.h>
3368#include <stdio.h>
3369#include <sys/types.h>
3370#include <sys/stat.h>
3371/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372struct buf { int x; };
3373FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374static char *e (p, i)
3375 char **p;
3376 int i;
3377{
3378 return p[i];
3379}
3380static char *f (char * (*g) (char **, int), char **p, ...)
3381{
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3388}
3389
3390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
3399/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401#define FOO(x) 'x'
3402int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403
3404int test (int i, double x);
3405struct s1 {int (*f) (int a);};
3406struct s2 {int (*f) (double a);};
3407int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408int argc;
3409char **argv;
3410int
3411main ()
3412{
3413return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 ;
3415 return 0;
3416}
3417_ACEOF
3418for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420do
3421 CC="$ac_save_CC $ac_arg"
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_c89=$ac_arg
3424fi
3425rm -f core conftest.err conftest.$ac_objext
3426 test "x$ac_cv_prog_cc_c89" != "xno" && break
3427done
3428rm -f conftest.$ac_ext
3429CC=$ac_save_CC
3430
3431fi
3432# AC_CACHE_VAL
3433case "x$ac_cv_prog_cc_c89" in
3434 x)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3436$as_echo "none needed" >&6; } ;;
3437 xno)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3439$as_echo "unsupported" >&6; } ;;
3440 *)
3441 CC="$CC $ac_cv_prog_cc_c89"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3443$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3444esac
3445if test "x$ac_cv_prog_cc_c89" != xno; then :
3446
3447fi
3448
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454DEPDIR="${am__leading_dot}deps"
3455
3456ac_config_commands="$ac_config_commands depfiles"
3457
3458
3459am_make=${MAKE-make}
3460cat > confinc << 'END'
3461am__doit:
3462 @echo this is the am__doit target
3463.PHONY: am__doit
3464END
3465# If we don't find an include directive, just comment out the code.
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3467$as_echo_n "checking for style of include used by $am_make... " >&6; }
3468am__include="#"
3469am__quote=
3470_am_result=none
3471# First try GNU make style include.
3472echo "include confinc" > confmf
3473# Ignore all kinds of additional output from `make'.
3474case `$am_make -s -f confmf 2> /dev/null` in #(
3475*the\ am__doit\ target*)
3476 am__include=include
3477 am__quote=
3478 _am_result=GNU
3479 ;;
3480esac
3481# Now try BSD make style include.
3482if test "$am__include" = "#"; then
3483 echo '.include "confinc"' > confmf
3484 case `$am_make -s -f confmf 2> /dev/null` in #(
3485 *the\ am__doit\ target*)
3486 am__include=.include
3487 am__quote="\""
3488 _am_result=BSD
3489 ;;
3490 esac
3491fi
3492
3493
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3495$as_echo "$_am_result" >&6; }
3496rm -f confinc confmf
3497
3498# Check whether --enable-dependency-tracking was given.
3499if test "${enable_dependency_tracking+set}" = set; then :
3500 enableval=$enable_dependency_tracking;
3501fi
3502
3503if test "x$enable_dependency_tracking" != xno; then
3504 am_depcomp="$ac_aux_dir/depcomp"
3505 AMDEPBACKSLASH='\'
3506fi
3507 if test "x$enable_dependency_tracking" != xno; then
3508 AMDEP_TRUE=
3509 AMDEP_FALSE='#'
3510else
3511 AMDEP_TRUE='#'
3512 AMDEP_FALSE=
3513fi
3514
3515
3516
3517depcc="$CC" am_compiler_list=
3518
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3520$as_echo_n "checking dependency style of $depcc... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003521if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003522 $as_echo_n "(cached) " >&6
3523else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
3530 mkdir conftest.dir
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3534 cd conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3540 # directory.
3541 mkdir sub
3542
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3546 fi
3547 am__universal=false
3548 case " $depcc " in #(
3549 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3550 esac
3551
3552 for depmode in $am_compiler_list; do
3553 # Setup a source with many dependencies, because some compilers
3554 # like to wrap large dependency lists on column 80 (with \), and
3555 # we should not choose a depcomp mode which is confused by this.
3556 #
3557 # We need to recreate these files for each test, as the compiler may
3558 # overwrite some of them when testing with obscure command lines.
3559 # This happens at least with the AIX C compiler.
3560 : > sub/conftest.c
3561 for i in 1 2 3 4 5 6; do
3562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3564 # Solaris 8's {/usr,}/bin/sh.
3565 touch sub/conftst$i.h
3566 done
3567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3568
3569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3570 # mode. It turns out that the SunPro C++ compiler does not properly
3571 # handle `-M -o', and we need to detect this. Also, some Intel
3572 # versions had trouble with output in subdirs
3573 am__obj=sub/conftest.${OBJEXT-o}
3574 am__minus_obj="-o $am__obj"
3575 case $depmode in
3576 gcc)
3577 # This depmode causes a compiler race in universal mode.
3578 test "$am__universal" = false || continue
3579 ;;
3580 nosideeffect)
3581 # after this tag, mechanisms are not by side-effect, so they'll
3582 # only be used when explicitly requested
3583 if test "x$enable_dependency_tracking" = xyes; then
3584 continue
3585 else
3586 break
3587 fi
3588 ;;
3589 msvisualcpp | msvcmsys)
3590 # This compiler won't grok `-c -o', but also, the minuso test has
3591 # not run yet. These depmodes are late enough in the game, and
3592 # so weak that their functioning should not be impacted.
3593 am__obj=conftest.${OBJEXT-o}
3594 am__minus_obj=
3595 ;;
3596 none) break ;;
3597 esac
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=$am__obj \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CC_dependencies_compiler_type=$depmode
3617 break
3618 fi
3619 fi
3620 done
3621
3622 cd ..
3623 rm -rf conftest.dir
3624else
3625 am_cv_CC_dependencies_compiler_type=none
3626fi
3627
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3630$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3631CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3632
3633 if
3634 test "x$enable_dependency_tracking" != xno \
3635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636 am__fastdepCC_TRUE=
3637 am__fastdepCC_FALSE='#'
3638else
3639 am__fastdepCC_TRUE='#'
3640 am__fastdepCC_FALSE=
3641fi
3642
3643
3644
3645if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003650if ${ac_cv_prog_RANLIB+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003651 $as_echo_n "(cached) " >&6
3652else
3653 if test -n "$RANLIB"; then
3654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668 done
3669IFS=$as_save_IFS
3670
3671fi
3672fi
3673RANLIB=$ac_cv_prog_RANLIB
3674if test -n "$RANLIB"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3676$as_echo "$RANLIB" >&6; }
3677else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
3680fi
3681
3682
3683fi
3684if test -z "$ac_cv_prog_RANLIB"; then
3685 ac_ct_RANLIB=$RANLIB
3686 # Extract the first word of "ranlib", so it can be a program name with args.
3687set dummy ranlib; ac_word=$2
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003690if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003691 $as_echo_n "(cached) " >&6
3692else
3693 if test -n "$ac_ct_RANLIB"; then
3694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3695else
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_ac_ct_RANLIB="ranlib"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707done
3708 done
3709IFS=$as_save_IFS
3710
3711fi
3712fi
3713ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3714if test -n "$ac_ct_RANLIB"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3716$as_echo "$ac_ct_RANLIB" >&6; }
3717else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719$as_echo "no" >&6; }
3720fi
3721
3722 if test "x$ac_ct_RANLIB" = x; then
3723 RANLIB=":"
3724 else
3725 case $cross_compiling:$ac_tool_warned in
3726yes:)
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729ac_tool_warned=yes ;;
3730esac
3731 RANLIB=$ac_ct_RANLIB
3732 fi
3733else
3734 RANLIB="$ac_cv_prog_RANLIB"
3735fi
3736
3737
3738
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
3740$as_echo_n "checking for library containing crypt... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003741if ${ac_cv_search_crypt+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003742 $as_echo_n "(cached) " >&6
3743else
3744 ac_func_search_save_LIBS=$LIBS
3745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h. */
3747
3748/* Override any GCC internal prototype to avoid an error.
3749 Use char because int might match the return type of a GCC
3750 builtin and then its argument prototype would still apply. */
3751#ifdef __cplusplus
3752extern "C"
3753#endif
3754char crypt ();
3755int
3756main ()
3757{
3758return crypt ();
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763for ac_lib in '' crypt; do
3764 if test -z "$ac_lib"; then
3765 ac_res="none required"
3766 else
3767 ac_res=-l$ac_lib
3768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3769 fi
3770 if ac_fn_c_try_link "$LINENO"; then :
3771 ac_cv_search_crypt=$ac_res
3772fi
3773rm -f core conftest.err conftest.$ac_objext \
3774 conftest$ac_exeext
Jonathan Santos5a45b152011-08-17 15:33:57 -04003775 if ${ac_cv_search_crypt+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003776 break
3777fi
3778done
Jonathan Santos5a45b152011-08-17 15:33:57 -04003779if ${ac_cv_search_crypt+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003780
3781else
3782 ac_cv_search_crypt=no
3783fi
3784rm conftest.$ac_ext
3785LIBS=$ac_func_search_save_LIBS
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
3788$as_echo "$ac_cv_search_crypt" >&6; }
3789ac_res=$ac_cv_search_crypt
3790if test "$ac_res" != no; then :
3791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3792 LIBCRYPT="-lcrypt";
3793$as_echo "#define VTY_CRYPT_PW /**/" >>confdefs.h
3794
3795fi
3796
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gtp_new" >&5
3798$as_echo_n "checking for library containing gtp_new... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003799if ${ac_cv_search_gtp_new+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003800 $as_echo_n "(cached) " >&6
3801else
3802 ac_func_search_save_LIBS=$LIBS
3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805
3806/* Override any GCC internal prototype to avoid an error.
3807 Use char because int might match the return type of a GCC
3808 builtin and then its argument prototype would still apply. */
3809#ifdef __cplusplus
3810extern "C"
3811#endif
3812char gtp_new ();
3813int
3814main ()
3815{
3816return gtp_new ();
3817 ;
3818 return 0;
3819}
3820_ACEOF
3821for ac_lib in '' gtp; do
3822 if test -z "$ac_lib"; then
3823 ac_res="none required"
3824 else
3825 ac_res=-l$ac_lib
3826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3827 fi
3828 if ac_fn_c_try_link "$LINENO"; then :
3829 ac_cv_search_gtp_new=$ac_res
3830fi
3831rm -f core conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext
Jonathan Santos5a45b152011-08-17 15:33:57 -04003833 if ${ac_cv_search_gtp_new+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003834 break
3835fi
3836done
Jonathan Santos5a45b152011-08-17 15:33:57 -04003837if ${ac_cv_search_gtp_new+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003838
3839else
3840 ac_cv_search_gtp_new=no
3841fi
3842rm conftest.$ac_ext
3843LIBS=$ac_func_search_save_LIBS
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gtp_new" >&5
3846$as_echo "$ac_cv_search_gtp_new" >&6; }
3847ac_res=$ac_cv_search_gtp_new
3848if test "$ac_res" != no; then :
3849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3850 LIBCRYPT="-lgtp"; GPRS_LIBGTP=1
3851
3852fi
3853
3854
3855 if test "x$GPRS_LIBGTP" != "x"; then
3856 HAVE_LIBGTP_TRUE=
3857 HAVE_LIBGTP_FALSE='#'
3858else
3859 HAVE_LIBGTP_TRUE='#'
3860 HAVE_LIBGTP_FALSE=
3861fi
3862
3863
3864
3865
3866
3867
3868
3869
3870
Jonathan Santos5a45b152011-08-17 15:33:57 -04003871
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003872if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3875set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003878if ${ac_cv_path_PKG_CONFIG+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003879 $as_echo_n "(cached) " >&6
3880else
3881 case $PKG_CONFIG in
3882 [\\/]* | ?:[\\/]*)
3883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3884 ;;
3885 *)
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897done
3898 done
3899IFS=$as_save_IFS
3900
3901 ;;
3902esac
3903fi
3904PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3905if test -n "$PKG_CONFIG"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3907$as_echo "$PKG_CONFIG" >&6; }
3908else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
3911fi
3912
3913
3914fi
3915if test -z "$ac_cv_path_PKG_CONFIG"; then
3916 ac_pt_PKG_CONFIG=$PKG_CONFIG
3917 # Extract the first word of "pkg-config", so it can be a program name with args.
3918set dummy pkg-config; ac_word=$2
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04003921if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04003922 $as_echo_n "(cached) " >&6
3923else
3924 case $ac_pt_PKG_CONFIG in
3925 [\\/]* | ?:[\\/]*)
3926 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3927 ;;
3928 *)
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941 done
3942IFS=$as_save_IFS
3943
3944 ;;
3945esac
3946fi
3947ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3948if test -n "$ac_pt_PKG_CONFIG"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3950$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956 if test "x$ac_pt_PKG_CONFIG" = x; then
3957 PKG_CONFIG=""
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960yes:)
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963ac_tool_warned=yes ;;
3964esac
3965 PKG_CONFIG=$ac_pt_PKG_CONFIG
3966 fi
3967else
3968 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3969fi
3970
3971fi
3972if test -n "$PKG_CONFIG"; then
3973 _pkg_min_version=0.9.0
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3975$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3976 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3978$as_echo "yes" >&6; }
3979 else
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982 PKG_CONFIG=""
3983 fi
3984fi
3985# Check whether --enable-nat was given.
3986if test "${enable_nat+set}" = set; then :
3987 enableval=$enable_nat;
3988
3989pkg_failed=no
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOSCCP" >&5
3991$as_echo_n "checking for LIBOSMOSCCP... " >&6; }
3992
3993if test -n "$LIBOSMOSCCP_CFLAGS"; then
3994 pkg_cv_LIBOSMOSCCP_CFLAGS="$LIBOSMOSCCP_CFLAGS"
3995 elif test -n "$PKG_CONFIG"; then
3996 if test -n "$PKG_CONFIG" && \
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5
3998 ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; then
4002 pkg_cv_LIBOSMOSCCP_CFLAGS=`$PKG_CONFIG --cflags "libosmo-sccp >= 0.0.2" 2>/dev/null`
Jonathan Santos5a45b152011-08-17 15:33:57 -04004003 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004004else
4005 pkg_failed=yes
4006fi
4007 else
4008 pkg_failed=untried
4009fi
4010if test -n "$LIBOSMOSCCP_LIBS"; then
4011 pkg_cv_LIBOSMOSCCP_LIBS="$LIBOSMOSCCP_LIBS"
4012 elif test -n "$PKG_CONFIG"; then
4013 if test -n "$PKG_CONFIG" && \
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5
4015 ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then
4019 pkg_cv_LIBOSMOSCCP_LIBS=`$PKG_CONFIG --libs "libosmo-sccp >= 0.0.2" 2>/dev/null`
Jonathan Santos5a45b152011-08-17 15:33:57 -04004020 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004021else
4022 pkg_failed=yes
4023fi
4024 else
4025 pkg_failed=untried
4026fi
4027
4028
4029
4030if test $pkg_failed = yes; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
4033
4034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4035 _pkg_short_errors_supported=yes
4036else
4037 _pkg_short_errors_supported=no
4038fi
4039 if test $_pkg_short_errors_supported = yes; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004040 LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004041 else
Jonathan Santos5a45b152011-08-17 15:33:57 -04004042 LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004043 fi
4044 # Put the nasty error message in config.log where it belongs
4045 echo "$LIBOSMOSCCP_PKG_ERRORS" >&5
4046
4047 as_fn_error $? "Package requirements (libosmo-sccp >= 0.0.2) were not met:
4048
4049$LIBOSMOSCCP_PKG_ERRORS
4050
4051Consider adjusting the PKG_CONFIG_PATH environment variable if you
4052installed software in a non-standard prefix.
4053
4054Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS
4055and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config.
4056See the pkg-config man page for more details." "$LINENO" 5
4057elif test $pkg_failed = untried; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4063is in your PATH or set the PKG_CONFIG environment variable to the full
4064path to pkg-config.
4065
4066Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS
4067and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config.
4068See the pkg-config man page for more details.
4069
4070To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Jonathan Santos5a45b152011-08-17 15:33:57 -04004071See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004072else
4073 LIBOSMOSCCP_CFLAGS=$pkg_cv_LIBOSMOSCCP_CFLAGS
4074 LIBOSMOSCCP_LIBS=$pkg_cv_LIBOSMOSCCP_LIBS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076$as_echo "yes" >&6; }
4077
4078fi
4079 osmo_ac_build_nat="yes"
4080
4081else
4082
4083 osmo_ac_build_nat="no"
4084
4085fi
4086
4087 if test "x$osmo_ac_build_nat" = "xyes"; then
4088 BUILD_NAT_TRUE=
4089 BUILD_NAT_FALSE='#'
4090else
4091 BUILD_NAT_TRUE='#'
4092 BUILD_NAT_FALSE=
4093fi
4094
4095
4096# Check whether --enable-osmo-bsc was given.
4097if test "${enable_osmo_bsc+set}" = set; then :
4098 enableval=$enable_osmo_bsc;
4099
4100pkg_failed=no
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOSCCP" >&5
4102$as_echo_n "checking for LIBOSMOSCCP... " >&6; }
4103
4104if test -n "$LIBOSMOSCCP_CFLAGS"; then
4105 pkg_cv_LIBOSMOSCCP_CFLAGS="$LIBOSMOSCCP_CFLAGS"
4106 elif test -n "$PKG_CONFIG"; then
4107 if test -n "$PKG_CONFIG" && \
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5
4109 ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then
4113 pkg_cv_LIBOSMOSCCP_CFLAGS=`$PKG_CONFIG --cflags "libosmo-sccp >= 0.0.2" 2>/dev/null`
Jonathan Santos5a45b152011-08-17 15:33:57 -04004114 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004115else
4116 pkg_failed=yes
4117fi
4118 else
4119 pkg_failed=untried
4120fi
4121if test -n "$LIBOSMOSCCP_LIBS"; then
4122 pkg_cv_LIBOSMOSCCP_LIBS="$LIBOSMOSCCP_LIBS"
4123 elif test -n "$PKG_CONFIG"; then
4124 if test -n "$PKG_CONFIG" && \
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5
4126 ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5
4127 ac_status=$?
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }; then
4130 pkg_cv_LIBOSMOSCCP_LIBS=`$PKG_CONFIG --libs "libosmo-sccp >= 0.0.2" 2>/dev/null`
Jonathan Santos5a45b152011-08-17 15:33:57 -04004131 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004132else
4133 pkg_failed=yes
4134fi
4135 else
4136 pkg_failed=untried
4137fi
4138
4139
4140
4141if test $pkg_failed = yes; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
4144
4145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4146 _pkg_short_errors_supported=yes
4147else
4148 _pkg_short_errors_supported=no
4149fi
4150 if test $_pkg_short_errors_supported = yes; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004151 LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004152 else
Jonathan Santos5a45b152011-08-17 15:33:57 -04004153 LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004154 fi
4155 # Put the nasty error message in config.log where it belongs
4156 echo "$LIBOSMOSCCP_PKG_ERRORS" >&5
4157
4158 as_fn_error $? "Package requirements (libosmo-sccp >= 0.0.2) were not met:
4159
4160$LIBOSMOSCCP_PKG_ERRORS
4161
4162Consider adjusting the PKG_CONFIG_PATH environment variable if you
4163installed software in a non-standard prefix.
4164
4165Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS
4166and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config.
4167See the pkg-config man page for more details." "$LINENO" 5
4168elif test $pkg_failed = untried; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4174is in your PATH or set the PKG_CONFIG environment variable to the full
4175path to pkg-config.
4176
4177Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS
4178and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config.
4179See the pkg-config man page for more details.
4180
4181To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Jonathan Santos5a45b152011-08-17 15:33:57 -04004182See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004183else
4184 LIBOSMOSCCP_CFLAGS=$pkg_cv_LIBOSMOSCCP_CFLAGS
4185 LIBOSMOSCCP_LIBS=$pkg_cv_LIBOSMOSCCP_LIBS
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4187$as_echo "yes" >&6; }
4188
4189fi
4190 osmo_ac_build_bsc="yes"
4191
4192else
4193
4194 osmo_ac_build_bsc="no"
4195
4196fi
4197
4198 if test "x$osmo_ac_build_bsc" = "xyes"; then
4199 BUILD_BSC_TRUE=
4200 BUILD_BSC_FALSE='#'
4201else
4202 BUILD_BSC_TRUE='#'
4203 BUILD_BSC_FALSE=
4204fi
4205
4206
4207
4208pkg_failed=no
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOCORE" >&5
4210$as_echo_n "checking for LIBOSMOCORE... " >&6; }
4211
4212if test -n "$LIBOSMOCORE_CFLAGS"; then
4213 pkg_cv_LIBOSMOCORE_CFLAGS="$LIBOSMOCORE_CFLAGS"
4214 elif test -n "$PKG_CONFIG"; then
4215 if test -n "$PKG_CONFIG" && \
Jonathan Santos5a45b152011-08-17 15:33:57 -04004216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 0.3.2\""; } >&5
4217 ($PKG_CONFIG --exists --print-errors "libosmocore >= 0.3.2") 2>&5
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004218 ac_status=$?
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004221 pkg_cv_LIBOSMOCORE_CFLAGS=`$PKG_CONFIG --cflags "libosmocore >= 0.3.2" 2>/dev/null`
4222 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004223else
4224 pkg_failed=yes
4225fi
4226 else
4227 pkg_failed=untried
4228fi
4229if test -n "$LIBOSMOCORE_LIBS"; then
4230 pkg_cv_LIBOSMOCORE_LIBS="$LIBOSMOCORE_LIBS"
4231 elif test -n "$PKG_CONFIG"; then
4232 if test -n "$PKG_CONFIG" && \
Jonathan Santos5a45b152011-08-17 15:33:57 -04004233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 0.3.2\""; } >&5
4234 ($PKG_CONFIG --exists --print-errors "libosmocore >= 0.3.2") 2>&5
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004235 ac_status=$?
4236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4237 test $ac_status = 0; }; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004238 pkg_cv_LIBOSMOCORE_LIBS=`$PKG_CONFIG --libs "libosmocore >= 0.3.2" 2>/dev/null`
4239 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004240else
4241 pkg_failed=yes
4242fi
4243 else
4244 pkg_failed=untried
4245fi
4246
4247
4248
4249if test $pkg_failed = yes; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
4252
4253if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4254 _pkg_short_errors_supported=yes
4255else
4256 _pkg_short_errors_supported=no
4257fi
4258 if test $_pkg_short_errors_supported = yes; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004259 LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmocore >= 0.3.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004260 else
Jonathan Santos5a45b152011-08-17 15:33:57 -04004261 LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmocore >= 0.3.2" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004262 fi
4263 # Put the nasty error message in config.log where it belongs
4264 echo "$LIBOSMOCORE_PKG_ERRORS" >&5
4265
Jonathan Santos5a45b152011-08-17 15:33:57 -04004266 as_fn_error $? "Package requirements (libosmocore >= 0.3.2) were not met:
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004267
4268$LIBOSMOCORE_PKG_ERRORS
4269
4270Consider adjusting the PKG_CONFIG_PATH environment variable if you
4271installed software in a non-standard prefix.
4272
4273Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
4274and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
4275See the pkg-config man page for more details." "$LINENO" 5
4276elif test $pkg_failed = untried; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4282is in your PATH or set the PKG_CONFIG environment variable to the full
4283path to pkg-config.
4284
4285Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
4286and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
4287See the pkg-config man page for more details.
4288
4289To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Jonathan Santos5a45b152011-08-17 15:33:57 -04004290See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004291else
4292 LIBOSMOCORE_CFLAGS=$pkg_cv_LIBOSMOCORE_CFLAGS
4293 LIBOSMOCORE_LIBS=$pkg_cv_LIBOSMOCORE_LIBS
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295$as_echo "yes" >&6; }
4296
4297fi
4298
4299pkg_failed=no
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOVTY" >&5
4301$as_echo_n "checking for LIBOSMOVTY... " >&6; }
4302
4303if test -n "$LIBOSMOVTY_CFLAGS"; then
4304 pkg_cv_LIBOSMOVTY_CFLAGS="$LIBOSMOVTY_CFLAGS"
4305 elif test -n "$PKG_CONFIG"; then
4306 if test -n "$PKG_CONFIG" && \
Jonathan Santos5a45b152011-08-17 15:33:57 -04004307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 0.3.0\""; } >&5
4308 ($PKG_CONFIG --exists --print-errors "libosmovty >= 0.3.0") 2>&5
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004309 ac_status=$?
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004312 pkg_cv_LIBOSMOVTY_CFLAGS=`$PKG_CONFIG --cflags "libosmovty >= 0.3.0" 2>/dev/null`
4313 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004314else
4315 pkg_failed=yes
4316fi
4317 else
4318 pkg_failed=untried
4319fi
4320if test -n "$LIBOSMOVTY_LIBS"; then
4321 pkg_cv_LIBOSMOVTY_LIBS="$LIBOSMOVTY_LIBS"
4322 elif test -n "$PKG_CONFIG"; then
4323 if test -n "$PKG_CONFIG" && \
Jonathan Santos5a45b152011-08-17 15:33:57 -04004324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 0.3.0\""; } >&5
4325 ($PKG_CONFIG --exists --print-errors "libosmovty >= 0.3.0") 2>&5
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004329 pkg_cv_LIBOSMOVTY_LIBS=`$PKG_CONFIG --libs "libosmovty >= 0.3.0" 2>/dev/null`
4330 test "x$?" != "x0" && pkg_failed=yes
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004331else
4332 pkg_failed=yes
4333fi
4334 else
4335 pkg_failed=untried
4336fi
4337
4338
4339
4340if test $pkg_failed = yes; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343
4344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4345 _pkg_short_errors_supported=yes
4346else
4347 _pkg_short_errors_supported=no
4348fi
4349 if test $_pkg_short_errors_supported = yes; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004350 LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmovty >= 0.3.0" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004351 else
Jonathan Santos5a45b152011-08-17 15:33:57 -04004352 LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmovty >= 0.3.0" 2>&1`
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004353 fi
4354 # Put the nasty error message in config.log where it belongs
4355 echo "$LIBOSMOVTY_PKG_ERRORS" >&5
4356
Jonathan Santos5a45b152011-08-17 15:33:57 -04004357 as_fn_error $? "Package requirements (libosmovty >= 0.3.0) were not met:
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004358
4359$LIBOSMOVTY_PKG_ERRORS
4360
4361Consider adjusting the PKG_CONFIG_PATH environment variable if you
4362installed software in a non-standard prefix.
4363
4364Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS
4365and LIBOSMOVTY_LIBS to avoid the need to call pkg-config.
4366See the pkg-config man page for more details." "$LINENO" 5
4367elif test $pkg_failed = untried; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369$as_echo "no" >&6; }
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4373is in your PATH or set the PKG_CONFIG environment variable to the full
4374path to pkg-config.
4375
4376Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS
4377and LIBOSMOVTY_LIBS to avoid the need to call pkg-config.
4378See the pkg-config man page for more details.
4379
4380To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Jonathan Santos5a45b152011-08-17 15:33:57 -04004381See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004382else
4383 LIBOSMOVTY_CFLAGS=$pkg_cv_LIBOSMOVTY_CFLAGS
4384 LIBOSMOVTY_LIBS=$pkg_cv_LIBOSMOVTY_LIBS
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386$as_echo "yes" >&6; }
4387
4388fi
4389
Jonathan Santos5a45b152011-08-17 15:33:57 -04004390pkg_failed=no
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOGSM" >&5
4392$as_echo_n "checking for LIBOSMOGSM... " >&6; }
4393
4394if test -n "$LIBOSMOGSM_CFLAGS"; then
4395 pkg_cv_LIBOSMOGSM_CFLAGS="$LIBOSMOGSM_CFLAGS"
4396 elif test -n "$PKG_CONFIG"; then
4397 if test -n "$PKG_CONFIG" && \
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 0.3.0\""; } >&5
4399 ($PKG_CONFIG --exists --print-errors "libosmogsm >= 0.3.0") 2>&5
4400 ac_status=$?
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }; then
4403 pkg_cv_LIBOSMOGSM_CFLAGS=`$PKG_CONFIG --cflags "libosmogsm >= 0.3.0" 2>/dev/null`
4404 test "x$?" != "x0" && pkg_failed=yes
4405else
4406 pkg_failed=yes
4407fi
4408 else
4409 pkg_failed=untried
4410fi
4411if test -n "$LIBOSMOGSM_LIBS"; then
4412 pkg_cv_LIBOSMOGSM_LIBS="$LIBOSMOGSM_LIBS"
4413 elif test -n "$PKG_CONFIG"; then
4414 if test -n "$PKG_CONFIG" && \
4415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 0.3.0\""; } >&5
4416 ($PKG_CONFIG --exists --print-errors "libosmogsm >= 0.3.0") 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; then
4420 pkg_cv_LIBOSMOGSM_LIBS=`$PKG_CONFIG --libs "libosmogsm >= 0.3.0" 2>/dev/null`
4421 test "x$?" != "x0" && pkg_failed=yes
4422else
4423 pkg_failed=yes
4424fi
4425 else
4426 pkg_failed=untried
4427fi
4428
4429
4430
4431if test $pkg_failed = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434
4435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4436 _pkg_short_errors_supported=yes
4437else
4438 _pkg_short_errors_supported=no
4439fi
4440 if test $_pkg_short_errors_supported = yes; then
4441 LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmogsm >= 0.3.0" 2>&1`
4442 else
4443 LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmogsm >= 0.3.0" 2>&1`
4444 fi
4445 # Put the nasty error message in config.log where it belongs
4446 echo "$LIBOSMOGSM_PKG_ERRORS" >&5
4447
4448 as_fn_error $? "Package requirements (libosmogsm >= 0.3.0) were not met:
4449
4450$LIBOSMOGSM_PKG_ERRORS
4451
4452Consider adjusting the PKG_CONFIG_PATH environment variable if you
4453installed software in a non-standard prefix.
4454
4455Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS
4456and LIBOSMOGSM_LIBS to avoid the need to call pkg-config.
4457See the pkg-config man page for more details." "$LINENO" 5
4458elif test $pkg_failed = untried; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4464is in your PATH or set the PKG_CONFIG environment variable to the full
4465path to pkg-config.
4466
4467Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS
4468and LIBOSMOGSM_LIBS to avoid the need to call pkg-config.
4469See the pkg-config man page for more details.
4470
4471To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4472See \`config.log' for more details" "$LINENO" 5; }
4473else
4474 LIBOSMOGSM_CFLAGS=$pkg_cv_LIBOSMOGSM_CFLAGS
4475 LIBOSMOGSM_LIBS=$pkg_cv_LIBOSMOGSM_LIBS
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4477$as_echo "yes" >&6; }
4478
4479fi
4480
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004481ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4487$as_echo_n "checking how to run the C preprocessor... " >&6; }
4488# On Suns, sometimes $CPP names a directory.
4489if test -n "$CPP" && test -d "$CPP"; then
4490 CPP=
4491fi
4492if test -z "$CPP"; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04004493 if ${ac_cv_prog_CPP+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004494 $as_echo_n "(cached) " >&6
4495else
4496 # Double quotes because CPP needs to be expanded
4497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4498 do
4499 ac_preproc_ok=false
4500for ac_c_preproc_warn_flag in '' yes
4501do
4502 # Use a header file that comes with gcc, so configuring glibc
4503 # with a fresh cross-compiler works.
4504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 # <limits.h> exists even on freestanding compilers.
4506 # On the NeXT, cc -E runs the code through the compiler's parser,
4507 # not just through cpp. "Syntax error" is here to catch this case.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h. */
4510#ifdef __STDC__
4511# include <limits.h>
4512#else
4513# include <assert.h>
4514#endif
4515 Syntax error
4516_ACEOF
4517if ac_fn_c_try_cpp "$LINENO"; then :
4518
4519else
4520 # Broken: fails on valid input.
4521continue
4522fi
4523rm -f conftest.err conftest.i conftest.$ac_ext
4524
4525 # OK, works on sane cases. Now check whether nonexistent headers
4526 # can be detected and how.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h. */
4529#include <ac_nonexistent.h>
4530_ACEOF
4531if ac_fn_c_try_cpp "$LINENO"; then :
4532 # Broken: success on invalid input.
4533continue
4534else
4535 # Passes both tests.
4536ac_preproc_ok=:
4537break
4538fi
4539rm -f conftest.err conftest.i conftest.$ac_ext
4540
4541done
4542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543rm -f conftest.i conftest.err conftest.$ac_ext
4544if $ac_preproc_ok; then :
4545 break
4546fi
4547
4548 done
4549 ac_cv_prog_CPP=$CPP
4550
4551fi
4552 CPP=$ac_cv_prog_CPP
4553else
4554 ac_cv_prog_CPP=$CPP
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4557$as_echo "$CPP" >&6; }
4558ac_preproc_ok=false
4559for ac_c_preproc_warn_flag in '' yes
4560do
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h. */
4569#ifdef __STDC__
4570# include <limits.h>
4571#else
4572# include <assert.h>
4573#endif
4574 Syntax error
4575_ACEOF
4576if ac_fn_c_try_cpp "$LINENO"; then :
4577
4578else
4579 # Broken: fails on valid input.
4580continue
4581fi
4582rm -f conftest.err conftest.i conftest.$ac_ext
4583
4584 # OK, works on sane cases. Now check whether nonexistent headers
4585 # can be detected and how.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
4588#include <ac_nonexistent.h>
4589_ACEOF
4590if ac_fn_c_try_cpp "$LINENO"; then :
4591 # Broken: success on invalid input.
4592continue
4593else
4594 # Passes both tests.
4595ac_preproc_ok=:
4596break
4597fi
4598rm -f conftest.err conftest.i conftest.$ac_ext
4599
4600done
4601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602rm -f conftest.i conftest.err conftest.$ac_ext
4603if $ac_preproc_ok; then :
4604
4605else
4606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4608as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Jonathan Santos5a45b152011-08-17 15:33:57 -04004609See \`config.log' for more details" "$LINENO" 5; }
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004610fi
4611
4612ac_ext=c
4613ac_cpp='$CPP $CPPFLAGS'
4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4620$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04004621if ${ac_cv_path_GREP+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004622 $as_echo_n "(cached) " >&6
4623else
4624 if test -z "$GREP"; then
4625 ac_path_GREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in grep ggrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4636# Check for GNU ac_path_GREP and select it if it is found.
4637 # Check for GNU $ac_path_GREP
4638case `"$ac_path_GREP" --version 2>&1` in
4639*GNU*)
4640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4641*)
4642 ac_count=0
4643 $as_echo_n 0123456789 >"conftest.in"
4644 while :
4645 do
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'GREP' >> "conftest.nl"
4650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_GREP="$ac_path_GREP"
4656 ac_path_GREP_max=$ac_count
4657 fi
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662esac
4663
4664 $ac_path_GREP_found && break 3
4665 done
4666 done
4667 done
4668IFS=$as_save_IFS
4669 if test -z "$ac_cv_path_GREP"; then
4670 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 fi
4672else
4673 ac_cv_path_GREP=$GREP
4674fi
4675
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4678$as_echo "$ac_cv_path_GREP" >&6; }
4679 GREP="$ac_cv_path_GREP"
4680
4681
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4683$as_echo_n "checking for egrep... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04004684if ${ac_cv_path_EGREP+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004685 $as_echo_n "(cached) " >&6
4686else
4687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4688 then ac_cv_path_EGREP="$GREP -E"
4689 else
4690 if test -z "$EGREP"; then
4691 ac_path_EGREP_found=false
4692 # Loop through the user's path and test for each of PROGNAME-LIST
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4695do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_prog in egrep; do
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4702# Check for GNU ac_path_EGREP and select it if it is found.
4703 # Check for GNU $ac_path_EGREP
4704case `"$ac_path_EGREP" --version 2>&1` in
4705*GNU*)
4706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4707*)
4708 ac_count=0
4709 $as_echo_n 0123456789 >"conftest.in"
4710 while :
4711 do
4712 cat "conftest.in" "conftest.in" >"conftest.tmp"
4713 mv "conftest.tmp" "conftest.in"
4714 cp "conftest.in" "conftest.nl"
4715 $as_echo 'EGREP' >> "conftest.nl"
4716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4718 as_fn_arith $ac_count + 1 && ac_count=$as_val
4719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4720 # Best one so far, save it but keep looking for a better one
4721 ac_cv_path_EGREP="$ac_path_EGREP"
4722 ac_path_EGREP_max=$ac_count
4723 fi
4724 # 10*(2^10) chars as input seems more than enough
4725 test $ac_count -gt 10 && break
4726 done
4727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4728esac
4729
4730 $ac_path_EGREP_found && break 3
4731 done
4732 done
4733 done
4734IFS=$as_save_IFS
4735 if test -z "$ac_cv_path_EGREP"; then
4736 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 fi
4738else
4739 ac_cv_path_EGREP=$EGREP
4740fi
4741
4742 fi
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4745$as_echo "$ac_cv_path_EGREP" >&6; }
4746 EGREP="$ac_cv_path_EGREP"
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4750$as_echo_n "checking for ANSI C header files... " >&6; }
Jonathan Santos5a45b152011-08-17 15:33:57 -04004751if ${ac_cv_header_stdc+:} false; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004752 $as_echo_n "(cached) " >&6
4753else
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h. */
4756#include <stdlib.h>
4757#include <stdarg.h>
4758#include <string.h>
4759#include <float.h>
4760
4761int
4762main ()
4763{
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_header_stdc=yes
4771else
4772 ac_cv_header_stdc=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775
4776if test $ac_cv_header_stdc = yes; then
4777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
4780#include <string.h>
4781
4782_ACEOF
4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "memchr" >/dev/null 2>&1; then :
4785
4786else
4787 ac_cv_header_stdc=no
4788fi
4789rm -f conftest*
4790
4791fi
4792
4793if test $ac_cv_header_stdc = yes; then
4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797#include <stdlib.h>
4798
4799_ACEOF
4800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "free" >/dev/null 2>&1; then :
4802
4803else
4804 ac_cv_header_stdc=no
4805fi
4806rm -f conftest*
4807
4808fi
4809
4810if test $ac_cv_header_stdc = yes; then
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4812 if test "$cross_compiling" = yes; then :
4813 :
4814else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#include <ctype.h>
4818#include <stdlib.h>
4819#if ((' ' & 0x0FF) == 0x020)
4820# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822#else
4823# define ISLOWER(c) \
4824 (('a' <= (c) && (c) <= 'i') \
4825 || ('j' <= (c) && (c) <= 'r') \
4826 || ('s' <= (c) && (c) <= 'z'))
4827# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828#endif
4829
4830#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4831int
4832main ()
4833{
4834 int i;
4835 for (i = 0; i < 256; i++)
4836 if (XOR (islower (i), ISLOWER (i))
4837 || toupper (i) != TOUPPER (i))
4838 return 2;
4839 return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_run "$LINENO"; then :
4843
4844else
4845 ac_cv_header_stdc=no
4846fi
4847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4848 conftest.$ac_objext conftest.beam conftest.$ac_ext
4849fi
4850
4851fi
4852fi
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4854$as_echo "$ac_cv_header_stdc" >&6; }
4855if test $ac_cv_header_stdc = yes; then
4856
4857$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4858
4859fi
4860
4861# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4862for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4863 inttypes.h stdint.h unistd.h
4864do :
4865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4867"
4868if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4869 cat >>confdefs.h <<_ACEOF
4870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871_ACEOF
4872
4873fi
4874
4875done
4876
4877
4878for ac_header in dahdi/user.h
4879do :
4880 ac_fn_c_check_header_mongrel "$LINENO" "dahdi/user.h" "ac_cv_header_dahdi_user_h" "$ac_includes_default"
Jonathan Santos5a45b152011-08-17 15:33:57 -04004881if test "x$ac_cv_header_dahdi_user_h" = xyes; then :
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004882 cat >>confdefs.h <<_ACEOF
4883#define HAVE_DAHDI_USER_H 1
4884_ACEOF
4885
4886else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DAHDI input driver will not be built" >&5
4888$as_echo "$as_me: WARNING: DAHDI input driver will not be built" >&2;}
4889fi
4890
4891done
4892
Jonathan Santos5a45b152011-08-17 15:33:57 -04004893for ac_header in dbi/dbd.h
4894do :
4895 ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbd.h" "ac_cv_header_dbi_dbd_h" "$ac_includes_default"
4896if test "x$ac_cv_header_dbi_dbd_h" = xyes; then :
4897 cat >>confdefs.h <<_ACEOF
4898#define HAVE_DBI_DBD_H 1
4899_ACEOF
4900
4901else
4902 as_fn_error $? "DBI library is not installed" "$LINENO" 5
4903fi
4904
4905done
4906
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004907
4908
4909
4910# The following test is taken from WebKit's webkit.m4
4911saved_CFLAGS="$CFLAGS"
4912CFLAGS="$CFLAGS -fvisibility=hidden "
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
4914$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
4915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h. */
4917char foo;
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921$as_echo "yes" >&6; }
4922 SYMBOL_VISIBILITY="-fvisibility=hidden"
4923else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928CFLAGS="$saved_CFLAGS"
4929
4930
4931# Coverage build taken from WebKit's configure.in
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable code coverage support" >&5
4933$as_echo_n "checking whether to enable code coverage support... " >&6; }
4934# Check whether --enable-coverage was given.
4935if test "${enable_coverage+set}" = set; then :
4936 enableval=$enable_coverage;
4937else
4938 enable_coverage="no"
4939fi
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
4942$as_echo "$enable_coverage" >&6; }
4943if test "$enable_coverage" = "yes"; then
4944 COVERAGE_CFLAGS="-ftest-coverage -fprofile-arcs"
4945 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
4946
4947
4948fi
4949
4950
4951ac_config_headers="$ac_config_headers bscconfig.h"
4952
4953
Jonathan Santos5a45b152011-08-17 15:33:57 -04004954ac_config_files="$ac_config_files openbsc.pc include/openbsc/Makefile include/Makefile src/Makefile src/libtrau/Makefile src/libabis/Makefile src/libbsc/Makefile src/libmsc/Makefile src/libmgcp/Makefile src/libcommon/Makefile src/osmo-nitb/Makefile src/osmo-bsc/Makefile src/osmo-bsc_nat/Makefile src/osmo-bsc_mgcp/Makefile src/ipaccess/Makefile src/utils/Makefile src/libgb/Makefile src/gprs/Makefile tests/Makefile tests/debug/Makefile tests/gsm0408/Makefile tests/db/Makefile tests/channel/Makefile tests/bsc-nat/Makefile tests/mgcp/Makefile doc/Makefile doc/examples/Makefile Makefile"
Jonathan Santos03fd8d02011-05-25 13:54:02 -04004955
4956cat >confcache <<\_ACEOF
4957# This file is a shell script that caches the results of configure
4958# tests run on this system so they can be shared between configure
4959# scripts and configure runs, see configure's option --config-cache.
4960# It is not useful on other systems. If it contains results you don't
4961# want to keep, you may remove or edit it.
4962#
4963# config.status only pays attention to the cache file if you give it
4964# the --recheck option to rerun configure.
4965#
4966# `ac_cv_env_foo' variables (set or unset) will be overridden when
4967# loading this file, other *unset* `ac_cv_foo' will be assigned the
4968# following values.
4969
4970_ACEOF
4971
4972# The following way of writing the cache mishandles newlines in values,
4973# but we know of no workaround that is simple, portable, and efficient.
4974# So, we kill variables containing newlines.
4975# Ultrix sh set writes to stderr and can't be redirected directly,
4976# and sets the high bit in the cache file unless we assign to the vars.
4977(
4978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4979 eval ac_val=\$$ac_var
4980 case $ac_val in #(
4981 *${as_nl}*)
4982 case $ac_var in #(
4983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4984$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4985 esac
4986 case $ac_var in #(
4987 _ | IFS | as_nl) ;; #(
4988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4989 *) { eval $ac_var=; unset $ac_var;} ;;
4990 esac ;;
4991 esac
4992 done
4993
4994 (set) 2>&1 |
4995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4996 *${as_nl}ac_space=\ *)
4997 # `set' does not quote correctly, so add quotes: double-quote
4998 # substitution turns \\\\ into \\, and sed turns \\ into \.
4999 sed -n \
5000 "s/'/'\\\\''/g;
5001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5002 ;; #(
5003 *)
5004 # `set' quotes correctly as required by POSIX, so do not add quotes.
5005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5006 ;;
5007 esac |
5008 sort
5009) |
5010 sed '
5011 /^ac_cv_env_/b end
5012 t clear
5013 :clear
5014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5015 t end
5016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5017 :end' >>confcache
5018if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5019 if test -w "$cache_file"; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04005020 if test "x$cache_file" != "x/dev/null"; then
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5022$as_echo "$as_me: updating cache $cache_file" >&6;}
Jonathan Santos5a45b152011-08-17 15:33:57 -04005023 if test ! -f "$cache_file" || test -h "$cache_file"; then
5024 cat confcache >"$cache_file"
5025 else
5026 case $cache_file in #(
5027 */* | ?:*)
5028 mv -f confcache "$cache_file"$$ &&
5029 mv -f "$cache_file"$$ "$cache_file" ;; #(
5030 *)
5031 mv -f confcache "$cache_file" ;;
5032 esac
5033 fi
5034 fi
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5037$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5038 fi
5039fi
5040rm -f confcache
5041
5042test "x$prefix" = xNONE && prefix=$ac_default_prefix
5043# Let make expand exec_prefix.
5044test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5045
5046DEFS=-DHAVE_CONFIG_H
5047
5048ac_libobjs=
5049ac_ltlibobjs=
5050U=
5051for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5052 # 1. Remove the extension, and $U if already installed.
5053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5054 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5056 # will be set to the directory where LIBOBJS objects are built.
5057 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5058 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5059done
5060LIBOBJS=$ac_libobjs
5061
5062LTLIBOBJS=$ac_ltlibobjs
5063
5064
5065 if test -n "$EXEEXT"; then
5066 am__EXEEXT_TRUE=
5067 am__EXEEXT_FALSE='#'
5068else
5069 am__EXEEXT_TRUE='#'
5070 am__EXEEXT_FALSE=
5071fi
5072
5073if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5074 as_fn_error $? "conditional \"AMDEP\" was never defined.
5075Usually this means the macro was only invoked conditionally." "$LINENO" 5
5076fi
5077if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5078 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5079Usually this means the macro was only invoked conditionally." "$LINENO" 5
5080fi
5081if test -z "${HAVE_LIBGTP_TRUE}" && test -z "${HAVE_LIBGTP_FALSE}"; then
5082 as_fn_error $? "conditional \"HAVE_LIBGTP\" was never defined.
5083Usually this means the macro was only invoked conditionally." "$LINENO" 5
5084fi
5085if test -z "${BUILD_NAT_TRUE}" && test -z "${BUILD_NAT_FALSE}"; then
5086 as_fn_error $? "conditional \"BUILD_NAT\" was never defined.
5087Usually this means the macro was only invoked conditionally." "$LINENO" 5
5088fi
5089if test -z "${BUILD_BSC_TRUE}" && test -z "${BUILD_BSC_FALSE}"; then
5090 as_fn_error $? "conditional \"BUILD_BSC\" was never defined.
5091Usually this means the macro was only invoked conditionally." "$LINENO" 5
5092fi
5093
Jonathan Santos5a45b152011-08-17 15:33:57 -04005094: "${CONFIG_STATUS=./config.status}"
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005095ac_write_fail=0
5096ac_clean_files_save=$ac_clean_files
5097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5099$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5100as_write_fail=0
5101cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5102#! $SHELL
5103# Generated by $as_me.
5104# Run this file to recreate the current configuration.
5105# Compiler output produced by configure, useful for debugging
5106# configure, is in config.log if it exists.
5107
5108debug=false
5109ac_cs_recheck=false
5110ac_cs_silent=false
5111
5112SHELL=\${CONFIG_SHELL-$SHELL}
5113export SHELL
5114_ASEOF
5115cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5116## -------------------- ##
5117## M4sh Initialization. ##
5118## -------------------- ##
5119
5120# Be more Bourne compatible
5121DUALCASE=1; export DUALCASE # for MKS sh
5122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5123 emulate sh
5124 NULLCMD=:
5125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5126 # is contrary to our usage. Disable this feature.
5127 alias -g '${1+"$@"}'='"$@"'
5128 setopt NO_GLOB_SUBST
5129else
5130 case `(set -o) 2>/dev/null` in #(
5131 *posix*) :
5132 set -o posix ;; #(
5133 *) :
5134 ;;
5135esac
5136fi
5137
5138
5139as_nl='
5140'
5141export as_nl
5142# Printing a long string crashes Solaris 7 /usr/bin/printf.
5143as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5146# Prefer a ksh shell builtin over an external printf program on Solaris,
5147# but without wasting forks for bash or zsh.
5148if test -z "$BASH_VERSION$ZSH_VERSION" \
5149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5150 as_echo='print -r --'
5151 as_echo_n='print -rn --'
5152elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5153 as_echo='printf %s\n'
5154 as_echo_n='printf %s'
5155else
5156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5158 as_echo_n='/usr/ucb/echo -n'
5159 else
5160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5161 as_echo_n_body='eval
5162 arg=$1;
5163 case $arg in #(
5164 *"$as_nl"*)
5165 expr "X$arg" : "X\\(.*\\)$as_nl";
5166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5167 esac;
5168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5169 '
5170 export as_echo_n_body
5171 as_echo_n='sh -c $as_echo_n_body as_echo'
5172 fi
5173 export as_echo_body
5174 as_echo='sh -c $as_echo_body as_echo'
5175fi
5176
5177# The user is always right.
5178if test "${PATH_SEPARATOR+set}" != set; then
5179 PATH_SEPARATOR=:
5180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5182 PATH_SEPARATOR=';'
5183 }
5184fi
5185
5186
5187# IFS
5188# We need space, tab and new line, in precisely that order. Quoting is
5189# there to prevent editors from complaining about space-tab.
5190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5191# splitting by setting IFS to empty value.)
5192IFS=" "" $as_nl"
5193
5194# Find who we are. Look in the path if we contain no directory separator.
Jonathan Santos5a45b152011-08-17 15:33:57 -04005195as_myself=
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005196case $0 in #((
5197 *[\\/]* ) as_myself=$0 ;;
5198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5204 done
5205IFS=$as_save_IFS
5206
5207 ;;
5208esac
5209# We did not find ourselves, most probably we were run as `sh COMMAND'
5210# in which case we are not to be found in the path.
5211if test "x$as_myself" = x; then
5212 as_myself=$0
5213fi
5214if test ! -f "$as_myself"; then
5215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5216 exit 1
5217fi
5218
5219# Unset variables that we do not need and which cause bugs (e.g. in
5220# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5221# suppresses any "Segmentation fault" message there. '((' could
5222# trigger a bug in pdksh 5.2.14.
5223for as_var in BASH_ENV ENV MAIL MAILPATH
5224do eval test x\${$as_var+set} = xset \
5225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5226done
5227PS1='$ '
5228PS2='> '
5229PS4='+ '
5230
5231# NLS nuisances.
5232LC_ALL=C
5233export LC_ALL
5234LANGUAGE=C
5235export LANGUAGE
5236
5237# CDPATH.
5238(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5239
5240
5241# as_fn_error STATUS ERROR [LINENO LOG_FD]
5242# ----------------------------------------
5243# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5244# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5245# script with STATUS, using 1 if that was 0.
5246as_fn_error ()
5247{
5248 as_status=$1; test $as_status -eq 0 && as_status=1
5249 if test "$4"; then
5250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5252 fi
5253 $as_echo "$as_me: error: $2" >&2
5254 as_fn_exit $as_status
5255} # as_fn_error
5256
5257
5258# as_fn_set_status STATUS
5259# -----------------------
5260# Set $? to STATUS, without forking.
5261as_fn_set_status ()
5262{
5263 return $1
5264} # as_fn_set_status
5265
5266# as_fn_exit STATUS
5267# -----------------
5268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5269as_fn_exit ()
5270{
5271 set +e
5272 as_fn_set_status $1
5273 exit $1
5274} # as_fn_exit
5275
5276# as_fn_unset VAR
5277# ---------------
5278# Portably unset VAR.
5279as_fn_unset ()
5280{
5281 { eval $1=; unset $1;}
5282}
5283as_unset=as_fn_unset
5284# as_fn_append VAR VALUE
5285# ----------------------
5286# Append the text in VALUE to the end of the definition contained in VAR. Take
5287# advantage of any shell optimizations that allow amortized linear growth over
5288# repeated appends, instead of the typical quadratic growth present in naive
5289# implementations.
5290if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5291 eval 'as_fn_append ()
5292 {
5293 eval $1+=\$2
5294 }'
5295else
5296 as_fn_append ()
5297 {
5298 eval $1=\$$1\$2
5299 }
5300fi # as_fn_append
5301
5302# as_fn_arith ARG...
5303# ------------------
5304# Perform arithmetic evaluation on the ARGs, and store the result in the
5305# global $as_val. Take advantage of shells that can avoid forks. The arguments
5306# must be portable across $(()) and expr.
5307if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5308 eval 'as_fn_arith ()
5309 {
5310 as_val=$(( $* ))
5311 }'
5312else
5313 as_fn_arith ()
5314 {
5315 as_val=`expr "$@" || test $? -eq 1`
5316 }
5317fi # as_fn_arith
5318
5319
5320if expr a : '\(a\)' >/dev/null 2>&1 &&
5321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5322 as_expr=expr
5323else
5324 as_expr=false
5325fi
5326
5327if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5328 as_basename=basename
5329else
5330 as_basename=false
5331fi
5332
5333if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5334 as_dirname=dirname
5335else
5336 as_dirname=false
5337fi
5338
5339as_me=`$as_basename -- "$0" ||
5340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5341 X"$0" : 'X\(//\)$' \| \
5342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5343$as_echo X/"$0" |
5344 sed '/^.*\/\([^/][^/]*\)\/*$/{
5345 s//\1/
5346 q
5347 }
5348 /^X\/\(\/\/\)$/{
5349 s//\1/
5350 q
5351 }
5352 /^X\/\(\/\).*/{
5353 s//\1/
5354 q
5355 }
5356 s/.*/./; q'`
5357
5358# Avoid depending upon Character Ranges.
5359as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5360as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5361as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5362as_cr_digits='0123456789'
5363as_cr_alnum=$as_cr_Letters$as_cr_digits
5364
5365ECHO_C= ECHO_N= ECHO_T=
5366case `echo -n x` in #(((((
5367-n*)
5368 case `echo 'xy\c'` in
5369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5370 xy) ECHO_C='\c';;
5371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5372 ECHO_T=' ';;
5373 esac;;
5374*)
5375 ECHO_N='-n';;
5376esac
5377
5378rm -f conf$$ conf$$.exe conf$$.file
5379if test -d conf$$.dir; then
5380 rm -f conf$$.dir/conf$$.file
5381else
5382 rm -f conf$$.dir
5383 mkdir conf$$.dir 2>/dev/null
5384fi
5385if (echo >conf$$.file) 2>/dev/null; then
5386 if ln -s conf$$.file conf$$ 2>/dev/null; then
5387 as_ln_s='ln -s'
5388 # ... but there are two gotchas:
5389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5391 # In both cases, we have to default to `cp -p'.
5392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5393 as_ln_s='cp -p'
5394 elif ln conf$$.file conf$$ 2>/dev/null; then
5395 as_ln_s=ln
5396 else
5397 as_ln_s='cp -p'
5398 fi
5399else
5400 as_ln_s='cp -p'
5401fi
5402rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5403rmdir conf$$.dir 2>/dev/null
5404
5405
5406# as_fn_mkdir_p
5407# -------------
5408# Create "$as_dir" as a directory, including parents if necessary.
5409as_fn_mkdir_p ()
5410{
5411
5412 case $as_dir in #(
5413 -*) as_dir=./$as_dir;;
5414 esac
5415 test -d "$as_dir" || eval $as_mkdir_p || {
5416 as_dirs=
5417 while :; do
5418 case $as_dir in #(
5419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5420 *) as_qdir=$as_dir;;
5421 esac
5422 as_dirs="'$as_qdir' $as_dirs"
5423 as_dir=`$as_dirname -- "$as_dir" ||
5424$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5425 X"$as_dir" : 'X\(//\)[^/]' \| \
5426 X"$as_dir" : 'X\(//\)$' \| \
5427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5428$as_echo X"$as_dir" |
5429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5430 s//\1/
5431 q
5432 }
5433 /^X\(\/\/\)[^/].*/{
5434 s//\1/
5435 q
5436 }
5437 /^X\(\/\/\)$/{
5438 s//\1/
5439 q
5440 }
5441 /^X\(\/\).*/{
5442 s//\1/
5443 q
5444 }
5445 s/.*/./; q'`
5446 test -d "$as_dir" && break
5447 done
5448 test -z "$as_dirs" || eval "mkdir $as_dirs"
5449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5450
5451
5452} # as_fn_mkdir_p
5453if mkdir -p . 2>/dev/null; then
5454 as_mkdir_p='mkdir -p "$as_dir"'
5455else
5456 test -d ./-p && rmdir ./-p
5457 as_mkdir_p=false
5458fi
5459
5460if test -x / >/dev/null 2>&1; then
5461 as_test_x='test -x'
5462else
5463 if ls -dL / >/dev/null 2>&1; then
5464 as_ls_L_option=L
5465 else
5466 as_ls_L_option=
5467 fi
5468 as_test_x='
5469 eval sh -c '\''
5470 if test -d "$1"; then
5471 test -d "$1/.";
5472 else
5473 case $1 in #(
5474 -*)set "./$1";;
5475 esac;
5476 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5477 ???[sx]*):;;*)false;;esac;fi
5478 '\'' sh
5479 '
5480fi
5481as_executable_p=$as_test_x
5482
5483# Sed expression to map a string onto a valid CPP name.
5484as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5485
5486# Sed expression to map a string onto a valid variable name.
5487as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5488
5489
5490exec 6>&1
5491## ----------------------------------- ##
5492## Main body of $CONFIG_STATUS script. ##
5493## ----------------------------------- ##
5494_ASEOF
5495test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5496
5497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5498# Save the log message, to keep $0 and so on meaningful, and to
5499# report actual input values of CONFIG_FILES etc. instead of their
5500# values after options handling.
5501ac_log="
Jonathan Santos5a45b152011-08-17 15:33:57 -04005502This file was extended by openbsc $as_me 0.9.14, which was
5503generated by GNU Autoconf 2.68. Invocation command line was
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005504
5505 CONFIG_FILES = $CONFIG_FILES
5506 CONFIG_HEADERS = $CONFIG_HEADERS
5507 CONFIG_LINKS = $CONFIG_LINKS
5508 CONFIG_COMMANDS = $CONFIG_COMMANDS
5509 $ $0 $@
5510
5511on `(hostname || uname -n) 2>/dev/null | sed 1q`
5512"
5513
5514_ACEOF
5515
5516case $ac_config_files in *"
5517"*) set x $ac_config_files; shift; ac_config_files=$*;;
5518esac
5519
5520case $ac_config_headers in *"
5521"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5522esac
5523
5524
5525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5526# Files that config.status was made for.
5527config_files="$ac_config_files"
5528config_headers="$ac_config_headers"
5529config_commands="$ac_config_commands"
5530
5531_ACEOF
5532
5533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5534ac_cs_usage="\
5535\`$as_me' instantiates files and other configuration actions
5536from templates according to the current configuration. Unless the files
5537and actions are specified as TAGs, all are instantiated by default.
5538
5539Usage: $0 [OPTION]... [TAG]...
5540
5541 -h, --help print this help, then exit
5542 -V, --version print version number and configuration settings, then exit
5543 --config print configuration, then exit
5544 -q, --quiet, --silent
5545 do not print progress messages
5546 -d, --debug don't remove temporary files
5547 --recheck update $as_me by reconfiguring in the same conditions
5548 --file=FILE[:TEMPLATE]
5549 instantiate the configuration file FILE
5550 --header=FILE[:TEMPLATE]
5551 instantiate the configuration header FILE
5552
5553Configuration files:
5554$config_files
5555
5556Configuration headers:
5557$config_headers
5558
5559Configuration commands:
5560$config_commands
5561
5562Report bugs to <openbsc-devel@lists.openbsc.org>."
5563
5564_ACEOF
5565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5566ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5567ac_cs_version="\\
Jonathan Santos5a45b152011-08-17 15:33:57 -04005568openbsc config.status 0.9.14
5569configured by $0, generated by GNU Autoconf 2.68,
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005570 with options \\"\$ac_cs_config\\"
5571
5572Copyright (C) 2010 Free Software Foundation, Inc.
5573This config.status script is free software; the Free Software Foundation
5574gives unlimited permission to copy, distribute and modify it."
5575
5576ac_pwd='$ac_pwd'
5577srcdir='$srcdir'
5578INSTALL='$INSTALL'
5579MKDIR_P='$MKDIR_P'
5580AWK='$AWK'
5581test -n "\$AWK" || AWK=awk
5582_ACEOF
5583
5584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5585# The default lists apply if the user does not specify any file.
5586ac_need_defaults=:
5587while test $# != 0
5588do
5589 case $1 in
5590 --*=?*)
5591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5592 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5593 ac_shift=:
5594 ;;
5595 --*=)
5596 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5597 ac_optarg=
5598 ac_shift=:
5599 ;;
5600 *)
5601 ac_option=$1
5602 ac_optarg=$2
5603 ac_shift=shift
5604 ;;
5605 esac
5606
5607 case $ac_option in
5608 # Handling of the options.
5609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5610 ac_cs_recheck=: ;;
5611 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5612 $as_echo "$ac_cs_version"; exit ;;
5613 --config | --confi | --conf | --con | --co | --c )
5614 $as_echo "$ac_cs_config"; exit ;;
5615 --debug | --debu | --deb | --de | --d | -d )
5616 debug=: ;;
5617 --file | --fil | --fi | --f )
5618 $ac_shift
5619 case $ac_optarg in
5620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5621 '') as_fn_error $? "missing file argument" ;;
5622 esac
5623 as_fn_append CONFIG_FILES " '$ac_optarg'"
5624 ac_need_defaults=false;;
5625 --header | --heade | --head | --hea )
5626 $ac_shift
5627 case $ac_optarg in
5628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5629 esac
5630 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5631 ac_need_defaults=false;;
5632 --he | --h)
5633 # Conflict between --help and --header
5634 as_fn_error $? "ambiguous option: \`$1'
5635Try \`$0 --help' for more information.";;
5636 --help | --hel | -h )
5637 $as_echo "$ac_cs_usage"; exit ;;
5638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5639 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5640 ac_cs_silent=: ;;
5641
5642 # This is an error.
5643 -*) as_fn_error $? "unrecognized option: \`$1'
5644Try \`$0 --help' for more information." ;;
5645
5646 *) as_fn_append ac_config_targets " $1"
5647 ac_need_defaults=false ;;
5648
5649 esac
5650 shift
5651done
5652
5653ac_configure_extra_args=
5654
5655if $ac_cs_silent; then
5656 exec 6>/dev/null
5657 ac_configure_extra_args="$ac_configure_extra_args --silent"
5658fi
5659
5660_ACEOF
5661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5662if \$ac_cs_recheck; then
5663 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5664 shift
5665 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5666 CONFIG_SHELL='$SHELL'
5667 export CONFIG_SHELL
5668 exec "\$@"
5669fi
5670
5671_ACEOF
5672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5673exec 5>>config.log
5674{
5675 echo
5676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5677## Running $as_me. ##
5678_ASBOX
5679 $as_echo "$ac_log"
5680} >&5
5681
5682_ACEOF
5683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5684#
5685# INIT-COMMANDS
5686#
5687AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5688
5689_ACEOF
5690
5691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5692
5693# Handling of arguments.
5694for ac_config_target in $ac_config_targets
5695do
5696 case $ac_config_target in
5697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5698 "bscconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bscconfig.h" ;;
5699 "openbsc.pc") CONFIG_FILES="$CONFIG_FILES openbsc.pc" ;;
5700 "include/openbsc/Makefile") CONFIG_FILES="$CONFIG_FILES include/openbsc/Makefile" ;;
5701 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5702 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5703 "src/libtrau/Makefile") CONFIG_FILES="$CONFIG_FILES src/libtrau/Makefile" ;;
5704 "src/libabis/Makefile") CONFIG_FILES="$CONFIG_FILES src/libabis/Makefile" ;;
5705 "src/libbsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbsc/Makefile" ;;
5706 "src/libmsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmsc/Makefile" ;;
5707 "src/libmgcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmgcp/Makefile" ;;
5708 "src/libcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcommon/Makefile" ;;
5709 "src/osmo-nitb/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-nitb/Makefile" ;;
5710 "src/osmo-bsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc/Makefile" ;;
5711 "src/osmo-bsc_nat/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc_nat/Makefile" ;;
5712 "src/osmo-bsc_mgcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc_mgcp/Makefile" ;;
5713 "src/ipaccess/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaccess/Makefile" ;;
5714 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
5715 "src/libgb/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgb/Makefile" ;;
5716 "src/gprs/Makefile") CONFIG_FILES="$CONFIG_FILES src/gprs/Makefile" ;;
5717 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5718 "tests/debug/Makefile") CONFIG_FILES="$CONFIG_FILES tests/debug/Makefile" ;;
5719 "tests/gsm0408/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gsm0408/Makefile" ;;
5720 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
5721 "tests/channel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/channel/Makefile" ;;
5722 "tests/bsc-nat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bsc-nat/Makefile" ;;
5723 "tests/mgcp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mgcp/Makefile" ;;
Jonathan Santos5a45b152011-08-17 15:33:57 -04005724 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5725 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005726 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5727
Jonathan Santos5a45b152011-08-17 15:33:57 -04005728 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005729 esac
5730done
5731
5732
5733# If the user did not use the arguments to specify the items to instantiate,
5734# then the envvar interface is used. Set only those that are not.
5735# We use the long form for the default assignment because of an extremely
5736# bizarre bug on SunOS 4.1.3.
5737if $ac_need_defaults; then
5738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5741fi
5742
5743# Have a temporary directory for convenience. Make it in the build tree
5744# simply because there is no reason against having it here, and in addition,
5745# creating and moving files from /tmp can sometimes cause problems.
5746# Hook for its removal unless debugging.
5747# Note that there is a small window in which the directory will not be cleaned:
5748# after its creation but before its name has been assigned to `$tmp'.
5749$debug ||
5750{
Jonathan Santos5a45b152011-08-17 15:33:57 -04005751 tmp= ac_tmp=
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005752 trap 'exit_status=$?
Jonathan Santos5a45b152011-08-17 15:33:57 -04005753 : "${ac_tmp:=$tmp}"
5754 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005755' 0
5756 trap 'as_fn_exit 1' 1 2 13 15
5757}
5758# Create a (secure) tmp directory for tmp files.
5759
5760{
5761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Jonathan Santos5a45b152011-08-17 15:33:57 -04005762 test -d "$tmp"
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005763} ||
5764{
5765 tmp=./conf$$-$RANDOM
5766 (umask 077 && mkdir "$tmp")
5767} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Jonathan Santos5a45b152011-08-17 15:33:57 -04005768ac_tmp=$tmp
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005769
5770# Set up the scripts for CONFIG_FILES section.
5771# No need to generate them if there are no CONFIG_FILES.
5772# This happens for instance with `./config.status config.h'.
5773if test -n "$CONFIG_FILES"; then
5774
5775
5776ac_cr=`echo X | tr X '\015'`
5777# On cygwin, bash can eat \r inside `` if the user requested igncr.
5778# But we know of no other shell where ac_cr would be empty at this
5779# point, so we can use a bashism as a fallback.
5780if test "x$ac_cr" = x; then
5781 eval ac_cr=\$\'\\r\'
5782fi
5783ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5784if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5785 ac_cs_awk_cr='\\r'
5786else
5787 ac_cs_awk_cr=$ac_cr
5788fi
5789
Jonathan Santos5a45b152011-08-17 15:33:57 -04005790echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005791_ACEOF
5792
5793
5794{
5795 echo "cat >conf$$subs.awk <<_ACEOF" &&
5796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5797 echo "_ACEOF"
5798} >conf$$subs.sh ||
5799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5800ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5801ac_delim='%!_!# '
5802for ac_last_try in false false false false false :; do
5803 . ./conf$$subs.sh ||
5804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5805
5806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5807 if test $ac_delim_n = $ac_delim_num; then
5808 break
5809 elif $ac_last_try; then
5810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5811 else
5812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5813 fi
5814done
5815rm -f conf$$subs.sh
5816
5817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jonathan Santos5a45b152011-08-17 15:33:57 -04005818cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005819_ACEOF
5820sed -n '
5821h
5822s/^/S["/; s/!.*/"]=/
5823p
5824g
5825s/^[^!]*!//
5826:repl
5827t repl
5828s/'"$ac_delim"'$//
5829t delim
5830:nl
5831h
5832s/\(.\{148\}\)..*/\1/
5833t more1
5834s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5835p
5836n
5837b repl
5838:more1
5839s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5840p
5841g
5842s/.\{148\}//
5843t nl
5844:delim
5845h
5846s/\(.\{148\}\)..*/\1/
5847t more2
5848s/["\\]/\\&/g; s/^/"/; s/$/"/
5849p
5850b
5851:more2
5852s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5853p
5854g
5855s/.\{148\}//
5856t delim
5857' <conf$$subs.awk | sed '
5858/^[^""]/{
5859 N
5860 s/\n//
5861}
5862' >>$CONFIG_STATUS || ac_write_fail=1
5863rm -f conf$$subs.awk
5864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5865_ACAWK
Jonathan Santos5a45b152011-08-17 15:33:57 -04005866cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005867 for (key in S) S_is_set[key] = 1
5868 FS = ""
5869
5870}
5871{
5872 line = $ 0
5873 nfields = split(line, field, "@")
5874 substed = 0
5875 len = length(field[1])
5876 for (i = 2; i < nfields; i++) {
5877 key = field[i]
5878 keylen = length(key)
5879 if (S_is_set[key]) {
5880 value = S[key]
5881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5882 len += length(value) + length(field[++i])
5883 substed = 1
5884 } else
5885 len += 1 + keylen
5886 }
5887
5888 print line
5889}
5890
5891_ACAWK
5892_ACEOF
5893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5894if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5896else
5897 cat
Jonathan Santos5a45b152011-08-17 15:33:57 -04005898fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005899 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5900_ACEOF
5901
5902# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5903# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5904# trailing colons and then remove the whole line if VPATH becomes empty
5905# (actually we leave an empty line to preserve line numbers).
5906if test "x$srcdir" = x.; then
5907 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5908h
5909s///
5910s/^/:/
5911s/[ ]*$/:/
5912s/:\$(srcdir):/:/g
5913s/:\${srcdir}:/:/g
5914s/:@srcdir@:/:/g
5915s/^:*//
5916s/:*$//
5917x
5918s/\(=[ ]*\).*/\1/
5919G
5920s/\n//
5921s/^[^=]*=[ ]*$//
5922}'
5923fi
5924
5925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5926fi # test -n "$CONFIG_FILES"
5927
5928# Set up the scripts for CONFIG_HEADERS section.
5929# No need to generate them if there are no CONFIG_HEADERS.
5930# This happens for instance with `./config.status Makefile'.
5931if test -n "$CONFIG_HEADERS"; then
Jonathan Santos5a45b152011-08-17 15:33:57 -04005932cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005933BEGIN {
5934_ACEOF
5935
5936# Transform confdefs.h into an awk script `defines.awk', embedded as
5937# here-document in config.status, that substitutes the proper values into
5938# config.h.in to produce config.h.
5939
5940# Create a delimiter string that does not exist in confdefs.h, to ease
5941# handling of long lines.
5942ac_delim='%!_!# '
5943for ac_last_try in false false :; do
Jonathan Santos5a45b152011-08-17 15:33:57 -04005944 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5945 if test -z "$ac_tt"; then
Jonathan Santos03fd8d02011-05-25 13:54:02 -04005946 break
5947 elif $ac_last_try; then
5948 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5949 else
5950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5951 fi
5952done
5953
5954# For the awk script, D is an array of macro values keyed by name,
5955# likewise P contains macro parameters if any. Preserve backslash
5956# newline sequences.
5957
5958ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5959sed -n '
5960s/.\{148\}/&'"$ac_delim"'/g
5961t rset
5962:rset
5963s/^[ ]*#[ ]*define[ ][ ]*/ /
5964t def
5965d
5966:def
5967s/\\$//
5968t bsnl
5969s/["\\]/\\&/g
5970s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5971D["\1"]=" \3"/p
5972s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5973d
5974:bsnl
5975s/["\\]/\\&/g
5976s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5977D["\1"]=" \3\\\\\\n"\\/p
5978t cont
5979s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5980t cont
5981d
5982:cont
5983n
5984s/.\{148\}/&'"$ac_delim"'/g
5985t clear
5986:clear
5987s/\\$//
5988t bsnlc
5989s/["\\]/\\&/g; s/^/"/; s/$/"/p
5990d
5991:bsnlc
5992s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5993b cont
5994' <confdefs.h | sed '
5995s/'"$ac_delim"'/"\\\
5996"/g' >>$CONFIG_STATUS || ac_write_fail=1
5997
5998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5999 for (key in D) D_is_set[key] = 1
6000 FS = ""
6001}
6002/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6003 line = \$ 0
6004 split(line, arg, " ")
6005 if (arg[1] == "#") {
6006 defundef = arg[2]
6007 mac1 = arg[3]
6008 } else {
6009 defundef = substr(arg[1], 2)
6010 mac1 = arg[2]
6011 }
6012 split(mac1, mac2, "(") #)
6013 macro = mac2[1]
6014 prefix = substr(line, 1, index(line, defundef) - 1)
6015 if (D_is_set[macro]) {
6016 # Preserve the white space surrounding the "#".
6017 print prefix "define", macro P[macro] D[macro]
6018 next
6019 } else {
6020 # Replace #undef with comments. This is necessary, for example,
6021 # in the case of _POSIX_SOURCE, which is predefined and required
6022 # on some systems where configure will not decide to define it.
6023 if (defundef == "undef") {
6024 print "/*", prefix defundef, macro, "*/"
6025 next
6026 }
6027 }
6028}
6029{ print }
6030_ACAWK
6031_ACEOF
6032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6033 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6034fi # test -n "$CONFIG_HEADERS"
6035
6036
6037eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6038shift
6039for ac_tag
6040do
6041 case $ac_tag in
6042 :[FHLC]) ac_mode=$ac_tag; continue;;
6043 esac
6044 case $ac_mode$ac_tag in
6045 :[FHL]*:*);;
Jonathan Santos5a45b152011-08-17 15:33:57 -04006046 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006047 :[FH]-) ac_tag=-:-;;
6048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6049 esac
6050 ac_save_IFS=$IFS
6051 IFS=:
6052 set x $ac_tag
6053 IFS=$ac_save_IFS
6054 shift
6055 ac_file=$1
6056 shift
6057
6058 case $ac_mode in
6059 :L) ac_source=$1;;
6060 :[FH])
6061 ac_file_inputs=
6062 for ac_f
6063 do
6064 case $ac_f in
Jonathan Santos5a45b152011-08-17 15:33:57 -04006065 -) ac_f="$ac_tmp/stdin";;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006066 *) # Look for the file first in the build tree, then in the source tree
6067 # (if the path is not absolute). The absolute path cannot be DOS-style,
6068 # because $ac_f cannot contain `:'.
6069 test -f "$ac_f" ||
6070 case $ac_f in
6071 [\\/$]*) false;;
6072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6073 esac ||
Jonathan Santos5a45b152011-08-17 15:33:57 -04006074 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006075 esac
6076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6077 as_fn_append ac_file_inputs " '$ac_f'"
6078 done
6079
6080 # Let's still pretend it is `configure' which instantiates (i.e., don't
6081 # use $as_me), people would be surprised to read:
6082 # /* config.h. Generated by config.status. */
6083 configure_input='Generated from '`
6084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6085 `' by configure.'
6086 if test x"$ac_file" != x-; then
6087 configure_input="$ac_file. $configure_input"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6089$as_echo "$as_me: creating $ac_file" >&6;}
6090 fi
6091 # Neutralize special characters interpreted by sed in replacement strings.
6092 case $configure_input in #(
6093 *\&* | *\|* | *\\* )
6094 ac_sed_conf_input=`$as_echo "$configure_input" |
6095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6096 *) ac_sed_conf_input=$configure_input;;
6097 esac
6098
6099 case $ac_tag in
Jonathan Santos5a45b152011-08-17 15:33:57 -04006100 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006102 esac
6103 ;;
6104 esac
6105
6106 ac_dir=`$as_dirname -- "$ac_file" ||
6107$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6108 X"$ac_file" : 'X\(//\)[^/]' \| \
6109 X"$ac_file" : 'X\(//\)$' \| \
6110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6111$as_echo X"$ac_file" |
6112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6113 s//\1/
6114 q
6115 }
6116 /^X\(\/\/\)[^/].*/{
6117 s//\1/
6118 q
6119 }
6120 /^X\(\/\/\)$/{
6121 s//\1/
6122 q
6123 }
6124 /^X\(\/\).*/{
6125 s//\1/
6126 q
6127 }
6128 s/.*/./; q'`
6129 as_dir="$ac_dir"; as_fn_mkdir_p
6130 ac_builddir=.
6131
6132case "$ac_dir" in
6133.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6134*)
6135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6136 # A ".." for each directory in $ac_dir_suffix.
6137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6138 case $ac_top_builddir_sub in
6139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6141 esac ;;
6142esac
6143ac_abs_top_builddir=$ac_pwd
6144ac_abs_builddir=$ac_pwd$ac_dir_suffix
6145# for backward compatibility:
6146ac_top_builddir=$ac_top_build_prefix
6147
6148case $srcdir in
6149 .) # We are building in place.
6150 ac_srcdir=.
6151 ac_top_srcdir=$ac_top_builddir_sub
6152 ac_abs_top_srcdir=$ac_pwd ;;
6153 [\\/]* | ?:[\\/]* ) # Absolute name.
6154 ac_srcdir=$srcdir$ac_dir_suffix;
6155 ac_top_srcdir=$srcdir
6156 ac_abs_top_srcdir=$srcdir ;;
6157 *) # Relative name.
6158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6159 ac_top_srcdir=$ac_top_build_prefix$srcdir
6160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6161esac
6162ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6163
6164
6165 case $ac_mode in
6166 :F)
6167 #
6168 # CONFIG_FILE
6169 #
6170
6171 case $INSTALL in
6172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6174 esac
6175 ac_MKDIR_P=$MKDIR_P
6176 case $MKDIR_P in
6177 [\\/$]* | ?:[\\/]* ) ;;
6178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6179 esac
6180_ACEOF
6181
6182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6183# If the template does not know about datarootdir, expand it.
6184# FIXME: This hack should be removed a few years after 2.60.
6185ac_datarootdir_hack=; ac_datarootdir_seen=
6186ac_sed_dataroot='
6187/datarootdir/ {
6188 p
6189 q
6190}
6191/@datadir@/p
6192/@docdir@/p
6193/@infodir@/p
6194/@localedir@/p
6195/@mandir@/p'
6196case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6197*datarootdir*) ac_datarootdir_seen=yes;;
6198*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6200$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6201_ACEOF
6202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6203 ac_datarootdir_hack='
6204 s&@datadir@&$datadir&g
6205 s&@docdir@&$docdir&g
6206 s&@infodir@&$infodir&g
6207 s&@localedir@&$localedir&g
6208 s&@mandir@&$mandir&g
6209 s&\\\${datarootdir}&$datarootdir&g' ;;
6210esac
6211_ACEOF
6212
6213# Neutralize VPATH when `$srcdir' = `.'.
6214# Shell code in configure.ac might set extrasub.
6215# FIXME: do we really want to maintain this feature?
6216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6217ac_sed_extra="$ac_vpsub
6218$extrasub
6219_ACEOF
6220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6221:t
6222/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6223s|@configure_input@|$ac_sed_conf_input|;t t
6224s&@top_builddir@&$ac_top_builddir_sub&;t t
6225s&@top_build_prefix@&$ac_top_build_prefix&;t t
6226s&@srcdir@&$ac_srcdir&;t t
6227s&@abs_srcdir@&$ac_abs_srcdir&;t t
6228s&@top_srcdir@&$ac_top_srcdir&;t t
6229s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6230s&@builddir@&$ac_builddir&;t t
6231s&@abs_builddir@&$ac_abs_builddir&;t t
6232s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6233s&@INSTALL@&$ac_INSTALL&;t t
6234s&@MKDIR_P@&$ac_MKDIR_P&;t t
6235$ac_datarootdir_hack
6236"
Jonathan Santos5a45b152011-08-17 15:33:57 -04006237eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6238 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006239
6240test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Jonathan Santos5a45b152011-08-17 15:33:57 -04006241 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6243 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6245which seems to be undefined. Please make sure it is defined" >&5
6246$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6247which seems to be undefined. Please make sure it is defined" >&2;}
6248
Jonathan Santos5a45b152011-08-17 15:33:57 -04006249 rm -f "$ac_tmp/stdin"
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006250 case $ac_file in
Jonathan Santos5a45b152011-08-17 15:33:57 -04006251 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6252 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006253 esac \
6254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6255 ;;
6256 :H)
6257 #
6258 # CONFIG_HEADER
6259 #
6260 if test x"$ac_file" != x-; then
6261 {
6262 $as_echo "/* $configure_input */" \
Jonathan Santos5a45b152011-08-17 15:33:57 -04006263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6264 } >"$ac_tmp/config.h" \
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jonathan Santos5a45b152011-08-17 15:33:57 -04006266 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6268$as_echo "$as_me: $ac_file is unchanged" >&6;}
6269 else
6270 rm -f "$ac_file"
Jonathan Santos5a45b152011-08-17 15:33:57 -04006271 mv "$ac_tmp/config.h" "$ac_file" \
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6273 fi
6274 else
6275 $as_echo "/* $configure_input */" \
Jonathan Santos5a45b152011-08-17 15:33:57 -04006276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Jonathan Santos03fd8d02011-05-25 13:54:02 -04006277 || as_fn_error $? "could not create -" "$LINENO" 5
6278 fi
6279# Compute "$ac_file"'s index in $config_headers.
6280_am_arg="$ac_file"
6281_am_stamp_count=1
6282for _am_header in $config_headers :; do
6283 case $_am_header in
6284 $_am_arg | $_am_arg:* )
6285 break ;;
6286 * )
6287 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6288 esac
6289done
6290echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6291$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6292 X"$_am_arg" : 'X\(//\)[^/]' \| \
6293 X"$_am_arg" : 'X\(//\)$' \| \
6294 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6295$as_echo X"$_am_arg" |
6296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6297 s//\1/
6298 q
6299 }
6300 /^X\(\/\/\)[^/].*/{
6301 s//\1/
6302 q
6303 }
6304 /^X\(\/\/\)$/{
6305 s//\1/
6306 q
6307 }
6308 /^X\(\/\).*/{
6309 s//\1/
6310 q
6311 }
6312 s/.*/./; q'`/stamp-h$_am_stamp_count
6313 ;;
6314
6315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6316$as_echo "$as_me: executing $ac_file commands" >&6;}
6317 ;;
6318 esac
6319
6320
6321 case $ac_file$ac_mode in
6322 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6323 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6324 # are listed without --file. Let's play safe and only enable the eval
6325 # if we detect the quoting.
6326 case $CONFIG_FILES in
6327 *\'*) eval set x "$CONFIG_FILES" ;;
6328 *) set x $CONFIG_FILES ;;
6329 esac
6330 shift
6331 for mf
6332 do
6333 # Strip MF so we end up with the name of the file.
6334 mf=`echo "$mf" | sed -e 's/:.*$//'`
6335 # Check whether this is an Automake generated Makefile or not.
6336 # We used to match only the files named `Makefile.in', but
6337 # some people rename them; so instead we look at the file content.
6338 # Grep'ing the first line is not enough: some people post-process
6339 # each Makefile.in and add a new line on top of each file to say so.
6340 # Grep'ing the whole file is not good either: AIX grep has a line
6341 # limit of 2048, but all sed's we know have understand at least 4000.
6342 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6343 dirpart=`$as_dirname -- "$mf" ||
6344$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6345 X"$mf" : 'X\(//\)[^/]' \| \
6346 X"$mf" : 'X\(//\)$' \| \
6347 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6348$as_echo X"$mf" |
6349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6350 s//\1/
6351 q
6352 }
6353 /^X\(\/\/\)[^/].*/{
6354 s//\1/
6355 q
6356 }
6357 /^X\(\/\/\)$/{
6358 s//\1/
6359 q
6360 }
6361 /^X\(\/\).*/{
6362 s//\1/
6363 q
6364 }
6365 s/.*/./; q'`
6366 else
6367 continue
6368 fi
6369 # Extract the definition of DEPDIR, am__include, and am__quote
6370 # from the Makefile without running `make'.
6371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6372 test -z "$DEPDIR" && continue
6373 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6374 test -z "am__include" && continue
6375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6376 # When using ansi2knr, U may be empty or an underscore; expand it
6377 U=`sed -n 's/^U = //p' < "$mf"`
6378 # Find all dependency output files, they are included files with
6379 # $(DEPDIR) in their names. We invoke sed twice because it is the
6380 # simplest approach to changing $(DEPDIR) to its actual value in the
6381 # expansion.
6382 for file in `sed -n "
6383 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6385 # Make sure the directory exists.
6386 test -f "$dirpart/$file" && continue
6387 fdir=`$as_dirname -- "$file" ||
6388$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6389 X"$file" : 'X\(//\)[^/]' \| \
6390 X"$file" : 'X\(//\)$' \| \
6391 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6392$as_echo X"$file" |
6393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6394 s//\1/
6395 q
6396 }
6397 /^X\(\/\/\)[^/].*/{
6398 s//\1/
6399 q
6400 }
6401 /^X\(\/\/\)$/{
6402 s//\1/
6403 q
6404 }
6405 /^X\(\/\).*/{
6406 s//\1/
6407 q
6408 }
6409 s/.*/./; q'`
6410 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6411 # echo "creating $dirpart/$file"
6412 echo '# dummy' > "$dirpart/$file"
6413 done
6414 done
6415}
6416 ;;
6417
6418 esac
6419done # for ac_tag
6420
6421
6422as_fn_exit 0
6423_ACEOF
6424ac_clean_files=$ac_clean_files_save
6425
6426test $ac_write_fail = 0 ||
6427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6428
6429
6430# configure is writing to config.log, and then calls config.status.
6431# config.status does its own redirection, appending to config.log.
6432# Unfortunately, on DOS this fails, as config.log is still kept open
6433# by configure, so config.status won't be able to write to it; its
6434# output is simply discarded. So we exec the FD to /dev/null,
6435# effectively closing config.log, so it can be properly (re)opened and
6436# appended to by config.status. When coming back to configure, we
6437# need to make the FD available again.
6438if test "$no_create" != yes; then
6439 ac_cs_success=:
6440 ac_config_status_args=
6441 test "$silent" = yes &&
6442 ac_config_status_args="$ac_config_status_args --quiet"
6443 exec 5>/dev/null
6444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6445 exec 5>>config.log
6446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6447 # would make configure fail if this is the last instruction.
6448 $ac_cs_success || as_fn_exit 1
6449fi
6450if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6452$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6453fi
6454