Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65. |
| 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 34 | |
| 35 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 60 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | fi |
| 82 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 92 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 112 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | fi |
| 114 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 132 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 398 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | |
| 420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 430 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 453 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 454 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 455 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 463 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 470 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 471 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 485 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 501 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 510 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 511 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 512 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 513 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 514 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 520 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 540 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 543 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME= |
| 551 | PACKAGE_TARNAME= |
| 552 | PACKAGE_VERSION= |
| 553 | PACKAGE_STRING= |
| 554 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 555 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 556 | |
| 557 | ac_unique_file="version.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 561 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # include <sys/types.h> |
| 563 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # include <sys/stat.h> |
| 566 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 567 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 571 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 581 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 582 | # include <strings.h> |
| 583 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 584 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 585 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 586 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 587 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 588 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 589 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 590 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 594 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 595 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 596 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 597 | BUILD_LDFLAGS |
| 598 | BUILD_CFLAGS |
| 599 | INTL_FLAGS |
| 600 | DO_TEST_SUITE |
| 601 | ET_DIR |
| 602 | SS_DIR |
| 603 | LDFLAG_STATIC |
| 604 | root_sysconfdir |
| 605 | root_libdir |
| 606 | root_sbindir |
| 607 | root_bindir |
| 608 | root_prefix |
| 609 | UNIX_CMT |
| 610 | CYGWIN_CMT |
| 611 | LINUX_CMT |
| 612 | UNI_DIFF_OPTS |
| 613 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 614 | SOCKET_LIB |
| 615 | SIZEOF_LONG_LONG |
| 616 | SIZEOF_LONG |
| 617 | SIZEOF_INT |
| 618 | SIZEOF_SHORT |
| 619 | BUILD_CC |
| 620 | MAKEINFO |
| 621 | STRIP |
| 622 | AR |
| 623 | LDCONFIG |
| 624 | PERL |
| 625 | SED |
| 626 | AWK |
| 627 | CHMOD |
| 628 | RM |
| 629 | CP |
| 630 | MV |
| 631 | LN_S |
| 632 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 633 | ifNotGNUmake |
| 634 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | BINARY_TYPE |
| 636 | POSUB |
| 637 | LTLIBINTL |
| 638 | LIBINTL |
| 639 | INTLLIBS |
| 640 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 641 | INTLOBJS |
| 642 | GENCAT |
| 643 | INSTOBJEXT |
| 644 | DATADIRNAME |
| 645 | CATOBJEXT |
| 646 | USE_INCLUDED_LIBINTL |
| 647 | BUILD_INCLUDED_LIBINTL |
| 648 | INTLBISON |
| 649 | LTLIBICONV |
| 650 | LIBICONV |
| 651 | HAVE_WPRINTF |
| 652 | HAVE_SNPRINTF |
| 653 | HAVE_ASPRINTF |
| 654 | HAVE_POSIX_PRINTF |
| 655 | GLIBC21 |
| 656 | ALLOCA |
| 657 | RANLIB |
| 658 | MSGMERGE |
| 659 | XGETTEXT |
| 660 | GMSGFMT |
| 661 | MSGFMT |
| 662 | USE_NLS |
| 663 | MKINSTALLDIRS |
| 664 | INSTALL_DATA |
| 665 | INSTALL_SCRIPT |
| 666 | INSTALL_PROGRAM |
| 667 | SET_MAKE |
| 668 | VERSION |
| 669 | PACKAGE |
| 670 | GETTEXT_PACKAGE |
| 671 | UUIDD_CMT |
| 672 | E2INITRD_MAN |
| 673 | E2INITRD_PROG |
| 674 | FSCK_MAN |
| 675 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 676 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 677 | RESIZER_CMT |
| 678 | IMAGER_CMT |
| 679 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame^] | 680 | QUOTA_CMT |
| 681 | DEPPROFILED_LIBQUOTA |
| 682 | PROFILED_LIBQUOTA |
| 683 | DEPSTATIC_LIBQUOTA |
| 684 | STATIC_LIBQUOTA |
| 685 | DEPLIBQUOTA |
| 686 | LIBQUOTA |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 687 | BLKID_CMT |
| 688 | DEPPROFILED_LIBBLKID |
| 689 | PROFILED_LIBBLKID |
| 690 | DEPSTATIC_LIBBLKID |
| 691 | STATIC_LIBBLKID |
| 692 | DEPLIBBLKID |
| 693 | LIBBLKID |
| 694 | UUID_CMT |
| 695 | DEPPROFILED_LIBUUID |
| 696 | PROFILED_LIBUUID |
| 697 | DEPSTATIC_LIBUUID |
| 698 | STATIC_LIBUUID |
| 699 | DEPLIBUUID |
| 700 | LIBUUID |
| 701 | PKG_CONFIG |
| 702 | TEST_IO_CMT |
| 703 | PRIVATE_LIBS_CMT |
| 704 | LDFLAG_DYNAMIC |
| 705 | PROFILED_LIB_EXT |
| 706 | STATIC_LIB_EXT |
| 707 | LIB_EXT |
| 708 | CHECKER_CMT |
| 709 | PROFILE_CMT |
| 710 | BSDLIB_CMT |
| 711 | ELF_CMT |
| 712 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 713 | Q |
| 714 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 715 | LINK_BUILD_FLAGS |
| 716 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 717 | MAINTAINER_CMT |
| 718 | LINUX_INCLUDE |
| 719 | EGREP |
| 720 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 721 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 722 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 723 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 724 | OBJEXT |
| 725 | EXEEXT |
| 726 | ac_ct_CC |
| 727 | CPPFLAGS |
| 728 | LDFLAGS |
| 729 | CFLAGS |
| 730 | CC |
| 731 | host_os |
| 732 | host_vendor |
| 733 | host_cpu |
| 734 | host |
| 735 | build_os |
| 736 | build_vendor |
| 737 | build_cpu |
| 738 | build |
| 739 | E2FSPROGS_PKGVER |
| 740 | E2FSPROGS_VERSION |
| 741 | E2FSPROGS_DAY |
| 742 | E2FSPROGS_MONTH |
| 743 | E2FSPROGS_YEAR |
| 744 | target_alias |
| 745 | host_alias |
| 746 | build_alias |
| 747 | LIBS |
| 748 | ECHO_T |
| 749 | ECHO_N |
| 750 | ECHO_C |
| 751 | DEFS |
| 752 | mandir |
| 753 | localedir |
| 754 | libdir |
| 755 | psdir |
| 756 | pdfdir |
| 757 | dvidir |
| 758 | htmldir |
| 759 | infodir |
| 760 | docdir |
| 761 | oldincludedir |
| 762 | includedir |
| 763 | localstatedir |
| 764 | sharedstatedir |
| 765 | sysconfdir |
| 766 | datadir |
| 767 | datarootdir |
| 768 | libexecdir |
| 769 | sbindir |
| 770 | bindir |
| 771 | program_transform_name |
| 772 | prefix |
| 773 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 774 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 775 | PACKAGE_BUGREPORT |
| 776 | PACKAGE_STRING |
| 777 | PACKAGE_VERSION |
| 778 | PACKAGE_TARNAME |
| 779 | PACKAGE_NAME |
| 780 | PATH_SEPARATOR |
| 781 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 782 | ac_subst_files='MCONFIG |
| 783 | MAKEFILE_ELF |
| 784 | MAKEFILE_BSDLIB |
| 785 | MAKEFILE_PROFILE |
| 786 | MAKEFILE_CHECKER |
| 787 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 788 | ASM_TYPES_HEADER |
| 789 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 790 | ac_user_opts=' |
| 791 | enable_option_checking |
| 792 | with_diet_libc |
| 793 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 794 | with_ccopts |
| 795 | with_ldopts |
| 796 | with_root_prefix |
| 797 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 798 | enable_symlink_install |
| 799 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 800 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 801 | enable_compression |
| 802 | enable_htree |
| 803 | enable_elf_shlibs |
| 804 | enable_bsd_shlibs |
| 805 | enable_profile |
| 806 | enable_checker |
| 807 | enable_jbd_debug |
| 808 | enable_blkid_debug |
| 809 | enable_testio_debug |
| 810 | enable_libuuid |
| 811 | enable_libblkid |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame^] | 812 | enable_libquota |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 813 | enable_debugfs |
| 814 | enable_imager |
| 815 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 816 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 817 | enable_fsck |
| 818 | enable_e2initrd_helper |
| 819 | enable_tls |
| 820 | enable_uuidd |
| 821 | enable_nls |
| 822 | with_gnu_ld |
| 823 | enable_rpath |
| 824 | with_libiconv_prefix |
| 825 | with_included_gettext |
| 826 | with_libintl_prefix |
| 827 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 828 | ac_precious_vars='build_alias |
| 829 | host_alias |
| 830 | target_alias |
| 831 | CC |
| 832 | CFLAGS |
| 833 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 834 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 835 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 836 | CPP |
| 837 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 838 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | |
| 840 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 841 | ac_init_help= |
| 842 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 843 | ac_unrecognized_opts= |
| 844 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 845 | # The variables have the same names as the options, with |
| 846 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 847 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 848 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 849 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 850 | no_recursion= |
| 851 | prefix=NONE |
| 852 | program_prefix=NONE |
| 853 | program_suffix=NONE |
| 854 | program_transform_name=s,x,x, |
| 855 | silent= |
| 856 | site= |
| 857 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 858 | verbose= |
| 859 | x_includes=NONE |
| 860 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 861 | |
| 862 | # Installation directory options. |
| 863 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 864 | # and all the variables that are supposed to be based on exec_prefix |
| 865 | # by default will actually change. |
| 866 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 867 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 868 | bindir='${exec_prefix}/bin' |
| 869 | sbindir='${exec_prefix}/sbin' |
| 870 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 871 | datarootdir='${prefix}/share' |
| 872 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 873 | sysconfdir='${prefix}/etc' |
| 874 | sharedstatedir='${prefix}/com' |
| 875 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 876 | includedir='${prefix}/include' |
| 877 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 878 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 879 | infodir='${datarootdir}/info' |
| 880 | htmldir='${docdir}' |
| 881 | dvidir='${docdir}' |
| 882 | pdfdir='${docdir}' |
| 883 | psdir='${docdir}' |
| 884 | libdir='${exec_prefix}/lib' |
| 885 | localedir='${datarootdir}/locale' |
| 886 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 887 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 888 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 889 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 890 | for ac_option |
| 891 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 892 | # If the previous option needs an argument, assign it. |
| 893 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 894 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | ac_prev= |
| 896 | continue |
| 897 | fi |
| 898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | case $ac_option in |
| 900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 901 | *) ac_optarg=yes ;; |
| 902 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 903 | |
| 904 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 906 | case $ac_dashdash$ac_option in |
| 907 | --) |
| 908 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 911 | ac_prev=bindir ;; |
| 912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 914 | |
| 915 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 916 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 918 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | |
| 920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 922 | ac_prev=cache_file ;; |
| 923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 925 | cache_file=$ac_optarg ;; |
| 926 | |
| 927 | --config-cache | -C) |
| 928 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 930 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 931 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 933 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 936 | | --dataroo | --dataro | --datar) |
| 937 | ac_prev=datarootdir ;; |
| 938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 940 | datarootdir=$ac_optarg ;; |
| 941 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 944 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 946 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 947 | ac_useropt_orig=$ac_useropt |
| 948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 949 | case $ac_user_opts in |
| 950 | *" |
| 951 | "enable_$ac_useropt" |
| 952 | "*) ;; |
| 953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 954 | ac_unrecognized_sep=', ';; |
| 955 | esac |
| 956 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 957 | |
| 958 | -docdir | --docdir | --docdi | --doc | --do) |
| 959 | ac_prev=docdir ;; |
| 960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 961 | docdir=$ac_optarg ;; |
| 962 | |
| 963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 964 | ac_prev=dvidir ;; |
| 965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 966 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 967 | |
| 968 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 970 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 972 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 973 | ac_useropt_orig=$ac_useropt |
| 974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 975 | case $ac_user_opts in |
| 976 | *" |
| 977 | "enable_$ac_useropt" |
| 978 | "*) ;; |
| 979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 980 | ac_unrecognized_sep=', ';; |
| 981 | esac |
| 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 983 | |
| 984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 986 | | --exec | --exe | --ex) |
| 987 | ac_prev=exec_prefix ;; |
| 988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 990 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 991 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | |
| 993 | -gas | --gas | --ga | --g) |
| 994 | # Obsolete; use --with-gas. |
| 995 | with_gas=yes ;; |
| 996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 997 | -help | --help | --hel | --he | -h) |
| 998 | ac_init_help=long ;; |
| 999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1000 | ac_init_help=recursive ;; |
| 1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1002 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1003 | |
| 1004 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1005 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1007 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1010 | ac_prev=htmldir ;; |
| 1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1012 | | --ht=*) |
| 1013 | htmldir=$ac_optarg ;; |
| 1014 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
| 1016 | | --includ | --inclu | --incl | --inc) |
| 1017 | ac_prev=includedir ;; |
| 1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1020 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1021 | |
| 1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1023 | ac_prev=infodir ;; |
| 1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1025 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1026 | |
| 1027 | -libdir | --libdir | --libdi | --libd) |
| 1028 | ac_prev=libdir ;; |
| 1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1030 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1031 | |
| 1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1033 | | --libexe | --libex | --libe) |
| 1034 | ac_prev=libexecdir ;; |
| 1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1036 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1037 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1040 | ac_prev=localedir ;; |
| 1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1042 | localedir=$ac_optarg ;; |
| 1043 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1046 | ac_prev=localstatedir ;; |
| 1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1049 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1050 | |
| 1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1052 | ac_prev=mandir ;; |
| 1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1054 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1055 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1056 | -nfp | --nfp | --nf) |
| 1057 | # Obsolete; use --without-fp. |
| 1058 | with_fp=no ;; |
| 1059 | |
| 1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1061 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | no_create=yes ;; |
| 1063 | |
| 1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1066 | no_recursion=yes ;; |
| 1067 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1070 | | --oldin | --oldi | --old | --ol | --o) |
| 1071 | ac_prev=oldincludedir ;; |
| 1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1075 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1076 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1078 | ac_prev=prefix ;; |
| 1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | |
| 1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1083 | | --program-pre | --program-pr | --program-p) |
| 1084 | ac_prev=program_prefix ;; |
| 1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1088 | |
| 1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1090 | | --program-suf | --program-su | --program-s) |
| 1091 | ac_prev=program_suffix ;; |
| 1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1095 | |
| 1096 | -program-transform-name | --program-transform-name \ |
| 1097 | | --program-transform-nam | --program-transform-na \ |
| 1098 | | --program-transform-n | --program-transform- \ |
| 1099 | | --program-transform | --program-transfor \ |
| 1100 | | --program-transfo | --program-transf \ |
| 1101 | | --program-trans | --program-tran \ |
| 1102 | | --progr-tra | --program-tr | --program-t) |
| 1103 | ac_prev=program_transform_name ;; |
| 1104 | -program-transform-name=* | --program-transform-name=* \ |
| 1105 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1106 | | --program-transform-n=* | --program-transform-=* \ |
| 1107 | | --program-transform=* | --program-transfor=* \ |
| 1108 | | --program-transfo=* | --program-transf=* \ |
| 1109 | | --program-trans=* | --program-tran=* \ |
| 1110 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1111 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1114 | ac_prev=pdfdir ;; |
| 1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1116 | pdfdir=$ac_optarg ;; |
| 1117 | |
| 1118 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1119 | ac_prev=psdir ;; |
| 1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1121 | psdir=$ac_optarg ;; |
| 1122 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1124 | | -silent | --silent | --silen | --sile | --sil) |
| 1125 | silent=yes ;; |
| 1126 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1128 | ac_prev=sbindir ;; |
| 1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1130 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1132 | |
| 1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1135 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1136 | | --sha | --sh) |
| 1137 | ac_prev=sharedstatedir ;; |
| 1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1141 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1142 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1143 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1144 | -site | --site | --sit) |
| 1145 | ac_prev=site ;; |
| 1146 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | |
| 1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1150 | ac_prev=srcdir ;; |
| 1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1153 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1155 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1156 | ac_prev=sysconfdir ;; |
| 1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1160 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1161 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1164 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1165 | |
| 1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1167 | verbose=yes ;; |
| 1168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1169 | -version | --version | --versio | --versi | --vers | -V) |
| 1170 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1171 | |
| 1172 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1174 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1176 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1177 | ac_useropt_orig=$ac_useropt |
| 1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1179 | case $ac_user_opts in |
| 1180 | *" |
| 1181 | "with_$ac_useropt" |
| 1182 | "*) ;; |
| 1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1184 | ac_unrecognized_sep=', ';; |
| 1185 | esac |
| 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1187 | |
| 1188 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1192 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1193 | ac_useropt_orig=$ac_useropt |
| 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1195 | case $ac_user_opts in |
| 1196 | *" |
| 1197 | "with_$ac_useropt" |
| 1198 | "*) ;; |
| 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1200 | ac_unrecognized_sep=', ';; |
| 1201 | esac |
| 1202 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1203 | |
| 1204 | --x) |
| 1205 | # Obsolete; use --with-x. |
| 1206 | with_x=yes ;; |
| 1207 | |
| 1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1209 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1210 | ac_prev=x_includes ;; |
| 1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1213 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1214 | |
| 1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1217 | ac_prev=x_libraries ;; |
| 1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1220 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1221 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1222 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1223 | Try \`$0 --help' for more information." |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | ;; |
| 1225 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | *=*) |
| 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1228 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1229 | case $ac_envvar in #( |
| 1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1231 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1232 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1233 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1234 | export $ac_envvar ;; |
| 1235 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1236 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1242 | ;; |
| 1243 | |
| 1244 | esac |
| 1245 | done |
| 1246 | |
| 1247 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1249 | as_fn_error "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1252 | if test -n "$ac_unrecognized_opts"; then |
| 1253 | case $enable_option_checking in |
| 1254 | no) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1255 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1257 | esac |
| 1258 | fi |
| 1259 | |
| 1260 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1264 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1267 | # Remove trailing slashes. |
| 1268 | case $ac_val in |
| 1269 | */ ) |
| 1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1271 | eval $ac_var=\$ac_val;; |
| 1272 | esac |
| 1273 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1274 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1275 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1277 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1278 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1279 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1281 | # There might be people who depend on the old broken behavior: `$host' |
| 1282 | # used to hold the argument of --host etc. |
| 1283 | # FIXME: To remove some day. |
| 1284 | build=$build_alias |
| 1285 | host=$host_alias |
| 1286 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1288 | # FIXME: To remove some day. |
| 1289 | if test "x$host_alias" != x; then |
| 1290 | if test "x$build_alias" = x; then |
| 1291 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1292 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1293 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1294 | elif test "x$build_alias" != "x$host_alias"; then |
| 1295 | cross_compiling=yes |
| 1296 | fi |
| 1297 | fi |
| 1298 | |
| 1299 | ac_tool_prefix= |
| 1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1301 | |
| 1302 | test "$silent" = yes && exec 6>/dev/null |
| 1303 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1306 | ac_ls_di=`ls -di .` && |
| 1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1308 | as_fn_error "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1310 | as_fn_error "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1311 | |
| 1312 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1313 | # Find the source files, if location was not specified. |
| 1314 | if test -z "$srcdir"; then |
| 1315 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1316 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1317 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1320 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1322 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1324 | s//\1/ |
| 1325 | q |
| 1326 | } |
| 1327 | /^X\(\/\/\)[^/].*/{ |
| 1328 | s//\1/ |
| 1329 | q |
| 1330 | } |
| 1331 | /^X\(\/\/\)$/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\).*/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1340 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1342 | srcdir=.. |
| 1343 | fi |
| 1344 | else |
| 1345 | ac_srcdir_defaulted=no |
| 1346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1349 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1352 | ac_abs_confdir=`( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1354 | pwd)` |
| 1355 | # When building in place, set srcdir=. |
| 1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1357 | srcdir=. |
| 1358 | fi |
| 1359 | # Remove unnecessary trailing slashes from srcdir. |
| 1360 | # Double slashes in file names in object file debugging info |
| 1361 | # mess up M-x gdb in Emacs. |
| 1362 | case $srcdir in |
| 1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1364 | esac |
| 1365 | for ac_var in $ac_precious_vars; do |
| 1366 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1368 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1369 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1370 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1372 | # |
| 1373 | # Report the --help message. |
| 1374 | # |
| 1375 | if test "$ac_init_help" = "long"; then |
| 1376 | # Omit some internal or obsolete options to make the list less imposing. |
| 1377 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1378 | cat <<_ACEOF |
| 1379 | \`configure' configures this package to adapt to many kinds of systems. |
| 1380 | |
| 1381 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1382 | |
| 1383 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1384 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1385 | |
| 1386 | Defaults for the options are specified in brackets. |
| 1387 | |
| 1388 | Configuration: |
| 1389 | -h, --help display this help and exit |
| 1390 | --help=short display options specific to this package |
| 1391 | --help=recursive display the short help of all the included packages |
| 1392 | -V, --version display version information and exit |
| 1393 | -q, --quiet, --silent do not print \`checking...' messages |
| 1394 | --cache-file=FILE cache test results in FILE [disabled] |
| 1395 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1396 | -n, --no-create do not create output files |
| 1397 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1398 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1399 | Installation directories: |
| 1400 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1401 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1403 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1404 | |
| 1405 | By default, \`make install' will install all the files in |
| 1406 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1407 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1408 | for instance \`--prefix=\$HOME'. |
| 1409 | |
| 1410 | For better control, use the options below. |
| 1411 | |
| 1412 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1413 | --bindir=DIR user executables [EPREFIX/bin] |
| 1414 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1415 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1416 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1417 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1418 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1419 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1420 | --includedir=DIR C header files [PREFIX/include] |
| 1421 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1422 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1423 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1424 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1425 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1426 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1427 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1428 | --htmldir=DIR html documentation [DOCDIR] |
| 1429 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1430 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1431 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1432 | _ACEOF |
| 1433 | |
| 1434 | cat <<\_ACEOF |
| 1435 | |
| 1436 | System types: |
| 1437 | --build=BUILD configure for building on BUILD [guessed] |
| 1438 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1439 | _ACEOF |
| 1440 | fi |
| 1441 | |
| 1442 | if test -n "$ac_init_help"; then |
| 1443 | |
| 1444 | cat <<\_ACEOF |
| 1445 | |
| 1446 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1447 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1450 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1451 | --enable-symlink-install use symlinks when installing instead of hard links |
| 1452 | --enable-symlink-build use symlinks while building instead of hard links |
| 1453 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1454 | --enable-compression enable EXPERIMENTAL compression support |
| 1455 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1456 | --enable-elf-shlibs select ELF shared libraries |
| 1457 | --enable-bsd-shlibs select BSD shared libraries |
| 1458 | --enable-profile build profiling libraries |
| 1459 | --enable-checker build checker libraries |
| 1460 | --enable-jbd-debug enable journal debugging |
| 1461 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1462 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1463 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1464 | --disable-libblkid do not build private blkid library |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame^] | 1465 | --disable-libquota do not build private quota library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | --disable-debugfs disable support of debugfs program |
| 1467 | --disable-imager disable support of e2image program |
| 1468 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1469 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | --enable-fsck build fsck wrapper program |
| 1471 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1472 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1473 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | --disable-nls do not use Native Language Support |
| 1475 | --disable-rpath do not hardcode runtime library paths |
| 1476 | |
| 1477 | Optional Packages: |
| 1478 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1479 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1480 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1481 | --with-cc no longer supported, use CC= instead |
| 1482 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1483 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1484 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1485 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1486 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1487 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1488 | --with-included-gettext use the GNU gettext library included here |
| 1489 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1490 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1491 | |
| 1492 | Some influential environment variables: |
| 1493 | CC C compiler command |
| 1494 | CFLAGS C compiler flags |
| 1495 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1496 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1497 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1498 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1499 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1500 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1501 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1502 | |
| 1503 | Use these variables to override the choices made by `configure' or to help |
| 1504 | it to find libraries and programs with nonstandard names/locations. |
| 1505 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1506 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1508 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1509 | fi |
| 1510 | |
| 1511 | if test "$ac_init_help" = "recursive"; then |
| 1512 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1513 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1514 | test -d "$ac_dir" || |
| 1515 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1516 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1517 | ac_builddir=. |
| 1518 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1519 | case "$ac_dir" in |
| 1520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1521 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1522 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1523 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1524 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1525 | case $ac_top_builddir_sub in |
| 1526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1528 | esac ;; |
| 1529 | esac |
| 1530 | ac_abs_top_builddir=$ac_pwd |
| 1531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1532 | # for backward compatibility: |
| 1533 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1534 | |
| 1535 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1536 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1537 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1538 | ac_top_srcdir=$ac_top_builddir_sub |
| 1539 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1540 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1541 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1542 | ac_top_srcdir=$srcdir |
| 1543 | ac_abs_top_srcdir=$srcdir ;; |
| 1544 | *) # Relative name. |
| 1545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1546 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1548 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1550 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1551 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1552 | # Check for guested configure. |
| 1553 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1554 | echo && |
| 1555 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1556 | elif test -f "$ac_srcdir/configure"; then |
| 1557 | echo && |
| 1558 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1559 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1560 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1561 | fi || ac_status=$? |
| 1562 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1563 | done |
| 1564 | fi |
| 1565 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1566 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1567 | if $ac_init_version; then |
| 1568 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1569 | configure |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1570 | generated by GNU Autoconf 2.65 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1571 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1572 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1573 | This configure script is free software; the Free Software Foundation |
| 1574 | gives unlimited permission to copy, distribute and modify it. |
| 1575 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1576 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1577 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1578 | |
| 1579 | ## ------------------------ ## |
| 1580 | ## Autoconf initialization. ## |
| 1581 | ## ------------------------ ## |
| 1582 | |
| 1583 | # ac_fn_c_try_compile LINENO |
| 1584 | # -------------------------- |
| 1585 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1586 | ac_fn_c_try_compile () |
| 1587 | { |
| 1588 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1589 | rm -f conftest.$ac_objext |
| 1590 | if { { ac_try="$ac_compile" |
| 1591 | case "(($ac_try" in |
| 1592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1593 | *) ac_try_echo=$ac_try;; |
| 1594 | esac |
| 1595 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1596 | $as_echo "$ac_try_echo"; } >&5 |
| 1597 | (eval "$ac_compile") 2>conftest.err |
| 1598 | ac_status=$? |
| 1599 | if test -s conftest.err; then |
| 1600 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1601 | cat conftest.er1 >&5 |
| 1602 | mv -f conftest.er1 conftest.err |
| 1603 | fi |
| 1604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1605 | test $ac_status = 0; } && { |
| 1606 | test -z "$ac_c_werror_flag" || |
| 1607 | test ! -s conftest.err |
| 1608 | } && test -s conftest.$ac_objext; then : |
| 1609 | ac_retval=0 |
| 1610 | else |
| 1611 | $as_echo "$as_me: failed program was:" >&5 |
| 1612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1613 | |
| 1614 | ac_retval=1 |
| 1615 | fi |
| 1616 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1617 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1618 | |
| 1619 | } # ac_fn_c_try_compile |
| 1620 | |
| 1621 | # ac_fn_c_try_link LINENO |
| 1622 | # ----------------------- |
| 1623 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1624 | ac_fn_c_try_link () |
| 1625 | { |
| 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1628 | if { { ac_try="$ac_link" |
| 1629 | case "(($ac_try" in |
| 1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1631 | *) ac_try_echo=$ac_try;; |
| 1632 | esac |
| 1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1634 | $as_echo "$ac_try_echo"; } >&5 |
| 1635 | (eval "$ac_link") 2>conftest.err |
| 1636 | ac_status=$? |
| 1637 | if test -s conftest.err; then |
| 1638 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1639 | cat conftest.er1 >&5 |
| 1640 | mv -f conftest.er1 conftest.err |
| 1641 | fi |
| 1642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1643 | test $ac_status = 0; } && { |
| 1644 | test -z "$ac_c_werror_flag" || |
| 1645 | test ! -s conftest.err |
| 1646 | } && test -s conftest$ac_exeext && { |
| 1647 | test "$cross_compiling" = yes || |
| 1648 | $as_test_x conftest$ac_exeext |
| 1649 | }; then : |
| 1650 | ac_retval=0 |
| 1651 | else |
| 1652 | $as_echo "$as_me: failed program was:" >&5 |
| 1653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1654 | |
| 1655 | ac_retval=1 |
| 1656 | fi |
| 1657 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1658 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1659 | # interfere with the next link command; also delete a directory that is |
| 1660 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1661 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1662 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1663 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1664 | |
| 1665 | } # ac_fn_c_try_link |
| 1666 | |
| 1667 | # ac_fn_c_try_cpp LINENO |
| 1668 | # ---------------------- |
| 1669 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1670 | ac_fn_c_try_cpp () |
| 1671 | { |
| 1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1673 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1674 | case "(($ac_try" in |
| 1675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1676 | *) ac_try_echo=$ac_try;; |
| 1677 | esac |
| 1678 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1679 | $as_echo "$ac_try_echo"; } >&5 |
| 1680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1681 | ac_status=$? |
| 1682 | if test -s conftest.err; then |
| 1683 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1684 | cat conftest.er1 >&5 |
| 1685 | mv -f conftest.er1 conftest.err |
| 1686 | fi |
| 1687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1688 | test $ac_status = 0; } >/dev/null && { |
| 1689 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1690 | test ! -s conftest.err |
| 1691 | }; then : |
| 1692 | ac_retval=0 |
| 1693 | else |
| 1694 | $as_echo "$as_me: failed program was:" >&5 |
| 1695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1696 | |
| 1697 | ac_retval=1 |
| 1698 | fi |
| 1699 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1700 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1701 | |
| 1702 | } # ac_fn_c_try_cpp |
| 1703 | |
| 1704 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1705 | # ------------------------------------------------------- |
| 1706 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1707 | # the include files in INCLUDES and setting the cache variable VAR |
| 1708 | # accordingly. |
| 1709 | ac_fn_c_check_header_mongrel () |
| 1710 | { |
| 1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1712 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1714 | $as_echo_n "checking for $2... " >&6; } |
| 1715 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1716 | $as_echo_n "(cached) " >&6 |
| 1717 | fi |
| 1718 | eval ac_res=\$$3 |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1720 | $as_echo "$ac_res" >&6; } |
| 1721 | else |
| 1722 | # Is the header compilable? |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1724 | $as_echo_n "checking $2 usability... " >&6; } |
| 1725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1726 | /* end confdefs.h. */ |
| 1727 | $4 |
| 1728 | #include <$2> |
| 1729 | _ACEOF |
| 1730 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1731 | ac_header_compiler=yes |
| 1732 | else |
| 1733 | ac_header_compiler=no |
| 1734 | fi |
| 1735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1737 | $as_echo "$ac_header_compiler" >&6; } |
| 1738 | |
| 1739 | # Is the header present? |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1741 | $as_echo_n "checking $2 presence... " >&6; } |
| 1742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1743 | /* end confdefs.h. */ |
| 1744 | #include <$2> |
| 1745 | _ACEOF |
| 1746 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1747 | ac_header_preproc=yes |
| 1748 | else |
| 1749 | ac_header_preproc=no |
| 1750 | fi |
| 1751 | rm -f conftest.err conftest.$ac_ext |
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1753 | $as_echo "$ac_header_preproc" >&6; } |
| 1754 | |
| 1755 | # So? What about this header? |
| 1756 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1757 | yes:no: ) |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1759 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1761 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1762 | ;; |
| 1763 | no:yes:* ) |
| 1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1765 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1767 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1769 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1771 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1773 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1774 | ;; |
| 1775 | esac |
| 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1777 | $as_echo_n "checking for $2... " >&6; } |
| 1778 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1779 | $as_echo_n "(cached) " >&6 |
| 1780 | else |
| 1781 | eval "$3=\$ac_header_compiler" |
| 1782 | fi |
| 1783 | eval ac_res=\$$3 |
| 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1785 | $as_echo "$ac_res" >&6; } |
| 1786 | fi |
| 1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1788 | |
| 1789 | } # ac_fn_c_check_header_mongrel |
| 1790 | |
| 1791 | # ac_fn_c_try_run LINENO |
| 1792 | # ---------------------- |
| 1793 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1794 | # that executables *can* be run. |
| 1795 | ac_fn_c_try_run () |
| 1796 | { |
| 1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1798 | if { { ac_try="$ac_link" |
| 1799 | case "(($ac_try" in |
| 1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1801 | *) ac_try_echo=$ac_try;; |
| 1802 | esac |
| 1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1804 | $as_echo "$ac_try_echo"; } >&5 |
| 1805 | (eval "$ac_link") 2>&5 |
| 1806 | ac_status=$? |
| 1807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1808 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1809 | { { case "(($ac_try" in |
| 1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1811 | *) ac_try_echo=$ac_try;; |
| 1812 | esac |
| 1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1814 | $as_echo "$ac_try_echo"; } >&5 |
| 1815 | (eval "$ac_try") 2>&5 |
| 1816 | ac_status=$? |
| 1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1818 | test $ac_status = 0; }; }; then : |
| 1819 | ac_retval=0 |
| 1820 | else |
| 1821 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1822 | $as_echo "$as_me: failed program was:" >&5 |
| 1823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1824 | |
| 1825 | ac_retval=$ac_status |
| 1826 | fi |
| 1827 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1828 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1829 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1830 | |
| 1831 | } # ac_fn_c_try_run |
| 1832 | |
| 1833 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1834 | # ------------------------------------------------------- |
| 1835 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1836 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1837 | ac_fn_c_check_header_compile () |
| 1838 | { |
| 1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1841 | $as_echo_n "checking for $2... " >&6; } |
| 1842 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1843 | $as_echo_n "(cached) " >&6 |
| 1844 | else |
| 1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1846 | /* end confdefs.h. */ |
| 1847 | $4 |
| 1848 | #include <$2> |
| 1849 | _ACEOF |
| 1850 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1851 | eval "$3=yes" |
| 1852 | else |
| 1853 | eval "$3=no" |
| 1854 | fi |
| 1855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1856 | fi |
| 1857 | eval ac_res=\$$3 |
| 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1859 | $as_echo "$ac_res" >&6; } |
| 1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1861 | |
| 1862 | } # ac_fn_c_check_header_compile |
| 1863 | |
| 1864 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1865 | # ------------------------------------------- |
| 1866 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1867 | # variable VAR accordingly. |
| 1868 | ac_fn_c_check_type () |
| 1869 | { |
| 1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1872 | $as_echo_n "checking for $2... " >&6; } |
| 1873 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1874 | $as_echo_n "(cached) " >&6 |
| 1875 | else |
| 1876 | eval "$3=no" |
| 1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1878 | /* end confdefs.h. */ |
| 1879 | $4 |
| 1880 | int |
| 1881 | main () |
| 1882 | { |
| 1883 | if (sizeof ($2)) |
| 1884 | return 0; |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1891 | /* end confdefs.h. */ |
| 1892 | $4 |
| 1893 | int |
| 1894 | main () |
| 1895 | { |
| 1896 | if (sizeof (($2))) |
| 1897 | return 0; |
| 1898 | ; |
| 1899 | return 0; |
| 1900 | } |
| 1901 | _ACEOF |
| 1902 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1903 | |
| 1904 | else |
| 1905 | eval "$3=yes" |
| 1906 | fi |
| 1907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1908 | fi |
| 1909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1910 | fi |
| 1911 | eval ac_res=\$$3 |
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1913 | $as_echo "$ac_res" >&6; } |
| 1914 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1915 | |
| 1916 | } # ac_fn_c_check_type |
| 1917 | |
| 1918 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1919 | # ---------------------------------- |
| 1920 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1921 | ac_fn_c_check_func () |
| 1922 | { |
| 1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1925 | $as_echo_n "checking for $2... " >&6; } |
| 1926 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1927 | $as_echo_n "(cached) " >&6 |
| 1928 | else |
| 1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1930 | /* end confdefs.h. */ |
| 1931 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1933 | #define $2 innocuous_$2 |
| 1934 | |
| 1935 | /* System header to define __stub macros and hopefully few prototypes, |
| 1936 | which can conflict with char $2 (); below. |
| 1937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1938 | <limits.h> exists even on freestanding compilers. */ |
| 1939 | |
| 1940 | #ifdef __STDC__ |
| 1941 | # include <limits.h> |
| 1942 | #else |
| 1943 | # include <assert.h> |
| 1944 | #endif |
| 1945 | |
| 1946 | #undef $2 |
| 1947 | |
| 1948 | /* Override any GCC internal prototype to avoid an error. |
| 1949 | Use char because int might match the return type of a GCC |
| 1950 | builtin and then its argument prototype would still apply. */ |
| 1951 | #ifdef __cplusplus |
| 1952 | extern "C" |
| 1953 | #endif |
| 1954 | char $2 (); |
| 1955 | /* The GNU C library defines this for functions which it implements |
| 1956 | to always fail with ENOSYS. Some functions are actually named |
| 1957 | something starting with __ and the normal name is an alias. */ |
| 1958 | #if defined __stub_$2 || defined __stub___$2 |
| 1959 | choke me |
| 1960 | #endif |
| 1961 | |
| 1962 | int |
| 1963 | main () |
| 1964 | { |
| 1965 | return $2 (); |
| 1966 | ; |
| 1967 | return 0; |
| 1968 | } |
| 1969 | _ACEOF |
| 1970 | if ac_fn_c_try_link "$LINENO"; then : |
| 1971 | eval "$3=yes" |
| 1972 | else |
| 1973 | eval "$3=no" |
| 1974 | fi |
| 1975 | rm -f core conftest.err conftest.$ac_objext \ |
| 1976 | conftest$ac_exeext conftest.$ac_ext |
| 1977 | fi |
| 1978 | eval ac_res=\$$3 |
| 1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1980 | $as_echo "$ac_res" >&6; } |
| 1981 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1982 | |
| 1983 | } # ac_fn_c_check_func |
| 1984 | |
| 1985 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1986 | # -------------------------------------------- |
| 1987 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1988 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1989 | # computed |
| 1990 | ac_fn_c_compute_int () |
| 1991 | { |
| 1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1993 | if test "$cross_compiling" = yes; then |
| 1994 | # Depending upon the size, compute the lo and hi bounds. |
| 1995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1996 | /* end confdefs.h. */ |
| 1997 | $4 |
| 1998 | int |
| 1999 | main () |
| 2000 | { |
| 2001 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2002 | test_array [0] = 0 |
| 2003 | |
| 2004 | ; |
| 2005 | return 0; |
| 2006 | } |
| 2007 | _ACEOF |
| 2008 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2009 | ac_lo=0 ac_mid=0 |
| 2010 | while :; do |
| 2011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2012 | /* end confdefs.h. */ |
| 2013 | $4 |
| 2014 | int |
| 2015 | main () |
| 2016 | { |
| 2017 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2018 | test_array [0] = 0 |
| 2019 | |
| 2020 | ; |
| 2021 | return 0; |
| 2022 | } |
| 2023 | _ACEOF |
| 2024 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2025 | ac_hi=$ac_mid; break |
| 2026 | else |
| 2027 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2028 | if test $ac_lo -le $ac_mid; then |
| 2029 | ac_lo= ac_hi= |
| 2030 | break |
| 2031 | fi |
| 2032 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2033 | fi |
| 2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2035 | done |
| 2036 | else |
| 2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2038 | /* end confdefs.h. */ |
| 2039 | $4 |
| 2040 | int |
| 2041 | main () |
| 2042 | { |
| 2043 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2044 | test_array [0] = 0 |
| 2045 | |
| 2046 | ; |
| 2047 | return 0; |
| 2048 | } |
| 2049 | _ACEOF |
| 2050 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2051 | ac_hi=-1 ac_mid=-1 |
| 2052 | while :; do |
| 2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2054 | /* end confdefs.h. */ |
| 2055 | $4 |
| 2056 | int |
| 2057 | main () |
| 2058 | { |
| 2059 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2060 | test_array [0] = 0 |
| 2061 | |
| 2062 | ; |
| 2063 | return 0; |
| 2064 | } |
| 2065 | _ACEOF |
| 2066 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2067 | ac_lo=$ac_mid; break |
| 2068 | else |
| 2069 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2070 | if test $ac_mid -le $ac_hi; then |
| 2071 | ac_lo= ac_hi= |
| 2072 | break |
| 2073 | fi |
| 2074 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2075 | fi |
| 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2077 | done |
| 2078 | else |
| 2079 | ac_lo= ac_hi= |
| 2080 | fi |
| 2081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2082 | fi |
| 2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2084 | # Binary search between lo and hi bounds. |
| 2085 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2086 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2088 | /* end confdefs.h. */ |
| 2089 | $4 |
| 2090 | int |
| 2091 | main () |
| 2092 | { |
| 2093 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2094 | test_array [0] = 0 |
| 2095 | |
| 2096 | ; |
| 2097 | return 0; |
| 2098 | } |
| 2099 | _ACEOF |
| 2100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2101 | ac_hi=$ac_mid |
| 2102 | else |
| 2103 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2104 | fi |
| 2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2106 | done |
| 2107 | case $ac_lo in #(( |
| 2108 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2109 | '') ac_retval=1 ;; |
| 2110 | esac |
| 2111 | else |
| 2112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2113 | /* end confdefs.h. */ |
| 2114 | $4 |
| 2115 | static long int longval () { return $2; } |
| 2116 | static unsigned long int ulongval () { return $2; } |
| 2117 | #include <stdio.h> |
| 2118 | #include <stdlib.h> |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | |
| 2123 | FILE *f = fopen ("conftest.val", "w"); |
| 2124 | if (! f) |
| 2125 | return 1; |
| 2126 | if (($2) < 0) |
| 2127 | { |
| 2128 | long int i = longval (); |
| 2129 | if (i != ($2)) |
| 2130 | return 1; |
| 2131 | fprintf (f, "%ld", i); |
| 2132 | } |
| 2133 | else |
| 2134 | { |
| 2135 | unsigned long int i = ulongval (); |
| 2136 | if (i != ($2)) |
| 2137 | return 1; |
| 2138 | fprintf (f, "%lu", i); |
| 2139 | } |
| 2140 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2141 | on some platforms. */ |
| 2142 | return ferror (f) || fclose (f) != 0; |
| 2143 | |
| 2144 | ; |
| 2145 | return 0; |
| 2146 | } |
| 2147 | _ACEOF |
| 2148 | if ac_fn_c_try_run "$LINENO"; then : |
| 2149 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2150 | else |
| 2151 | ac_retval=1 |
| 2152 | fi |
| 2153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2154 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2155 | rm -f conftest.val |
| 2156 | |
| 2157 | fi |
| 2158 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2159 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2160 | |
| 2161 | } # ac_fn_c_compute_int |
| 2162 | |
| 2163 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2164 | # ---------------------------------------------------- |
| 2165 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2166 | # INCLUDES, setting cache variable VAR accordingly. |
| 2167 | ac_fn_c_check_member () |
| 2168 | { |
| 2169 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2171 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2172 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2173 | $as_echo_n "(cached) " >&6 |
| 2174 | else |
| 2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2176 | /* end confdefs.h. */ |
| 2177 | $5 |
| 2178 | int |
| 2179 | main () |
| 2180 | { |
| 2181 | static $2 ac_aggr; |
| 2182 | if (ac_aggr.$3) |
| 2183 | return 0; |
| 2184 | ; |
| 2185 | return 0; |
| 2186 | } |
| 2187 | _ACEOF |
| 2188 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2189 | eval "$4=yes" |
| 2190 | else |
| 2191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2192 | /* end confdefs.h. */ |
| 2193 | $5 |
| 2194 | int |
| 2195 | main () |
| 2196 | { |
| 2197 | static $2 ac_aggr; |
| 2198 | if (sizeof ac_aggr.$3) |
| 2199 | return 0; |
| 2200 | ; |
| 2201 | return 0; |
| 2202 | } |
| 2203 | _ACEOF |
| 2204 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2205 | eval "$4=yes" |
| 2206 | else |
| 2207 | eval "$4=no" |
| 2208 | fi |
| 2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2210 | fi |
| 2211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2212 | fi |
| 2213 | eval ac_res=\$$4 |
| 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2215 | $as_echo "$ac_res" >&6; } |
| 2216 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2217 | |
| 2218 | } # ac_fn_c_check_member |
| 2219 | |
| 2220 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2221 | # ------------------------------------ |
| 2222 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2223 | ac_fn_c_check_decl () |
| 2224 | { |
| 2225 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2227 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2228 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2229 | $as_echo_n "(cached) " >&6 |
| 2230 | else |
| 2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2232 | /* end confdefs.h. */ |
| 2233 | $4 |
| 2234 | int |
| 2235 | main () |
| 2236 | { |
| 2237 | #ifndef $2 |
| 2238 | (void) $2; |
| 2239 | #endif |
| 2240 | |
| 2241 | ; |
| 2242 | return 0; |
| 2243 | } |
| 2244 | _ACEOF |
| 2245 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2246 | eval "$3=yes" |
| 2247 | else |
| 2248 | eval "$3=no" |
| 2249 | fi |
| 2250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2251 | fi |
| 2252 | eval ac_res=\$$3 |
| 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2254 | $as_echo "$ac_res" >&6; } |
| 2255 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2256 | |
| 2257 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2258 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2259 | This file contains any messages produced by compilers while |
| 2260 | running configure, to aid debugging if configure makes a mistake. |
| 2261 | |
| 2262 | It was created by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2263 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2264 | |
| 2265 | $ $0 $@ |
| 2266 | |
| 2267 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2268 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2269 | { |
| 2270 | cat <<_ASUNAME |
| 2271 | ## --------- ## |
| 2272 | ## Platform. ## |
| 2273 | ## --------- ## |
| 2274 | |
| 2275 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2276 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2277 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2278 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2279 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2280 | |
| 2281 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2282 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2283 | |
| 2284 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2285 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2286 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2287 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2288 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2289 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2290 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2291 | |
| 2292 | _ASUNAME |
| 2293 | |
| 2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2295 | for as_dir in $PATH |
| 2296 | do |
| 2297 | IFS=$as_save_IFS |
| 2298 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2299 | $as_echo "PATH: $as_dir" |
| 2300 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2301 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2302 | |
| 2303 | } >&5 |
| 2304 | |
| 2305 | cat >&5 <<_ACEOF |
| 2306 | |
| 2307 | |
| 2308 | ## ----------- ## |
| 2309 | ## Core tests. ## |
| 2310 | ## ----------- ## |
| 2311 | |
| 2312 | _ACEOF |
| 2313 | |
| 2314 | |
| 2315 | # Keep a trace of the command line. |
| 2316 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2317 | # Strip out --silent because we don't want to record it for future runs. |
| 2318 | # Also quote any args containing shell meta-characters. |
| 2319 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2320 | ac_configure_args= |
| 2321 | ac_configure_args0= |
| 2322 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2323 | ac_must_keep_next=false |
| 2324 | for ac_pass in 1 2 |
| 2325 | do |
| 2326 | for ac_arg |
| 2327 | do |
| 2328 | case $ac_arg in |
| 2329 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2330 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2331 | | -silent | --silent | --silen | --sile | --sil) |
| 2332 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2333 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2334 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2335 | esac |
| 2336 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2337 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2338 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2339 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2340 | if test $ac_must_keep_next = true; then |
| 2341 | ac_must_keep_next=false # Got value, back to normal. |
| 2342 | else |
| 2343 | case $ac_arg in |
| 2344 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2345 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2346 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2347 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2348 | case "$ac_configure_args0 " in |
| 2349 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2350 | esac |
| 2351 | ;; |
| 2352 | -* ) ac_must_keep_next=true ;; |
| 2353 | esac |
| 2354 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2355 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2356 | ;; |
| 2357 | esac |
| 2358 | done |
| 2359 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2360 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2361 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2362 | |
| 2363 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2364 | # config.log. We remove comments because anyway the quotes in there |
| 2365 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2366 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2367 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2368 | trap 'exit_status=$? |
| 2369 | # Save into config.log some information that might help in debugging. |
| 2370 | { |
| 2371 | echo |
| 2372 | |
| 2373 | cat <<\_ASBOX |
| 2374 | ## ---------------- ## |
| 2375 | ## Cache variables. ## |
| 2376 | ## ---------------- ## |
| 2377 | _ASBOX |
| 2378 | echo |
| 2379 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2380 | ( |
| 2381 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2382 | eval ac_val=\$$ac_var |
| 2383 | case $ac_val in #( |
| 2384 | *${as_nl}*) |
| 2385 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2386 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2387 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2388 | esac |
| 2389 | case $ac_var in #( |
| 2390 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2391 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2392 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2393 | esac ;; |
| 2394 | esac |
| 2395 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2396 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2397 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2398 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2399 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2400 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2402 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2403 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2404 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2405 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2406 | esac | |
| 2407 | sort |
| 2408 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2409 | echo |
| 2410 | |
| 2411 | cat <<\_ASBOX |
| 2412 | ## ----------------- ## |
| 2413 | ## Output variables. ## |
| 2414 | ## ----------------- ## |
| 2415 | _ASBOX |
| 2416 | echo |
| 2417 | for ac_var in $ac_subst_vars |
| 2418 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2419 | eval ac_val=\$$ac_var |
| 2420 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2421 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2422 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2423 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2424 | done | sort |
| 2425 | echo |
| 2426 | |
| 2427 | if test -n "$ac_subst_files"; then |
| 2428 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2429 | ## ------------------- ## |
| 2430 | ## File substitutions. ## |
| 2431 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2432 | _ASBOX |
| 2433 | echo |
| 2434 | for ac_var in $ac_subst_files |
| 2435 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2436 | eval ac_val=\$$ac_var |
| 2437 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2438 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2439 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2440 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2441 | done | sort |
| 2442 | echo |
| 2443 | fi |
| 2444 | |
| 2445 | if test -s confdefs.h; then |
| 2446 | cat <<\_ASBOX |
| 2447 | ## ----------- ## |
| 2448 | ## confdefs.h. ## |
| 2449 | ## ----------- ## |
| 2450 | _ASBOX |
| 2451 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | echo |
| 2454 | fi |
| 2455 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2456 | $as_echo "$as_me: caught signal $ac_signal" |
| 2457 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2458 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2459 | rm -f core *.core core.conftest.* && |
| 2460 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2461 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2462 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2464 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2465 | done |
| 2466 | ac_signal=0 |
| 2467 | |
| 2468 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2469 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2471 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2473 | # Predefined preprocessor variables. |
| 2474 | |
| 2475 | cat >>confdefs.h <<_ACEOF |
| 2476 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2477 | _ACEOF |
| 2478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2479 | cat >>confdefs.h <<_ACEOF |
| 2480 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2481 | _ACEOF |
| 2482 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2483 | cat >>confdefs.h <<_ACEOF |
| 2484 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2485 | _ACEOF |
| 2486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | cat >>confdefs.h <<_ACEOF |
| 2488 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2489 | _ACEOF |
| 2490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | cat >>confdefs.h <<_ACEOF |
| 2492 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2493 | _ACEOF |
| 2494 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2495 | cat >>confdefs.h <<_ACEOF |
| 2496 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2497 | _ACEOF |
| 2498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2499 | |
| 2500 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2501 | # Prefer an explicitly selected file to automatically selected ones. |
| 2502 | ac_site_file1=NONE |
| 2503 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2504 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2505 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2506 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2507 | ac_site_file1=$prefix/share/config.site |
| 2508 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2509 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2510 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2511 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2512 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2513 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2515 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2516 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2518 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2519 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2520 | . "$ac_site_file" |
| 2521 | fi |
| 2522 | done |
| 2523 | |
| 2524 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2525 | # Some versions of bash will fail to source /dev/null (special files |
| 2526 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2527 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2529 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2530 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2531 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2532 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2533 | esac |
| 2534 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2535 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2537 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2538 | >$cache_file |
| 2539 | fi |
| 2540 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2541 | as_fn_append ac_header_list " stdlib.h" |
| 2542 | as_fn_append ac_header_list " unistd.h" |
| 2543 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2544 | # Check that the precious variables saved in the cache have kept the same |
| 2545 | # value. |
| 2546 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2547 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2548 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2549 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2551 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | case $ac_old_set,$ac_new_set in |
| 2553 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2555 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2556 | ac_cache_corrupted=: ;; |
| 2557 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2559 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2560 | ac_cache_corrupted=: ;; |
| 2561 | ,);; |
| 2562 | *) |
| 2563 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2564 | # differences in whitespace do not lead to failure. |
| 2565 | ac_old_val_w=`echo x $ac_old_val` |
| 2566 | ac_new_val_w=`echo x $ac_new_val` |
| 2567 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2569 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2570 | ac_cache_corrupted=: |
| 2571 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2573 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2574 | eval $ac_var=\$ac_old_val |
| 2575 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2577 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2579 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2580 | fi;; |
| 2581 | esac |
| 2582 | # Pass precious variables to config.status. |
| 2583 | if test "$ac_new_set" = set; then |
| 2584 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2585 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2586 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2587 | esac |
| 2588 | case " $ac_configure_args " in |
| 2589 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2590 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | esac |
| 2592 | fi |
| 2593 | done |
| 2594 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2598 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2599 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2600 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2601 | ## -------------------- ## |
| 2602 | ## Main body of script. ## |
| 2603 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2604 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2605 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2606 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2610 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2611 | |
| 2612 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2613 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2614 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2615 | for ac_t in install-sh install.sh shtool; do |
| 2616 | if test -f "$ac_dir/$ac_t"; then |
| 2617 | ac_aux_dir=$ac_dir |
| 2618 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2619 | break 2 |
| 2620 | fi |
| 2621 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2622 | done |
| 2623 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2624 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2625 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2626 | |
| 2627 | # These three variables are undocumented and unsupported, |
| 2628 | # and are intended to be withdrawn in a future Autoconf release. |
| 2629 | # They can cause serious problems if a builder's source tree is in a directory |
| 2630 | # whose full name contains unusual characters. |
| 2631 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2632 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2633 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2634 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2635 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2636 | MCONFIG=./MCONFIG |
| 2637 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2638 | BINARY_TYPE=bin |
| 2639 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2640 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2641 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2642 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2643 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2644 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2645 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2646 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2647 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2648 | E2FSPROGS_YEAR=$YEAR |
| 2649 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2650 | E2FSPROGS_YEAR=19$YEAR |
| 2651 | else |
| 2652 | E2FSPROGS_YEAR=20$YEAR |
| 2653 | fi |
| 2654 | |
| 2655 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2656 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2657 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2658 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2659 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2660 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2661 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2662 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2663 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2664 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2665 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2666 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2667 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2668 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2669 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2670 | esac |
| 2671 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2672 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2673 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2674 | |
| 2675 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2676 | |
| 2677 | case $E2FSPROGS_VERSION in |
| 2678 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2679 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2680 | ;; |
| 2681 | *) |
| 2682 | E2FSPROGS_PKGVER="$base_ver" |
| 2683 | ;; |
| 2684 | esac |
| 2685 | |
| 2686 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2688 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2690 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2691 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2692 | |
| 2693 | |
| 2694 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2695 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2696 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2697 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2698 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2699 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2701 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2702 | if test "${ac_cv_build+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2703 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2704 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2705 | ac_build_alias=$build_alias |
| 2706 | test "x$ac_build_alias" = x && |
| 2707 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2708 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2709 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2710 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2711 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2712 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2713 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2715 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2716 | case $ac_cv_build in |
| 2717 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2718 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2719 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2720 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2721 | ac_save_IFS=$IFS; IFS='-' |
| 2722 | set x $ac_cv_build |
| 2723 | shift |
| 2724 | build_cpu=$1 |
| 2725 | build_vendor=$2 |
| 2726 | shift; shift |
| 2727 | # Remember, the first character of IFS is used to create $*, |
| 2728 | # except with old shells: |
| 2729 | build_os=$* |
| 2730 | IFS=$ac_save_IFS |
| 2731 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2732 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2733 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2735 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2736 | if test "${ac_cv_host+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2737 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2738 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2739 | if test "x$host_alias" = x; then |
| 2740 | ac_cv_host=$ac_cv_build |
| 2741 | else |
| 2742 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2743 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2744 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2746 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2748 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2749 | case $ac_cv_host in |
| 2750 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2751 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2752 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2753 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2754 | ac_save_IFS=$IFS; IFS='-' |
| 2755 | set x $ac_cv_host |
| 2756 | shift |
| 2757 | host_cpu=$1 |
| 2758 | host_vendor=$2 |
| 2759 | shift; shift |
| 2760 | # Remember, the first character of IFS is used to create $*, |
| 2761 | # except with old shells: |
| 2762 | host_os=$* |
| 2763 | IFS=$ac_save_IFS |
| 2764 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2765 | |
| 2766 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2767 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2768 | ac_ext=c |
| 2769 | ac_cpp='$CPP $CPPFLAGS' |
| 2770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2773 | if test -n "$ac_tool_prefix"; then |
| 2774 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2775 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2777 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2778 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2780 | else |
| 2781 | if test -n "$CC"; then |
| 2782 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2783 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2785 | for as_dir in $PATH |
| 2786 | do |
| 2787 | IFS=$as_save_IFS |
| 2788 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2789 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2791 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2793 | break 2 |
| 2794 | fi |
| 2795 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2796 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2798 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2799 | fi |
| 2800 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2801 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2802 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2804 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2805 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2807 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2808 | fi |
| 2809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2810 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2811 | fi |
| 2812 | if test -z "$ac_cv_prog_CC"; then |
| 2813 | ac_ct_CC=$CC |
| 2814 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2815 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2817 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2818 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2819 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2820 | else |
| 2821 | if test -n "$ac_ct_CC"; then |
| 2822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2823 | else |
| 2824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2825 | for as_dir in $PATH |
| 2826 | do |
| 2827 | IFS=$as_save_IFS |
| 2828 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2829 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2831 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2833 | break 2 |
| 2834 | fi |
| 2835 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2836 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2837 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2838 | |
| 2839 | fi |
| 2840 | fi |
| 2841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2842 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2844 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2845 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2847 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2848 | fi |
| 2849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2850 | if test "x$ac_ct_CC" = x; then |
| 2851 | CC="" |
| 2852 | else |
| 2853 | case $cross_compiling:$ac_tool_warned in |
| 2854 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2857 | ac_tool_warned=yes ;; |
| 2858 | esac |
| 2859 | CC=$ac_ct_CC |
| 2860 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2861 | else |
| 2862 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2863 | fi |
| 2864 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2865 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | if test -n "$ac_tool_prefix"; then |
| 2867 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2868 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2870 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2871 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2872 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2873 | else |
| 2874 | if test -n "$CC"; then |
| 2875 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2876 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2878 | for as_dir in $PATH |
| 2879 | do |
| 2880 | IFS=$as_save_IFS |
| 2881 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2884 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2886 | break 2 |
| 2887 | fi |
| 2888 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2889 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2890 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2891 | |
| 2892 | fi |
| 2893 | fi |
| 2894 | CC=$ac_cv_prog_CC |
| 2895 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2897 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2898 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2900 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2901 | fi |
| 2902 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2903 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2904 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2905 | fi |
| 2906 | if test -z "$CC"; then |
| 2907 | # Extract the first word of "cc", so it can be a program name with args. |
| 2908 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2910 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2911 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2912 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2913 | else |
| 2914 | if test -n "$CC"; then |
| 2915 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2916 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2917 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2919 | for as_dir in $PATH |
| 2920 | do |
| 2921 | IFS=$as_save_IFS |
| 2922 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2923 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2925 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2926 | ac_prog_rejected=yes |
| 2927 | continue |
| 2928 | fi |
| 2929 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2931 | break 2 |
| 2932 | fi |
| 2933 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2934 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2935 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2937 | if test $ac_prog_rejected = yes; then |
| 2938 | # We found a bogon in the path, so make sure we never use it. |
| 2939 | set dummy $ac_cv_prog_CC |
| 2940 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2941 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2942 | # We chose a different compiler from the bogus one. |
| 2943 | # However, it has the same basename, so the bogon will be chosen |
| 2944 | # first if we set CC to just the basename; use the full file name. |
| 2945 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2946 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2947 | fi |
| 2948 | fi |
| 2949 | fi |
| 2950 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2951 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2952 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2954 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2955 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2957 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2958 | fi |
| 2959 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2960 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | fi |
| 2962 | if test -z "$CC"; then |
| 2963 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2964 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | do |
| 2966 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2967 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2969 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2970 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2971 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2972 | else |
| 2973 | if test -n "$CC"; then |
| 2974 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2977 | for as_dir in $PATH |
| 2978 | do |
| 2979 | IFS=$as_save_IFS |
| 2980 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2981 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2983 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2985 | break 2 |
| 2986 | fi |
| 2987 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2988 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2989 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2990 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2991 | fi |
| 2992 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2994 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2996 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2997 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2999 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3000 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3002 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | test -n "$CC" && break |
| 3004 | done |
| 3005 | fi |
| 3006 | if test -z "$CC"; then |
| 3007 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3008 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3009 | do |
| 3010 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3011 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3013 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3014 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3016 | else |
| 3017 | if test -n "$ac_ct_CC"; then |
| 3018 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3019 | else |
| 3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3021 | for as_dir in $PATH |
| 3022 | do |
| 3023 | IFS=$as_save_IFS |
| 3024 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3027 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3029 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3030 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3031 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3032 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3033 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3034 | |
| 3035 | fi |
| 3036 | fi |
| 3037 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3038 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3040 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3043 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3044 | fi |
| 3045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3046 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3047 | test -n "$ac_ct_CC" && break |
| 3048 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3049 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3050 | if test "x$ac_ct_CC" = x; then |
| 3051 | CC="" |
| 3052 | else |
| 3053 | case $cross_compiling:$ac_tool_warned in |
| 3054 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3057 | ac_tool_warned=yes ;; |
| 3058 | esac |
| 3059 | CC=$ac_ct_CC |
| 3060 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3061 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3063 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3064 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3065 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3066 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3067 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3068 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3069 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3070 | |
| 3071 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3073 | set X $ac_compile |
| 3074 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3075 | for ac_option in --version -v -V -qversion; do |
| 3076 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3077 | case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3081 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3082 | $as_echo "$ac_try_echo"; } >&5 |
| 3083 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3084 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3085 | if test -s conftest.err; then |
| 3086 | sed '10a\ |
| 3087 | ... rest of stderr output deleted ... |
| 3088 | 10q' conftest.err >conftest.er1 |
| 3089 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3090 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3091 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3092 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3093 | test $ac_status = 0; } |
| 3094 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3095 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3098 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3099 | int |
| 3100 | main () |
| 3101 | { |
| 3102 | |
| 3103 | ; |
| 3104 | return 0; |
| 3105 | } |
| 3106 | _ACEOF |
| 3107 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3108 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3109 | # Try to create an executable without -o first, disregard a.out. |
| 3110 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3111 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3113 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3114 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3115 | |
| 3116 | # The possible output files: |
| 3117 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3119 | ac_rmfiles= |
| 3120 | for ac_file in $ac_files |
| 3121 | do |
| 3122 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3123 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3124 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3125 | esac |
| 3126 | done |
| 3127 | rm -f $ac_rmfiles |
| 3128 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3129 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3130 | case "(($ac_try" in |
| 3131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3132 | *) ac_try_echo=$ac_try;; |
| 3133 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3134 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3135 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3136 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3137 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3139 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3140 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3141 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3142 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3143 | # so that the user can short-circuit this test for compilers unknown to |
| 3144 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3145 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3146 | do |
| 3147 | test -f "$ac_file" || continue |
| 3148 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3149 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3150 | ;; |
| 3151 | [ab].out ) |
| 3152 | # We found the default executable, but exeext='' is most |
| 3153 | # certainly right. |
| 3154 | break;; |
| 3155 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3156 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3157 | then :; else |
| 3158 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3159 | fi |
| 3160 | # We set ac_cv_exeext here because the later test for it is not |
| 3161 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3162 | # argument, so we may need to know it at that point already. |
| 3163 | # Even if this section looks crufty: it has the advantage of |
| 3164 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3165 | break;; |
| 3166 | * ) |
| 3167 | break;; |
| 3168 | esac |
| 3169 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3170 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3171 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3173 | ac_file='' |
| 3174 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3175 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3177 | $as_echo "no" >&6; } |
| 3178 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3180 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3181 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3182 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3183 | { as_fn_set_status 77 |
| 3184 | as_fn_error "C compiler cannot create executables |
| 3185 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3186 | else |
| 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3188 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3189 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3191 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3193 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3194 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3195 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3196 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3197 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3199 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3200 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3201 | case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3205 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3206 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3207 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3208 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3210 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3211 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3212 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3213 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3214 | # `rm'. |
| 3215 | for ac_file in conftest.exe conftest conftest.*; do |
| 3216 | test -f "$ac_file" || continue |
| 3217 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3218 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3219 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3220 | break;; |
| 3221 | * ) break;; |
| 3222 | esac |
| 3223 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3224 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3226 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3227 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3228 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3229 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3230 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3232 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3233 | |
| 3234 | rm -f conftest.$ac_ext |
| 3235 | EXEEXT=$ac_cv_exeext |
| 3236 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3238 | /* end confdefs.h. */ |
| 3239 | #include <stdio.h> |
| 3240 | int |
| 3241 | main () |
| 3242 | { |
| 3243 | FILE *f = fopen ("conftest.out", "w"); |
| 3244 | return ferror (f) || fclose (f) != 0; |
| 3245 | |
| 3246 | ; |
| 3247 | return 0; |
| 3248 | } |
| 3249 | _ACEOF |
| 3250 | ac_clean_files="$ac_clean_files conftest.out" |
| 3251 | # Check that the compiler produces executables we can run. If not, either |
| 3252 | # the compiler is broken, or we cross compile. |
| 3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3254 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3255 | if test "$cross_compiling" != yes; then |
| 3256 | { { ac_try="$ac_link" |
| 3257 | case "(($ac_try" in |
| 3258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3259 | *) ac_try_echo=$ac_try;; |
| 3260 | esac |
| 3261 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3262 | $as_echo "$ac_try_echo"; } >&5 |
| 3263 | (eval "$ac_link") 2>&5 |
| 3264 | ac_status=$? |
| 3265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3266 | test $ac_status = 0; } |
| 3267 | if { ac_try='./conftest$ac_cv_exeext' |
| 3268 | { { case "(($ac_try" in |
| 3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3270 | *) ac_try_echo=$ac_try;; |
| 3271 | esac |
| 3272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3273 | $as_echo "$ac_try_echo"; } >&5 |
| 3274 | (eval "$ac_try") 2>&5 |
| 3275 | ac_status=$? |
| 3276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3277 | test $ac_status = 0; }; }; then |
| 3278 | cross_compiling=no |
| 3279 | else |
| 3280 | if test "$cross_compiling" = maybe; then |
| 3281 | cross_compiling=yes |
| 3282 | else |
| 3283 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3284 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3285 | as_fn_error "cannot run C compiled programs. |
| 3286 | If you meant to cross compile, use \`--host'. |
| 3287 | See \`config.log' for more details." "$LINENO" 5; } |
| 3288 | fi |
| 3289 | fi |
| 3290 | fi |
| 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3292 | $as_echo "$cross_compiling" >&6; } |
| 3293 | |
| 3294 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3295 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3297 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3298 | if test "${ac_cv_objext+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3299 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3300 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3302 | /* end confdefs.h. */ |
| 3303 | |
| 3304 | int |
| 3305 | main () |
| 3306 | { |
| 3307 | |
| 3308 | ; |
| 3309 | return 0; |
| 3310 | } |
| 3311 | _ACEOF |
| 3312 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3313 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3314 | case "(($ac_try" in |
| 3315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3316 | *) ac_try_echo=$ac_try;; |
| 3317 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3319 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3320 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3321 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3323 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3324 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3325 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3326 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3327 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3328 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3329 | break;; |
| 3330 | esac |
| 3331 | done |
| 3332 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3333 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3335 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3336 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3338 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3339 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3340 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3341 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3342 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3344 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | OBJEXT=$ac_cv_objext |
| 3346 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3348 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3349 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3350 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3351 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3353 | /* end confdefs.h. */ |
| 3354 | |
| 3355 | int |
| 3356 | main () |
| 3357 | { |
| 3358 | #ifndef __GNUC__ |
| 3359 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3360 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3361 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3362 | ; |
| 3363 | return 0; |
| 3364 | } |
| 3365 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3366 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3367 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3368 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3369 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3370 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3372 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3373 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3374 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3376 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3377 | if test $ac_compiler_gnu = yes; then |
| 3378 | GCC=yes |
| 3379 | else |
| 3380 | GCC= |
| 3381 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3382 | ac_test_CFLAGS=${CFLAGS+set} |
| 3383 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3385 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3386 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3387 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3388 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3389 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3390 | ac_c_werror_flag=yes |
| 3391 | ac_cv_prog_cc_g=no |
| 3392 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3394 | /* end confdefs.h. */ |
| 3395 | |
| 3396 | int |
| 3397 | main () |
| 3398 | { |
| 3399 | |
| 3400 | ; |
| 3401 | return 0; |
| 3402 | } |
| 3403 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3404 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3405 | ac_cv_prog_cc_g=yes |
| 3406 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3407 | CFLAGS="" |
| 3408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3409 | /* end confdefs.h. */ |
| 3410 | |
| 3411 | int |
| 3412 | main () |
| 3413 | { |
| 3414 | |
| 3415 | ; |
| 3416 | return 0; |
| 3417 | } |
| 3418 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3419 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3421 | else |
| 3422 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3423 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3425 | /* end confdefs.h. */ |
| 3426 | |
| 3427 | int |
| 3428 | main () |
| 3429 | { |
| 3430 | |
| 3431 | ; |
| 3432 | return 0; |
| 3433 | } |
| 3434 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3435 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3436 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3437 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3439 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3441 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3443 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3444 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3446 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3447 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3448 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3449 | elif test $ac_cv_prog_cc_g = yes; then |
| 3450 | if test "$GCC" = yes; then |
| 3451 | CFLAGS="-g -O2" |
| 3452 | else |
| 3453 | CFLAGS="-g" |
| 3454 | fi |
| 3455 | else |
| 3456 | if test "$GCC" = yes; then |
| 3457 | CFLAGS="-O2" |
| 3458 | else |
| 3459 | CFLAGS= |
| 3460 | fi |
| 3461 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3463 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3464 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3465 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3466 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3467 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3468 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | /* end confdefs.h. */ |
| 3471 | #include <stdarg.h> |
| 3472 | #include <stdio.h> |
| 3473 | #include <sys/types.h> |
| 3474 | #include <sys/stat.h> |
| 3475 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3476 | struct buf { int x; }; |
| 3477 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3478 | static char *e (p, i) |
| 3479 | char **p; |
| 3480 | int i; |
| 3481 | { |
| 3482 | return p[i]; |
| 3483 | } |
| 3484 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3485 | { |
| 3486 | char *s; |
| 3487 | va_list v; |
| 3488 | va_start (v,p); |
| 3489 | s = g (p, va_arg (v,int)); |
| 3490 | va_end (v); |
| 3491 | return s; |
| 3492 | } |
| 3493 | |
| 3494 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3495 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3496 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3498 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3499 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3500 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3501 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3503 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3504 | inside strings and character constants. */ |
| 3505 | #define FOO(x) 'x' |
| 3506 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3508 | int test (int i, double x); |
| 3509 | struct s1 {int (*f) (int a);}; |
| 3510 | struct s2 {int (*f) (double a);}; |
| 3511 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3512 | int argc; |
| 3513 | char **argv; |
| 3514 | int |
| 3515 | main () |
| 3516 | { |
| 3517 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3518 | ; |
| 3519 | return 0; |
| 3520 | } |
| 3521 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3522 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3523 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3524 | do |
| 3525 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3526 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3527 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3528 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3529 | rm -f core conftest.err conftest.$ac_objext |
| 3530 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3531 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3532 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3533 | CC=$ac_save_CC |
| 3534 | |
| 3535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3536 | # AC_CACHE_VAL |
| 3537 | case "x$ac_cv_prog_cc_c89" in |
| 3538 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3540 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3541 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3543 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3544 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3545 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3547 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3548 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3549 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3550 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3551 | fi |
| 3552 | |
| 3553 | ac_ext=c |
| 3554 | ac_cpp='$CPP $CPPFLAGS' |
| 3555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3558 | |
| 3559 | |
| 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3561 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 3562 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 3563 | $as_echo_n "(cached) " >&6 |
| 3564 | else |
| 3565 | ac_check_lib_save_LIBS=$LIBS |
| 3566 | LIBS="-ldl $LIBS" |
| 3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3568 | /* end confdefs.h. */ |
| 3569 | |
| 3570 | /* Override any GCC internal prototype to avoid an error. |
| 3571 | Use char because int might match the return type of a GCC |
| 3572 | builtin and then its argument prototype would still apply. */ |
| 3573 | #ifdef __cplusplus |
| 3574 | extern "C" |
| 3575 | #endif |
| 3576 | char dlopen (); |
| 3577 | int |
| 3578 | main () |
| 3579 | { |
| 3580 | return dlopen (); |
| 3581 | ; |
| 3582 | return 0; |
| 3583 | } |
| 3584 | _ACEOF |
| 3585 | if ac_fn_c_try_link "$LINENO"; then : |
| 3586 | ac_cv_lib_dl_dlopen=yes |
| 3587 | else |
| 3588 | ac_cv_lib_dl_dlopen=no |
| 3589 | fi |
| 3590 | rm -f core conftest.err conftest.$ac_objext \ |
| 3591 | conftest$ac_exeext conftest.$ac_ext |
| 3592 | LIBS=$ac_check_lib_save_LIBS |
| 3593 | fi |
| 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3595 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 3596 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 3597 | DLOPEN_LIB=-ldl |
| 3598 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3599 | |
| 3600 | fi |
| 3601 | |
| 3602 | |
| 3603 | WITH_DIET_LIBC= |
| 3604 | |
| 3605 | # Check whether --with-diet-libc was given. |
| 3606 | if test "${with_diet_libc+set}" = set; then : |
| 3607 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3608 | WITH_DIET_LIBC=yes |
| 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3610 | $as_echo "CC=$CC" >&6; } |
| 3611 | fi |
| 3612 | |
| 3613 | # Check whether --with-cc was given. |
| 3614 | if test "${with_cc+set}" = set; then : |
| 3615 | withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
| 3616 | fi |
| 3617 | |
| 3618 | |
| 3619 | # Check whether --with-ccopts was given. |
| 3620 | if test "${with_ccopts+set}" = set; then : |
| 3621 | withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
| 3622 | fi |
| 3623 | |
| 3624 | |
| 3625 | # Check whether --with-ldopts was given. |
| 3626 | if test "${with_ldopts+set}" = set; then : |
| 3627 | withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
| 3628 | fi |
| 3629 | |
| 3630 | ac_ext=c |
| 3631 | ac_cpp='$CPP $CPPFLAGS' |
| 3632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3635 | if test -n "$ac_tool_prefix"; then |
| 3636 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3637 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3639 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3640 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3641 | $as_echo_n "(cached) " >&6 |
| 3642 | else |
| 3643 | if test -n "$CC"; then |
| 3644 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3645 | else |
| 3646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3647 | for as_dir in $PATH |
| 3648 | do |
| 3649 | IFS=$as_save_IFS |
| 3650 | test -z "$as_dir" && as_dir=. |
| 3651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3653 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3655 | break 2 |
| 3656 | fi |
| 3657 | done |
| 3658 | done |
| 3659 | IFS=$as_save_IFS |
| 3660 | |
| 3661 | fi |
| 3662 | fi |
| 3663 | CC=$ac_cv_prog_CC |
| 3664 | if test -n "$CC"; then |
| 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3666 | $as_echo "$CC" >&6; } |
| 3667 | else |
| 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3669 | $as_echo "no" >&6; } |
| 3670 | fi |
| 3671 | |
| 3672 | |
| 3673 | fi |
| 3674 | if test -z "$ac_cv_prog_CC"; then |
| 3675 | ac_ct_CC=$CC |
| 3676 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3677 | set dummy gcc; ac_word=$2 |
| 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3679 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3680 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3681 | $as_echo_n "(cached) " >&6 |
| 3682 | else |
| 3683 | if test -n "$ac_ct_CC"; then |
| 3684 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3685 | else |
| 3686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3687 | for as_dir in $PATH |
| 3688 | do |
| 3689 | IFS=$as_save_IFS |
| 3690 | test -z "$as_dir" && as_dir=. |
| 3691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3693 | ac_cv_prog_ac_ct_CC="gcc" |
| 3694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3695 | break 2 |
| 3696 | fi |
| 3697 | done |
| 3698 | done |
| 3699 | IFS=$as_save_IFS |
| 3700 | |
| 3701 | fi |
| 3702 | fi |
| 3703 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3704 | if test -n "$ac_ct_CC"; then |
| 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3706 | $as_echo "$ac_ct_CC" >&6; } |
| 3707 | else |
| 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3709 | $as_echo "no" >&6; } |
| 3710 | fi |
| 3711 | |
| 3712 | if test "x$ac_ct_CC" = x; then |
| 3713 | CC="" |
| 3714 | else |
| 3715 | case $cross_compiling:$ac_tool_warned in |
| 3716 | yes:) |
| 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3718 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3719 | ac_tool_warned=yes ;; |
| 3720 | esac |
| 3721 | CC=$ac_ct_CC |
| 3722 | fi |
| 3723 | else |
| 3724 | CC="$ac_cv_prog_CC" |
| 3725 | fi |
| 3726 | |
| 3727 | if test -z "$CC"; then |
| 3728 | if test -n "$ac_tool_prefix"; then |
| 3729 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3730 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3732 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3733 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3734 | $as_echo_n "(cached) " >&6 |
| 3735 | else |
| 3736 | if test -n "$CC"; then |
| 3737 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3738 | else |
| 3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3740 | for as_dir in $PATH |
| 3741 | do |
| 3742 | IFS=$as_save_IFS |
| 3743 | test -z "$as_dir" && as_dir=. |
| 3744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3746 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3748 | break 2 |
| 3749 | fi |
| 3750 | done |
| 3751 | done |
| 3752 | IFS=$as_save_IFS |
| 3753 | |
| 3754 | fi |
| 3755 | fi |
| 3756 | CC=$ac_cv_prog_CC |
| 3757 | if test -n "$CC"; then |
| 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3759 | $as_echo "$CC" >&6; } |
| 3760 | else |
| 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3762 | $as_echo "no" >&6; } |
| 3763 | fi |
| 3764 | |
| 3765 | |
| 3766 | fi |
| 3767 | fi |
| 3768 | if test -z "$CC"; then |
| 3769 | # Extract the first word of "cc", so it can be a program name with args. |
| 3770 | set dummy cc; ac_word=$2 |
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3772 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3773 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3774 | $as_echo_n "(cached) " >&6 |
| 3775 | else |
| 3776 | if test -n "$CC"; then |
| 3777 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3778 | else |
| 3779 | ac_prog_rejected=no |
| 3780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3781 | for as_dir in $PATH |
| 3782 | do |
| 3783 | IFS=$as_save_IFS |
| 3784 | test -z "$as_dir" && as_dir=. |
| 3785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3787 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3788 | ac_prog_rejected=yes |
| 3789 | continue |
| 3790 | fi |
| 3791 | ac_cv_prog_CC="cc" |
| 3792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3793 | break 2 |
| 3794 | fi |
| 3795 | done |
| 3796 | done |
| 3797 | IFS=$as_save_IFS |
| 3798 | |
| 3799 | if test $ac_prog_rejected = yes; then |
| 3800 | # We found a bogon in the path, so make sure we never use it. |
| 3801 | set dummy $ac_cv_prog_CC |
| 3802 | shift |
| 3803 | if test $# != 0; then |
| 3804 | # We chose a different compiler from the bogus one. |
| 3805 | # However, it has the same basename, so the bogon will be chosen |
| 3806 | # first if we set CC to just the basename; use the full file name. |
| 3807 | shift |
| 3808 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3809 | fi |
| 3810 | fi |
| 3811 | fi |
| 3812 | fi |
| 3813 | CC=$ac_cv_prog_CC |
| 3814 | if test -n "$CC"; then |
| 3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3816 | $as_echo "$CC" >&6; } |
| 3817 | else |
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3819 | $as_echo "no" >&6; } |
| 3820 | fi |
| 3821 | |
| 3822 | |
| 3823 | fi |
| 3824 | if test -z "$CC"; then |
| 3825 | if test -n "$ac_tool_prefix"; then |
| 3826 | for ac_prog in cl.exe |
| 3827 | do |
| 3828 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3829 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3831 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3832 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3833 | $as_echo_n "(cached) " >&6 |
| 3834 | else |
| 3835 | if test -n "$CC"; then |
| 3836 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3837 | else |
| 3838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3839 | for as_dir in $PATH |
| 3840 | do |
| 3841 | IFS=$as_save_IFS |
| 3842 | test -z "$as_dir" && as_dir=. |
| 3843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3845 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3847 | break 2 |
| 3848 | fi |
| 3849 | done |
| 3850 | done |
| 3851 | IFS=$as_save_IFS |
| 3852 | |
| 3853 | fi |
| 3854 | fi |
| 3855 | CC=$ac_cv_prog_CC |
| 3856 | if test -n "$CC"; then |
| 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3858 | $as_echo "$CC" >&6; } |
| 3859 | else |
| 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3861 | $as_echo "no" >&6; } |
| 3862 | fi |
| 3863 | |
| 3864 | |
| 3865 | test -n "$CC" && break |
| 3866 | done |
| 3867 | fi |
| 3868 | if test -z "$CC"; then |
| 3869 | ac_ct_CC=$CC |
| 3870 | for ac_prog in cl.exe |
| 3871 | do |
| 3872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3873 | set dummy $ac_prog; ac_word=$2 |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3875 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3876 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3877 | $as_echo_n "(cached) " >&6 |
| 3878 | else |
| 3879 | if test -n "$ac_ct_CC"; then |
| 3880 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3881 | else |
| 3882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3883 | for as_dir in $PATH |
| 3884 | do |
| 3885 | IFS=$as_save_IFS |
| 3886 | test -z "$as_dir" && as_dir=. |
| 3887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3889 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3891 | break 2 |
| 3892 | fi |
| 3893 | done |
| 3894 | done |
| 3895 | IFS=$as_save_IFS |
| 3896 | |
| 3897 | fi |
| 3898 | fi |
| 3899 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3900 | if test -n "$ac_ct_CC"; then |
| 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3902 | $as_echo "$ac_ct_CC" >&6; } |
| 3903 | else |
| 3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3905 | $as_echo "no" >&6; } |
| 3906 | fi |
| 3907 | |
| 3908 | |
| 3909 | test -n "$ac_ct_CC" && break |
| 3910 | done |
| 3911 | |
| 3912 | if test "x$ac_ct_CC" = x; then |
| 3913 | CC="" |
| 3914 | else |
| 3915 | case $cross_compiling:$ac_tool_warned in |
| 3916 | yes:) |
| 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3919 | ac_tool_warned=yes ;; |
| 3920 | esac |
| 3921 | CC=$ac_ct_CC |
| 3922 | fi |
| 3923 | fi |
| 3924 | |
| 3925 | fi |
| 3926 | |
| 3927 | |
| 3928 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3930 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3931 | See \`config.log' for more details." "$LINENO" 5; } |
| 3932 | |
| 3933 | # Provide some information about the compiler. |
| 3934 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3935 | set X $ac_compile |
| 3936 | ac_compiler=$2 |
| 3937 | for ac_option in --version -v -V -qversion; do |
| 3938 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3939 | case "(($ac_try" in |
| 3940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3941 | *) ac_try_echo=$ac_try;; |
| 3942 | esac |
| 3943 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3944 | $as_echo "$ac_try_echo"; } >&5 |
| 3945 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3946 | ac_status=$? |
| 3947 | if test -s conftest.err; then |
| 3948 | sed '10a\ |
| 3949 | ... rest of stderr output deleted ... |
| 3950 | 10q' conftest.err >conftest.er1 |
| 3951 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3952 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3953 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3955 | test $ac_status = 0; } |
| 3956 | done |
| 3957 | |
| 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3959 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3960 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3961 | $as_echo_n "(cached) " >&6 |
| 3962 | else |
| 3963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3964 | /* end confdefs.h. */ |
| 3965 | |
| 3966 | int |
| 3967 | main () |
| 3968 | { |
| 3969 | #ifndef __GNUC__ |
| 3970 | choke me |
| 3971 | #endif |
| 3972 | |
| 3973 | ; |
| 3974 | return 0; |
| 3975 | } |
| 3976 | _ACEOF |
| 3977 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3978 | ac_compiler_gnu=yes |
| 3979 | else |
| 3980 | ac_compiler_gnu=no |
| 3981 | fi |
| 3982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3983 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3984 | |
| 3985 | fi |
| 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3987 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3988 | if test $ac_compiler_gnu = yes; then |
| 3989 | GCC=yes |
| 3990 | else |
| 3991 | GCC= |
| 3992 | fi |
| 3993 | ac_test_CFLAGS=${CFLAGS+set} |
| 3994 | ac_save_CFLAGS=$CFLAGS |
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3996 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3997 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3998 | $as_echo_n "(cached) " >&6 |
| 3999 | else |
| 4000 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4001 | ac_c_werror_flag=yes |
| 4002 | ac_cv_prog_cc_g=no |
| 4003 | CFLAGS="-g" |
| 4004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4005 | /* end confdefs.h. */ |
| 4006 | |
| 4007 | int |
| 4008 | main () |
| 4009 | { |
| 4010 | |
| 4011 | ; |
| 4012 | return 0; |
| 4013 | } |
| 4014 | _ACEOF |
| 4015 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4016 | ac_cv_prog_cc_g=yes |
| 4017 | else |
| 4018 | CFLAGS="" |
| 4019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4020 | /* end confdefs.h. */ |
| 4021 | |
| 4022 | int |
| 4023 | main () |
| 4024 | { |
| 4025 | |
| 4026 | ; |
| 4027 | return 0; |
| 4028 | } |
| 4029 | _ACEOF |
| 4030 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4031 | |
| 4032 | else |
| 4033 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4034 | CFLAGS="-g" |
| 4035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4036 | /* end confdefs.h. */ |
| 4037 | |
| 4038 | int |
| 4039 | main () |
| 4040 | { |
| 4041 | |
| 4042 | ; |
| 4043 | return 0; |
| 4044 | } |
| 4045 | _ACEOF |
| 4046 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4047 | ac_cv_prog_cc_g=yes |
| 4048 | fi |
| 4049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4050 | fi |
| 4051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4052 | fi |
| 4053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4054 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4055 | fi |
| 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4057 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4058 | if test "$ac_test_CFLAGS" = set; then |
| 4059 | CFLAGS=$ac_save_CFLAGS |
| 4060 | elif test $ac_cv_prog_cc_g = yes; then |
| 4061 | if test "$GCC" = yes; then |
| 4062 | CFLAGS="-g -O2" |
| 4063 | else |
| 4064 | CFLAGS="-g" |
| 4065 | fi |
| 4066 | else |
| 4067 | if test "$GCC" = yes; then |
| 4068 | CFLAGS="-O2" |
| 4069 | else |
| 4070 | CFLAGS= |
| 4071 | fi |
| 4072 | fi |
| 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4074 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4075 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4076 | $as_echo_n "(cached) " >&6 |
| 4077 | else |
| 4078 | ac_cv_prog_cc_c89=no |
| 4079 | ac_save_CC=$CC |
| 4080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4081 | /* end confdefs.h. */ |
| 4082 | #include <stdarg.h> |
| 4083 | #include <stdio.h> |
| 4084 | #include <sys/types.h> |
| 4085 | #include <sys/stat.h> |
| 4086 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4087 | struct buf { int x; }; |
| 4088 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4089 | static char *e (p, i) |
| 4090 | char **p; |
| 4091 | int i; |
| 4092 | { |
| 4093 | return p[i]; |
| 4094 | } |
| 4095 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4096 | { |
| 4097 | char *s; |
| 4098 | va_list v; |
| 4099 | va_start (v,p); |
| 4100 | s = g (p, va_arg (v,int)); |
| 4101 | va_end (v); |
| 4102 | return s; |
| 4103 | } |
| 4104 | |
| 4105 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4106 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4107 | These don't provoke an error unfortunately, instead are silently treated |
| 4108 | as 'x'. The following induces an error, until -std is added to get |
| 4109 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4110 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4111 | that's true only with -std. */ |
| 4112 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4113 | |
| 4114 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4115 | inside strings and character constants. */ |
| 4116 | #define FOO(x) 'x' |
| 4117 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4118 | |
| 4119 | int test (int i, double x); |
| 4120 | struct s1 {int (*f) (int a);}; |
| 4121 | struct s2 {int (*f) (double a);}; |
| 4122 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4123 | int argc; |
| 4124 | char **argv; |
| 4125 | int |
| 4126 | main () |
| 4127 | { |
| 4128 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4129 | ; |
| 4130 | return 0; |
| 4131 | } |
| 4132 | _ACEOF |
| 4133 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4134 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4135 | do |
| 4136 | CC="$ac_save_CC $ac_arg" |
| 4137 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4138 | ac_cv_prog_cc_c89=$ac_arg |
| 4139 | fi |
| 4140 | rm -f core conftest.err conftest.$ac_objext |
| 4141 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4142 | done |
| 4143 | rm -f conftest.$ac_ext |
| 4144 | CC=$ac_save_CC |
| 4145 | |
| 4146 | fi |
| 4147 | # AC_CACHE_VAL |
| 4148 | case "x$ac_cv_prog_cc_c89" in |
| 4149 | x) |
| 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4151 | $as_echo "none needed" >&6; } ;; |
| 4152 | xno) |
| 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4154 | $as_echo "unsupported" >&6; } ;; |
| 4155 | *) |
| 4156 | CC="$CC $ac_cv_prog_cc_c89" |
| 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4158 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4159 | esac |
| 4160 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4161 | |
| 4162 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4163 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4164 | ac_ext=c |
| 4165 | ac_cpp='$CPP $CPPFLAGS' |
| 4166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4169 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4170 | if test "$GCC" = yes; then |
| 4171 | RDYNAMIC="-rdynamic" |
| 4172 | |
| 4173 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4174 | ac_ext=c |
| 4175 | ac_cpp='$CPP $CPPFLAGS' |
| 4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4180 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4181 | # On Suns, sometimes $CPP names a directory. |
| 4182 | if test -n "$CPP" && test -d "$CPP"; then |
| 4183 | CPP= |
| 4184 | fi |
| 4185 | if test -z "$CPP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4186 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4187 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4188 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4189 | # Double quotes because CPP needs to be expanded |
| 4190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4191 | do |
| 4192 | ac_preproc_ok=false |
| 4193 | for ac_c_preproc_warn_flag in '' yes |
| 4194 | do |
| 4195 | # Use a header file that comes with gcc, so configuring glibc |
| 4196 | # with a fresh cross-compiler works. |
| 4197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4198 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4199 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4200 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4202 | /* end confdefs.h. */ |
| 4203 | #ifdef __STDC__ |
| 4204 | # include <limits.h> |
| 4205 | #else |
| 4206 | # include <assert.h> |
| 4207 | #endif |
| 4208 | Syntax error |
| 4209 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4210 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4211 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4212 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4213 | # Broken: fails on valid input. |
| 4214 | continue |
| 4215 | fi |
| 4216 | rm -f conftest.err conftest.$ac_ext |
| 4217 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4218 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4219 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4221 | /* end confdefs.h. */ |
| 4222 | #include <ac_nonexistent.h> |
| 4223 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4224 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4225 | # Broken: success on invalid input. |
| 4226 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4227 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4228 | # Passes both tests. |
| 4229 | ac_preproc_ok=: |
| 4230 | break |
| 4231 | fi |
| 4232 | rm -f conftest.err conftest.$ac_ext |
| 4233 | |
| 4234 | done |
| 4235 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4236 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4237 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4238 | break |
| 4239 | fi |
| 4240 | |
| 4241 | done |
| 4242 | ac_cv_prog_CPP=$CPP |
| 4243 | |
| 4244 | fi |
| 4245 | CPP=$ac_cv_prog_CPP |
| 4246 | else |
| 4247 | ac_cv_prog_CPP=$CPP |
| 4248 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4250 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4251 | ac_preproc_ok=false |
| 4252 | for ac_c_preproc_warn_flag in '' yes |
| 4253 | do |
| 4254 | # Use a header file that comes with gcc, so configuring glibc |
| 4255 | # with a fresh cross-compiler works. |
| 4256 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4257 | # <limits.h> exists even on freestanding compilers. |
| 4258 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4259 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4261 | /* end confdefs.h. */ |
| 4262 | #ifdef __STDC__ |
| 4263 | # include <limits.h> |
| 4264 | #else |
| 4265 | # include <assert.h> |
| 4266 | #endif |
| 4267 | Syntax error |
| 4268 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4269 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4270 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4271 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4272 | # Broken: fails on valid input. |
| 4273 | continue |
| 4274 | fi |
| 4275 | rm -f conftest.err conftest.$ac_ext |
| 4276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4277 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4278 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4280 | /* end confdefs.h. */ |
| 4281 | #include <ac_nonexistent.h> |
| 4282 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4283 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4284 | # Broken: success on invalid input. |
| 4285 | continue |
| 4286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4287 | # Passes both tests. |
| 4288 | ac_preproc_ok=: |
| 4289 | break |
| 4290 | fi |
| 4291 | rm -f conftest.err conftest.$ac_ext |
| 4292 | |
| 4293 | done |
| 4294 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4295 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4296 | if $ac_preproc_ok; then : |
| 4297 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4298 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4299 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4300 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4301 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4302 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4303 | fi |
| 4304 | |
| 4305 | ac_ext=c |
| 4306 | ac_cpp='$CPP $CPPFLAGS' |
| 4307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4310 | |
| 4311 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4313 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4314 | if test "${ac_cv_path_GREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4315 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4316 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4317 | if test -z "$GREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4318 | ac_path_GREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4319 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4321 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4322 | do |
| 4323 | IFS=$as_save_IFS |
| 4324 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4325 | for ac_prog in grep ggrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4327 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4328 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4329 | # Check for GNU ac_path_GREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4330 | # Check for GNU $ac_path_GREP |
| 4331 | case `"$ac_path_GREP" --version 2>&1` in |
| 4332 | *GNU*) |
| 4333 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4334 | *) |
| 4335 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4336 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4337 | while : |
| 4338 | do |
| 4339 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4340 | mv "conftest.tmp" "conftest.in" |
| 4341 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4342 | $as_echo 'GREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4343 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4344 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4345 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4346 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4347 | # Best one so far, save it but keep looking for a better one |
| 4348 | ac_cv_path_GREP="$ac_path_GREP" |
| 4349 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4351 | # 10*(2^10) chars as input seems more than enough |
| 4352 | test $ac_count -gt 10 && break |
| 4353 | done |
| 4354 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4355 | esac |
| 4356 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4357 | $ac_path_GREP_found && break 3 |
| 4358 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4359 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4360 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4361 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4362 | if test -z "$ac_cv_path_GREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4363 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4364 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4365 | else |
| 4366 | ac_cv_path_GREP=$GREP |
| 4367 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4369 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4371 | $as_echo "$ac_cv_path_GREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4372 | GREP="$ac_cv_path_GREP" |
| 4373 | |
| 4374 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4376 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4377 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4378 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4379 | else |
| 4380 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4381 | then ac_cv_path_EGREP="$GREP -E" |
| 4382 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4383 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4384 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4385 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4387 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4388 | do |
| 4389 | IFS=$as_save_IFS |
| 4390 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4391 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4393 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4394 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4395 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4396 | # Check for GNU $ac_path_EGREP |
| 4397 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4398 | *GNU*) |
| 4399 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4400 | *) |
| 4401 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4402 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4403 | while : |
| 4404 | do |
| 4405 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4406 | mv "conftest.tmp" "conftest.in" |
| 4407 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4408 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4409 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4410 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4411 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4412 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4413 | # Best one so far, save it but keep looking for a better one |
| 4414 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4415 | ac_path_EGREP_max=$ac_count |
| 4416 | fi |
| 4417 | # 10*(2^10) chars as input seems more than enough |
| 4418 | test $ac_count -gt 10 && break |
| 4419 | done |
| 4420 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4421 | esac |
| 4422 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4423 | $ac_path_EGREP_found && break 3 |
| 4424 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4425 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4426 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4427 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4428 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4429 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4430 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4431 | else |
| 4432 | ac_cv_path_EGREP=$EGREP |
| 4433 | fi |
| 4434 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4435 | fi |
| 4436 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4438 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4439 | EGREP="$ac_cv_path_EGREP" |
| 4440 | |
| 4441 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4443 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4444 | if test "${ac_cv_header_stdc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4445 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4446 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4448 | /* end confdefs.h. */ |
| 4449 | #include <stdlib.h> |
| 4450 | #include <stdarg.h> |
| 4451 | #include <string.h> |
| 4452 | #include <float.h> |
| 4453 | |
| 4454 | int |
| 4455 | main () |
| 4456 | { |
| 4457 | |
| 4458 | ; |
| 4459 | return 0; |
| 4460 | } |
| 4461 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4462 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4463 | ac_cv_header_stdc=yes |
| 4464 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4465 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4466 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4468 | |
| 4469 | if test $ac_cv_header_stdc = yes; then |
| 4470 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4472 | /* end confdefs.h. */ |
| 4473 | #include <string.h> |
| 4474 | |
| 4475 | _ACEOF |
| 4476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4477 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4479 | else |
| 4480 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4481 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4482 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4483 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4484 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4485 | |
| 4486 | if test $ac_cv_header_stdc = yes; then |
| 4487 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4489 | /* end confdefs.h. */ |
| 4490 | #include <stdlib.h> |
| 4491 | |
| 4492 | _ACEOF |
| 4493 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4494 | $EGREP "free" >/dev/null 2>&1; then : |
| 4495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4496 | else |
| 4497 | ac_cv_header_stdc=no |
| 4498 | fi |
| 4499 | rm -f conftest* |
| 4500 | |
| 4501 | fi |
| 4502 | |
| 4503 | if test $ac_cv_header_stdc = yes; then |
| 4504 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4505 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4506 | : |
| 4507 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4509 | /* end confdefs.h. */ |
| 4510 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4511 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4512 | #if ((' ' & 0x0FF) == 0x020) |
| 4513 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4514 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4515 | #else |
| 4516 | # define ISLOWER(c) \ |
| 4517 | (('a' <= (c) && (c) <= 'i') \ |
| 4518 | || ('j' <= (c) && (c) <= 'r') \ |
| 4519 | || ('s' <= (c) && (c) <= 'z')) |
| 4520 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4521 | #endif |
| 4522 | |
| 4523 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4524 | int |
| 4525 | main () |
| 4526 | { |
| 4527 | int i; |
| 4528 | for (i = 0; i < 256; i++) |
| 4529 | if (XOR (islower (i), ISLOWER (i)) |
| 4530 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4531 | return 2; |
| 4532 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4533 | } |
| 4534 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4535 | if ac_fn_c_try_run "$LINENO"; then : |
| 4536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4537 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4538 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4539 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4540 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4541 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4542 | fi |
| 4543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4544 | fi |
| 4545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4547 | $as_echo "$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4548 | if test $ac_cv_header_stdc = yes; then |
| 4549 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4550 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4551 | |
| 4552 | fi |
| 4553 | |
| 4554 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4556 | inttypes.h stdint.h unistd.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4557 | do : |
| 4558 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4559 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4560 | " |
| 4561 | eval as_val=\$$as_ac_Header |
| 4562 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4563 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4564 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4565 | _ACEOF |
| 4566 | |
| 4567 | fi |
| 4568 | |
| 4569 | done |
| 4570 | |
| 4571 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4572 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
| 4573 | if test "x$ac_cv_header_linux_fs_h" = x""yes; then : |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4574 | linux_headers=yes |
| 4575 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4576 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4579 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 4580 | if test "$linux_headers" != yes; then |
| 4581 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4582 | fi |
| 4583 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4585 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4586 | if test "$GCC" = yes |
| 4587 | then |
| 4588 | case "$host_cpu" in |
| 4589 | alpha) addcflags="-mieee" ;; |
| 4590 | esac |
| 4591 | fi |
| 4592 | if test "x$addcflags" != x |
| 4593 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4595 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4596 | CFLAGS="$addcflags $CFLAGS" |
| 4597 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4599 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4600 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4601 | LIB_EXT=.a |
| 4602 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4603 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4604 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4605 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4606 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4607 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4608 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4609 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4610 | fi |
| 4611 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4612 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4613 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4614 | then |
| 4615 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4617 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4618 | else |
| 4619 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4621 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4622 | fi |
| 4623 | |
| 4624 | else |
| 4625 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4627 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4629 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4630 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4631 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4632 | # Check whether --enable-symlink-install was given. |
| 4633 | if test "${enable_symlink_install+set}" = set; then : |
| 4634 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4635 | then |
| 4636 | LINK_INSTALL_FLAGS=-f |
| 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4638 | $as_echo "Disabling symlinks for install" >&6; } |
| 4639 | else |
| 4640 | LINK_INSTALL_FLAGS=-sf |
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4642 | $as_echo "Enabling symlinks for install" >&6; } |
| 4643 | fi |
| 4644 | |
| 4645 | else |
| 4646 | LINK_INSTALL_FLAGS=-f |
| 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4648 | $as_echo "Disabling symlinks for install" >&6; } |
| 4649 | |
| 4650 | fi |
| 4651 | |
| 4652 | |
| 4653 | # Check whether --enable-symlink-build was given. |
| 4654 | if test "${enable_symlink_build+set}" = set; then : |
| 4655 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4656 | then |
| 4657 | LINK_BUILD_FLAGS= |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4659 | $as_echo "Disabling symlinks for build" >&6; } |
| 4660 | else |
| 4661 | LINK_BUILD_FLAGS=-s |
| 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4663 | $as_echo "Enabling symlinks for build" >&6; } |
| 4664 | fi |
| 4665 | |
| 4666 | else |
| 4667 | LINK_BUILD_FLAGS= |
| 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4669 | $as_echo "Disabling symlinks for build" >&6; } |
| 4670 | |
| 4671 | fi |
| 4672 | |
| 4673 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4674 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4675 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4676 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4677 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4679 | $as_echo "Disabling verbose make commands" >&6; } |
| 4680 | E=@echo |
| 4681 | Q=@ |
| 4682 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4684 | $as_echo "Enabling verbose make commands" >&6; } |
| 4685 | E=@\\# |
| 4686 | Q= |
| 4687 | fi |
| 4688 | |
| 4689 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4691 | $as_echo "Disabling verbose make commands" >&6; } |
| 4692 | E=@echo |
| 4693 | Q=@ |
| 4694 | |
| 4695 | fi |
| 4696 | |
| 4697 | |
| 4698 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4699 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4700 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4701 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4702 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4704 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4705 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4706 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4707 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4709 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4711 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4712 | fi |
| 4713 | |
| 4714 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4716 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4718 | fi |
| 4719 | |
| 4720 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4721 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4722 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4723 | then |
| 4724 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4726 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4727 | else |
| 4728 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4729 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4730 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4732 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4733 | fi |
| 4734 | |
| 4735 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4736 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4737 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4738 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4740 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4742 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4743 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4744 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4745 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4746 | LDFLAG_DYNAMIC= |
| 4747 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4748 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4749 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4750 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4751 | then |
| 4752 | ELF_CMT=# |
| 4753 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4755 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4756 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4757 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4758 | ELF_CMT= |
| 4759 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4760 | case "$host_os" in |
| 4761 | solaris2.*) |
| 4762 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4763 | ;; |
| 4764 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4765 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4766 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4767 | PRIVATE_LIBS_CMT=# |
| 4768 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4770 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4771 | fi |
| 4772 | |
| 4773 | else |
| 4774 | MAKEFILE_ELF=/dev/null |
| 4775 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4777 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4778 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4779 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4780 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4782 | |
| 4783 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4784 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4785 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4786 | then |
| 4787 | BSDLIB_CMT=# |
| 4788 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4790 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4791 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4792 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4793 | BSDLIB_CMT= |
| 4794 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4795 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4796 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4797 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4798 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4799 | LIB_EXT=.dylib |
| 4800 | ;; |
| 4801 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4803 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4804 | fi |
| 4805 | |
| 4806 | else |
| 4807 | MAKEFILE_BSDLIB=/dev/null |
| 4808 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4810 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4812 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4813 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4815 | |
| 4816 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4817 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4818 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4819 | then |
| 4820 | PROFILE_CMT=# |
| 4821 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4823 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4824 | else |
| 4825 | PROFILE_CMT= |
| 4826 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4827 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4829 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4830 | fi |
| 4831 | |
| 4832 | else |
| 4833 | PROFILE_CMT=# |
| 4834 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4836 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4838 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4839 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4840 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4841 | |
| 4842 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4843 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4844 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4845 | then |
| 4846 | CHECKER_CMT=# |
| 4847 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4849 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4850 | else |
| 4851 | CHECKER_CMT= |
| 4852 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4854 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4855 | fi |
| 4856 | |
| 4857 | else |
| 4858 | CHECKER_CMT=# |
| 4859 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4861 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4863 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4864 | |
| 4865 | |
| 4866 | |
| 4867 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4869 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4870 | |
| 4871 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4872 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4873 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4874 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4875 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4877 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4879 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4880 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4882 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | |
| 4885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4887 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4889 | fi |
| 4890 | |
| 4891 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4892 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4893 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4894 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4896 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4897 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4898 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4899 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4901 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4902 | fi |
| 4903 | |
| 4904 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4906 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4908 | fi |
| 4909 | |
| 4910 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4911 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4912 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4913 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4915 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4916 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4917 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4918 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4919 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4920 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4922 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4923 | fi |
| 4924 | |
| 4925 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4927 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4928 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4929 | |
| 4930 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4932 | fi |
| 4933 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4934 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4935 | |
| 4936 | |
| 4937 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4938 | if test -n "$ac_tool_prefix"; then |
| 4939 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4940 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4942 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4943 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4944 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4945 | else |
| 4946 | case $PKG_CONFIG in |
| 4947 | [\\/]* | ?:[\\/]*) |
| 4948 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4949 | ;; |
| 4950 | *) |
| 4951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4952 | for as_dir in $PATH |
| 4953 | do |
| 4954 | IFS=$as_save_IFS |
| 4955 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4956 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4958 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4960 | break 2 |
| 4961 | fi |
| 4962 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4963 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4964 | IFS=$as_save_IFS |
| 4965 | |
| 4966 | ;; |
| 4967 | esac |
| 4968 | fi |
| 4969 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4970 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4972 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4973 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4975 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4976 | fi |
| 4977 | |
| 4978 | |
| 4979 | fi |
| 4980 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4981 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4982 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4983 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4985 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4986 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4987 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4988 | else |
| 4989 | case $ac_pt_PKG_CONFIG in |
| 4990 | [\\/]* | ?:[\\/]*) |
| 4991 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4992 | ;; |
| 4993 | *) |
| 4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4995 | for as_dir in $PATH |
| 4996 | do |
| 4997 | IFS=$as_save_IFS |
| 4998 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5001 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5003 | break 2 |
| 5004 | fi |
| 5005 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5006 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5007 | IFS=$as_save_IFS |
| 5008 | |
| 5009 | ;; |
| 5010 | esac |
| 5011 | fi |
| 5012 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5013 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5015 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5016 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5018 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5019 | fi |
| 5020 | |
| 5021 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5022 | PKG_CONFIG="" |
| 5023 | else |
| 5024 | case $cross_compiling:$ac_tool_warned in |
| 5025 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5027 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5028 | ac_tool_warned=yes ;; |
| 5029 | esac |
| 5030 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5031 | fi |
| 5032 | else |
| 5033 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5034 | fi |
| 5035 | |
| 5036 | fi |
| 5037 | if test -n "$PKG_CONFIG"; then |
| 5038 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5040 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5041 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5043 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5044 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5046 | $as_echo "no" >&6; } |
| 5047 | PKG_CONFIG="" |
| 5048 | fi |
| 5049 | |
| 5050 | fi |
| 5051 | LIBUUID= |
| 5052 | DEPLIBUUID= |
| 5053 | STATIC_LIBUUID= |
| 5054 | DEPSTATIC_LIBUUID= |
| 5055 | PROFILED_LIBUUID= |
| 5056 | DEPPROFILED_LIBUUID= |
| 5057 | UUID_CMT= |
| 5058 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5059 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5060 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5061 | then |
| 5062 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5063 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5064 | fi |
| 5065 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5067 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5068 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5069 | $as_echo_n "(cached) " >&6 |
| 5070 | else |
| 5071 | ac_check_lib_save_LIBS=$LIBS |
| 5072 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5074 | /* end confdefs.h. */ |
| 5075 | |
| 5076 | /* Override any GCC internal prototype to avoid an error. |
| 5077 | Use char because int might match the return type of a GCC |
| 5078 | builtin and then its argument prototype would still apply. */ |
| 5079 | #ifdef __cplusplus |
| 5080 | extern "C" |
| 5081 | #endif |
| 5082 | char uuid_generate (); |
| 5083 | int |
| 5084 | main () |
| 5085 | { |
| 5086 | return uuid_generate (); |
| 5087 | ; |
| 5088 | return 0; |
| 5089 | } |
| 5090 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5091 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5092 | ac_cv_lib_uuid_uuid_generate=yes |
| 5093 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5094 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5095 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5096 | rm -f core conftest.err conftest.$ac_objext \ |
| 5097 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5098 | LIBS=$ac_check_lib_save_LIBS |
| 5099 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5101 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5102 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5103 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5104 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5105 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5106 | as_fn_error "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5107 | fi |
| 5108 | |
| 5109 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5111 | $as_echo "Disabling private uuid library" >&6; } |
| 5112 | else |
| 5113 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5114 | DEPLIBUUID=$LIBUUID |
| 5115 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5116 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5117 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5118 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5120 | $as_echo "Enabling private uuid library" >&6; } |
| 5121 | fi |
| 5122 | |
| 5123 | else |
| 5124 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5125 | DEPLIBUUID=$LIBUUID |
| 5126 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5127 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5128 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5129 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5131 | $as_echo "Enabling private uuid library by default" >&6; } |
| 5132 | |
| 5133 | fi |
| 5134 | |
| 5135 | |
| 5136 | |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | |
| 5142 | |
| 5143 | |
| 5144 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5145 | if test -n "$ac_tool_prefix"; then |
| 5146 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5147 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5149 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5150 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5151 | $as_echo_n "(cached) " >&6 |
| 5152 | else |
| 5153 | case $PKG_CONFIG in |
| 5154 | [\\/]* | ?:[\\/]*) |
| 5155 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5156 | ;; |
| 5157 | *) |
| 5158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5159 | for as_dir in $PATH |
| 5160 | do |
| 5161 | IFS=$as_save_IFS |
| 5162 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5163 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5165 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5167 | break 2 |
| 5168 | fi |
| 5169 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5170 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5171 | IFS=$as_save_IFS |
| 5172 | |
| 5173 | ;; |
| 5174 | esac |
| 5175 | fi |
| 5176 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5177 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5179 | $as_echo "$PKG_CONFIG" >&6; } |
| 5180 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5182 | $as_echo "no" >&6; } |
| 5183 | fi |
| 5184 | |
| 5185 | |
| 5186 | fi |
| 5187 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5188 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5189 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5190 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5192 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5193 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5194 | $as_echo_n "(cached) " >&6 |
| 5195 | else |
| 5196 | case $ac_pt_PKG_CONFIG in |
| 5197 | [\\/]* | ?:[\\/]*) |
| 5198 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5199 | ;; |
| 5200 | *) |
| 5201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5202 | for as_dir in $PATH |
| 5203 | do |
| 5204 | IFS=$as_save_IFS |
| 5205 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5208 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5210 | break 2 |
| 5211 | fi |
| 5212 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5213 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5214 | IFS=$as_save_IFS |
| 5215 | |
| 5216 | ;; |
| 5217 | esac |
| 5218 | fi |
| 5219 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5220 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5222 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5223 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5225 | $as_echo "no" >&6; } |
| 5226 | fi |
| 5227 | |
| 5228 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5229 | PKG_CONFIG="" |
| 5230 | else |
| 5231 | case $cross_compiling:$ac_tool_warned in |
| 5232 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5235 | ac_tool_warned=yes ;; |
| 5236 | esac |
| 5237 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5238 | fi |
| 5239 | else |
| 5240 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5241 | fi |
| 5242 | |
| 5243 | fi |
| 5244 | if test -n "$PKG_CONFIG"; then |
| 5245 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5247 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5248 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5250 | $as_echo "yes" >&6; } |
| 5251 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5253 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5254 | PKG_CONFIG="" |
| 5255 | fi |
| 5256 | |
| 5257 | fi |
| 5258 | LIBBLKID= |
| 5259 | DEPLIBBLKID= |
| 5260 | STATIC_LIBBLKID= |
| 5261 | DEPSTATIC_LIBBLKID= |
| 5262 | PROFILED_LIBBLKID= |
| 5263 | DEPPROFILED_LIBBLKID= |
| 5264 | BLKID_CMT= |
| 5265 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5266 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5267 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5268 | then |
| 5269 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5270 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5271 | fi |
| 5272 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5274 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5275 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5276 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5277 | else |
| 5278 | ac_check_lib_save_LIBS=$LIBS |
| 5279 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5281 | /* end confdefs.h. */ |
| 5282 | |
| 5283 | /* Override any GCC internal prototype to avoid an error. |
| 5284 | Use char because int might match the return type of a GCC |
| 5285 | builtin and then its argument prototype would still apply. */ |
| 5286 | #ifdef __cplusplus |
| 5287 | extern "C" |
| 5288 | #endif |
| 5289 | char blkid_get_cache (); |
| 5290 | int |
| 5291 | main () |
| 5292 | { |
| 5293 | return blkid_get_cache (); |
| 5294 | ; |
| 5295 | return 0; |
| 5296 | } |
| 5297 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5298 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5299 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5300 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5301 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5302 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5303 | rm -f core conftest.err conftest.$ac_objext \ |
| 5304 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5305 | LIBS=$ac_check_lib_save_LIBS |
| 5306 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5308 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5309 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5310 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5311 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5312 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5313 | as_fn_error "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5314 | fi |
| 5315 | |
| 5316 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5318 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5319 | else |
| 5320 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5321 | DEPLIBBLKID=$LIBBLKID |
| 5322 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5323 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5324 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5325 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5326 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5327 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5329 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5330 | fi |
| 5331 | |
| 5332 | else |
| 5333 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5334 | DEPLIBBLKID=$LIBBLKID |
| 5335 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5336 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5337 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5338 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5339 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5340 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5342 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5343 | |
| 5344 | fi |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | |
| 5352 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame^] | 5353 | |
| 5354 | |
| 5355 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5356 | if test -n "$ac_tool_prefix"; then |
| 5357 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5358 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5360 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5361 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 5362 | $as_echo_n "(cached) " >&6 |
| 5363 | else |
| 5364 | case $PKG_CONFIG in |
| 5365 | [\\/]* | ?:[\\/]*) |
| 5366 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5367 | ;; |
| 5368 | *) |
| 5369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5370 | for as_dir in $PATH |
| 5371 | do |
| 5372 | IFS=$as_save_IFS |
| 5373 | test -z "$as_dir" && as_dir=. |
| 5374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5376 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5378 | break 2 |
| 5379 | fi |
| 5380 | done |
| 5381 | done |
| 5382 | IFS=$as_save_IFS |
| 5383 | |
| 5384 | ;; |
| 5385 | esac |
| 5386 | fi |
| 5387 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5388 | if test -n "$PKG_CONFIG"; then |
| 5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5390 | $as_echo "$PKG_CONFIG" >&6; } |
| 5391 | else |
| 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5393 | $as_echo "no" >&6; } |
| 5394 | fi |
| 5395 | |
| 5396 | |
| 5397 | fi |
| 5398 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5399 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5400 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5401 | set dummy pkg-config; ac_word=$2 |
| 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5403 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5404 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| 5405 | $as_echo_n "(cached) " >&6 |
| 5406 | else |
| 5407 | case $ac_pt_PKG_CONFIG in |
| 5408 | [\\/]* | ?:[\\/]*) |
| 5409 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5410 | ;; |
| 5411 | *) |
| 5412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5413 | for as_dir in $PATH |
| 5414 | do |
| 5415 | IFS=$as_save_IFS |
| 5416 | test -z "$as_dir" && as_dir=. |
| 5417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5419 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5421 | break 2 |
| 5422 | fi |
| 5423 | done |
| 5424 | done |
| 5425 | IFS=$as_save_IFS |
| 5426 | |
| 5427 | ;; |
| 5428 | esac |
| 5429 | fi |
| 5430 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5431 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5433 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5434 | else |
| 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5436 | $as_echo "no" >&6; } |
| 5437 | fi |
| 5438 | |
| 5439 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5440 | PKG_CONFIG="" |
| 5441 | else |
| 5442 | case $cross_compiling:$ac_tool_warned in |
| 5443 | yes:) |
| 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5446 | ac_tool_warned=yes ;; |
| 5447 | esac |
| 5448 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5449 | fi |
| 5450 | else |
| 5451 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5452 | fi |
| 5453 | |
| 5454 | fi |
| 5455 | if test -n "$PKG_CONFIG"; then |
| 5456 | _pkg_min_version=0.9.0 |
| 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5458 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5459 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5461 | $as_echo "yes" >&6; } |
| 5462 | else |
| 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5464 | $as_echo "no" >&6; } |
| 5465 | PKG_CONFIG="" |
| 5466 | fi |
| 5467 | |
| 5468 | fi |
| 5469 | LIBQUOTA= |
| 5470 | DEPLIBQUOTA= |
| 5471 | STATIC_LIBQUOTA= |
| 5472 | DEPSTATIC_LIBQUOTA= |
| 5473 | PROFILED_LIBQUOTA= |
| 5474 | DEPPROFILED_LIBQUOTA= |
| 5475 | QUOTA_CMT= |
| 5476 | # Check whether --enable-libquota was given. |
| 5477 | if test "${enable_libquota+set}" = set; then : |
| 5478 | enableval=$enable_libquota; if test "$enableval" = "no" |
| 5479 | then |
| 5480 | if test -z "$PKG_CONFIG"; then |
| 5481 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
| 5482 | fi |
| 5483 | |
| 5484 | as_ac_Lib=`$as_echo "ac_cv_lib_quota_LIBQUOTA=\`$PKG_CONFIG --libs quota\`; |
| 5485 | STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\`" | $as_tr_sh` |
| 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`; |
| 5487 | STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota" >&5 |
| 5488 | $as_echo_n "checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`; |
| 5489 | STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota... " >&6; } |
| 5490 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 5491 | $as_echo_n "(cached) " >&6 |
| 5492 | else |
| 5493 | ac_check_lib_save_LIBS=$LIBS |
| 5494 | LIBS="-lquota $LIBS" |
| 5495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5496 | /* end confdefs.h. */ |
| 5497 | |
| 5498 | /* Override any GCC internal prototype to avoid an error. |
| 5499 | Use char because int might match the return type of a GCC |
| 5500 | builtin and then its argument prototype would still apply. */ |
| 5501 | #ifdef __cplusplus |
| 5502 | extern "C" |
| 5503 | #endif |
| 5504 | char LIBQUOTA=`$PKG_CONFIG --libs quota`; |
| 5505 | STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` (); |
| 5506 | int |
| 5507 | main () |
| 5508 | { |
| 5509 | return LIBQUOTA=`$PKG_CONFIG --libs quota`; |
| 5510 | STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` (); |
| 5511 | ; |
| 5512 | return 0; |
| 5513 | } |
| 5514 | _ACEOF |
| 5515 | if ac_fn_c_try_link "$LINENO"; then : |
| 5516 | eval "$as_ac_Lib=yes" |
| 5517 | else |
| 5518 | eval "$as_ac_Lib=no" |
| 5519 | fi |
| 5520 | rm -f core conftest.err conftest.$ac_objext \ |
| 5521 | conftest$ac_exeext conftest.$ac_ext |
| 5522 | LIBS=$ac_check_lib_save_LIBS |
| 5523 | fi |
| 5524 | eval ac_res=\$$as_ac_Lib |
| 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 5526 | $as_echo "$ac_res" >&6; } |
| 5527 | eval as_val=\$$as_ac_Lib |
| 5528 | if test "x$as_val" = x""yes; then : |
| 5529 | as_fn_error "external quota library not found" "$LINENO" 5 |
| 5530 | else |
| 5531 | $LIBQUOTA |
| 5532 | fi |
| 5533 | |
| 5534 | QUOTA_CMT=# |
| 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private quota library" >&5 |
| 5536 | $as_echo "Disabling private quota library" >&6; } |
| 5537 | else |
| 5538 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
| 5539 | DEPLIBQUOTA=$LIBQUOTA |
| 5540 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5541 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5542 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5543 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
| 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library" >&5 |
| 5545 | $as_echo "Enabling private quota library" >&6; } |
| 5546 | fi |
| 5547 | |
| 5548 | else |
| 5549 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
| 5550 | DEPLIBQUOTA=$LIBQUOTA |
| 5551 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5552 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5553 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5554 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
| 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library by default" >&5 |
| 5556 | $as_echo "Enabling private quota library by default" >&6; } |
| 5557 | |
| 5558 | fi |
| 5559 | |
| 5560 | |
| 5561 | |
| 5562 | |
| 5563 | |
| 5564 | |
| 5565 | |
| 5566 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5567 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5568 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5569 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5570 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5572 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5573 | DEBUGFS_CMT="#" |
| 5574 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5575 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5577 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5578 | fi |
| 5579 | |
| 5580 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5582 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5583 | DEBUGFS_CMT= |
| 5584 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5585 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5586 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5587 | |
| 5588 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5589 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5590 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5591 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5593 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5594 | IMAGER_CMT="#" |
| 5595 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5596 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5598 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5599 | fi |
| 5600 | |
| 5601 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5603 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5604 | IMAGER_CMT= |
| 5605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5606 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5608 | |
| 5609 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5610 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5611 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5612 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5614 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5615 | RESIZER_CMT="#" |
| 5616 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5617 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5619 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5620 | fi |
| 5621 | |
| 5622 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5624 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5625 | RESIZER_CMT= |
| 5626 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5627 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5629 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5630 | # Check whether --enable-defrag was given. |
| 5631 | if test "${enable_defrag+set}" = set; then : |
| 5632 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5633 | then |
| 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5635 | $as_echo "Disabling e4defrag support" >&6; } |
| 5636 | DEFRAG_CMT="#" |
| 5637 | else |
| 5638 | DEFRAG_CMT= |
| 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5640 | $as_echo "Enabling e4defrag support" >&6; } |
| 5641 | fi |
| 5642 | |
| 5643 | else |
| 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
| 5645 | $as_echo "Enabling e4defrag support by default" >&6; } |
| 5646 | DEFRAG_CMT= |
| 5647 | |
| 5648 | fi |
| 5649 | |
| 5650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5651 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5652 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5653 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5654 | then |
| 5655 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5657 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5658 | else |
| 5659 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5661 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5662 | fi |
| 5663 | |
| 5664 | else |
| 5665 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5666 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5667 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5669 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5670 | ;; |
| 5671 | *) |
| 5672 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5674 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5675 | esac |
| 5676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5678 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5680 | |
| 5681 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5682 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5683 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5684 | then |
| 5685 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5687 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5688 | else |
| 5689 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5691 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5692 | fi |
| 5693 | |
| 5694 | else |
| 5695 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5697 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5698 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5699 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5700 | |
| 5701 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5702 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5703 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5704 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5705 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5706 | then |
| 5707 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5709 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5710 | else |
| 5711 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5713 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5714 | fi |
| 5715 | |
| 5716 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5717 | if test -n "$WITH_DIET_LIBC" |
| 5718 | then |
| 5719 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5721 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5722 | else |
| 5723 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5725 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5726 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5727 | |
| 5728 | fi |
| 5729 | |
| 5730 | if test "$try_tls" = "yes" |
| 5731 | then |
| 5732 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5734 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5735 | if test "${ac_cv_tls+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5736 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5737 | else |
| 5738 | |
| 5739 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5740 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5741 | case $ax_tls_keyword in |
| 5742 | none) ac_cv_tls=none ; break ;; |
| 5743 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5745 | /* end confdefs.h. */ |
| 5746 | #include <stdlib.h> |
| 5747 | static void |
| 5748 | foo(void) { |
| 5749 | static $ax_tls_keyword int bar; |
| 5750 | exit(1); |
| 5751 | } |
| 5752 | int |
| 5753 | main () |
| 5754 | { |
| 5755 | |
| 5756 | ; |
| 5757 | return 0; |
| 5758 | } |
| 5759 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5760 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5761 | ac_cv_tls=$ax_tls_keyword ; break |
| 5762 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5763 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5764 | |
| 5765 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5767 | esac |
| 5768 | done |
| 5769 | |
| 5770 | fi |
| 5771 | |
| 5772 | |
| 5773 | if test "$ac_cv_tls" != "none"; then |
| 5774 | |
| 5775 | cat >>confdefs.h <<_ACEOF |
| 5776 | #define TLS $ac_cv_tls |
| 5777 | _ACEOF |
| 5778 | |
| 5779 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5781 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5782 | |
| 5783 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5784 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5785 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5786 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5787 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5789 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5790 | UUIDD_CMT="#" |
| 5791 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5792 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5793 | |
| 5794 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5796 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5797 | fi |
| 5798 | |
| 5799 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5800 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5801 | |
| 5802 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5804 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5805 | |
| 5806 | fi |
| 5807 | |
| 5808 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5809 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5810 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5811 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5812 | PACKAGE=e2fsprogs |
| 5813 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5814 | VERSION=0.14.1 |
| 5815 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5816 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5817 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5819 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5820 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5821 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5822 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5823 | |
| 5824 | |
| 5825 | |
| 5826 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5828 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5829 | set x ${MAKE-make} |
| 5830 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5831 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5832 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5833 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5834 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5835 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5836 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5837 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5838 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5839 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5840 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5841 | *@@@%%%=?*=@@@%%%*) |
| 5842 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5843 | *) |
| 5844 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5845 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5846 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5848 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5850 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5851 | SET_MAKE= |
| 5852 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5854 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5855 | SET_MAKE="MAKE=${MAKE-make}" |
| 5856 | fi |
| 5857 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5858 | # Find a good install program. We prefer a C program (faster), |
| 5859 | # so one script is as good as another. But avoid the broken or |
| 5860 | # incompatible versions: |
| 5861 | # SysV /etc/install, /usr/sbin/install |
| 5862 | # SunOS /usr/etc/install |
| 5863 | # IRIX /sbin/install |
| 5864 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5865 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5866 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5867 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5868 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5869 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5870 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5871 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5873 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5874 | if test -z "$INSTALL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5875 | if test "${ac_cv_path_install+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5876 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5877 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5879 | for as_dir in $PATH |
| 5880 | do |
| 5881 | IFS=$as_save_IFS |
| 5882 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5883 | # Account for people who put trailing slashes in PATH elements. |
| 5884 | case $as_dir/ in #(( |
| 5885 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5886 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5887 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5888 | /usr/ucb/* ) ;; |
| 5889 | *) |
| 5890 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5891 | # Don't use installbsd from OSF since it installs stuff as root |
| 5892 | # by default. |
| 5893 | for ac_prog in ginstall scoinst install; do |
| 5894 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5895 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5896 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5897 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5898 | # AIX install. It has an incompatible calling convention. |
| 5899 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5900 | elif test $ac_prog = install && |
| 5901 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5902 | # program-specific install script used by HP pwplus--don't use. |
| 5903 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5904 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5905 | rm -rf conftest.one conftest.two conftest.dir |
| 5906 | echo one > conftest.one |
| 5907 | echo two > conftest.two |
| 5908 | mkdir conftest.dir |
| 5909 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5910 | test -s conftest.one && test -s conftest.two && |
| 5911 | test -s conftest.dir/conftest.one && |
| 5912 | test -s conftest.dir/conftest.two |
| 5913 | then |
| 5914 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5915 | break 3 |
| 5916 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5917 | fi |
| 5918 | fi |
| 5919 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5920 | done |
| 5921 | ;; |
| 5922 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5923 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5924 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5925 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5926 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5927 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5928 | |
| 5929 | fi |
| 5930 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5932 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5933 | # As a last resort, use the slow shell script. Don't cache a |
| 5934 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5935 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5936 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5937 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5938 | fi |
| 5939 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5941 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5942 | |
| 5943 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5944 | # It thinks the first close brace ends the variable substitution. |
| 5945 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5946 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5947 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5948 | |
| 5949 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5950 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5951 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5952 | MKINSTALLDIRS= |
| 5953 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5954 | case "$ac_aux_dir" in |
| 5955 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5956 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5957 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5958 | fi |
| 5959 | if test -z "$MKINSTALLDIRS"; then |
| 5960 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5961 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5962 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5963 | |
| 5964 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5966 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5967 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5968 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5969 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | else |
| 5971 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5972 | fi |
| 5973 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5975 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5976 | |
| 5977 | |
| 5978 | |
| 5979 | |
| 5980 | |
| 5981 | |
| 5982 | # Prepare PATH_SEPARATOR. |
| 5983 | # The user is always right. |
| 5984 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5985 | echo "#! /bin/sh" >conf$$.sh |
| 5986 | echo "exit 0" >>conf$$.sh |
| 5987 | chmod +x conf$$.sh |
| 5988 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5989 | PATH_SEPARATOR=';' |
| 5990 | else |
| 5991 | PATH_SEPARATOR=: |
| 5992 | fi |
| 5993 | rm -f conf$$.sh |
| 5994 | fi |
| 5995 | |
| 5996 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5997 | # as systems may use methods other than mode bits to determine executability. |
| 5998 | cat >conf$$.file <<_ASEOF |
| 5999 | #! /bin/sh |
| 6000 | exit 0 |
| 6001 | _ASEOF |
| 6002 | chmod +x conf$$.file |
| 6003 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6004 | ac_executable_p="test -x" |
| 6005 | else |
| 6006 | ac_executable_p="test -f" |
| 6007 | fi |
| 6008 | rm -f conf$$.file |
| 6009 | |
| 6010 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6011 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6013 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6014 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6016 | else |
| 6017 | case "$MSGFMT" in |
| 6018 | [\\/]* | ?:[\\/]*) |
| 6019 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6020 | ;; |
| 6021 | *) |
| 6022 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6023 | for ac_dir in $PATH; do |
| 6024 | IFS="$ac_save_IFS" |
| 6025 | test -z "$ac_dir" && ac_dir=. |
| 6026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6027 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6028 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 6029 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6030 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6031 | break 2 |
| 6032 | fi |
| 6033 | fi |
| 6034 | done |
| 6035 | done |
| 6036 | IFS="$ac_save_IFS" |
| 6037 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6038 | ;; |
| 6039 | esac |
| 6040 | fi |
| 6041 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6042 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6044 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6045 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6047 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6048 | fi |
| 6049 | |
| 6050 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6051 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6053 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6054 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6055 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6056 | else |
| 6057 | case $GMSGFMT in |
| 6058 | [\\/]* | ?:[\\/]*) |
| 6059 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6060 | ;; |
| 6061 | *) |
| 6062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6063 | for as_dir in $PATH |
| 6064 | do |
| 6065 | IFS=$as_save_IFS |
| 6066 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6067 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6069 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6071 | break 2 |
| 6072 | fi |
| 6073 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6074 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6075 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6076 | |
| 6077 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6078 | ;; |
| 6079 | esac |
| 6080 | fi |
| 6081 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6082 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6084 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6087 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6088 | fi |
| 6089 | |
| 6090 | |
| 6091 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6092 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6093 | # Prepare PATH_SEPARATOR. |
| 6094 | # The user is always right. |
| 6095 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6096 | echo "#! /bin/sh" >conf$$.sh |
| 6097 | echo "exit 0" >>conf$$.sh |
| 6098 | chmod +x conf$$.sh |
| 6099 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6100 | PATH_SEPARATOR=';' |
| 6101 | else |
| 6102 | PATH_SEPARATOR=: |
| 6103 | fi |
| 6104 | rm -f conf$$.sh |
| 6105 | fi |
| 6106 | |
| 6107 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6108 | # as systems may use methods other than mode bits to determine executability. |
| 6109 | cat >conf$$.file <<_ASEOF |
| 6110 | #! /bin/sh |
| 6111 | exit 0 |
| 6112 | _ASEOF |
| 6113 | chmod +x conf$$.file |
| 6114 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6115 | ac_executable_p="test -x" |
| 6116 | else |
| 6117 | ac_executable_p="test -f" |
| 6118 | fi |
| 6119 | rm -f conf$$.file |
| 6120 | |
| 6121 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6122 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6124 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6125 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6126 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6127 | else |
| 6128 | case "$XGETTEXT" in |
| 6129 | [\\/]* | ?:[\\/]*) |
| 6130 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6131 | ;; |
| 6132 | *) |
| 6133 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6134 | for ac_dir in $PATH; do |
| 6135 | IFS="$ac_save_IFS" |
| 6136 | test -z "$ac_dir" && ac_dir=. |
| 6137 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6138 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6139 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6140 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6141 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6142 | break 2 |
| 6143 | fi |
| 6144 | fi |
| 6145 | done |
| 6146 | done |
| 6147 | IFS="$ac_save_IFS" |
| 6148 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6149 | ;; |
| 6150 | esac |
| 6151 | fi |
| 6152 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6153 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6155 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6156 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6158 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6159 | fi |
| 6160 | |
| 6161 | rm -f messages.po |
| 6162 | |
| 6163 | |
| 6164 | # Prepare PATH_SEPARATOR. |
| 6165 | # The user is always right. |
| 6166 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6167 | echo "#! /bin/sh" >conf$$.sh |
| 6168 | echo "exit 0" >>conf$$.sh |
| 6169 | chmod +x conf$$.sh |
| 6170 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6171 | PATH_SEPARATOR=';' |
| 6172 | else |
| 6173 | PATH_SEPARATOR=: |
| 6174 | fi |
| 6175 | rm -f conf$$.sh |
| 6176 | fi |
| 6177 | |
| 6178 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6179 | # as systems may use methods other than mode bits to determine executability. |
| 6180 | cat >conf$$.file <<_ASEOF |
| 6181 | #! /bin/sh |
| 6182 | exit 0 |
| 6183 | _ASEOF |
| 6184 | chmod +x conf$$.file |
| 6185 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6186 | ac_executable_p="test -x" |
| 6187 | else |
| 6188 | ac_executable_p="test -f" |
| 6189 | fi |
| 6190 | rm -f conf$$.file |
| 6191 | |
| 6192 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6193 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6195 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6196 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6197 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6198 | else |
| 6199 | case "$MSGMERGE" in |
| 6200 | [\\/]* | ?:[\\/]*) |
| 6201 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6202 | ;; |
| 6203 | *) |
| 6204 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6205 | for ac_dir in $PATH; do |
| 6206 | IFS="$ac_save_IFS" |
| 6207 | test -z "$ac_dir" && ac_dir=. |
| 6208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6209 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6210 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6211 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6212 | break 2 |
| 6213 | fi |
| 6214 | fi |
| 6215 | done |
| 6216 | done |
| 6217 | IFS="$ac_save_IFS" |
| 6218 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6219 | ;; |
| 6220 | esac |
| 6221 | fi |
| 6222 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6223 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6225 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6226 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6228 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6229 | fi |
| 6230 | |
| 6231 | |
| 6232 | if test "$GMSGFMT" != ":"; then |
| 6233 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6234 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6235 | : ; |
| 6236 | else |
| 6237 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6239 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6240 | GMSGFMT=":" |
| 6241 | fi |
| 6242 | fi |
| 6243 | |
| 6244 | if test "$XGETTEXT" != ":"; then |
| 6245 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6246 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6247 | : ; |
| 6248 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6250 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6251 | XGETTEXT=":" |
| 6252 | fi |
| 6253 | rm -f messages.po |
| 6254 | fi |
| 6255 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6256 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6257 | |
| 6258 | |
| 6259 | if test -n "$ac_tool_prefix"; then |
| 6260 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6261 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6263 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6264 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6265 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6266 | else |
| 6267 | if test -n "$RANLIB"; then |
| 6268 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6269 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6271 | for as_dir in $PATH |
| 6272 | do |
| 6273 | IFS=$as_save_IFS |
| 6274 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6275 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6277 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6279 | break 2 |
| 6280 | fi |
| 6281 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6282 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6283 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6284 | |
| 6285 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6286 | fi |
| 6287 | RANLIB=$ac_cv_prog_RANLIB |
| 6288 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6290 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6291 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6293 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6294 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6295 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6296 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6297 | fi |
| 6298 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6299 | ac_ct_RANLIB=$RANLIB |
| 6300 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6301 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6303 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6304 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6305 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6306 | else |
| 6307 | if test -n "$ac_ct_RANLIB"; then |
| 6308 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6309 | else |
| 6310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6311 | for as_dir in $PATH |
| 6312 | do |
| 6313 | IFS=$as_save_IFS |
| 6314 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6315 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6317 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6319 | break 2 |
| 6320 | fi |
| 6321 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6322 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6323 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6325 | fi |
| 6326 | fi |
| 6327 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6328 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6330 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6331 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6333 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6334 | fi |
| 6335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6336 | if test "x$ac_ct_RANLIB" = x; then |
| 6337 | RANLIB=":" |
| 6338 | else |
| 6339 | case $cross_compiling:$ac_tool_warned in |
| 6340 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6343 | ac_tool_warned=yes ;; |
| 6344 | esac |
| 6345 | RANLIB=$ac_ct_RANLIB |
| 6346 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | else |
| 6348 | RANLIB="$ac_cv_prog_RANLIB" |
| 6349 | fi |
| 6350 | |
| 6351 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6353 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6354 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6355 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6356 | else |
| 6357 | ac_check_lib_save_LIBS=$LIBS |
| 6358 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6360 | /* end confdefs.h. */ |
| 6361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6362 | /* Override any GCC internal prototype to avoid an error. |
| 6363 | Use char because int might match the return type of a GCC |
| 6364 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6365 | #ifdef __cplusplus |
| 6366 | extern "C" |
| 6367 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6368 | char strerror (); |
| 6369 | int |
| 6370 | main () |
| 6371 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6372 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6373 | ; |
| 6374 | return 0; |
| 6375 | } |
| 6376 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6377 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6378 | ac_cv_lib_cposix_strerror=yes |
| 6379 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6380 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6381 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6382 | rm -f core conftest.err conftest.$ac_objext \ |
| 6383 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | LIBS=$ac_check_lib_save_LIBS |
| 6385 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6387 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6388 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6389 | LIBS="$LIBS -lcposix" |
| 6390 | fi |
| 6391 | |
| 6392 | |
| 6393 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6395 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6396 | if test "${ac_cv_c_const+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6397 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6398 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | /* end confdefs.h. */ |
| 6401 | |
| 6402 | int |
| 6403 | main () |
| 6404 | { |
| 6405 | /* FIXME: Include the comments suggested by Paul. */ |
| 6406 | #ifndef __cplusplus |
| 6407 | /* Ultrix mips cc rejects this. */ |
| 6408 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6409 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6410 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6411 | char const *const *pcpcc; |
| 6412 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6414 | struct point {int x, y;}; |
| 6415 | static struct point const zero = {0,0}; |
| 6416 | /* AIX XL C 1.02.0.0 rejects this. |
| 6417 | It does not let you subtract one const X* pointer from another in |
| 6418 | an arm of an if-expression whose if-part is not a constant |
| 6419 | expression */ |
| 6420 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6421 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6422 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6423 | ++pcpcc; |
| 6424 | ppc = (char**) pcpcc; |
| 6425 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6426 | { /* SCO 3.2v4 cc rejects this. */ |
| 6427 | char *t; |
| 6428 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6429 | |
| 6430 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6431 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6432 | } |
| 6433 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6434 | int x[] = {25, 17}; |
| 6435 | const int *foo = &x[0]; |
| 6436 | ++foo; |
| 6437 | } |
| 6438 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6439 | typedef const int *iptr; |
| 6440 | iptr p = 0; |
| 6441 | ++p; |
| 6442 | } |
| 6443 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6444 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6445 | struct s { int j; const int *ap[3]; }; |
| 6446 | struct s *b; b->j = 5; |
| 6447 | } |
| 6448 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6449 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6450 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6452 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | #endif |
| 6454 | |
| 6455 | ; |
| 6456 | return 0; |
| 6457 | } |
| 6458 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6459 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6460 | ac_cv_c_const=yes |
| 6461 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6462 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6463 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6465 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6467 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6468 | if test $ac_cv_c_const = no; then |
| 6469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6470 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6471 | |
| 6472 | fi |
| 6473 | |
| 6474 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6476 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6477 | if test "${bh_cv_c_signed+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6478 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6479 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6481 | /* end confdefs.h. */ |
| 6482 | |
| 6483 | int |
| 6484 | main () |
| 6485 | { |
| 6486 | signed char x; |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6491 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6492 | bh_cv_c_signed=yes |
| 6493 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6494 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6495 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6499 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6500 | if test $bh_cv_c_signed = no; then |
| 6501 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6502 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6503 | |
| 6504 | fi |
| 6505 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6507 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6508 | if test "${ac_cv_c_inline+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6509 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6510 | else |
| 6511 | ac_cv_c_inline=no |
| 6512 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6514 | /* end confdefs.h. */ |
| 6515 | #ifndef __cplusplus |
| 6516 | typedef int foo_t; |
| 6517 | static $ac_kw foo_t static_foo () {return 0; } |
| 6518 | $ac_kw foo_t foo () {return 0; } |
| 6519 | #endif |
| 6520 | |
| 6521 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6522 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6523 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6526 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | done |
| 6528 | |
| 6529 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6531 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6534 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | *) |
| 6536 | case $ac_cv_c_inline in |
| 6537 | no) ac_val=;; |
| 6538 | *) ac_val=$ac_cv_c_inline;; |
| 6539 | esac |
| 6540 | cat >>confdefs.h <<_ACEOF |
| 6541 | #ifndef __cplusplus |
| 6542 | #define inline $ac_val |
| 6543 | #endif |
| 6544 | _ACEOF |
| 6545 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6546 | esac |
| 6547 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6548 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6549 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6550 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | |
| 6553 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6554 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6555 | _ACEOF |
| 6556 | |
| 6557 | fi |
| 6558 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6559 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6560 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6562 | else |
| 6563 | |
| 6564 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6565 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6566 | _ACEOF |
| 6567 | |
| 6568 | fi |
| 6569 | |
| 6570 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6572 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6573 | if test "${ac_cv_type_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6574 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6575 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6577 | /* end confdefs.h. */ |
| 6578 | long long ll = 1LL; int i = 63; |
| 6579 | int |
| 6580 | main () |
| 6581 | { |
| 6582 | long long llmax = (long long) -1; |
| 6583 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6584 | ; |
| 6585 | return 0; |
| 6586 | } |
| 6587 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6588 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | ac_cv_type_long_long=yes |
| 6590 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6591 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6593 | rm -f core conftest.err conftest.$ac_objext \ |
| 6594 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6595 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6597 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6598 | if test $ac_cv_type_long_long = yes; then |
| 6599 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | |
| 6602 | fi |
| 6603 | |
| 6604 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6606 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6607 | if test "${gt_cv_c_long_double+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6608 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | else |
| 6610 | if test "$GCC" = yes; then |
| 6611 | gt_cv_c_long_double=yes |
| 6612 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6614 | /* end confdefs.h. */ |
| 6615 | |
| 6616 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6617 | long double foo = 0.0; |
| 6618 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6619 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6620 | |
| 6621 | int |
| 6622 | main () |
| 6623 | { |
| 6624 | |
| 6625 | ; |
| 6626 | return 0; |
| 6627 | } |
| 6628 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6629 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6630 | gt_cv_c_long_double=yes |
| 6631 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6632 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | fi |
| 6636 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6638 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6639 | if test $gt_cv_c_long_double = yes; then |
| 6640 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6641 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | |
| 6643 | fi |
| 6644 | |
| 6645 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6647 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6648 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6649 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6650 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6652 | /* end confdefs.h. */ |
| 6653 | #include <stddef.h> |
| 6654 | wchar_t foo = (wchar_t)'\0'; |
| 6655 | int |
| 6656 | main () |
| 6657 | { |
| 6658 | |
| 6659 | ; |
| 6660 | return 0; |
| 6661 | } |
| 6662 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6663 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | gt_cv_c_wchar_t=yes |
| 6665 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6666 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6669 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6671 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | if test $gt_cv_c_wchar_t = yes; then |
| 6673 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6674 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | |
| 6676 | fi |
| 6677 | |
| 6678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6680 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6681 | if test "${gt_cv_c_wint_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6682 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | /* end confdefs.h. */ |
| 6686 | #include <wchar.h> |
| 6687 | wint_t foo = (wchar_t)'\0'; |
| 6688 | int |
| 6689 | main () |
| 6690 | { |
| 6691 | |
| 6692 | ; |
| 6693 | return 0; |
| 6694 | } |
| 6695 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6696 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | gt_cv_c_wint_t=yes |
| 6698 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6699 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6700 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6704 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | if test $gt_cv_c_wint_t = yes; then |
| 6706 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6707 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6708 | |
| 6709 | fi |
| 6710 | |
| 6711 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6713 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6714 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6715 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6716 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | /* end confdefs.h. */ |
| 6719 | #include <sys/types.h> |
| 6720 | #include <inttypes.h> |
| 6721 | int |
| 6722 | main () |
| 6723 | { |
| 6724 | uintmax_t i = (uintmax_t) -1; |
| 6725 | ; |
| 6726 | return 0; |
| 6727 | } |
| 6728 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6729 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6730 | jm_ac_cv_header_inttypes_h=yes |
| 6731 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6732 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6733 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6735 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6737 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6739 | |
| 6740 | cat >>confdefs.h <<_ACEOF |
| 6741 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6742 | _ACEOF |
| 6743 | |
| 6744 | fi |
| 6745 | |
| 6746 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6748 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6749 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6750 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6753 | /* end confdefs.h. */ |
| 6754 | #include <sys/types.h> |
| 6755 | #include <stdint.h> |
| 6756 | int |
| 6757 | main () |
| 6758 | { |
| 6759 | uintmax_t i = (uintmax_t) -1; |
| 6760 | ; |
| 6761 | return 0; |
| 6762 | } |
| 6763 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6764 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6765 | jm_ac_cv_header_stdint_h=yes |
| 6766 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6767 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6772 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6774 | |
| 6775 | cat >>confdefs.h <<_ACEOF |
| 6776 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6777 | _ACEOF |
| 6778 | |
| 6779 | fi |
| 6780 | |
| 6781 | |
| 6782 | |
| 6783 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6785 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6786 | if test "${gt_cv_c_intmax_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6787 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6788 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | /* end confdefs.h. */ |
| 6791 | |
| 6792 | #include <stddef.h> |
| 6793 | #include <stdlib.h> |
| 6794 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6795 | #include <stdint.h> |
| 6796 | #endif |
| 6797 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6798 | #include <inttypes.h> |
| 6799 | #endif |
| 6800 | |
| 6801 | int |
| 6802 | main () |
| 6803 | { |
| 6804 | intmax_t x = -1; |
| 6805 | ; |
| 6806 | return 0; |
| 6807 | } |
| 6808 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6809 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6810 | gt_cv_c_intmax_t=yes |
| 6811 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6812 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6817 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6818 | if test $gt_cv_c_intmax_t = yes; then |
| 6819 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6820 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | |
| 6822 | fi |
| 6823 | |
| 6824 | |
| 6825 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6827 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6828 | if test "${gt_cv_func_printf_posix+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6829 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | else |
| 6831 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6832 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | /* end confdefs.h. */ |
| 6836 | |
| 6837 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6838 | notposix |
| 6839 | #endif |
| 6840 | |
| 6841 | _ACEOF |
| 6842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6843 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | gt_cv_func_printf_posix="guessing no" |
| 6845 | else |
| 6846 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6847 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6848 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6849 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | |
| 6851 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | /* end confdefs.h. */ |
| 6854 | |
| 6855 | #include <stdio.h> |
| 6856 | #include <string.h> |
| 6857 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6858 | dollar expansion (possibly an autoconf bug). */ |
| 6859 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6860 | static char buf[100]; |
| 6861 | int main () |
| 6862 | { |
| 6863 | sprintf (buf, format, 33, 55); |
| 6864 | return (strcmp (buf, "55 33") != 0); |
| 6865 | } |
| 6866 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6867 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6868 | gt_cv_func_printf_posix=yes |
| 6869 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6870 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6871 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6872 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6873 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6874 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6876 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6877 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6879 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | case $gt_cv_func_printf_posix in |
| 6881 | *yes) |
| 6882 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6883 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | |
| 6885 | ;; |
| 6886 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6887 | |
| 6888 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6889 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6891 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6892 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6893 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6894 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6896 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6897 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6898 | int |
| 6899 | main () |
| 6900 | { |
| 6901 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6902 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6903 | ; |
| 6904 | return 0; |
| 6905 | } |
| 6906 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6907 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6908 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6909 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6910 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6912 | rm -f core conftest.err conftest.$ac_objext \ |
| 6913 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6914 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6916 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | if test $ac_cv_working_alloca_h = yes; then |
| 6918 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6919 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6920 | |
| 6921 | fi |
| 6922 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6924 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6925 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6926 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6927 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6930 | #ifdef __GNUC__ |
| 6931 | # define alloca __builtin_alloca |
| 6932 | #else |
| 6933 | # ifdef _MSC_VER |
| 6934 | # include <malloc.h> |
| 6935 | # define alloca _alloca |
| 6936 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6937 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6938 | # include <alloca.h> |
| 6939 | # else |
| 6940 | # ifdef _AIX |
| 6941 | #pragma alloca |
| 6942 | # else |
| 6943 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6944 | char *alloca (); |
| 6945 | # endif |
| 6946 | # endif |
| 6947 | # endif |
| 6948 | # endif |
| 6949 | #endif |
| 6950 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6951 | int |
| 6952 | main () |
| 6953 | { |
| 6954 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6955 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | ; |
| 6957 | return 0; |
| 6958 | } |
| 6959 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6960 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6961 | ac_cv_func_alloca_works=yes |
| 6962 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6963 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6965 | rm -f core conftest.err conftest.$ac_objext \ |
| 6966 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6969 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6971 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6972 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6973 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6974 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6977 | # that cause trouble. Some versions do not even contain alloca or |
| 6978 | # contain a buggy version. If you still want to use their alloca, |
| 6979 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6981 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6982 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6983 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | |
| 6985 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6987 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6988 | if test "${ac_cv_os_cray+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6989 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6990 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6992 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6993 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6994 | webecray |
| 6995 | #else |
| 6996 | wenotbecray |
| 6997 | #endif |
| 6998 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6999 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7001 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7002 | ac_cv_os_cray=yes |
| 7003 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7004 | ac_cv_os_cray=no |
| 7005 | fi |
| 7006 | rm -f conftest* |
| 7007 | |
| 7008 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7010 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7011 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7012 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7013 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7014 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7015 | eval as_val=\$$as_ac_var |
| 7016 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | |
| 7018 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7019 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7020 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7023 | fi |
| 7024 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7025 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7026 | fi |
| 7027 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7029 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7030 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7031 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7032 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7033 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7034 | ac_cv_c_stack_direction=0 |
| 7035 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7037 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7038 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7040 | find_stack_direction () |
| 7041 | { |
| 7042 | static char *addr = 0; |
| 7043 | auto char dummy; |
| 7044 | if (addr == 0) |
| 7045 | { |
| 7046 | addr = &dummy; |
| 7047 | return find_stack_direction (); |
| 7048 | } |
| 7049 | else |
| 7050 | return (&dummy > addr) ? 1 : -1; |
| 7051 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7052 | |
| 7053 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7054 | main () |
| 7055 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7056 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7057 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7058 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7059 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7060 | ac_cv_c_stack_direction=1 |
| 7061 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7062 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7063 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7064 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7065 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7066 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7067 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7068 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7070 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7071 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7072 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7073 | _ACEOF |
| 7074 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7075 | |
| 7076 | fi |
| 7077 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7078 | |
| 7079 | |
| 7080 | |
| 7081 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7082 | do : |
| 7083 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7084 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7085 | " |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7086 | eval as_val=\$$as_ac_Header |
| 7087 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7088 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7089 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7090 | _ACEOF |
| 7091 | |
| 7092 | fi |
| 7093 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | done |
| 7095 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7096 | |
| 7097 | |
| 7098 | |
| 7099 | |
| 7100 | |
| 7101 | |
| 7102 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7103 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7104 | do : |
| 7105 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 7106 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7108 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7109 | _ACEOF |
| 7110 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7111 | fi |
| 7112 | done |
| 7113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7115 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7116 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7117 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7118 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7119 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7120 | ac_cv_func_mmap_fixed_mapped=no |
| 7121 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | /* end confdefs.h. */ |
| 7124 | $ac_includes_default |
| 7125 | /* malloc might have been renamed as rpl_malloc. */ |
| 7126 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7127 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7128 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7129 | Here is a matrix of mmap possibilities: |
| 7130 | mmap private not fixed |
| 7131 | mmap private fixed at somewhere currently unmapped |
| 7132 | mmap private fixed at somewhere already mapped |
| 7133 | mmap shared not fixed |
| 7134 | mmap shared fixed at somewhere currently unmapped |
| 7135 | mmap shared fixed at somewhere already mapped |
| 7136 | For private mappings, we should verify that changes cannot be read() |
| 7137 | back from the file, nor mmap's back from the file at a different |
| 7138 | address. (There have been systems where private was not correctly |
| 7139 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7141 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7142 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7144 | |
| 7145 | Grep wants private fixed already mapped. |
| 7146 | The main things grep needs to know about mmap are: |
| 7147 | * does it exist and is it safe to write into the mmap'd area |
| 7148 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7149 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7150 | #include <fcntl.h> |
| 7151 | #include <sys/mman.h> |
| 7152 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7153 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7154 | char *malloc (); |
| 7155 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7156 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7157 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7158 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7159 | # ifdef _SC_PAGESIZE |
| 7160 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7161 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7162 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7163 | # include <sys/param.h> |
| 7164 | # ifdef EXEC_PAGESIZE |
| 7165 | # define getpagesize() EXEC_PAGESIZE |
| 7166 | # else /* no EXEC_PAGESIZE */ |
| 7167 | # ifdef NBPG |
| 7168 | # define getpagesize() NBPG * CLSIZE |
| 7169 | # ifndef CLSIZE |
| 7170 | # define CLSIZE 1 |
| 7171 | # endif /* no CLSIZE */ |
| 7172 | # else /* no NBPG */ |
| 7173 | # ifdef NBPC |
| 7174 | # define getpagesize() NBPC |
| 7175 | # else /* no NBPC */ |
| 7176 | # ifdef PAGESIZE |
| 7177 | # define getpagesize() PAGESIZE |
| 7178 | # endif /* PAGESIZE */ |
| 7179 | # endif /* no NBPC */ |
| 7180 | # endif /* no NBPG */ |
| 7181 | # endif /* no EXEC_PAGESIZE */ |
| 7182 | # else /* no HAVE_SYS_PARAM_H */ |
| 7183 | # define getpagesize() 8192 /* punt totally */ |
| 7184 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7185 | # endif /* no _SC_PAGESIZE */ |
| 7186 | |
| 7187 | #endif /* no HAVE_GETPAGESIZE */ |
| 7188 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7189 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7190 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7191 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7192 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7193 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7195 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7197 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7198 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7199 | /* First, make a file with some known garbage in it. */ |
| 7200 | data = (char *) malloc (pagesize); |
| 7201 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7202 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | for (i = 0; i < pagesize; ++i) |
| 7204 | *(data + i) = rand (); |
| 7205 | umask (0); |
| 7206 | fd = creat ("conftest.mmap", 0600); |
| 7207 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7208 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7209 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7210 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7211 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7212 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7213 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7214 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7215 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7216 | if (fd2 < 0) |
| 7217 | return 4; |
| 7218 | cdata2 = ""; |
| 7219 | if (write (fd2, cdata2, 1) != 1) |
| 7220 | return 5; |
| 7221 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7222 | if (data2 == MAP_FAILED) |
| 7223 | return 6; |
| 7224 | for (i = 0; i < pagesize; ++i) |
| 7225 | if (*(data2 + i)) |
| 7226 | return 7; |
| 7227 | close (fd2); |
| 7228 | if (munmap (data2, pagesize)) |
| 7229 | return 8; |
| 7230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | /* Next, try to mmap the file at a fixed address which already has |
| 7232 | something else allocated at it. If we can, also make sure that |
| 7233 | we see the same garbage. */ |
| 7234 | fd = open ("conftest.mmap", O_RDWR); |
| 7235 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7236 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7237 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7238 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7239 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | for (i = 0; i < pagesize; ++i) |
| 7241 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7242 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7243 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7244 | /* Finally, make sure that changes to the mapped area do not |
| 7245 | percolate back to the file as seen by read(). (This is a bug on |
| 7246 | some variants of i386 svr4.0.) */ |
| 7247 | for (i = 0; i < pagesize; ++i) |
| 7248 | *(data2 + i) = *(data2 + i) + 1; |
| 7249 | data3 = (char *) malloc (pagesize); |
| 7250 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7251 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7253 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7254 | for (i = 0; i < pagesize; ++i) |
| 7255 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7256 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7257 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7258 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7259 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7260 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7261 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7262 | ac_cv_func_mmap_fixed_mapped=yes |
| 7263 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7264 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7265 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7266 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7267 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7270 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7272 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7273 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7274 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7275 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7276 | |
| 7277 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7278 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7279 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7280 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7282 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7283 | if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7284 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7285 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7287 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7288 | |
| 7289 | #include <features.h> |
| 7290 | #ifdef __GNU_LIBRARY__ |
| 7291 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7292 | Lucky GNU user |
| 7293 | #endif |
| 7294 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7295 | |
| 7296 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7298 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7299 | ac_cv_gnu_library_2_1=yes |
| 7300 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7301 | ac_cv_gnu_library_2_1=no |
| 7302 | fi |
| 7303 | rm -f conftest* |
| 7304 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7305 | |
| 7306 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7307 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7309 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7310 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7311 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7312 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7314 | |
| 7315 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7317 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7318 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7319 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7320 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7321 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7322 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7323 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7324 | # Guess based on the CPU. |
| 7325 | case "$host_cpu" in |
| 7326 | alpha* | i3456786 | m68k | s390*) |
| 7327 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7328 | *) |
| 7329 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7330 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7331 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7332 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7334 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7335 | |
| 7336 | #include <stdlib.h> |
| 7337 | #include <signal.h> |
| 7338 | |
| 7339 | static void |
| 7340 | #ifdef __cplusplus |
| 7341 | sigfpe_handler (int sig) |
| 7342 | #else |
| 7343 | sigfpe_handler (sig) int sig; |
| 7344 | #endif |
| 7345 | { |
| 7346 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7347 | exit (sig != SIGFPE); |
| 7348 | } |
| 7349 | |
| 7350 | int x = 1; |
| 7351 | int y = 0; |
| 7352 | int z; |
| 7353 | int nan; |
| 7354 | |
| 7355 | int main () |
| 7356 | { |
| 7357 | signal (SIGFPE, sigfpe_handler); |
| 7358 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7359 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7360 | signal (SIGTRAP, sigfpe_handler); |
| 7361 | #endif |
| 7362 | /* Linux/SPARC yields signal SIGILL. */ |
| 7363 | #if defined (__sparc__) && defined (__linux__) |
| 7364 | signal (SIGILL, sigfpe_handler); |
| 7365 | #endif |
| 7366 | |
| 7367 | z = x / y; |
| 7368 | nan = y / y; |
| 7369 | exit (1); |
| 7370 | } |
| 7371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7372 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7373 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7374 | gt_cv_int_divbyzero_sigfpe=yes |
| 7375 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7376 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7377 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7378 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7379 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7380 | fi |
| 7381 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7382 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7383 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7385 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7386 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7387 | *yes) value=1;; |
| 7388 | *) value=0;; |
| 7389 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7390 | |
| 7391 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7392 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7393 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7394 | |
| 7395 | |
| 7396 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7398 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7399 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7400 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7401 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7403 | /* end confdefs.h. */ |
| 7404 | unsigned long long ull = 1ULL; int i = 63; |
| 7405 | int |
| 7406 | main () |
| 7407 | { |
| 7408 | unsigned long long ullmax = (unsigned long long) -1; |
| 7409 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7410 | ; |
| 7411 | return 0; |
| 7412 | } |
| 7413 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7414 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7415 | ac_cv_type_unsigned_long_long=yes |
| 7416 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7417 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7418 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7419 | rm -f core conftest.err conftest.$ac_objext \ |
| 7420 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7421 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7423 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7424 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7425 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7426 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7427 | |
| 7428 | fi |
| 7429 | |
| 7430 | |
| 7431 | |
| 7432 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7433 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7435 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7436 | && ac_type='unsigned long long' \ |
| 7437 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7438 | |
| 7439 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7440 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7441 | _ACEOF |
| 7442 | |
| 7443 | else |
| 7444 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7445 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7446 | |
| 7447 | fi |
| 7448 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7449 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7451 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7452 | if test "${gt_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7453 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7454 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7457 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7458 | #include <sys/types.h> |
| 7459 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7460 | int |
| 7461 | main () |
| 7462 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | ; |
| 7465 | return 0; |
| 7466 | } |
| 7467 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7468 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7469 | gt_cv_header_inttypes_h=yes |
| 7470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7471 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7472 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7474 | |
| 7475 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7477 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7478 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7479 | |
| 7480 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7481 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7483 | |
| 7484 | fi |
| 7485 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7487 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7488 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7490 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7491 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7492 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7493 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7494 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7496 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7497 | #include <inttypes.h> |
| 7498 | #ifdef PRId32 |
| 7499 | char *p = PRId32; |
| 7500 | #endif |
| 7501 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7502 | int |
| 7503 | main () |
| 7504 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7506 | ; |
| 7507 | return 0; |
| 7508 | } |
| 7509 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7510 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7511 | gt_cv_inttypes_pri_broken=no |
| 7512 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7513 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7514 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7516 | |
| 7517 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7519 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7520 | fi |
| 7521 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | |
| 7523 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7524 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7525 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7526 | |
| 7527 | fi |
| 7528 | |
| 7529 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7530 | for ac_header in stdint.h |
| 7531 | do : |
| 7532 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7533 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7534 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7535 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7536 | _ACEOF |
| 7537 | |
| 7538 | fi |
| 7539 | |
| 7540 | done |
| 7541 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7543 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7544 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7546 | /* end confdefs.h. */ |
| 7547 | |
| 7548 | #include <limits.h> |
| 7549 | #if HAVE_STDINT_H |
| 7550 | #include <stdint.h> |
| 7551 | #endif |
| 7552 | #ifdef SIZE_MAX |
| 7553 | Found it |
| 7554 | #endif |
| 7555 | |
| 7556 | _ACEOF |
| 7557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7558 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7559 | result=yes |
| 7560 | fi |
| 7561 | rm -f conftest* |
| 7562 | |
| 7563 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7564 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7566 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7567 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7569 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7570 | |
| 7571 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7573 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7574 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7575 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7577 | |
| 7578 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7580 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7581 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7583 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7584 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7585 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | /* end confdefs.h. */ |
| 7588 | #include <stddef.h> |
| 7589 | extern size_t foo; |
| 7590 | extern unsigned long foo; |
| 7591 | |
| 7592 | int |
| 7593 | main () |
| 7594 | { |
| 7595 | |
| 7596 | ; |
| 7597 | return 0; |
| 7598 | } |
| 7599 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7600 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7604 | fi |
| 7605 | if test -z "$result"; then |
| 7606 | if test "$fits_in_uint" = 1; then |
| 7607 | result="$res_hi$res_lo"U |
| 7608 | else |
| 7609 | result="$res_hi$res_lo"UL |
| 7610 | fi |
| 7611 | else |
| 7612 | result='~(size_t)0' |
| 7613 | fi |
| 7614 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7616 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | if test "$result" != yes; then |
| 7618 | |
| 7619 | cat >>confdefs.h <<_ACEOF |
| 7620 | #define SIZE_MAX $result |
| 7621 | _ACEOF |
| 7622 | |
| 7623 | fi |
| 7624 | |
| 7625 | |
| 7626 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7627 | for ac_header in stdint.h |
| 7628 | do : |
| 7629 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7630 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7631 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7632 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7633 | _ACEOF |
| 7634 | |
| 7635 | fi |
| 7636 | |
| 7637 | done |
| 7638 | |
| 7639 | |
| 7640 | |
| 7641 | if test "X$prefix" = "XNONE"; then |
| 7642 | acl_final_prefix="$ac_default_prefix" |
| 7643 | else |
| 7644 | acl_final_prefix="$prefix" |
| 7645 | fi |
| 7646 | if test "X$exec_prefix" = "XNONE"; then |
| 7647 | acl_final_exec_prefix='${prefix}' |
| 7648 | else |
| 7649 | acl_final_exec_prefix="$exec_prefix" |
| 7650 | fi |
| 7651 | acl_save_prefix="$prefix" |
| 7652 | prefix="$acl_final_prefix" |
| 7653 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7654 | prefix="$acl_save_prefix" |
| 7655 | |
| 7656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7657 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7658 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7659 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | else |
| 7661 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7662 | fi |
| 7663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7664 | # Prepare PATH_SEPARATOR. |
| 7665 | # The user is always right. |
| 7666 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7667 | echo "#! /bin/sh" >conf$$.sh |
| 7668 | echo "exit 0" >>conf$$.sh |
| 7669 | chmod +x conf$$.sh |
| 7670 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7671 | PATH_SEPARATOR=';' |
| 7672 | else |
| 7673 | PATH_SEPARATOR=: |
| 7674 | fi |
| 7675 | rm -f conf$$.sh |
| 7676 | fi |
| 7677 | ac_prog=ld |
| 7678 | if test "$GCC" = yes; then |
| 7679 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7681 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7682 | case $host in |
| 7683 | *-*-mingw*) |
| 7684 | # gcc leaves a trailing carriage return which upsets mingw |
| 7685 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7686 | *) |
| 7687 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7688 | esac |
| 7689 | case $ac_prog in |
| 7690 | # Accept absolute paths. |
| 7691 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7692 | re_direlt='/[^/][^/]*/\.\./' |
| 7693 | # Canonicalize the path of ld |
| 7694 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7695 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7696 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7697 | done |
| 7698 | test -z "$LD" && LD="$ac_prog" |
| 7699 | ;; |
| 7700 | "") |
| 7701 | # If it fails, then pretend we aren't using GCC. |
| 7702 | ac_prog=ld |
| 7703 | ;; |
| 7704 | *) |
| 7705 | # If it is relative, then search for the first ld in PATH. |
| 7706 | with_gnu_ld=unknown |
| 7707 | ;; |
| 7708 | esac |
| 7709 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7711 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7712 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7714 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7715 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7716 | if test "${acl_cv_path_LD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7717 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | else |
| 7719 | if test -z "$LD"; then |
| 7720 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7721 | for ac_dir in $PATH; do |
| 7722 | test -z "$ac_dir" && ac_dir=. |
| 7723 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7724 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7725 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7726 | # but apparently some GNU ld's only accept -v. |
| 7727 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7728 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7729 | *GNU* | *'with BFD'*) |
| 7730 | test "$with_gnu_ld" != no && break ;; |
| 7731 | *) |
| 7732 | test "$with_gnu_ld" != yes && break ;; |
| 7733 | esac |
| 7734 | fi |
| 7735 | done |
| 7736 | IFS="$ac_save_ifs" |
| 7737 | else |
| 7738 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7739 | fi |
| 7740 | fi |
| 7741 | |
| 7742 | LD="$acl_cv_path_LD" |
| 7743 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7745 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7746 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7748 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7749 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7750 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7752 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7753 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7754 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7755 | else |
| 7756 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7757 | case `$LD -v 2>&1 </dev/null` in |
| 7758 | *GNU* | *'with BFD'*) |
| 7759 | acl_cv_prog_gnu_ld=yes ;; |
| 7760 | *) |
| 7761 | acl_cv_prog_gnu_ld=no ;; |
| 7762 | esac |
| 7763 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7765 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7766 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7767 | |
| 7768 | |
| 7769 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7771 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7772 | if test "${acl_cv_rpath+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7773 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | else |
| 7775 | |
| 7776 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7777 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7778 | . ./conftest.sh |
| 7779 | rm -f ./conftest.sh |
| 7780 | acl_cv_rpath=done |
| 7781 | |
| 7782 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7784 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7785 | wl="$acl_cv_wl" |
| 7786 | libext="$acl_cv_libext" |
| 7787 | shlibext="$acl_cv_shlibext" |
| 7788 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7789 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7790 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7791 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7792 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7793 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7794 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7795 | else |
| 7796 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7797 | fi |
| 7798 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7799 | |
| 7800 | |
| 7801 | |
| 7802 | |
| 7803 | |
| 7804 | |
| 7805 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7806 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7807 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7808 | acl_save_prefix="$prefix" |
| 7809 | prefix="$acl_final_prefix" |
| 7810 | acl_save_exec_prefix="$exec_prefix" |
| 7811 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7812 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7813 | eval additional_includedir=\"$includedir\" |
| 7814 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7815 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7816 | exec_prefix="$acl_save_exec_prefix" |
| 7817 | prefix="$acl_save_prefix" |
| 7818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7819 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7820 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7821 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7822 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7823 | if test "X$withval" = "Xno"; then |
| 7824 | use_additional=no |
| 7825 | else |
| 7826 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7827 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7828 | acl_save_prefix="$prefix" |
| 7829 | prefix="$acl_final_prefix" |
| 7830 | acl_save_exec_prefix="$exec_prefix" |
| 7831 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7833 | eval additional_includedir=\"$includedir\" |
| 7834 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7836 | exec_prefix="$acl_save_exec_prefix" |
| 7837 | prefix="$acl_save_prefix" |
| 7838 | |
| 7839 | else |
| 7840 | additional_includedir="$withval/include" |
| 7841 | additional_libdir="$withval/lib" |
| 7842 | fi |
| 7843 | fi |
| 7844 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7845 | fi |
| 7846 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7847 | LIBICONV= |
| 7848 | LTLIBICONV= |
| 7849 | INCICONV= |
| 7850 | rpathdirs= |
| 7851 | ltrpathdirs= |
| 7852 | names_already_handled= |
| 7853 | names_next_round='iconv ' |
| 7854 | while test -n "$names_next_round"; do |
| 7855 | names_this_round="$names_next_round" |
| 7856 | names_next_round= |
| 7857 | for name in $names_this_round; do |
| 7858 | already_handled= |
| 7859 | for n in $names_already_handled; do |
| 7860 | if test "$n" = "$name"; then |
| 7861 | already_handled=yes |
| 7862 | break |
| 7863 | fi |
| 7864 | done |
| 7865 | if test -z "$already_handled"; then |
| 7866 | names_already_handled="$names_already_handled $name" |
| 7867 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7868 | eval value=\"\$HAVE_LIB$uppername\" |
| 7869 | if test -n "$value"; then |
| 7870 | if test "$value" = yes; then |
| 7871 | eval value=\"\$LIB$uppername\" |
| 7872 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7873 | eval value=\"\$LTLIB$uppername\" |
| 7874 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7875 | else |
| 7876 | : |
| 7877 | fi |
| 7878 | else |
| 7879 | found_dir= |
| 7880 | found_la= |
| 7881 | found_so= |
| 7882 | found_a= |
| 7883 | if test $use_additional = yes; then |
| 7884 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7885 | found_dir="$additional_libdir" |
| 7886 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7887 | if test -f "$additional_libdir/lib$name.la"; then |
| 7888 | found_la="$additional_libdir/lib$name.la" |
| 7889 | fi |
| 7890 | else |
| 7891 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7892 | found_dir="$additional_libdir" |
| 7893 | found_a="$additional_libdir/lib$name.$libext" |
| 7894 | if test -f "$additional_libdir/lib$name.la"; then |
| 7895 | found_la="$additional_libdir/lib$name.la" |
| 7896 | fi |
| 7897 | fi |
| 7898 | fi |
| 7899 | fi |
| 7900 | if test "X$found_dir" = "X"; then |
| 7901 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7902 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7903 | acl_save_prefix="$prefix" |
| 7904 | prefix="$acl_final_prefix" |
| 7905 | acl_save_exec_prefix="$exec_prefix" |
| 7906 | exec_prefix="$acl_final_exec_prefix" |
| 7907 | eval x=\"$x\" |
| 7908 | exec_prefix="$acl_save_exec_prefix" |
| 7909 | prefix="$acl_save_prefix" |
| 7910 | |
| 7911 | case "$x" in |
| 7912 | -L*) |
| 7913 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7914 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7915 | found_dir="$dir" |
| 7916 | found_so="$dir/lib$name.$shlibext" |
| 7917 | if test -f "$dir/lib$name.la"; then |
| 7918 | found_la="$dir/lib$name.la" |
| 7919 | fi |
| 7920 | else |
| 7921 | if test -f "$dir/lib$name.$libext"; then |
| 7922 | found_dir="$dir" |
| 7923 | found_a="$dir/lib$name.$libext" |
| 7924 | if test -f "$dir/lib$name.la"; then |
| 7925 | found_la="$dir/lib$name.la" |
| 7926 | fi |
| 7927 | fi |
| 7928 | fi |
| 7929 | ;; |
| 7930 | esac |
| 7931 | if test "X$found_dir" != "X"; then |
| 7932 | break |
| 7933 | fi |
| 7934 | done |
| 7935 | fi |
| 7936 | if test "X$found_dir" != "X"; then |
| 7937 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7938 | if test "X$found_so" != "X"; then |
| 7939 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7940 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7941 | else |
| 7942 | haveit= |
| 7943 | for x in $ltrpathdirs; do |
| 7944 | if test "X$x" = "X$found_dir"; then |
| 7945 | haveit=yes |
| 7946 | break |
| 7947 | fi |
| 7948 | done |
| 7949 | if test -z "$haveit"; then |
| 7950 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7951 | fi |
| 7952 | if test "$hardcode_direct" = yes; then |
| 7953 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7954 | else |
| 7955 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7956 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7957 | haveit= |
| 7958 | for x in $rpathdirs; do |
| 7959 | if test "X$x" = "X$found_dir"; then |
| 7960 | haveit=yes |
| 7961 | break |
| 7962 | fi |
| 7963 | done |
| 7964 | if test -z "$haveit"; then |
| 7965 | rpathdirs="$rpathdirs $found_dir" |
| 7966 | fi |
| 7967 | else |
| 7968 | haveit= |
| 7969 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7970 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7971 | acl_save_prefix="$prefix" |
| 7972 | prefix="$acl_final_prefix" |
| 7973 | acl_save_exec_prefix="$exec_prefix" |
| 7974 | exec_prefix="$acl_final_exec_prefix" |
| 7975 | eval x=\"$x\" |
| 7976 | exec_prefix="$acl_save_exec_prefix" |
| 7977 | prefix="$acl_save_prefix" |
| 7978 | |
| 7979 | if test "X$x" = "X-L$found_dir"; then |
| 7980 | haveit=yes |
| 7981 | break |
| 7982 | fi |
| 7983 | done |
| 7984 | if test -z "$haveit"; then |
| 7985 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7986 | fi |
| 7987 | if test "$hardcode_minus_L" != no; then |
| 7988 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7989 | else |
| 7990 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7991 | fi |
| 7992 | fi |
| 7993 | fi |
| 7994 | fi |
| 7995 | else |
| 7996 | if test "X$found_a" != "X"; then |
| 7997 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7998 | else |
| 7999 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8000 | fi |
| 8001 | fi |
| 8002 | additional_includedir= |
| 8003 | case "$found_dir" in |
| 8004 | */lib | */lib/) |
| 8005 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8006 | additional_includedir="$basedir/include" |
| 8007 | ;; |
| 8008 | esac |
| 8009 | if test "X$additional_includedir" != "X"; then |
| 8010 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8011 | haveit= |
| 8012 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8013 | if test -n "$GCC"; then |
| 8014 | case $host_os in |
| 8015 | linux*) haveit=yes;; |
| 8016 | esac |
| 8017 | fi |
| 8018 | fi |
| 8019 | if test -z "$haveit"; then |
| 8020 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8021 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8022 | acl_save_prefix="$prefix" |
| 8023 | prefix="$acl_final_prefix" |
| 8024 | acl_save_exec_prefix="$exec_prefix" |
| 8025 | exec_prefix="$acl_final_exec_prefix" |
| 8026 | eval x=\"$x\" |
| 8027 | exec_prefix="$acl_save_exec_prefix" |
| 8028 | prefix="$acl_save_prefix" |
| 8029 | |
| 8030 | if test "X$x" = "X-I$additional_includedir"; then |
| 8031 | haveit=yes |
| 8032 | break |
| 8033 | fi |
| 8034 | done |
| 8035 | if test -z "$haveit"; then |
| 8036 | if test -d "$additional_includedir"; then |
| 8037 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8038 | fi |
| 8039 | fi |
| 8040 | fi |
| 8041 | fi |
| 8042 | fi |
| 8043 | if test -n "$found_la"; then |
| 8044 | save_libdir="$libdir" |
| 8045 | case "$found_la" in |
| 8046 | */* | *\\*) . "$found_la" ;; |
| 8047 | *) . "./$found_la" ;; |
| 8048 | esac |
| 8049 | libdir="$save_libdir" |
| 8050 | for dep in $dependency_libs; do |
| 8051 | case "$dep" in |
| 8052 | -L*) |
| 8053 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8054 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8055 | haveit= |
| 8056 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8057 | if test -n "$GCC"; then |
| 8058 | case $host_os in |
| 8059 | linux*) haveit=yes;; |
| 8060 | esac |
| 8061 | fi |
| 8062 | fi |
| 8063 | if test -z "$haveit"; then |
| 8064 | haveit= |
| 8065 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8066 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8067 | acl_save_prefix="$prefix" |
| 8068 | prefix="$acl_final_prefix" |
| 8069 | acl_save_exec_prefix="$exec_prefix" |
| 8070 | exec_prefix="$acl_final_exec_prefix" |
| 8071 | eval x=\"$x\" |
| 8072 | exec_prefix="$acl_save_exec_prefix" |
| 8073 | prefix="$acl_save_prefix" |
| 8074 | |
| 8075 | if test "X$x" = "X-L$additional_libdir"; then |
| 8076 | haveit=yes |
| 8077 | break |
| 8078 | fi |
| 8079 | done |
| 8080 | if test -z "$haveit"; then |
| 8081 | if test -d "$additional_libdir"; then |
| 8082 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8083 | fi |
| 8084 | fi |
| 8085 | haveit= |
| 8086 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8087 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8088 | acl_save_prefix="$prefix" |
| 8089 | prefix="$acl_final_prefix" |
| 8090 | acl_save_exec_prefix="$exec_prefix" |
| 8091 | exec_prefix="$acl_final_exec_prefix" |
| 8092 | eval x=\"$x\" |
| 8093 | exec_prefix="$acl_save_exec_prefix" |
| 8094 | prefix="$acl_save_prefix" |
| 8095 | |
| 8096 | if test "X$x" = "X-L$additional_libdir"; then |
| 8097 | haveit=yes |
| 8098 | break |
| 8099 | fi |
| 8100 | done |
| 8101 | if test -z "$haveit"; then |
| 8102 | if test -d "$additional_libdir"; then |
| 8103 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8104 | fi |
| 8105 | fi |
| 8106 | fi |
| 8107 | fi |
| 8108 | ;; |
| 8109 | -R*) |
| 8110 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8111 | if test "$enable_rpath" != no; then |
| 8112 | haveit= |
| 8113 | for x in $rpathdirs; do |
| 8114 | if test "X$x" = "X$dir"; then |
| 8115 | haveit=yes |
| 8116 | break |
| 8117 | fi |
| 8118 | done |
| 8119 | if test -z "$haveit"; then |
| 8120 | rpathdirs="$rpathdirs $dir" |
| 8121 | fi |
| 8122 | haveit= |
| 8123 | for x in $ltrpathdirs; do |
| 8124 | if test "X$x" = "X$dir"; then |
| 8125 | haveit=yes |
| 8126 | break |
| 8127 | fi |
| 8128 | done |
| 8129 | if test -z "$haveit"; then |
| 8130 | ltrpathdirs="$ltrpathdirs $dir" |
| 8131 | fi |
| 8132 | fi |
| 8133 | ;; |
| 8134 | -l*) |
| 8135 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8136 | ;; |
| 8137 | *.la) |
| 8138 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8139 | ;; |
| 8140 | *) |
| 8141 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8142 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8143 | ;; |
| 8144 | esac |
| 8145 | done |
| 8146 | fi |
| 8147 | else |
| 8148 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8149 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8150 | fi |
| 8151 | fi |
| 8152 | fi |
| 8153 | done |
| 8154 | done |
| 8155 | if test "X$rpathdirs" != "X"; then |
| 8156 | if test -n "$hardcode_libdir_separator"; then |
| 8157 | alldirs= |
| 8158 | for found_dir in $rpathdirs; do |
| 8159 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8160 | done |
| 8161 | acl_save_libdir="$libdir" |
| 8162 | libdir="$alldirs" |
| 8163 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8164 | libdir="$acl_save_libdir" |
| 8165 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8166 | else |
| 8167 | for found_dir in $rpathdirs; do |
| 8168 | acl_save_libdir="$libdir" |
| 8169 | libdir="$found_dir" |
| 8170 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8171 | libdir="$acl_save_libdir" |
| 8172 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8173 | done |
| 8174 | fi |
| 8175 | fi |
| 8176 | if test "X$ltrpathdirs" != "X"; then |
| 8177 | for found_dir in $ltrpathdirs; do |
| 8178 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8179 | done |
| 8180 | fi |
| 8181 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8182 | |
| 8183 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8184 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8185 | |
| 8186 | |
| 8187 | |
| 8188 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8189 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 8190 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8191 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8192 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8193 | |
| 8194 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8195 | |
| 8196 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8197 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8198 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8199 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8200 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8201 | do : |
| 8202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8203 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8204 | eval as_val=\$$as_ac_Header |
| 8205 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8206 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8207 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8208 | _ACEOF |
| 8209 | |
| 8210 | fi |
| 8211 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8212 | done |
| 8213 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8214 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8215 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8216 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8217 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8218 | do : |
| 8219 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8220 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8221 | eval as_val=\$$as_ac_var |
| 8222 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8223 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8224 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8225 | _ACEOF |
| 8226 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8227 | fi |
| 8228 | done |
| 8229 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8231 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8233 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8234 | if test "${ac_cv_have_decl__snprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8235 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8236 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8238 | /* end confdefs.h. */ |
| 8239 | #include <stdio.h> |
| 8240 | int |
| 8241 | main () |
| 8242 | { |
| 8243 | |
| 8244 | #ifndef _snprintf |
| 8245 | char *p = (char *) _snprintf; |
| 8246 | #endif |
| 8247 | |
| 8248 | ; |
| 8249 | return 0; |
| 8250 | } |
| 8251 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8252 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8253 | ac_cv_have_decl__snprintf=yes |
| 8254 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8255 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8258 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8260 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8261 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8262 | gt_value=1 |
| 8263 | else |
| 8264 | gt_value=0 |
| 8265 | fi |
| 8266 | |
| 8267 | cat >>confdefs.h <<_ACEOF |
| 8268 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8269 | _ACEOF |
| 8270 | |
| 8271 | |
| 8272 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8274 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8275 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8276 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8277 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8279 | /* end confdefs.h. */ |
| 8280 | #include <stdio.h> |
| 8281 | int |
| 8282 | main () |
| 8283 | { |
| 8284 | |
| 8285 | #ifndef _snwprintf |
| 8286 | char *p = (char *) _snwprintf; |
| 8287 | #endif |
| 8288 | |
| 8289 | ; |
| 8290 | return 0; |
| 8291 | } |
| 8292 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8293 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8294 | ac_cv_have_decl__snwprintf=yes |
| 8295 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8296 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8299 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8301 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8302 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8303 | gt_value=1 |
| 8304 | else |
| 8305 | gt_value=0 |
| 8306 | fi |
| 8307 | |
| 8308 | cat >>confdefs.h <<_ACEOF |
| 8309 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8310 | _ACEOF |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8316 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8317 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8318 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8319 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8321 | /* end confdefs.h. */ |
| 8322 | #include <stdio.h> |
| 8323 | int |
| 8324 | main () |
| 8325 | { |
| 8326 | |
| 8327 | #ifndef feof_unlocked |
| 8328 | char *p = (char *) feof_unlocked; |
| 8329 | #endif |
| 8330 | |
| 8331 | ; |
| 8332 | return 0; |
| 8333 | } |
| 8334 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8335 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | ac_cv_have_decl_feof_unlocked=yes |
| 8337 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8338 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8341 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8343 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8344 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8345 | gt_value=1 |
| 8346 | else |
| 8347 | gt_value=0 |
| 8348 | fi |
| 8349 | |
| 8350 | cat >>confdefs.h <<_ACEOF |
| 8351 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8352 | _ACEOF |
| 8353 | |
| 8354 | |
| 8355 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8357 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8358 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8359 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8360 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8362 | /* end confdefs.h. */ |
| 8363 | #include <stdio.h> |
| 8364 | int |
| 8365 | main () |
| 8366 | { |
| 8367 | |
| 8368 | #ifndef fgets_unlocked |
| 8369 | char *p = (char *) fgets_unlocked; |
| 8370 | #endif |
| 8371 | |
| 8372 | ; |
| 8373 | return 0; |
| 8374 | } |
| 8375 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8376 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8377 | ac_cv_have_decl_fgets_unlocked=yes |
| 8378 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8379 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8382 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8384 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8385 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8386 | gt_value=1 |
| 8387 | else |
| 8388 | gt_value=0 |
| 8389 | fi |
| 8390 | |
| 8391 | cat >>confdefs.h <<_ACEOF |
| 8392 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8393 | _ACEOF |
| 8394 | |
| 8395 | |
| 8396 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8398 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8399 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8400 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8401 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8403 | /* end confdefs.h. */ |
| 8404 | #include <stdio.h> |
| 8405 | int |
| 8406 | main () |
| 8407 | { |
| 8408 | |
| 8409 | #ifndef getc_unlocked |
| 8410 | char *p = (char *) getc_unlocked; |
| 8411 | #endif |
| 8412 | |
| 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8417 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8418 | ac_cv_have_decl_getc_unlocked=yes |
| 8419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8420 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8421 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8423 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8425 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8426 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8427 | gt_value=1 |
| 8428 | else |
| 8429 | gt_value=0 |
| 8430 | fi |
| 8431 | |
| 8432 | cat >>confdefs.h <<_ACEOF |
| 8433 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8434 | _ACEOF |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | case $gt_cv_func_printf_posix in |
| 8439 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8440 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8441 | esac |
| 8442 | |
| 8443 | if test "$ac_cv_func_asprintf" = yes; then |
| 8444 | HAVE_ASPRINTF=1 |
| 8445 | else |
| 8446 | HAVE_ASPRINTF=0 |
| 8447 | fi |
| 8448 | |
| 8449 | if test "$ac_cv_func_snprintf" = yes; then |
| 8450 | HAVE_SNPRINTF=1 |
| 8451 | else |
| 8452 | HAVE_SNPRINTF=0 |
| 8453 | fi |
| 8454 | |
| 8455 | if test "$ac_cv_func_wprintf" = yes; then |
| 8456 | HAVE_WPRINTF=1 |
| 8457 | else |
| 8458 | HAVE_WPRINTF=0 |
| 8459 | fi |
| 8460 | |
| 8461 | |
| 8462 | |
| 8463 | |
| 8464 | |
| 8465 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8466 | |
| 8467 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8468 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8469 | for element in $INCICONV; do |
| 8470 | haveit= |
| 8471 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8473 | acl_save_prefix="$prefix" |
| 8474 | prefix="$acl_final_prefix" |
| 8475 | acl_save_exec_prefix="$exec_prefix" |
| 8476 | exec_prefix="$acl_final_exec_prefix" |
| 8477 | eval x=\"$x\" |
| 8478 | exec_prefix="$acl_save_exec_prefix" |
| 8479 | prefix="$acl_save_prefix" |
| 8480 | |
| 8481 | if test "X$x" = "X$element"; then |
| 8482 | haveit=yes |
| 8483 | break |
| 8484 | fi |
| 8485 | done |
| 8486 | if test -z "$haveit"; then |
| 8487 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8488 | fi |
| 8489 | done |
| 8490 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8491 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8493 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8494 | if test "${am_cv_func_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8495 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8496 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8498 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8499 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8501 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8502 | #include <stdlib.h> |
| 8503 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8504 | int |
| 8505 | main () |
| 8506 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8507 | iconv_t cd = iconv_open("",""); |
| 8508 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8509 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8510 | ; |
| 8511 | return 0; |
| 8512 | } |
| 8513 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8514 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8515 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8516 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8517 | rm -f core conftest.err conftest.$ac_objext \ |
| 8518 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8519 | if test "$am_cv_func_iconv" != yes; then |
| 8520 | am_save_LIBS="$LIBS" |
| 8521 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8523 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8524 | #include <stdlib.h> |
| 8525 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8526 | int |
| 8527 | main () |
| 8528 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8529 | iconv_t cd = iconv_open("",""); |
| 8530 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8531 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8532 | ; |
| 8533 | return 0; |
| 8534 | } |
| 8535 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8536 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8537 | am_cv_lib_iconv=yes |
| 8538 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8539 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8540 | rm -f core conftest.err conftest.$ac_objext \ |
| 8541 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8542 | LIBS="$am_save_LIBS" |
| 8543 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8544 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8547 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8548 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8549 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8550 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8551 | |
| 8552 | fi |
| 8553 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8555 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8557 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8558 | else |
| 8559 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8560 | LIBICONV= |
| 8561 | LTLIBICONV= |
| 8562 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8563 | |
| 8564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8565 | |
| 8566 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8568 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8569 | if test "${am_cv_proto_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8570 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8571 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8572 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8574 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8575 | |
| 8576 | #include <stdlib.h> |
| 8577 | #include <iconv.h> |
| 8578 | extern |
| 8579 | #ifdef __cplusplus |
| 8580 | "C" |
| 8581 | #endif |
| 8582 | #if defined(__STDC__) || defined(__cplusplus) |
| 8583 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8584 | #else |
| 8585 | size_t iconv(); |
| 8586 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8587 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8588 | int |
| 8589 | main () |
| 8590 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8592 | ; |
| 8593 | return 0; |
| 8594 | } |
| 8595 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8596 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8597 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8598 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8599 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8602 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8603 | fi |
| 8604 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8605 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8607 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8608 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8609 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8610 | |
| 8611 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8612 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8613 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8614 | |
| 8615 | fi |
| 8616 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8617 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8619 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8620 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8621 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8622 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8624 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8625 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8626 | int |
| 8627 | main () |
| 8628 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8629 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8630 | ; |
| 8631 | return 0; |
| 8632 | } |
| 8633 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8634 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8635 | am_cv_langinfo_codeset=yes |
| 8636 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8637 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8638 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8639 | rm -f core conftest.err conftest.$ac_objext \ |
| 8640 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8641 | |
| 8642 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8644 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8645 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8646 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8647 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8648 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8649 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8650 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8651 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8652 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8654 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8655 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8656 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8657 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8659 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8660 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8661 | int |
| 8662 | main () |
| 8663 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8664 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8665 | ; |
| 8666 | return 0; |
| 8667 | } |
| 8668 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8669 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8670 | am_cv_val_LC_MESSAGES=yes |
| 8671 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8672 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8673 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8674 | rm -f core conftest.err conftest.$ac_objext \ |
| 8675 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8676 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8678 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8679 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8680 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8681 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8682 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8683 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8684 | |
| 8685 | fi |
| 8686 | |
| 8687 | for ac_prog in bison |
| 8688 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8689 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8690 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8692 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8693 | if test "${ac_cv_prog_INTLBISON+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8694 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8695 | else |
| 8696 | if test -n "$INTLBISON"; then |
| 8697 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8698 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8700 | for as_dir in $PATH |
| 8701 | do |
| 8702 | IFS=$as_save_IFS |
| 8703 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8704 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8706 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8708 | break 2 |
| 8709 | fi |
| 8710 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8711 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8712 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8713 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8714 | fi |
| 8715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8716 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8717 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8719 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8720 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8722 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8723 | fi |
| 8724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8725 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8726 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8727 | done |
| 8728 | |
| 8729 | if test -z "$INTLBISON"; then |
| 8730 | ac_verc_fail=yes |
| 8731 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8733 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8734 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8735 | case $ac_prog_version in |
| 8736 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8737 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8738 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8739 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8740 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8742 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8743 | fi |
| 8744 | if test $ac_verc_fail = yes; then |
| 8745 | INTLBISON=: |
| 8746 | fi |
| 8747 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8748 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8749 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8750 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8752 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8753 | |
| 8754 | |
| 8755 | |
| 8756 | |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | |
| 8761 | |
| 8762 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8764 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8765 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8766 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8767 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8768 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8769 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8770 | fi |
| 8771 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8773 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8774 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8776 | |
| 8777 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8778 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8779 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8780 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8781 | LIBINTL= |
| 8782 | LTLIBINTL= |
| 8783 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8784 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8785 | if test "$USE_NLS" = "yes"; then |
| 8786 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8787 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8789 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8791 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8792 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8793 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8794 | else |
| 8795 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | fi |
| 8797 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8799 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8800 | |
| 8801 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8802 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8803 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8804 | |
| 8805 | |
| 8806 | |
| 8807 | |
| 8808 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8810 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8811 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8812 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8813 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8815 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8816 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8817 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8818 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | int |
| 8820 | main () |
| 8821 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8822 | bindtextdomain ("", ""); |
| 8823 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8824 | ; |
| 8825 | return 0; |
| 8826 | } |
| 8827 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8828 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8829 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8830 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8831 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8832 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8833 | rm -f core conftest.err conftest.$ac_objext \ |
| 8834 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8835 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8837 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8838 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8839 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8840 | |
| 8841 | |
| 8842 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8843 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8844 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8845 | acl_save_prefix="$prefix" |
| 8846 | prefix="$acl_final_prefix" |
| 8847 | acl_save_exec_prefix="$exec_prefix" |
| 8848 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8849 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8850 | eval additional_includedir=\"$includedir\" |
| 8851 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8852 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8853 | exec_prefix="$acl_save_exec_prefix" |
| 8854 | prefix="$acl_save_prefix" |
| 8855 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8857 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8858 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8859 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8860 | if test "X$withval" = "Xno"; then |
| 8861 | use_additional=no |
| 8862 | else |
| 8863 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8864 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8865 | acl_save_prefix="$prefix" |
| 8866 | prefix="$acl_final_prefix" |
| 8867 | acl_save_exec_prefix="$exec_prefix" |
| 8868 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8869 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8870 | eval additional_includedir=\"$includedir\" |
| 8871 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8872 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8873 | exec_prefix="$acl_save_exec_prefix" |
| 8874 | prefix="$acl_save_prefix" |
| 8875 | |
| 8876 | else |
| 8877 | additional_includedir="$withval/include" |
| 8878 | additional_libdir="$withval/lib" |
| 8879 | fi |
| 8880 | fi |
| 8881 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8882 | fi |
| 8883 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8884 | LIBINTL= |
| 8885 | LTLIBINTL= |
| 8886 | INCINTL= |
| 8887 | rpathdirs= |
| 8888 | ltrpathdirs= |
| 8889 | names_already_handled= |
| 8890 | names_next_round='intl ' |
| 8891 | while test -n "$names_next_round"; do |
| 8892 | names_this_round="$names_next_round" |
| 8893 | names_next_round= |
| 8894 | for name in $names_this_round; do |
| 8895 | already_handled= |
| 8896 | for n in $names_already_handled; do |
| 8897 | if test "$n" = "$name"; then |
| 8898 | already_handled=yes |
| 8899 | break |
| 8900 | fi |
| 8901 | done |
| 8902 | if test -z "$already_handled"; then |
| 8903 | names_already_handled="$names_already_handled $name" |
| 8904 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8905 | eval value=\"\$HAVE_LIB$uppername\" |
| 8906 | if test -n "$value"; then |
| 8907 | if test "$value" = yes; then |
| 8908 | eval value=\"\$LIB$uppername\" |
| 8909 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8910 | eval value=\"\$LTLIB$uppername\" |
| 8911 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8912 | else |
| 8913 | : |
| 8914 | fi |
| 8915 | else |
| 8916 | found_dir= |
| 8917 | found_la= |
| 8918 | found_so= |
| 8919 | found_a= |
| 8920 | if test $use_additional = yes; then |
| 8921 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8922 | found_dir="$additional_libdir" |
| 8923 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8924 | if test -f "$additional_libdir/lib$name.la"; then |
| 8925 | found_la="$additional_libdir/lib$name.la" |
| 8926 | fi |
| 8927 | else |
| 8928 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8929 | found_dir="$additional_libdir" |
| 8930 | found_a="$additional_libdir/lib$name.$libext" |
| 8931 | if test -f "$additional_libdir/lib$name.la"; then |
| 8932 | found_la="$additional_libdir/lib$name.la" |
| 8933 | fi |
| 8934 | fi |
| 8935 | fi |
| 8936 | fi |
| 8937 | if test "X$found_dir" = "X"; then |
| 8938 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8939 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8940 | acl_save_prefix="$prefix" |
| 8941 | prefix="$acl_final_prefix" |
| 8942 | acl_save_exec_prefix="$exec_prefix" |
| 8943 | exec_prefix="$acl_final_exec_prefix" |
| 8944 | eval x=\"$x\" |
| 8945 | exec_prefix="$acl_save_exec_prefix" |
| 8946 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8947 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8948 | case "$x" in |
| 8949 | -L*) |
| 8950 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8951 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8952 | found_dir="$dir" |
| 8953 | found_so="$dir/lib$name.$shlibext" |
| 8954 | if test -f "$dir/lib$name.la"; then |
| 8955 | found_la="$dir/lib$name.la" |
| 8956 | fi |
| 8957 | else |
| 8958 | if test -f "$dir/lib$name.$libext"; then |
| 8959 | found_dir="$dir" |
| 8960 | found_a="$dir/lib$name.$libext" |
| 8961 | if test -f "$dir/lib$name.la"; then |
| 8962 | found_la="$dir/lib$name.la" |
| 8963 | fi |
| 8964 | fi |
| 8965 | fi |
| 8966 | ;; |
| 8967 | esac |
| 8968 | if test "X$found_dir" != "X"; then |
| 8969 | break |
| 8970 | fi |
| 8971 | done |
| 8972 | fi |
| 8973 | if test "X$found_dir" != "X"; then |
| 8974 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8975 | if test "X$found_so" != "X"; then |
| 8976 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8977 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8978 | else |
| 8979 | haveit= |
| 8980 | for x in $ltrpathdirs; do |
| 8981 | if test "X$x" = "X$found_dir"; then |
| 8982 | haveit=yes |
| 8983 | break |
| 8984 | fi |
| 8985 | done |
| 8986 | if test -z "$haveit"; then |
| 8987 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8988 | fi |
| 8989 | if test "$hardcode_direct" = yes; then |
| 8990 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8991 | else |
| 8992 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8993 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8994 | haveit= |
| 8995 | for x in $rpathdirs; do |
| 8996 | if test "X$x" = "X$found_dir"; then |
| 8997 | haveit=yes |
| 8998 | break |
| 8999 | fi |
| 9000 | done |
| 9001 | if test -z "$haveit"; then |
| 9002 | rpathdirs="$rpathdirs $found_dir" |
| 9003 | fi |
| 9004 | else |
| 9005 | haveit= |
| 9006 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9007 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9008 | acl_save_prefix="$prefix" |
| 9009 | prefix="$acl_final_prefix" |
| 9010 | acl_save_exec_prefix="$exec_prefix" |
| 9011 | exec_prefix="$acl_final_exec_prefix" |
| 9012 | eval x=\"$x\" |
| 9013 | exec_prefix="$acl_save_exec_prefix" |
| 9014 | prefix="$acl_save_prefix" |
| 9015 | |
| 9016 | if test "X$x" = "X-L$found_dir"; then |
| 9017 | haveit=yes |
| 9018 | break |
| 9019 | fi |
| 9020 | done |
| 9021 | if test -z "$haveit"; then |
| 9022 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9023 | fi |
| 9024 | if test "$hardcode_minus_L" != no; then |
| 9025 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9026 | else |
| 9027 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9028 | fi |
| 9029 | fi |
| 9030 | fi |
| 9031 | fi |
| 9032 | else |
| 9033 | if test "X$found_a" != "X"; then |
| 9034 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9035 | else |
| 9036 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9037 | fi |
| 9038 | fi |
| 9039 | additional_includedir= |
| 9040 | case "$found_dir" in |
| 9041 | */lib | */lib/) |
| 9042 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9043 | additional_includedir="$basedir/include" |
| 9044 | ;; |
| 9045 | esac |
| 9046 | if test "X$additional_includedir" != "X"; then |
| 9047 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9048 | haveit= |
| 9049 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9050 | if test -n "$GCC"; then |
| 9051 | case $host_os in |
| 9052 | linux*) haveit=yes;; |
| 9053 | esac |
| 9054 | fi |
| 9055 | fi |
| 9056 | if test -z "$haveit"; then |
| 9057 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9058 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9059 | acl_save_prefix="$prefix" |
| 9060 | prefix="$acl_final_prefix" |
| 9061 | acl_save_exec_prefix="$exec_prefix" |
| 9062 | exec_prefix="$acl_final_exec_prefix" |
| 9063 | eval x=\"$x\" |
| 9064 | exec_prefix="$acl_save_exec_prefix" |
| 9065 | prefix="$acl_save_prefix" |
| 9066 | |
| 9067 | if test "X$x" = "X-I$additional_includedir"; then |
| 9068 | haveit=yes |
| 9069 | break |
| 9070 | fi |
| 9071 | done |
| 9072 | if test -z "$haveit"; then |
| 9073 | if test -d "$additional_includedir"; then |
| 9074 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9075 | fi |
| 9076 | fi |
| 9077 | fi |
| 9078 | fi |
| 9079 | fi |
| 9080 | if test -n "$found_la"; then |
| 9081 | save_libdir="$libdir" |
| 9082 | case "$found_la" in |
| 9083 | */* | *\\*) . "$found_la" ;; |
| 9084 | *) . "./$found_la" ;; |
| 9085 | esac |
| 9086 | libdir="$save_libdir" |
| 9087 | for dep in $dependency_libs; do |
| 9088 | case "$dep" in |
| 9089 | -L*) |
| 9090 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9091 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9092 | haveit= |
| 9093 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9094 | if test -n "$GCC"; then |
| 9095 | case $host_os in |
| 9096 | linux*) haveit=yes;; |
| 9097 | esac |
| 9098 | fi |
| 9099 | fi |
| 9100 | if test -z "$haveit"; then |
| 9101 | haveit= |
| 9102 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9103 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9104 | acl_save_prefix="$prefix" |
| 9105 | prefix="$acl_final_prefix" |
| 9106 | acl_save_exec_prefix="$exec_prefix" |
| 9107 | exec_prefix="$acl_final_exec_prefix" |
| 9108 | eval x=\"$x\" |
| 9109 | exec_prefix="$acl_save_exec_prefix" |
| 9110 | prefix="$acl_save_prefix" |
| 9111 | |
| 9112 | if test "X$x" = "X-L$additional_libdir"; then |
| 9113 | haveit=yes |
| 9114 | break |
| 9115 | fi |
| 9116 | done |
| 9117 | if test -z "$haveit"; then |
| 9118 | if test -d "$additional_libdir"; then |
| 9119 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9120 | fi |
| 9121 | fi |
| 9122 | haveit= |
| 9123 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9124 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9125 | acl_save_prefix="$prefix" |
| 9126 | prefix="$acl_final_prefix" |
| 9127 | acl_save_exec_prefix="$exec_prefix" |
| 9128 | exec_prefix="$acl_final_exec_prefix" |
| 9129 | eval x=\"$x\" |
| 9130 | exec_prefix="$acl_save_exec_prefix" |
| 9131 | prefix="$acl_save_prefix" |
| 9132 | |
| 9133 | if test "X$x" = "X-L$additional_libdir"; then |
| 9134 | haveit=yes |
| 9135 | break |
| 9136 | fi |
| 9137 | done |
| 9138 | if test -z "$haveit"; then |
| 9139 | if test -d "$additional_libdir"; then |
| 9140 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9141 | fi |
| 9142 | fi |
| 9143 | fi |
| 9144 | fi |
| 9145 | ;; |
| 9146 | -R*) |
| 9147 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9148 | if test "$enable_rpath" != no; then |
| 9149 | haveit= |
| 9150 | for x in $rpathdirs; do |
| 9151 | if test "X$x" = "X$dir"; then |
| 9152 | haveit=yes |
| 9153 | break |
| 9154 | fi |
| 9155 | done |
| 9156 | if test -z "$haveit"; then |
| 9157 | rpathdirs="$rpathdirs $dir" |
| 9158 | fi |
| 9159 | haveit= |
| 9160 | for x in $ltrpathdirs; do |
| 9161 | if test "X$x" = "X$dir"; then |
| 9162 | haveit=yes |
| 9163 | break |
| 9164 | fi |
| 9165 | done |
| 9166 | if test -z "$haveit"; then |
| 9167 | ltrpathdirs="$ltrpathdirs $dir" |
| 9168 | fi |
| 9169 | fi |
| 9170 | ;; |
| 9171 | -l*) |
| 9172 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9173 | ;; |
| 9174 | *.la) |
| 9175 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9176 | ;; |
| 9177 | *) |
| 9178 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9179 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9180 | ;; |
| 9181 | esac |
| 9182 | done |
| 9183 | fi |
| 9184 | else |
| 9185 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9186 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9187 | fi |
| 9188 | fi |
| 9189 | fi |
| 9190 | done |
| 9191 | done |
| 9192 | if test "X$rpathdirs" != "X"; then |
| 9193 | if test -n "$hardcode_libdir_separator"; then |
| 9194 | alldirs= |
| 9195 | for found_dir in $rpathdirs; do |
| 9196 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9197 | done |
| 9198 | acl_save_libdir="$libdir" |
| 9199 | libdir="$alldirs" |
| 9200 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9201 | libdir="$acl_save_libdir" |
| 9202 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9203 | else |
| 9204 | for found_dir in $rpathdirs; do |
| 9205 | acl_save_libdir="$libdir" |
| 9206 | libdir="$found_dir" |
| 9207 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9208 | libdir="$acl_save_libdir" |
| 9209 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9210 | done |
| 9211 | fi |
| 9212 | fi |
| 9213 | if test "X$ltrpathdirs" != "X"; then |
| 9214 | for found_dir in $ltrpathdirs; do |
| 9215 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9216 | done |
| 9217 | fi |
| 9218 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9220 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9221 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9222 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9223 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9224 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9225 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9226 | gt_save_LIBS="$LIBS" |
| 9227 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9229 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9230 | #include <libintl.h> |
| 9231 | extern int _nl_msg_cat_cntr; |
| 9232 | extern |
| 9233 | #ifdef __cplusplus |
| 9234 | "C" |
| 9235 | #endif |
| 9236 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9237 | int |
| 9238 | main () |
| 9239 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9240 | bindtextdomain ("", ""); |
| 9241 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9242 | ; |
| 9243 | return 0; |
| 9244 | } |
| 9245 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9246 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9247 | gt_cv_func_gnugettext1_libintl=yes |
| 9248 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9249 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9250 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9251 | rm -f core conftest.err conftest.$ac_objext \ |
| 9252 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9253 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9254 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9256 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9257 | #include <libintl.h> |
| 9258 | extern int _nl_msg_cat_cntr; |
| 9259 | extern |
| 9260 | #ifdef __cplusplus |
| 9261 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9262 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9263 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9264 | int |
| 9265 | main () |
| 9266 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9267 | bindtextdomain ("", ""); |
| 9268 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9269 | ; |
| 9270 | return 0; |
| 9271 | } |
| 9272 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9273 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9274 | LIBINTL="$LIBINTL $LIBICONV" |
| 9275 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9276 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9277 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9278 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9279 | rm -f core conftest.err conftest.$ac_objext \ |
| 9280 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9281 | fi |
| 9282 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9283 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9284 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9286 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9287 | fi |
| 9288 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9289 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9290 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9291 | && test "$PACKAGE" != gettext-runtime \ |
| 9292 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9293 | gt_use_preinstalled_gnugettext=yes |
| 9294 | else |
| 9295 | LIBINTL= |
| 9296 | LTLIBINTL= |
| 9297 | INCINTL= |
| 9298 | fi |
| 9299 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9300 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9301 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9302 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9303 | fi |
| 9304 | fi |
| 9305 | |
| 9306 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9307 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9308 | USE_INCLUDED_LIBINTL=yes |
| 9309 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9310 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9311 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9312 | fi |
| 9313 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9314 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9315 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9316 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9317 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9318 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9319 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9320 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9321 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9322 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9323 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9324 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9325 | else |
| 9326 | USE_NLS=no |
| 9327 | fi |
| 9328 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9329 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9331 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9333 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9334 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9336 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9337 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9338 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9339 | gt_source="external libintl" |
| 9340 | else |
| 9341 | gt_source="libc" |
| 9342 | fi |
| 9343 | else |
| 9344 | gt_source="included intl directory" |
| 9345 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9347 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9348 | fi |
| 9349 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9350 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9351 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9352 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9353 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9355 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9357 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9358 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9359 | for element in $INCINTL; do |
| 9360 | haveit= |
| 9361 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9362 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9363 | acl_save_prefix="$prefix" |
| 9364 | prefix="$acl_final_prefix" |
| 9365 | acl_save_exec_prefix="$exec_prefix" |
| 9366 | exec_prefix="$acl_final_exec_prefix" |
| 9367 | eval x=\"$x\" |
| 9368 | exec_prefix="$acl_save_exec_prefix" |
| 9369 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9370 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9371 | if test "X$x" = "X$element"; then |
| 9372 | haveit=yes |
| 9373 | break |
| 9374 | fi |
| 9375 | done |
| 9376 | if test -z "$haveit"; then |
| 9377 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9378 | fi |
| 9379 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9380 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9381 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9382 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9383 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9384 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9385 | |
| 9386 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9387 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9388 | |
| 9389 | fi |
| 9390 | |
| 9391 | POSUB=po |
| 9392 | fi |
| 9393 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9394 | |
| 9395 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9396 | BUILD_INCLUDED_LIBINTL=yes |
| 9397 | fi |
| 9398 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9399 | |
| 9400 | |
| 9401 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9402 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9403 | nls_cv_header_intl= |
| 9404 | nls_cv_header_libgt= |
| 9405 | |
| 9406 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9408 | |
| 9409 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9410 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9411 | |
| 9412 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9413 | |
| 9414 | |
| 9415 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9416 | INTLOBJS="\$(GETTOBJS)" |
| 9417 | fi |
| 9418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9419 | |
| 9420 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9421 | |
| 9422 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9423 | |
| 9424 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9425 | |
| 9426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9427 | |
| 9428 | |
| 9429 | |
| 9430 | |
| 9431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9433 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9434 | set x ${MAKE-make} |
| 9435 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9436 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9437 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9438 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9439 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9440 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9441 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9442 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9444 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9445 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9446 | *@@@%%%=?*=@@@%%%*) |
| 9447 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9448 | *) |
| 9449 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9450 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9451 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9452 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9453 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9455 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9456 | SET_MAKE= |
| 9457 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9459 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9460 | SET_MAKE="MAKE=${MAKE-make}" |
| 9461 | fi |
| 9462 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9464 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9465 | if test "${_cv_gnu_make_command+set}" = set; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9466 | $as_echo_n "(cached) " >&6 |
| 9467 | else |
| 9468 | _cv_gnu_make_command='' ; |
| 9469 | for a in "$MAKE" make gmake gnumake ; do |
| 9470 | if test -z "$a" ; then continue ; fi ; |
| 9471 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9472 | _cv_gnu_make_command=$a ; |
| 9473 | break; |
| 9474 | fi |
| 9475 | done ; |
| 9476 | |
| 9477 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9479 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9480 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9481 | ifGNUmake='' ; |
| 9482 | ifNotGNUmake='#' ; |
| 9483 | else |
| 9484 | ifGNUmake='#' ; |
| 9485 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9487 | $as_echo "\"Not found\"" >&6; }; |
| 9488 | fi |
| 9489 | |
| 9490 | |
| 9491 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9492 | # Extract the first word of "ln", so it can be a program name with args. |
| 9493 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9495 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9496 | if test "${ac_cv_path_LN+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9497 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9498 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | case $LN in |
| 9500 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9501 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9502 | ;; |
| 9503 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9505 | for as_dir in $PATH |
| 9506 | do |
| 9507 | IFS=$as_save_IFS |
| 9508 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9509 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9511 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9513 | break 2 |
| 9514 | fi |
| 9515 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9516 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9517 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9518 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9519 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9520 | ;; |
| 9521 | esac |
| 9522 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9523 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9524 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9526 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9527 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9529 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9530 | fi |
| 9531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9532 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9534 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9535 | LN_S=$as_ln_s |
| 9536 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9538 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9541 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9542 | fi |
| 9543 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9544 | # Extract the first word of "mv", so it can be a program name with args. |
| 9545 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9547 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9548 | if test "${ac_cv_path_MV+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9549 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9551 | case $MV in |
| 9552 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9553 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9554 | ;; |
| 9555 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9557 | for as_dir in $PATH |
| 9558 | do |
| 9559 | IFS=$as_save_IFS |
| 9560 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9561 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9563 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9565 | break 2 |
| 9566 | fi |
| 9567 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9568 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9569 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9570 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9571 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9572 | ;; |
| 9573 | esac |
| 9574 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9575 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9576 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9578 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9579 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9581 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9582 | fi |
| 9583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9584 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9585 | # Extract the first word of "cp", so it can be a program name with args. |
| 9586 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9588 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9589 | if test "${ac_cv_path_CP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9590 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9591 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9592 | case $CP in |
| 9593 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9594 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9595 | ;; |
| 9596 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9598 | for as_dir in $PATH |
| 9599 | do |
| 9600 | IFS=$as_save_IFS |
| 9601 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9602 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9606 | break 2 |
| 9607 | fi |
| 9608 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9609 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9610 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9611 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9612 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9613 | ;; |
| 9614 | esac |
| 9615 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9616 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9617 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9619 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9620 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9622 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9623 | fi |
| 9624 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9625 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9626 | # Extract the first word of "rm", so it can be a program name with args. |
| 9627 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9629 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9630 | if test "${ac_cv_path_RM+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9631 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9632 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9633 | case $RM in |
| 9634 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9635 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9636 | ;; |
| 9637 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9639 | for as_dir in $PATH |
| 9640 | do |
| 9641 | IFS=$as_save_IFS |
| 9642 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9643 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9645 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9647 | break 2 |
| 9648 | fi |
| 9649 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9650 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9651 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9652 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9653 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9654 | ;; |
| 9655 | esac |
| 9656 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9657 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9658 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9660 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9661 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9663 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9664 | fi |
| 9665 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9666 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9667 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9668 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9670 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9671 | if test "${ac_cv_path_CHMOD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9672 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9673 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9674 | case $CHMOD in |
| 9675 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9676 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9677 | ;; |
| 9678 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9680 | for as_dir in $PATH |
| 9681 | do |
| 9682 | IFS=$as_save_IFS |
| 9683 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9684 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9686 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9688 | break 2 |
| 9689 | fi |
| 9690 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9691 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9692 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9693 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9694 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9695 | ;; |
| 9696 | esac |
| 9697 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9698 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9699 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9701 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9702 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9704 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9705 | fi |
| 9706 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9707 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9708 | for ac_prog in gawk mawk nawk awk |
| 9709 | do |
| 9710 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9711 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9713 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9714 | if test "${ac_cv_prog_AWK+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9715 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9716 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9717 | if test -n "$AWK"; then |
| 9718 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9719 | else |
| 9720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9721 | for as_dir in $PATH |
| 9722 | do |
| 9723 | IFS=$as_save_IFS |
| 9724 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9725 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9727 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9729 | break 2 |
| 9730 | fi |
| 9731 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9732 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9733 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9734 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9735 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9736 | fi |
| 9737 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9738 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9740 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9741 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9743 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9744 | fi |
| 9745 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9746 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9747 | test -n "$AWK" && break |
| 9748 | done |
| 9749 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9751 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9752 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9753 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9754 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9755 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9756 | then ac_cv_path_EGREP="$GREP -E" |
| 9757 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9758 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9759 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9760 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9762 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9763 | do |
| 9764 | IFS=$as_save_IFS |
| 9765 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9766 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9768 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 9769 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 9770 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9771 | # Check for GNU $ac_path_EGREP |
| 9772 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9773 | *GNU*) |
| 9774 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9775 | *) |
| 9776 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9777 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9778 | while : |
| 9779 | do |
| 9780 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9781 | mv "conftest.tmp" "conftest.in" |
| 9782 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9783 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9784 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9785 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9786 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9787 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9788 | # Best one so far, save it but keep looking for a better one |
| 9789 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9790 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9792 | # 10*(2^10) chars as input seems more than enough |
| 9793 | test $ac_count -gt 10 && break |
| 9794 | done |
| 9795 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9796 | esac |
| 9797 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9798 | $ac_path_EGREP_found && break 3 |
| 9799 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9800 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9801 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9803 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9804 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9805 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9806 | else |
| 9807 | ac_cv_path_EGREP=$EGREP |
| 9808 | fi |
| 9809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9810 | fi |
| 9811 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9813 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9814 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9815 | |
| 9816 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9817 | # Extract the first word of "sed", so it can be a program name with args. |
| 9818 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9820 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9821 | if test "${ac_cv_path_SED+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9822 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9823 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9824 | case $SED in |
| 9825 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9826 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9827 | ;; |
| 9828 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9830 | for as_dir in $PATH |
| 9831 | do |
| 9832 | IFS=$as_save_IFS |
| 9833 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9834 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9836 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9838 | break 2 |
| 9839 | fi |
| 9840 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9841 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9842 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9844 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9845 | ;; |
| 9846 | esac |
| 9847 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9849 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9851 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9852 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9854 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9855 | fi |
| 9856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9857 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9858 | # Extract the first word of "perl", so it can be a program name with args. |
| 9859 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9861 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9862 | if test "${ac_cv_path_PERL+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9863 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9864 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9865 | case $PERL in |
| 9866 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9867 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9868 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9869 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9871 | for as_dir in $PATH |
| 9872 | do |
| 9873 | IFS=$as_save_IFS |
| 9874 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9875 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9877 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9879 | break 2 |
| 9880 | fi |
| 9881 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9882 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9883 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9884 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9885 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9886 | ;; |
| 9887 | esac |
| 9888 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9889 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9890 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9892 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9893 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9895 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9896 | fi |
| 9897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9898 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9899 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9900 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9902 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9903 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9904 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | case $LDCONFIG in |
| 9907 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9908 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9909 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9910 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9912 | for as_dir in $PATH |
| 9913 | do |
| 9914 | IFS=$as_save_IFS |
| 9915 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9916 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9918 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9920 | break 2 |
| 9921 | fi |
| 9922 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9923 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9924 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9925 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9926 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9927 | ;; |
| 9928 | esac |
| 9929 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9930 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9931 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9933 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9934 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9936 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9937 | fi |
| 9938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9940 | if test -n "$ac_tool_prefix"; then |
| 9941 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9942 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9944 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9945 | if test "${ac_cv_prog_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9946 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9947 | else |
| 9948 | if test -n "$AR"; then |
| 9949 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9950 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9952 | for as_dir in $PATH |
| 9953 | do |
| 9954 | IFS=$as_save_IFS |
| 9955 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9956 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9960 | break 2 |
| 9961 | fi |
| 9962 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9963 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9964 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9965 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9966 | fi |
| 9967 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9968 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9969 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9971 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9972 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9974 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9975 | fi |
| 9976 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9977 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9978 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9979 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9980 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9981 | # Extract the first word of "ar", so it can be a program name with args. |
| 9982 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9984 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9985 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9986 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9987 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9988 | if test -n "$ac_ct_AR"; then |
| 9989 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9990 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9992 | for as_dir in $PATH |
| 9993 | do |
| 9994 | IFS=$as_save_IFS |
| 9995 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9996 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9998 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10000 | break 2 |
| 10001 | fi |
| 10002 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10003 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10004 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10005 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10006 | fi |
| 10007 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10008 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10009 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10011 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10012 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10014 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10015 | fi |
| 10016 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10017 | if test "x$ac_ct_AR" = x; then |
| 10018 | AR="ar" |
| 10019 | else |
| 10020 | case $cross_compiling:$ac_tool_warned in |
| 10021 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10024 | ac_tool_warned=yes ;; |
| 10025 | esac |
| 10026 | AR=$ac_ct_AR |
| 10027 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10028 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10029 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10030 | fi |
| 10031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10032 | if test -n "$ac_tool_prefix"; then |
| 10033 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10034 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10036 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10037 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10038 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10039 | else |
| 10040 | if test -n "$RANLIB"; then |
| 10041 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10044 | for as_dir in $PATH |
| 10045 | do |
| 10046 | IFS=$as_save_IFS |
| 10047 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10048 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10050 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10052 | break 2 |
| 10053 | fi |
| 10054 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10055 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10056 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10057 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10058 | fi |
| 10059 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10060 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10061 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10063 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10066 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10067 | fi |
| 10068 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10069 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10070 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10071 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10072 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10073 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10074 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10076 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10077 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10078 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10080 | if test -n "$ac_ct_RANLIB"; then |
| 10081 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10082 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10084 | for as_dir in $PATH |
| 10085 | do |
| 10086 | IFS=$as_save_IFS |
| 10087 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10088 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10090 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10092 | break 2 |
| 10093 | fi |
| 10094 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10095 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10096 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10097 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10098 | fi |
| 10099 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10100 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10101 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10103 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10104 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10106 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10107 | fi |
| 10108 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10109 | if test "x$ac_ct_RANLIB" = x; then |
| 10110 | RANLIB=":" |
| 10111 | else |
| 10112 | case $cross_compiling:$ac_tool_warned in |
| 10113 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10116 | ac_tool_warned=yes ;; |
| 10117 | esac |
| 10118 | RANLIB=$ac_ct_RANLIB |
| 10119 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10120 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10121 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10122 | fi |
| 10123 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10124 | if test -n "$ac_tool_prefix"; then |
| 10125 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10126 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10128 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10129 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10130 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10131 | else |
| 10132 | if test -n "$STRIP"; then |
| 10133 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10134 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10136 | for as_dir in $PATH |
| 10137 | do |
| 10138 | IFS=$as_save_IFS |
| 10139 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10142 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10144 | break 2 |
| 10145 | fi |
| 10146 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10147 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10148 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10149 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10150 | fi |
| 10151 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10152 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10153 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10155 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10156 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10158 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10159 | fi |
| 10160 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10161 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10162 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10163 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10164 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10165 | # Extract the first word of "strip", so it can be a program name with args. |
| 10166 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10168 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10169 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10170 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10171 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10172 | if test -n "$ac_ct_STRIP"; then |
| 10173 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10174 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10176 | for as_dir in $PATH |
| 10177 | do |
| 10178 | IFS=$as_save_IFS |
| 10179 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10180 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10182 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10184 | break 2 |
| 10185 | fi |
| 10186 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10187 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10188 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10189 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10190 | fi |
| 10191 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10192 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10193 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10195 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10196 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10198 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10199 | fi |
| 10200 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10201 | if test "x$ac_ct_STRIP" = x; then |
| 10202 | STRIP=":" |
| 10203 | else |
| 10204 | case $cross_compiling:$ac_tool_warned in |
| 10205 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10208 | ac_tool_warned=yes ;; |
| 10209 | esac |
| 10210 | STRIP=$ac_ct_STRIP |
| 10211 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10212 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10213 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10214 | fi |
| 10215 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10216 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10217 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10219 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10220 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10221 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10222 | else |
| 10223 | if test -n "$MAKEINFO"; then |
| 10224 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10225 | else |
| 10226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10227 | for as_dir in $PATH |
| 10228 | do |
| 10229 | IFS=$as_save_IFS |
| 10230 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10231 | for ac_exec_ext in '' $ac_executable_extensions; do |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10233 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10235 | break 2 |
| 10236 | fi |
| 10237 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10238 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10239 | IFS=$as_save_IFS |
| 10240 | |
| 10241 | fi |
| 10242 | fi |
| 10243 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10244 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10246 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10247 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10249 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10250 | fi |
| 10251 | |
| 10252 | |
| 10253 | if test "_$MAKEINFO" = "_"; then |
| 10254 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10255 | else |
| 10256 | case "$MAKEINFO" in |
| 10257 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10259 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10260 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10261 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10262 | ;; |
| 10263 | *) |
| 10264 | ;; |
| 10265 | esac |
| 10266 | fi |
| 10267 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10268 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10269 | # See if we need a separate native compiler. |
| 10270 | if test $cross_compiling = no; then |
| 10271 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10272 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10273 | else |
| 10274 | for ac_prog in gcc cc |
| 10275 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10276 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10277 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10279 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10280 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10281 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10282 | else |
| 10283 | if test -n "$BUILD_CC"; then |
| 10284 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10285 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10287 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10288 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10289 | IFS=$as_save_IFS |
| 10290 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10293 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10295 | break 2 |
| 10296 | fi |
| 10297 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10298 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10299 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10300 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10301 | fi |
| 10302 | fi |
| 10303 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10304 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10306 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10307 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10309 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10310 | fi |
| 10311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10313 | test -n "$BUILD_CC" && break |
| 10314 | done |
| 10315 | |
| 10316 | fi |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 10317 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10318 | do : |
| 10319 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10320 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10321 | eval as_val=\$$as_ac_Header |
| 10322 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10323 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10324 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10325 | _ACEOF |
| 10326 | |
| 10327 | fi |
| 10328 | |
| 10329 | done |
| 10330 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10331 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10332 | do : |
| 10333 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10334 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10335 | #if HAVE_SYS_QUEUE_H |
| 10336 | #include <sys/queue.h> |
| 10337 | #endif |
| 10338 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10339 | " |
| 10340 | eval as_val=\$$as_ac_Header |
| 10341 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10342 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10343 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10344 | _ACEOF |
| 10345 | |
| 10346 | fi |
| 10347 | |
| 10348 | done |
| 10349 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10350 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10351 | do : |
| 10352 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10353 | #if HAVE_SYS_TYPES_H |
| 10354 | #include <sys/types.h> |
| 10355 | #endif |
| 10356 | #if HAVE_SYS_SOCKET |
| 10357 | #include <sys/socket.h> |
| 10358 | #endif |
| 10359 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10360 | " |
| 10361 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10362 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10363 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10364 | _ACEOF |
| 10365 | |
| 10366 | fi |
| 10367 | |
| 10368 | done |
| 10369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10370 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10371 | do : |
| 10372 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 10373 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10374 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10375 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10376 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10377 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10378 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 10379 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10380 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10381 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10382 | |
| 10383 | fi |
| 10384 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10385 | fi |
| 10386 | done |
| 10387 | |
| 10388 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10389 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10390 | " |
| 10391 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : |
| 10392 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10393 | |
| 10394 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10395 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10396 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10397 | " |
| 10398 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
| 10399 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10400 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10401 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10402 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10403 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10404 | " |
| 10405 | if test "x$ac_cv_have_decl_llseek" = x""yes; then : |
| 10406 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10407 | |
| 10408 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10409 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10410 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10411 | #define _LARGEFILE64_SOURCE |
| 10412 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10413 | " |
| 10414 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then : |
| 10415 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10416 | |
| 10417 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10418 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10419 | # The cast to long int works around a bug in the HP C Compiler |
| 10420 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10421 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10422 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10424 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10425 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10426 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10428 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10431 | if test "$ac_cv_type_short" = yes; then |
| 10432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10434 | { as_fn_set_status 77 |
| 10435 | as_fn_error "cannot compute sizeof (short) |
| 10436 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10437 | else |
| 10438 | ac_cv_sizeof_short=0 |
| 10439 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10440 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10442 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10444 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10445 | |
| 10446 | |
| 10447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10448 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10449 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10450 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10451 | |
| 10452 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10453 | # The cast to long int works around a bug in the HP C Compiler |
| 10454 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10455 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10456 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10458 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10459 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10460 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10461 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10462 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10464 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10465 | if test "$ac_cv_type_int" = yes; then |
| 10466 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10468 | { as_fn_set_status 77 |
| 10469 | as_fn_error "cannot compute sizeof (int) |
| 10470 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10471 | else |
| 10472 | ac_cv_sizeof_int=0 |
| 10473 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10474 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10475 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10476 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10478 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10479 | |
| 10480 | |
| 10481 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10482 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10483 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10484 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10485 | |
| 10486 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10487 | # The cast to long int works around a bug in the HP C Compiler |
| 10488 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10489 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10490 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10492 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10493 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10494 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10495 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10496 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10498 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10499 | if test "$ac_cv_type_long" = yes; then |
| 10500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10502 | { as_fn_set_status 77 |
| 10503 | as_fn_error "cannot compute sizeof (long) |
| 10504 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10505 | else |
| 10506 | ac_cv_sizeof_long=0 |
| 10507 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10508 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10510 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10512 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10513 | |
| 10514 | |
| 10515 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10516 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10517 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10518 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10519 | |
| 10520 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10521 | # The cast to long int works around a bug in the HP C Compiler |
| 10522 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10523 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10524 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10526 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10527 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10528 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10529 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10530 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10531 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10532 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10533 | if test "$ac_cv_type_long_long" = yes; then |
| 10534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10536 | { as_fn_set_status 77 |
| 10537 | as_fn_error "cannot compute sizeof (long long) |
| 10538 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10539 | else |
| 10540 | ac_cv_sizeof_long_long=0 |
| 10541 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10542 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10546 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10547 | |
| 10548 | |
| 10549 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10550 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10551 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10552 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10553 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10554 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10555 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10556 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10557 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10558 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10559 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10560 | |
| 10561 | |
| 10562 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10564 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10565 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10566 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10567 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10568 | ac_cv_c_bigendian=unknown |
| 10569 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10571 | /* end confdefs.h. */ |
| 10572 | #ifndef __APPLE_CC__ |
| 10573 | not a universal capable compiler |
| 10574 | #endif |
| 10575 | typedef int dummy; |
| 10576 | |
| 10577 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10578 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10579 | |
| 10580 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10581 | # there are at least two -arch flags with different values. |
| 10582 | ac_arch= |
| 10583 | ac_prev= |
| 10584 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10585 | if test -n "$ac_prev"; then |
| 10586 | case $ac_word in |
| 10587 | i?86 | x86_64 | ppc | ppc64) |
| 10588 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10589 | ac_arch=$ac_word |
| 10590 | else |
| 10591 | ac_cv_c_bigendian=universal |
| 10592 | break |
| 10593 | fi |
| 10594 | ;; |
| 10595 | esac |
| 10596 | ac_prev= |
| 10597 | elif test "x$ac_word" = "x-arch"; then |
| 10598 | ac_prev=arch |
| 10599 | fi |
| 10600 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10601 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10603 | if test $ac_cv_c_bigendian = unknown; then |
| 10604 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10606 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10607 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10608 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10610 | int |
| 10611 | main () |
| 10612 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10613 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10614 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10615 | && LITTLE_ENDIAN) |
| 10616 | bogus endian macros |
| 10617 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10618 | |
| 10619 | ; |
| 10620 | return 0; |
| 10621 | } |
| 10622 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10623 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10624 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10626 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10627 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10628 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10629 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10630 | int |
| 10631 | main () |
| 10632 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10633 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10634 | not big endian |
| 10635 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10636 | |
| 10637 | ; |
| 10638 | return 0; |
| 10639 | } |
| 10640 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10641 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10642 | ac_cv_c_bigendian=yes |
| 10643 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10644 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10645 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10647 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10649 | fi |
| 10650 | if test $ac_cv_c_bigendian = unknown; then |
| 10651 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10654 | #include <limits.h> |
| 10655 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | int |
| 10657 | main () |
| 10658 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10659 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10660 | bogus endian macros |
| 10661 | #endif |
| 10662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10663 | ; |
| 10664 | return 0; |
| 10665 | } |
| 10666 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10667 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10668 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10670 | /* end confdefs.h. */ |
| 10671 | #include <limits.h> |
| 10672 | |
| 10673 | int |
| 10674 | main () |
| 10675 | { |
| 10676 | #ifndef _BIG_ENDIAN |
| 10677 | not big endian |
| 10678 | #endif |
| 10679 | |
| 10680 | ; |
| 10681 | return 0; |
| 10682 | } |
| 10683 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10684 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10685 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10686 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10687 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10688 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10690 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10692 | fi |
| 10693 | if test $ac_cv_c_bigendian = unknown; then |
| 10694 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10695 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10696 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10698 | /* end confdefs.h. */ |
| 10699 | short int ascii_mm[] = |
| 10700 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10701 | short int ascii_ii[] = |
| 10702 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10703 | int use_ascii (int i) { |
| 10704 | return ascii_mm[i] + ascii_ii[i]; |
| 10705 | } |
| 10706 | short int ebcdic_ii[] = |
| 10707 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10708 | short int ebcdic_mm[] = |
| 10709 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10710 | int use_ebcdic (int i) { |
| 10711 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10712 | } |
| 10713 | extern int foo; |
| 10714 | |
| 10715 | int |
| 10716 | main () |
| 10717 | { |
| 10718 | return use_ascii (foo) == use_ebcdic (foo); |
| 10719 | ; |
| 10720 | return 0; |
| 10721 | } |
| 10722 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10723 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10724 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10725 | ac_cv_c_bigendian=yes |
| 10726 | fi |
| 10727 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10728 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10729 | ac_cv_c_bigendian=no |
| 10730 | else |
| 10731 | # finding both strings is unlikely to happen, but who knows? |
| 10732 | ac_cv_c_bigendian=unknown |
| 10733 | fi |
| 10734 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10735 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10737 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10739 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10740 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10741 | int |
| 10742 | main () |
| 10743 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10744 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10745 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10746 | union |
| 10747 | { |
| 10748 | long int l; |
| 10749 | char c[sizeof (long int)]; |
| 10750 | } u; |
| 10751 | u.l = 1; |
| 10752 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10753 | |
| 10754 | ; |
| 10755 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10756 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10758 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10759 | ac_cv_c_bigendian=no |
| 10760 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10761 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10762 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10763 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10764 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10765 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10766 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10767 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10768 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10770 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10771 | case $ac_cv_c_bigendian in #( |
| 10772 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10773 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10774 | ;; #( |
| 10775 | no) |
| 10776 | ;; #( |
| 10777 | universal) |
| 10778 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10779 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10780 | |
| 10781 | ;; #( |
| 10782 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10783 | as_fn_error "unknown endianness |
| 10784 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10785 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10786 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10787 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10788 | ASM_TYPES_HEADER=./asm_types.h |
| 10789 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10790 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10791 | > public_config.h |
| 10792 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10793 | uniq tmp_config.$$ >> public_config.h |
| 10794 | else |
| 10795 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10796 | fi |
| 10797 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10798 | uniq tmp_config.$$ >> public_config.h |
| 10799 | else |
| 10800 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10801 | fi |
| 10802 | rm -f tmp_config.$$ |
| 10803 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10804 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10805 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10806 | do : |
| 10807 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 10808 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10809 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10810 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10811 | _ACEOF |
| 10812 | |
| 10813 | fi |
| 10814 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10815 | done |
| 10816 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10817 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10818 | if test "x$ac_cv_type_intptr_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10819 | |
| 10820 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10821 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10822 | _ACEOF |
| 10823 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10824 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10825 | fi |
| 10826 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10828 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10829 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10830 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10831 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10833 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10834 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10835 | int |
| 10836 | main () |
| 10837 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10838 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10839 | ; |
| 10840 | return 0; |
| 10841 | } |
| 10842 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10843 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10844 | e2fsprogs_cv_struct_st_flags=yes |
| 10845 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10846 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10849 | fi |
| 10850 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10852 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10853 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10855 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10856 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10857 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10858 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10860 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10861 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10862 | int |
| 10863 | main () |
| 10864 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10865 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10866 | ; |
| 10867 | return 0; |
| 10868 | } |
| 10869 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10870 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10871 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10872 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10873 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10874 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10876 | fi |
| 10877 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10879 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10880 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10881 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10882 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10883 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10884 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10885 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10886 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10887 | " |
| 10888 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10889 | |
| 10890 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10891 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10892 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10893 | |
| 10894 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10895 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10896 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10898 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10899 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10900 | $as_echo_n "(cached) " >&6 |
| 10901 | else |
| 10902 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10904 | /* end confdefs.h. */ |
| 10905 | |
| 10906 | /* Override any GCC internal prototype to avoid an error. |
| 10907 | Use char because int might match the return type of a GCC |
| 10908 | builtin and then its argument prototype would still apply. */ |
| 10909 | #ifdef __cplusplus |
| 10910 | extern "C" |
| 10911 | #endif |
| 10912 | char blkid_probe_all (); |
| 10913 | int |
| 10914 | main () |
| 10915 | { |
| 10916 | return blkid_probe_all (); |
| 10917 | ; |
| 10918 | return 0; |
| 10919 | } |
| 10920 | _ACEOF |
| 10921 | for ac_lib in '' blkid; do |
| 10922 | if test -z "$ac_lib"; then |
| 10923 | ac_res="none required" |
| 10924 | else |
| 10925 | ac_res=-l$ac_lib |
| 10926 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10927 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10928 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10929 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10930 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10931 | rm -f core conftest.err conftest.$ac_objext \ |
| 10932 | conftest$ac_exeext |
| 10933 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10934 | break |
| 10935 | fi |
| 10936 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10937 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
| 10938 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10939 | else |
| 10940 | ac_cv_search_blkid_probe_all=no |
| 10941 | fi |
| 10942 | rm conftest.$ac_ext |
| 10943 | LIBS=$ac_func_search_save_LIBS |
| 10944 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10946 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10947 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10948 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10949 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10950 | |
| 10951 | fi |
| 10952 | |
| 10953 | fi |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 10954 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10955 | do : |
| 10956 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10957 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10958 | eval as_val=\$$as_ac_var |
| 10959 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10960 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10961 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10962 | _ACEOF |
| 10963 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10964 | fi |
| 10965 | done |
| 10966 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10967 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10969 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10970 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10971 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10972 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10973 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10974 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10976 | /* end confdefs.h. */ |
| 10977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10978 | /* Override any GCC internal prototype to avoid an error. |
| 10979 | Use char because int might match the return type of a GCC |
| 10980 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10981 | #ifdef __cplusplus |
| 10982 | extern "C" |
| 10983 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10984 | char socket (); |
| 10985 | int |
| 10986 | main () |
| 10987 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10988 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10989 | ; |
| 10990 | return 0; |
| 10991 | } |
| 10992 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10993 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10994 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10995 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10996 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10997 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10998 | rm -f core conftest.err conftest.$ac_objext \ |
| 10999 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11000 | LIBS=$ac_check_lib_save_LIBS |
| 11001 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11003 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11004 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11005 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11006 | fi |
| 11007 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11008 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11010 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11011 | if test "${ac_cv_have_optreset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11012 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11013 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11015 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11016 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11017 | |
| 11018 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11020 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11021 | ac_cv_have_optreset=yes |
| 11022 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11023 | ac_cv_have_optreset=no |
| 11024 | fi |
| 11025 | rm -f conftest* |
| 11026 | |
| 11027 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11029 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11030 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11031 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11032 | |
| 11033 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11034 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11035 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
| 11036 | if test "x$ac_cv_func_sem_init" = x""yes; then : |
| 11037 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11038 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11040 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11041 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11042 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11043 | else |
| 11044 | ac_check_lib_save_LIBS=$LIBS |
| 11045 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11047 | /* end confdefs.h. */ |
| 11048 | |
| 11049 | /* Override any GCC internal prototype to avoid an error. |
| 11050 | Use char because int might match the return type of a GCC |
| 11051 | builtin and then its argument prototype would still apply. */ |
| 11052 | #ifdef __cplusplus |
| 11053 | extern "C" |
| 11054 | #endif |
| 11055 | char sem_init (); |
| 11056 | int |
| 11057 | main () |
| 11058 | { |
| 11059 | return sem_init (); |
| 11060 | ; |
| 11061 | return 0; |
| 11062 | } |
| 11063 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11064 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11065 | ac_cv_lib_pthread_sem_init=yes |
| 11066 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11067 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11068 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11069 | rm -f core conftest.err conftest.$ac_objext \ |
| 11070 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11071 | LIBS=$ac_check_lib_save_LIBS |
| 11072 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11074 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11075 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : |
| 11076 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11077 | |
| 11078 | SEM_INIT_LIB=-lpthread |
| 11079 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11081 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11082 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11083 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11084 | else |
| 11085 | ac_check_lib_save_LIBS=$LIBS |
| 11086 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11088 | /* end confdefs.h. */ |
| 11089 | |
| 11090 | /* Override any GCC internal prototype to avoid an error. |
| 11091 | Use char because int might match the return type of a GCC |
| 11092 | builtin and then its argument prototype would still apply. */ |
| 11093 | #ifdef __cplusplus |
| 11094 | extern "C" |
| 11095 | #endif |
| 11096 | char sem_init (); |
| 11097 | int |
| 11098 | main () |
| 11099 | { |
| 11100 | return sem_init (); |
| 11101 | ; |
| 11102 | return 0; |
| 11103 | } |
| 11104 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11105 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11106 | ac_cv_lib_rt_sem_init=yes |
| 11107 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11108 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11109 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11110 | rm -f core conftest.err conftest.$ac_objext \ |
| 11111 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11112 | LIBS=$ac_check_lib_save_LIBS |
| 11113 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11115 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11116 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : |
| 11117 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11118 | |
| 11119 | SEM_INIT_LIB=-lrt |
| 11120 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11122 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11123 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11124 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11125 | else |
| 11126 | ac_check_lib_save_LIBS=$LIBS |
| 11127 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11129 | /* end confdefs.h. */ |
| 11130 | |
| 11131 | /* Override any GCC internal prototype to avoid an error. |
| 11132 | Use char because int might match the return type of a GCC |
| 11133 | builtin and then its argument prototype would still apply. */ |
| 11134 | #ifdef __cplusplus |
| 11135 | extern "C" |
| 11136 | #endif |
| 11137 | char sem_init (); |
| 11138 | int |
| 11139 | main () |
| 11140 | { |
| 11141 | return sem_init (); |
| 11142 | ; |
| 11143 | return 0; |
| 11144 | } |
| 11145 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11146 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11147 | ac_cv_lib_posix4_sem_init=yes |
| 11148 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11149 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11150 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11151 | rm -f core conftest.err conftest.$ac_objext \ |
| 11152 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11153 | LIBS=$ac_check_lib_save_LIBS |
| 11154 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11156 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11157 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : |
| 11158 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11159 | |
| 11160 | SEM_INIT_LIB=-lposix4 |
| 11161 | fi |
| 11162 | |
| 11163 | fi |
| 11164 | |
| 11165 | fi |
| 11166 | |
| 11167 | fi |
| 11168 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11170 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11171 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11172 | UNI_DIFF_OPTS=-u |
| 11173 | else |
| 11174 | UNI_DIFF_OPTS=-c |
| 11175 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11177 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11178 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11179 | case "$host_os" in |
| 11180 | linux*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11181 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11182 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11183 | ;; |
| 11184 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11185 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11186 | CYGWIN_CMT="#" |
| 11187 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11188 | case "$host_os" in |
| 11189 | linux*) |
| 11190 | LINUX_CMT= |
| 11191 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11192 | cygwin) |
| 11193 | CYGWIN_CMT= |
| 11194 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11195 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11196 | esac |
| 11197 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11198 | |
| 11199 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11200 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11201 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11202 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11203 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11205 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11206 | fi |
| 11207 | ;; |
| 11208 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11209 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11210 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11211 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11212 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11214 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11215 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11217 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11218 | mandir=/usr/share/man |
| 11219 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11220 | fi |
| 11221 | ;; |
| 11222 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11223 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11224 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11225 | root_prefix="$ac_default_prefix" |
| 11226 | else |
| 11227 | root_prefix="$prefix" |
| 11228 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11229 | root_bindir=$bindir |
| 11230 | root_sbindir=$sbindir |
| 11231 | root_libdir=$libdir |
| 11232 | root_sysconfdir=$sysconfdir |
| 11233 | else |
| 11234 | root_bindir='${root_prefix}/bin' |
| 11235 | root_sbindir='${root_prefix}/sbin' |
| 11236 | root_libdir='${root_prefix}/lib' |
| 11237 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11238 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11239 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11240 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11242 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11243 | fi |
| 11244 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11245 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11247 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11248 | fi |
| 11249 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11250 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11252 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11253 | fi |
| 11254 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11255 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11257 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11258 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11259 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11260 | |
| 11261 | |
| 11262 | |
| 11263 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11265 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11266 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11267 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11268 | else |
| 11269 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11271 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11272 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11273 | int |
| 11274 | main () |
| 11275 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11276 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | ; |
| 11278 | return 0; |
| 11279 | } |
| 11280 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11281 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11282 | ac_cv_e2fsprogs_use_static=yes |
| 11283 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11284 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11285 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11286 | rm -f core conftest.err conftest.$ac_objext \ |
| 11287 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11288 | LDFLAGS=$SAVE_LDFLAGS |
| 11289 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11290 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11291 | case "$host_os" in |
| 11292 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11293 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11294 | ;; |
| 11295 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11297 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11298 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11299 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11300 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11301 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11302 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11303 | case "$host_os" in |
| 11304 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11306 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11307 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11308 | |
| 11309 | ;; |
| 11310 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11311 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11312 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11313 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11314 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | if test "$cross_compiling" = yes ; then |
| 11316 | DO_TEST_SUITE= |
| 11317 | else |
| 11318 | DO_TEST_SUITE=check |
| 11319 | fi |
| 11320 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11321 | INTL_FLAGS= |
| 11322 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 11323 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 11324 | fi |
| 11325 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11326 | if test $cross_compiling = no; then |
| 11327 | BUILD_CFLAGS="$CFLAGS" |
| 11328 | BUILD_LDFLAGS="$LDFLAGS" |
| 11329 | else |
| 11330 | BUILD_CFLAGS= |
| 11331 | BUILD_LDFLAGS= |
| 11332 | fi |
| 11333 | |
| 11334 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11335 | test -d lib || mkdir lib |
| 11336 | test -d include || mkdir include |
| 11337 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11338 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11339 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 11340 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11341 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11342 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11343 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame^] | 11344 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11345 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11346 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 11347 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11348 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11349 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11350 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11351 | if test -d `dirname ${srcdir}/$i` ; then |
| 11352 | outlist="$outlist $i" |
| 11353 | fi |
| 11354 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11355 | ac_config_files="$ac_config_files $outlist" |
| 11356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11358 | # This file is a shell script that caches the results of configure |
| 11359 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11360 | # scripts and configure runs, see configure's option --config-cache. |
| 11361 | # It is not useful on other systems. If it contains results you don't |
| 11362 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11363 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11364 | # config.status only pays attention to the cache file if you give it |
| 11365 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11366 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11367 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11368 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11369 | # following values. |
| 11370 | |
| 11371 | _ACEOF |
| 11372 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11373 | # The following way of writing the cache mishandles newlines in values, |
| 11374 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11375 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11376 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11377 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11378 | ( |
| 11379 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11380 | eval ac_val=\$$ac_var |
| 11381 | case $ac_val in #( |
| 11382 | *${as_nl}*) |
| 11383 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11384 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11385 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11386 | esac |
| 11387 | case $ac_var in #( |
| 11388 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11389 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11390 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11391 | esac ;; |
| 11392 | esac |
| 11393 | done |
| 11394 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11395 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11396 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11397 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11398 | # `set' does not quote correctly, so add quotes: double-quote |
| 11399 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11400 | sed -n \ |
| 11401 | "s/'/'\\\\''/g; |
| 11402 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11403 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | *) |
| 11405 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11406 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11407 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11408 | esac | |
| 11409 | sort |
| 11410 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11411 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11412 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11413 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11414 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11415 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11416 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11417 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11418 | :end' >>confcache |
| 11419 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11420 | if test -w "$cache_file"; then |
| 11421 | test "x$cache_file" != "x/dev/null" && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11423 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11425 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11427 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11428 | fi |
| 11429 | fi |
| 11430 | rm -f confcache |
| 11431 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11432 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11433 | # Let make expand exec_prefix. |
| 11434 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11435 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11436 | # Transform confdefs.h into DEFS. |
| 11437 | # Protect against shell expansion while executing Makefile rules. |
| 11438 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11439 | # |
| 11440 | # If the first sed substitution is executed (which looks for macros that |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11441 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11442 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11443 | ac_script=' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11444 | :mline |
| 11445 | /\\$/{ |
| 11446 | N |
| 11447 | s,\\\n,, |
| 11448 | b mline |
| 11449 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11450 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11451 | :clear |
| 11452 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11453 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11454 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11456 | b any |
| 11457 | :quote |
| 11458 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 11459 | s/\[/\\&/g |
| 11460 | s/\]/\\&/g |
| 11461 | s/\$/$$/g |
| 11462 | H |
| 11463 | :any |
| 11464 | ${ |
| 11465 | g |
| 11466 | s/^\n// |
| 11467 | s/\n/ /g |
| 11468 | p |
| 11469 | } |
| 11470 | ' |
| 11471 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11472 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11474 | ac_libobjs= |
| 11475 | ac_ltlibobjs= |
| 11476 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11477 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11478 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11479 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11480 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11481 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11482 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11483 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11484 | done |
| 11485 | LIBOBJS=$ac_libobjs |
| 11486 | |
| 11487 | LTLIBOBJS=$ac_ltlibobjs |
| 11488 | |
| 11489 | |
| 11490 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11491 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11492 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11493 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11494 | ac_clean_files_save=$ac_clean_files |
| 11495 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11497 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11498 | as_write_fail=0 |
| 11499 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11500 | #! $SHELL |
| 11501 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11502 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11503 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11504 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11506 | debug=false |
| 11507 | ac_cs_recheck=false |
| 11508 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11509 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11510 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11511 | export SHELL |
| 11512 | _ASEOF |
| 11513 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11514 | ## -------------------- ## |
| 11515 | ## M4sh Initialization. ## |
| 11516 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11517 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11518 | # Be more Bourne compatible |
| 11519 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11520 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11521 | emulate sh |
| 11522 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11523 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11524 | # is contrary to our usage. Disable this feature. |
| 11525 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11526 | setopt NO_GLOB_SUBST |
| 11527 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11528 | case `(set -o) 2>/dev/null` in #( |
| 11529 | *posix*) : |
| 11530 | set -o posix ;; #( |
| 11531 | *) : |
| 11532 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11533 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11534 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11535 | |
| 11536 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11537 | as_nl=' |
| 11538 | ' |
| 11539 | export as_nl |
| 11540 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11541 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11542 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11543 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11544 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11545 | # but without wasting forks for bash or zsh. |
| 11546 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11547 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11548 | as_echo='print -r --' |
| 11549 | as_echo_n='print -rn --' |
| 11550 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11551 | as_echo='printf %s\n' |
| 11552 | as_echo_n='printf %s' |
| 11553 | else |
| 11554 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11555 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11556 | as_echo_n='/usr/ucb/echo -n' |
| 11557 | else |
| 11558 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11559 | as_echo_n_body='eval |
| 11560 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11561 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11562 | *"$as_nl"*) |
| 11563 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11564 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11565 | esac; |
| 11566 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11567 | ' |
| 11568 | export as_echo_n_body |
| 11569 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11570 | fi |
| 11571 | export as_echo_body |
| 11572 | as_echo='sh -c $as_echo_body as_echo' |
| 11573 | fi |
| 11574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11575 | # The user is always right. |
| 11576 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11577 | PATH_SEPARATOR=: |
| 11578 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11579 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11580 | PATH_SEPARATOR=';' |
| 11581 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11582 | fi |
| 11583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11584 | |
| 11585 | # IFS |
| 11586 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11587 | # there to prevent editors from complaining about space-tab. |
| 11588 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11589 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11590 | IFS=" "" $as_nl" |
| 11591 | |
| 11592 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11593 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11594 | *[\\/]* ) as_myself=$0 ;; |
| 11595 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | for as_dir in $PATH |
| 11597 | do |
| 11598 | IFS=$as_save_IFS |
| 11599 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11600 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11601 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11602 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11603 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11604 | ;; |
| 11605 | esac |
| 11606 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11607 | # in which case we are not to be found in the path. |
| 11608 | if test "x$as_myself" = x; then |
| 11609 | as_myself=$0 |
| 11610 | fi |
| 11611 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11612 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11613 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11614 | fi |
| 11615 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11616 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11617 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11618 | # suppresses any "Segmentation fault" message there. '((' could |
| 11619 | # trigger a bug in pdksh 5.2.14. |
| 11620 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11621 | do eval test x\${$as_var+set} = xset \ |
| 11622 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11623 | done |
| 11624 | PS1='$ ' |
| 11625 | PS2='> ' |
| 11626 | PS4='+ ' |
| 11627 | |
| 11628 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11629 | LC_ALL=C |
| 11630 | export LC_ALL |
| 11631 | LANGUAGE=C |
| 11632 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11633 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11634 | # CDPATH. |
| 11635 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11636 | |
| 11637 | |
| 11638 | # as_fn_error ERROR [LINENO LOG_FD] |
| 11639 | # --------------------------------- |
| 11640 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11641 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11642 | # script with status $?, using 1 if that was 0. |
| 11643 | as_fn_error () |
| 11644 | { |
| 11645 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 11646 | if test "$3"; then |
| 11647 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11648 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 11649 | fi |
| 11650 | $as_echo "$as_me: error: $1" >&2 |
| 11651 | as_fn_exit $as_status |
| 11652 | } # as_fn_error |
| 11653 | |
| 11654 | |
| 11655 | # as_fn_set_status STATUS |
| 11656 | # ----------------------- |
| 11657 | # Set $? to STATUS, without forking. |
| 11658 | as_fn_set_status () |
| 11659 | { |
| 11660 | return $1 |
| 11661 | } # as_fn_set_status |
| 11662 | |
| 11663 | # as_fn_exit STATUS |
| 11664 | # ----------------- |
| 11665 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11666 | as_fn_exit () |
| 11667 | { |
| 11668 | set +e |
| 11669 | as_fn_set_status $1 |
| 11670 | exit $1 |
| 11671 | } # as_fn_exit |
| 11672 | |
| 11673 | # as_fn_unset VAR |
| 11674 | # --------------- |
| 11675 | # Portably unset VAR. |
| 11676 | as_fn_unset () |
| 11677 | { |
| 11678 | { eval $1=; unset $1;} |
| 11679 | } |
| 11680 | as_unset=as_fn_unset |
| 11681 | # as_fn_append VAR VALUE |
| 11682 | # ---------------------- |
| 11683 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11684 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11685 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11686 | # implementations. |
| 11687 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11688 | eval 'as_fn_append () |
| 11689 | { |
| 11690 | eval $1+=\$2 |
| 11691 | }' |
| 11692 | else |
| 11693 | as_fn_append () |
| 11694 | { |
| 11695 | eval $1=\$$1\$2 |
| 11696 | } |
| 11697 | fi # as_fn_append |
| 11698 | |
| 11699 | # as_fn_arith ARG... |
| 11700 | # ------------------ |
| 11701 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11702 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11703 | # must be portable across $(()) and expr. |
| 11704 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11705 | eval 'as_fn_arith () |
| 11706 | { |
| 11707 | as_val=$(( $* )) |
| 11708 | }' |
| 11709 | else |
| 11710 | as_fn_arith () |
| 11711 | { |
| 11712 | as_val=`expr "$@" || test $? -eq 1` |
| 11713 | } |
| 11714 | fi # as_fn_arith |
| 11715 | |
| 11716 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11717 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11718 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11719 | as_expr=expr |
| 11720 | else |
| 11721 | as_expr=false |
| 11722 | fi |
| 11723 | |
| 11724 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11725 | as_basename=basename |
| 11726 | else |
| 11727 | as_basename=false |
| 11728 | fi |
| 11729 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11730 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11731 | as_dirname=dirname |
| 11732 | else |
| 11733 | as_dirname=false |
| 11734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11736 | as_me=`$as_basename -- "$0" || |
| 11737 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11738 | X"$0" : 'X\(//\)$' \| \ |
| 11739 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11740 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11741 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11742 | s//\1/ |
| 11743 | q |
| 11744 | } |
| 11745 | /^X\/\(\/\/\)$/{ |
| 11746 | s//\1/ |
| 11747 | q |
| 11748 | } |
| 11749 | /^X\/\(\/\).*/{ |
| 11750 | s//\1/ |
| 11751 | q |
| 11752 | } |
| 11753 | s/.*/./; q'` |
| 11754 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11755 | # Avoid depending upon Character Ranges. |
| 11756 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11757 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11758 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11759 | as_cr_digits='0123456789' |
| 11760 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11761 | |
| 11762 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11763 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11764 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11765 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11766 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11767 | xy) ECHO_C='\c';; |
| 11768 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11769 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11770 | esac;; |
| 11771 | *) |
| 11772 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11773 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11774 | |
| 11775 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11776 | if test -d conf$$.dir; then |
| 11777 | rm -f conf$$.dir/conf$$.file |
| 11778 | else |
| 11779 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11780 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11781 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11782 | if (echo >conf$$.file) 2>/dev/null; then |
| 11783 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11784 | as_ln_s='ln -s' |
| 11785 | # ... but there are two gotchas: |
| 11786 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11787 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11788 | # In both cases, we have to default to `cp -p'. |
| 11789 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11790 | as_ln_s='cp -p' |
| 11791 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11792 | as_ln_s=ln |
| 11793 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11794 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11795 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11796 | else |
| 11797 | as_ln_s='cp -p' |
| 11798 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11799 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11800 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11801 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11802 | |
| 11803 | # as_fn_mkdir_p |
| 11804 | # ------------- |
| 11805 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11806 | as_fn_mkdir_p () |
| 11807 | { |
| 11808 | |
| 11809 | case $as_dir in #( |
| 11810 | -*) as_dir=./$as_dir;; |
| 11811 | esac |
| 11812 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11813 | as_dirs= |
| 11814 | while :; do |
| 11815 | case $as_dir in #( |
| 11816 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11817 | *) as_qdir=$as_dir;; |
| 11818 | esac |
| 11819 | as_dirs="'$as_qdir' $as_dirs" |
| 11820 | as_dir=`$as_dirname -- "$as_dir" || |
| 11821 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11822 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11823 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11824 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11825 | $as_echo X"$as_dir" | |
| 11826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11827 | s//\1/ |
| 11828 | q |
| 11829 | } |
| 11830 | /^X\(\/\/\)[^/].*/{ |
| 11831 | s//\1/ |
| 11832 | q |
| 11833 | } |
| 11834 | /^X\(\/\/\)$/{ |
| 11835 | s//\1/ |
| 11836 | q |
| 11837 | } |
| 11838 | /^X\(\/\).*/{ |
| 11839 | s//\1/ |
| 11840 | q |
| 11841 | } |
| 11842 | s/.*/./; q'` |
| 11843 | test -d "$as_dir" && break |
| 11844 | done |
| 11845 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11846 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 11847 | |
| 11848 | |
| 11849 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11850 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11851 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11852 | else |
| 11853 | test -d ./-p && rmdir ./-p |
| 11854 | as_mkdir_p=false |
| 11855 | fi |
| 11856 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11857 | if test -x / >/dev/null 2>&1; then |
| 11858 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11859 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11860 | if ls -dL / >/dev/null 2>&1; then |
| 11861 | as_ls_L_option=L |
| 11862 | else |
| 11863 | as_ls_L_option= |
| 11864 | fi |
| 11865 | as_test_x=' |
| 11866 | eval sh -c '\'' |
| 11867 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11868 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11869 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11870 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11871 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11872 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11873 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11874 | ???[sx]*):;;*)false;;esac;fi |
| 11875 | '\'' sh |
| 11876 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11877 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11878 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11879 | |
| 11880 | # Sed expression to map a string onto a valid CPP name. |
| 11881 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11882 | |
| 11883 | # Sed expression to map a string onto a valid variable name. |
| 11884 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11885 | |
| 11886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11887 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11888 | ## ----------------------------------- ## |
| 11889 | ## Main body of $CONFIG_STATUS script. ## |
| 11890 | ## ----------------------------------- ## |
| 11891 | _ASEOF |
| 11892 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11893 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11895 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11897 | # values after options handling. |
| 11898 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11899 | This file was extended by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11900 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11901 | |
| 11902 | CONFIG_FILES = $CONFIG_FILES |
| 11903 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11904 | CONFIG_LINKS = $CONFIG_LINKS |
| 11905 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11906 | $ $0 $@ |
| 11907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11908 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11909 | " |
| 11910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11911 | _ACEOF |
| 11912 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11913 | case $ac_config_files in *" |
| 11914 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11915 | esac |
| 11916 | |
| 11917 | |
| 11918 | |
| 11919 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11920 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11921 | config_files="$ac_config_files" |
| 11922 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11924 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11925 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11927 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11928 | \`$as_me' instantiates files and other configuration actions |
| 11929 | from templates according to the current configuration. Unless the files |
| 11930 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11931 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11932 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11933 | |
| 11934 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11935 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11936 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11937 | -q, --quiet, --silent |
| 11938 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11939 | -d, --debug don't remove temporary files |
| 11940 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11941 | --file=FILE[:TEMPLATE] |
| 11942 | instantiate the configuration file FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | |
| 11944 | Configuration files: |
| 11945 | $config_files |
| 11946 | |
| 11947 | Configuration commands: |
| 11948 | $config_commands |
| 11949 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11950 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11951 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11952 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11953 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11954 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | ac_cs_version="\\ |
| 11956 | config.status |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11957 | configured by $0, generated by GNU Autoconf 2.65, |
| 11958 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11959 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11960 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11961 | This config.status script is free software; the Free Software Foundation |
| 11962 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11963 | |
| 11964 | ac_pwd='$ac_pwd' |
| 11965 | srcdir='$srcdir' |
| 11966 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11967 | AWK='$AWK' |
| 11968 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11969 | _ACEOF |
| 11970 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11971 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11972 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | ac_need_defaults=: |
| 11974 | while test $# != 0 |
| 11975 | do |
| 11976 | case $1 in |
| 11977 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11978 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11979 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | ac_shift=: |
| 11981 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11982 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11983 | ac_option=$1 |
| 11984 | ac_optarg=$2 |
| 11985 | ac_shift=shift |
| 11986 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11987 | esac |
| 11988 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11989 | case $ac_option in |
| 11990 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11991 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11992 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11993 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11994 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11995 | --config | --confi | --conf | --con | --co | --c ) |
| 11996 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11997 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11998 | debug=: ;; |
| 11999 | --file | --fil | --fi | --f ) |
| 12000 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12001 | case $ac_optarg in |
| 12002 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12003 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12004 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12005 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12006 | --he | --h | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12007 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12009 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12010 | ac_cs_silent=: ;; |
| 12011 | |
| 12012 | # This is an error. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12013 | -*) as_fn_error "unrecognized option: \`$1' |
| 12014 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12015 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12016 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12017 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12019 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | shift |
| 12021 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12024 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12025 | if $ac_cs_silent; then |
| 12026 | exec 6>/dev/null |
| 12027 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12028 | fi |
| 12029 | |
| 12030 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12032 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12033 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12034 | shift |
| 12035 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12036 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12037 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12038 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12039 | fi |
| 12040 | |
| 12041 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12043 | exec 5>>config.log |
| 12044 | { |
| 12045 | echo |
| 12046 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12047 | ## Running $as_me. ## |
| 12048 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12049 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12050 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12052 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12054 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12055 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12056 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12057 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12058 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12059 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12060 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12061 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12062 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12063 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12064 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12065 | _ACEOF |
| 12066 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12068 | |
| 12069 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12070 | for ac_config_target in $ac_config_targets |
| 12071 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12072 | case $ac_config_target in |
| 12073 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12074 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12075 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12076 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12077 | esac |
| 12078 | done |
| 12079 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12080 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12081 | # If the user did not use the arguments to specify the items to instantiate, |
| 12082 | # then the envvar interface is used. Set only those that are not. |
| 12083 | # We use the long form for the default assignment because of an extremely |
| 12084 | # bizarre bug on SunOS 4.1.3. |
| 12085 | if $ac_need_defaults; then |
| 12086 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 12087 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12088 | fi |
| 12089 | |
| 12090 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12091 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12092 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12093 | # Hook for its removal unless debugging. |
| 12094 | # Note that there is a small window in which the directory will not be cleaned: |
| 12095 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12096 | $debug || |
| 12097 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12098 | tmp= |
| 12099 | trap 'exit_status=$? |
| 12100 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 12101 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12102 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12103 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12104 | # Create a (secure) tmp directory for tmp files. |
| 12105 | |
| 12106 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12108 | test -n "$tmp" && test -d "$tmp" |
| 12109 | } || |
| 12110 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12111 | tmp=./conf$$-$RANDOM |
| 12112 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12113 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12115 | # Set up the scripts for CONFIG_FILES section. |
| 12116 | # No need to generate them if there are no CONFIG_FILES. |
| 12117 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12118 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12119 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12120 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12121 | ac_cs_awk_getline=: |
| 12122 | ac_cs_awk_pipe_init= |
| 12123 | ac_cs_awk_read_file=' |
| 12124 | while ((getline aline < (F[key])) > 0) |
| 12125 | print(aline) |
| 12126 | close(F[key])' |
| 12127 | ac_cs_awk_pipe_fini= |
| 12128 | else |
| 12129 | ac_cs_awk_getline=false |
| 12130 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12131 | ac_cs_awk_read_file=' |
| 12132 | print "|#_!!_#|" |
| 12133 | print "cat " F[key] " &&" |
| 12134 | '$ac_cs_awk_pipe_init |
| 12135 | # The final `:' finishes the AND list. |
| 12136 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12137 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12138 | ac_cr=`echo X | tr X '\015'` |
| 12139 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12140 | # But we know of no other shell where ac_cr would be empty at this |
| 12141 | # point, so we can use a bashism as a fallback. |
| 12142 | if test "x$ac_cr" = x; then |
| 12143 | eval ac_cr=\$\'\\r\' |
| 12144 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12145 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12146 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12147 | ac_cs_awk_cr='\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12148 | else |
| 12149 | ac_cs_awk_cr=$ac_cr |
| 12150 | fi |
| 12151 | |
| 12152 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12153 | _ACEOF |
| 12154 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12155 | # Create commands to substitute file output variables. |
| 12156 | { |
| 12157 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 12158 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 12159 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12160 | echo "_ACAWK" && |
| 12161 | echo "_ACEOF" |
| 12162 | } >conf$$files.sh && |
| 12163 | . ./conf$$files.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12164 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12165 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12167 | { |
| 12168 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12169 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12170 | echo "_ACEOF" |
| 12171 | } >conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12172 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12173 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12174 | ac_delim='%!_!# ' |
| 12175 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12176 | . ./conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12177 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12178 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12179 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12180 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12181 | break |
| 12182 | elif $ac_last_try; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12183 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12184 | else |
| 12185 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12186 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12187 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12188 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12189 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12190 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12191 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12192 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12193 | sed -n ' |
| 12194 | h |
| 12195 | s/^/S["/; s/!.*/"]=/ |
| 12196 | p |
| 12197 | g |
| 12198 | s/^[^!]*!// |
| 12199 | :repl |
| 12200 | t repl |
| 12201 | s/'"$ac_delim"'$// |
| 12202 | t delim |
| 12203 | :nl |
| 12204 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12205 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12206 | t more1 |
| 12207 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12208 | p |
| 12209 | n |
| 12210 | b repl |
| 12211 | :more1 |
| 12212 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12213 | p |
| 12214 | g |
| 12215 | s/.\{148\}// |
| 12216 | t nl |
| 12217 | :delim |
| 12218 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12219 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12220 | t more2 |
| 12221 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12222 | p |
| 12223 | b |
| 12224 | :more2 |
| 12225 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12226 | p |
| 12227 | g |
| 12228 | s/.\{148\}// |
| 12229 | t delim |
| 12230 | ' <conf$$subs.awk | sed ' |
| 12231 | /^[^""]/{ |
| 12232 | N |
| 12233 | s/\n// |
| 12234 | } |
| 12235 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12236 | rm -f conf$$subs.awk |
| 12237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12238 | _ACAWK |
| 12239 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 12240 | for (key in S) S_is_set[key] = 1 |
| 12241 | FS = "" |
| 12242 | \$ac_cs_awk_pipe_init |
| 12243 | } |
| 12244 | { |
| 12245 | line = $ 0 |
| 12246 | nfields = split(line, field, "@") |
| 12247 | substed = 0 |
| 12248 | len = length(field[1]) |
| 12249 | for (i = 2; i < nfields; i++) { |
| 12250 | key = field[i] |
| 12251 | keylen = length(key) |
| 12252 | if (S_is_set[key]) { |
| 12253 | value = S[key] |
| 12254 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12255 | len += length(value) + length(field[++i]) |
| 12256 | substed = 1 |
| 12257 | } else |
| 12258 | len += 1 + keylen |
| 12259 | } |
| 12260 | if (nfields == 3 && !substed) { |
| 12261 | key = field[2] |
| 12262 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12263 | \$ac_cs_awk_read_file |
| 12264 | next |
| 12265 | } |
| 12266 | } |
| 12267 | print line |
| 12268 | } |
| 12269 | \$ac_cs_awk_pipe_fini |
| 12270 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12271 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12273 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12274 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12275 | else |
| 12276 | cat |
| 12277 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12278 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12279 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12280 | |
| 12281 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12282 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12283 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12284 | # (actually we leave an empty line to preserve line numbers). |
| 12285 | if test "x$srcdir" = x.; then |
| 12286 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12287 | s/:*\$(srcdir):*/:/ |
| 12288 | s/:*\${srcdir}:*/:/ |
| 12289 | s/:*@srcdir@:*/:/ |
| 12290 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12291 | s/:*$// |
| 12292 | s/^[^=]*=[ ]*$// |
| 12293 | }' |
| 12294 | fi |
| 12295 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12297 | fi # test -n "$CONFIG_FILES" |
| 12298 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12299 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12300 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 12301 | shift |
| 12302 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12303 | do |
| 12304 | case $ac_tag in |
| 12305 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12306 | esac |
| 12307 | case $ac_mode$ac_tag in |
| 12308 | :[FHL]*:*);; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12309 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12310 | :[FH]-) ac_tag=-:-;; |
| 12311 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12312 | esac |
| 12313 | ac_save_IFS=$IFS |
| 12314 | IFS=: |
| 12315 | set x $ac_tag |
| 12316 | IFS=$ac_save_IFS |
| 12317 | shift |
| 12318 | ac_file=$1 |
| 12319 | shift |
| 12320 | |
| 12321 | case $ac_mode in |
| 12322 | :L) ac_source=$1;; |
| 12323 | :[FH]) |
| 12324 | ac_file_inputs= |
| 12325 | for ac_f |
| 12326 | do |
| 12327 | case $ac_f in |
| 12328 | -) ac_f="$tmp/stdin";; |
| 12329 | *) # Look for the file first in the build tree, then in the source tree |
| 12330 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12331 | # because $ac_f cannot contain `:'. |
| 12332 | test -f "$ac_f" || |
| 12333 | case $ac_f in |
| 12334 | [\\/$]*) false;; |
| 12335 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12336 | esac || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12337 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12338 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12339 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12340 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12341 | done |
| 12342 | |
| 12343 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12344 | # use $as_me), people would be surprised to read: |
| 12345 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12346 | configure_input='Generated from '` |
| 12347 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12348 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12349 | if test x"$ac_file" != x-; then |
| 12350 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12352 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12353 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12354 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12355 | case $configure_input in #( |
| 12356 | *\&* | *\|* | *\\* ) |
| 12357 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12358 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12359 | *) ac_sed_conf_input=$configure_input;; |
| 12360 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12361 | |
| 12362 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12363 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12364 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12365 | esac |
| 12366 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12367 | esac |
| 12368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12369 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12370 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12371 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12372 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12373 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12374 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12375 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12376 | s//\1/ |
| 12377 | q |
| 12378 | } |
| 12379 | /^X\(\/\/\)[^/].*/{ |
| 12380 | s//\1/ |
| 12381 | q |
| 12382 | } |
| 12383 | /^X\(\/\/\)$/{ |
| 12384 | s//\1/ |
| 12385 | q |
| 12386 | } |
| 12387 | /^X\(\/\).*/{ |
| 12388 | s//\1/ |
| 12389 | q |
| 12390 | } |
| 12391 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12392 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12393 | ac_builddir=. |
| 12394 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12395 | case "$ac_dir" in |
| 12396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12397 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12398 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12399 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12400 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12401 | case $ac_top_builddir_sub in |
| 12402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12404 | esac ;; |
| 12405 | esac |
| 12406 | ac_abs_top_builddir=$ac_pwd |
| 12407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12408 | # for backward compatibility: |
| 12409 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12410 | |
| 12411 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12412 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12413 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12414 | ac_top_srcdir=$ac_top_builddir_sub |
| 12415 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12416 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12417 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12418 | ac_top_srcdir=$srcdir |
| 12419 | ac_abs_top_srcdir=$srcdir ;; |
| 12420 | *) # Relative name. |
| 12421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12422 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12424 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12427 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12428 | case $ac_mode in |
| 12429 | :F) |
| 12430 | # |
| 12431 | # CONFIG_FILE |
| 12432 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12433 | |
| 12434 | case $INSTALL in |
| 12435 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12436 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12438 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12439 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12440 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12441 | # If the template does not know about datarootdir, expand it. |
| 12442 | # FIXME: This hack should be removed a few years after 2.60. |
| 12443 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12444 | ac_sed_dataroot=' |
| 12445 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12446 | p |
| 12447 | q |
| 12448 | } |
| 12449 | /@datadir@/p |
| 12450 | /@docdir@/p |
| 12451 | /@infodir@/p |
| 12452 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12453 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12454 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12455 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12456 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12458 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12459 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12461 | ac_datarootdir_hack=' |
| 12462 | s&@datadir@&$datadir&g |
| 12463 | s&@docdir@&$docdir&g |
| 12464 | s&@infodir@&$infodir&g |
| 12465 | s&@localedir@&$localedir&g |
| 12466 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12467 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12468 | esac |
| 12469 | _ACEOF |
| 12470 | |
| 12471 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12472 | # Shell code in configure.ac might set extrasub. |
| 12473 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12475 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12476 | $extrasub |
| 12477 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12479 | :t |
| 12480 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12481 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12482 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12483 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12484 | s&@srcdir@&$ac_srcdir&;t t |
| 12485 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12486 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12487 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12488 | s&@builddir@&$ac_builddir&;t t |
| 12489 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12490 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12491 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12492 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12493 | " |
| 12494 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12495 | if $ac_cs_awk_getline; then |
| 12496 | $AWK -f "$tmp/subs.awk" |
| 12497 | else |
| 12498 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 12499 | fi >$tmp/out \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12500 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12501 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12502 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12503 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12504 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12506 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12507 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12508 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12509 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12510 | rm -f "$tmp/stdin" |
| 12511 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12512 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 12513 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 12514 | esac \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12515 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12516 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12517 | |
| 12518 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12519 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12520 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12521 | ;; |
| 12522 | esac |
| 12523 | |
| 12524 | |
| 12525 | case $ac_file$ac_mode in |
| 12526 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12527 | for ac_file in $CONFIG_FILES; do |
| 12528 | # Support "outfile[:infile[:infile...]]" |
| 12529 | case "$ac_file" in |
| 12530 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12531 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12532 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12533 | case "$ac_file" in */Makefile.in) |
| 12534 | # Adjust a relative srcdir. |
| 12535 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12536 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12537 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12538 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12539 | # In autoconf-2.50 it is called $srcdir. |
| 12540 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12541 | case "$ac_given_srcdir" in |
| 12542 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12543 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12544 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12545 | esac |
| 12546 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12547 | rm -f "$ac_dir/POTFILES" |
| 12548 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12549 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12550 | POMAKEFILEDEPS="POTFILES.in" |
| 12551 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12552 | # on $ac_dir but don't depend on user-specified configuration |
| 12553 | # parameters. |
| 12554 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12555 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12556 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12557 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12558 | fi |
| 12559 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12560 | # Hide the ALL_LINGUAS assigment from automake. |
| 12561 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12562 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12563 | else |
| 12564 | # The set of available languages was given in configure.in. |
| 12565 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12566 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12567 | # Compute POFILES |
| 12568 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12569 | # Compute UPDATEPOFILES |
| 12570 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12571 | # Compute DUMMYPOFILES |
| 12572 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12573 | # Compute GMOFILES |
| 12574 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12575 | case "$ac_given_srcdir" in |
| 12576 | .) srcdirpre= ;; |
| 12577 | *) srcdirpre='$(srcdir)/' ;; |
| 12578 | esac |
| 12579 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12580 | UPDATEPOFILES= |
| 12581 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12582 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12583 | for lang in $ALL_LINGUAS; do |
| 12584 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12585 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12586 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12587 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12588 | done |
| 12589 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12590 | # environment variable. |
| 12591 | INST_LINGUAS= |
| 12592 | if test -n "$ALL_LINGUAS"; then |
| 12593 | for presentlang in $ALL_LINGUAS; do |
| 12594 | useit=no |
| 12595 | if test "%UNSET%" != "$LINGUAS"; then |
| 12596 | desiredlanguages="$LINGUAS" |
| 12597 | else |
| 12598 | desiredlanguages="$ALL_LINGUAS" |
| 12599 | fi |
| 12600 | for desiredlang in $desiredlanguages; do |
| 12601 | # Use the presentlang catalog if desiredlang is |
| 12602 | # a. equal to presentlang, or |
| 12603 | # b. a variant of presentlang (because in this case, |
| 12604 | # presentlang can be used as a fallback for messages |
| 12605 | # which are not translated in the desiredlang catalog). |
| 12606 | case "$desiredlang" in |
| 12607 | "$presentlang"*) useit=yes;; |
| 12608 | esac |
| 12609 | done |
| 12610 | if test $useit = yes; then |
| 12611 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12612 | fi |
| 12613 | done |
| 12614 | fi |
| 12615 | CATALOGS= |
| 12616 | if test -n "$INST_LINGUAS"; then |
| 12617 | for lang in $INST_LINGUAS; do |
| 12618 | CATALOGS="$CATALOGS $lang.gmo" |
| 12619 | done |
| 12620 | fi |
| 12621 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12622 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12623 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12624 | if test -f "$f"; then |
| 12625 | case "$f" in |
| 12626 | *.orig | *.bak | *~) ;; |
| 12627 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12628 | esac |
| 12629 | fi |
| 12630 | done |
| 12631 | fi |
| 12632 | ;; |
| 12633 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12634 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12635 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12636 | esac |
| 12637 | done # for ac_tag |
| 12638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12639 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12640 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12641 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12642 | ac_clean_files=$ac_clean_files_save |
| 12643 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12644 | test $ac_write_fail = 0 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12645 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12646 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12647 | |
| 12648 | # configure is writing to config.log, and then calls config.status. |
| 12649 | # config.status does its own redirection, appending to config.log. |
| 12650 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12651 | # by configure, so config.status won't be able to write to it; its |
| 12652 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12653 | # effectively closing config.log, so it can be properly (re)opened and |
| 12654 | # appended to by config.status. When coming back to configure, we |
| 12655 | # need to make the FD available again. |
| 12656 | if test "$no_create" != yes; then |
| 12657 | ac_cs_success=: |
| 12658 | ac_config_status_args= |
| 12659 | test "$silent" = yes && |
| 12660 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12661 | exec 5>/dev/null |
| 12662 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12663 | exec 5>>config.log |
| 12664 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12665 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12666 | $ac_cs_success || as_fn_exit $? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12667 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12668 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12670 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12671 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12672 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12673 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |